/* The features page (owner, 8 Nov 2026: "เปลี่ยน คู่มือข้างนอกเป็นเมหือน teaser ว่ามี feature อะไรบ้างแทน"): a front page,
   always light like the landing, built on the landing's header, buttons and footer (style.css). Each feature is a row of
   words beside its real screen — a browser window on a computer, a phone on a phone — alternating sides; the guide, for
   members, is the black and champagne band the owner chose for the mail page (29 Oct 2026). */

.features-page { background:var(--bg) }
.features-page main { display:block }

/* a visitor sent here from the guide's address */
.features-members { max-width:1180px; margin:20px auto 0; padding:0 clamp(16px,4vw,48px) }
.features-members-card { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px 24px; padding:18px 22px; border-radius:var(--radius-lg); background:var(--band); color:var(--band-text); box-shadow:var(--shadow-lg),var(--band-light) }
.features-members-card h2 { font-size:18px; color:var(--gold-text); margin-bottom:4px }
.features-members-card p { color:var(--band-muted); font-size:14px; max-width:560px }
.features-members-card .btn-primary,.features-guide .btn-primary { background:var(--gold); color:var(--band-ink) }
.features-members-card .btn-primary:hover,.features-guide .btn-primary:hover { background:#e2c891; box-shadow:0 6px 18px rgba(212,181,124,.32) }

/* the opening */
/* The page's breadcrumb (11 Nov 2026, kv-flow RULES 61) sits at the start of the column, above the centred hero. */
.features-crumbs { max-width:1180px; margin:0 auto; padding:16px clamp(16px,4vw,48px) 0 }
.features-hero { max-width:1180px; margin:0 auto; padding:clamp(40px,8vh,88px) clamp(16px,4vw,48px) clamp(16px,3vh,32px); text-align:center }
.features-hero h1 { max-width:880px; margin:14px auto 16px; font-size:clamp(32px,4.6vw,52px); line-height:1.15; letter-spacing:-.02em }
.features-hero h1 .title-line,.features-guide h2 .title-line { display:inline-block } /* each phrase on one line where it fits, as on the landing */
.features-lead { max-width:640px; margin:0 auto; font-size:17px; line-height:1.7; color:var(--text-2) }
.features-hero .hero-cta,.features-end .hero-cta { justify-content:center }
.features-index { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; max-width:920px; margin:32px auto 0 }
.features-index a { display:inline-flex; align-items:center; gap:7px; min-height:38px; padding:0 14px; border:1px solid var(--border); border-radius:var(--radius-pill); background:var(--surface); color:var(--text-2); font-size:13.5px; font-weight:500; transition:border-color var(--fast) var(--ease),color var(--fast) var(--ease),box-shadow var(--fast) var(--ease) }
.features-index a:hover { border-color:var(--accent); color:var(--accent); text-decoration:none; box-shadow:var(--shadow) }
.features-index .icon { color:var(--accent) }

/* a feature: its words beside its screen, the sides alternating */
.feature-row { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,7fr); align-items:center; gap:clamp(24px,5vw,64px); max-width:1180px; margin:0 auto; padding:clamp(32px,6vh,56px) clamp(16px,4vw,48px); scroll-margin-top:calc(var(--header-h) + 8px) }
.feature-row:nth-child(even) { grid-template-columns:minmax(0,7fr) minmax(0,5fr) }
.feature-row:nth-child(even) .feature-copy { order:2 }
.feature-row + .feature-row { border-top:1px solid var(--border) }
.feature-eyebrow { display:flex; align-items:center; gap:10px; font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--accent) }
.feature-icon { display:inline-grid; place-items:center; width:36px; height:36px; border-radius:11px; background:var(--accent-soft); color:var(--accent) }
.feature-number { font-variant-numeric:tabular-nums; color:var(--muted); letter-spacing:.04em }
.feature-number::after { content:"·"; margin-left:10px; color:var(--border-strong) }
.feature-copy h2 { margin:14px 0 12px; font-size:clamp(24px,2.6vw,32px); line-height:1.25; letter-spacing:-.015em }
.feature-copy > p { color:var(--text-2); font-size:16px; line-height:1.75 }
.feature-points { list-style:none; display:grid; gap:10px; margin:20px 0 0; padding:0 }
.feature-points li { display:flex; align-items:flex-start; gap:10px; font-size:14.5px; line-height:1.6 }
.feature-points .icon { flex:none; margin-top:3px; color:var(--accent) }

/* its screen: a browser window, or a phone (a phone's picture on a narrow screen, and a feature only phones have) */
.feature-shot { min-width:0; margin:0 }
.feature-frame { position:relative; overflow:hidden; border:1px solid var(--border-strong); border-radius:14px; background:var(--surface); box-shadow:var(--shadow-lg) }
.feature-chrome { display:flex; align-items:center; gap:7px; height:30px; padding:0 12px; border-bottom:1px solid var(--border); background:var(--surface-2) }
.feature-chrome i { width:10px; height:10px; border-radius:50%; background:var(--border-strong) }
.feature-chrome i:nth-child(1) { background:#e5776c } .feature-chrome i:nth-child(2) { background:#e9bf5b } .feature-chrome i:nth-child(3) { background:#71c27f }
.feature-frame picture,.feature-frame img { display:block; width:100%; height:auto }
.feature-shot[data-device="mobile"] .feature-frame { max-width:300px; margin:0 auto; padding:9px; border:0; border-radius:38px; background:linear-gradient(160deg,#2a2e33,#0d0f11 55%); box-shadow:0 0 0 1px rgba(212,181,124,.28),var(--shadow-lg) }
.feature-shot[data-device="mobile"] .feature-chrome { display:none }
.feature-shot[data-device="mobile"] img { border-radius:29px }

/* the guide, for members */
.features-guide { max-width:1180px; margin:clamp(16px,4vh,40px) auto 0; padding:0 clamp(16px,4vw,48px); scroll-margin-top:calc(var(--header-h) + 8px) }
.features-guide-inner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); align-items:center; gap:clamp(24px,4vw,48px); padding:clamp(24px,4vw,48px); border-radius:var(--radius-lg); background:var(--band); color:var(--band-text); box-shadow:var(--shadow-lg),var(--band-light) }
.features-guide .eyebrow { display:inline-flex; align-items:center; gap:8px; color:var(--gold-text) }
.features-guide h2 { margin:12px 0; font-size:clamp(24px,3vw,34px); line-height:1.2; color:#fff }
.features-guide-copy > p { color:var(--band-muted); font-size:15.5px; line-height:1.7 }
.features-guide .features-guide-count { display:inline-flex; margin:18px 0 22px; padding:6px 14px; border:1px solid var(--band-line); border-radius:var(--radius-pill); color:var(--gold-text); font-size:13px; font-weight:600; font-variant-numeric:tabular-nums }
.features-guide-count:empty { display:none }
.features-guide-topics { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:0; padding:0 }
.features-guide-topics li > * { display:flex; align-items:center; gap:10px; min-height:46px; padding:8px 12px; border:1px solid var(--band-rule); border-radius:12px; background:var(--glass); color:var(--band-text); font-size:14px; line-height:1.35 }
.features-guide-topics li > a:hover { background:var(--glass-hover); border-color:var(--band-line); text-decoration:none }
.features-guide-topics .icon { flex:none; color:var(--gold) }
.features-guide-topic { flex:1; min-width:0 }
.features-guide-topics .features-guide-lock,.features-guide-topics .features-guide-go { color:var(--band-muted) }

/* the end */
.features-end { max-width:820px; margin:0 auto; padding:clamp(40px,8vh,80px) clamp(16px,4vw,48px) clamp(48px,9vh,96px); text-align:center }
.features-end h2 { margin-bottom:10px; font-size:clamp(24px,3.2vw,36px); letter-spacing:-.015em }
.features-end p { color:var(--text-2); font-size:16px }
.features-page .site-footer .legal > span:first-child { max-width:560px }

@media (max-width:900px) {
  .feature-row,.feature-row:nth-child(even) { grid-template-columns:1fr; gap:24px }
  .feature-row:nth-child(even) .feature-copy { order:0 }
  .features-guide-inner { grid-template-columns:1fr }
}
/* A phone shows the phone's picture (the <picture> in the page), in a phone. */
@media (max-width:700px) {
  .feature-frame { max-width:290px; margin:0 auto; padding:9px; border:0; border-radius:38px; background:linear-gradient(160deg,#2a2e33,#0d0f11 55%); box-shadow:0 0 0 1px rgba(212,181,124,.28),var(--shadow-lg) }
  .feature-chrome { display:none }
  .feature-frame img { border-radius:29px }
  .features-index { gap:6px; margin-top:24px }
  .features-index a { min-height:40px; padding:0 12px; font-size:13px }
}
@media (max-width:600px) { .features-hero .hero-cta .btn,.features-hero .hero-cta .btn-primary,.features-end .hero-cta .btn,.features-end .hero-cta .btn-primary { flex:1 1 100% } .features-members-card .btn-primary { flex:1 1 100% } }
@media (max-width:480px) { .features-guide-topics { grid-template-columns:1fr } .features-hero h1 { font-size:30px } }
