/* Public site: orange / black. Light is the default; dark only when the visitor picks it (html[data-theme="dark"]).
   --accent fills buttons (black text on it in both themes); --accent-text is orange text that stays readable on the page background. */
:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f3f3f2;
  --line: #e3e3e1;
  --text: #141416;
  --muted: #5d5d66;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --accent-ink: #160a00;
  --accent-text: #c2410c;
  --accent-soft: rgba(255, 122, 26, .12);
  --ok: #12895a;
  --bad: #d23c3c;
  --warn-bg: #fff4e5;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "IBM Plex Sans Thai", "Noto Sans Thai", "Sukhumvit Set", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0e10; --surface: #17171a; --surface-2: #1f1f23; --line: #2b2b31; --text: #f3f3f4; --muted: #a3a3ad;
  --accent-text: #ff8f3d; --accent-soft: rgba(255, 122, 26, .14);
  --ok: #3ccf8e; --bad: #ff6b6b; --warn-bg: rgba(255, 170, 60, .1); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
img, svg { max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.i { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }
.center { text-align: center; }
.left { text-align: left; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: 0 22px; border: 1px solid var(--accent);
  border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); border-color: var(--muted); }
.btn-dark { background: #0e0e10; border-color: #0e0e10; color: #fff; }
.btn-dark:hover { background: #222; border-color: #222; color: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.logo:hover { color: var(--text); }
.logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); }
.logo-mark svg { width: 20px; height: 20px; }
.logo-text { font-size: 1.15rem; }
.logo-text span { color: var(--accent-text); }
.menu-btn { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.nav { display: none; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"]:not(.btn) { color: var(--accent-text); }
.nav-login { display: inline-flex; align-items: center; gap: 6px; }
.nav-login svg { width: 18px; height: 18px; }
.nav-member { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.nav-member svg { width: 18px; height: 18px; }
.theme-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  color: var(--text); cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
/* light: show the moon (go dark); dark: show the sun (go light) */
.theme-btn .if-dark { display: none; }
:root[data-theme="dark"] .theme-btn .if-dark { display: block; }
:root[data-theme="dark"] .theme-btn .if-light { display: none; }
/* mobile: the menu opens under the bar (no JS = always open) */
.no-js .menu-btn { display: none; }
.no-js .nav, .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; position: absolute; left: 0; right: 0; top: 64px;
  padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.no-js .nav { position: static; box-shadow: none; border: 0; padding: 0 0 12px; }
.nav.open a:not(.btn), .no-js .nav a:not(.btn) { padding: 10px 4px; }
.nav.open .theme-btn { margin-top: 6px; }
.no-js .top-in { flex-wrap: wrap; }
@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav, .no-js .nav, .nav.open { display: flex; flex-direction: row; align-items: center; gap: 22px; margin-left: auto; position: static; padding: 0;
    background: none; border: 0; box-shadow: none; }
  .nav.open a:not(.btn), .no-js .nav a:not(.btn) { padding: 0; }
  .nav.open .theme-btn { margin-top: 0; }
}

/* ---------- sections */
.section { padding: 56px 0; }
.section-tight { padding: 28px 0 56px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.section-head .h2 { margin: 0; }
.h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); margin-bottom: 24px; }
.h3 { font-size: 1.15rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46em; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text);
  font-size: .9rem; font-weight: 600; }
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); }
.fine { margin-top: 24px; font-size: .92rem; color: var(--muted); }
.notice { padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.notice-warn { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--warn-bg); margin-bottom: 20px; }

/* ---------- hero */
/* hero is always dark, in both themes: it re-declares the dark tokens so everything inside it follows */
.hero { --bg: #0e0e10; --surface: #17171a; --surface-2: #1f1f23; --line: #2b2b31; --text: #f3f3f4; --muted: #a3a3ad;
  --accent-text: #ff8f3d; --accent-soft: rgba(255, 122, 26, .14); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark; color: var(--text);
  position: relative; overflow: hidden; padding: 56px 0 64px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 380px at 85% -10%, rgba(255, 122, 26, .22), transparent 70%),
              radial-gradient(600px 300px at -10% 110%, rgba(255, 122, 26, .10), transparent 70%), var(--bg); }
.hero-in { display: grid; gap: 36px; align-items: center; }
/* network background (assets/images/hero-network.svg): sits behind the content, fades out toward the text side */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9;
  background: url(../images/hero-network.svg) right center / cover no-repeat; }
.hero > .wrap { position: relative; z-index: 1; }
@media (max-width: 899px) { .hero::before { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .hero::before { background-image: url(../images/hero-network-static.svg); } }
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.2; }
.hero h1 .accent { display: block; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.hero-stats div { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hero-stats dt { color: var(--muted); font-size: .9rem; }
.hero-stats dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 700; }
.hero-stats small { font-size: .85rem; font-weight: 500; color: var(--muted); }
@media (min-width: 900px) { .hero { padding: 88px 0 96px; } .hero-in { grid-template-columns: 1.25fr 1fr; gap: 56px; } }

/* ---------- grids / cards */
.grid-3, .grid-4 { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature h3 { font-size: 1.1rem; margin-top: 14px; }
.feature p { margin: 0; color: var(--muted); }
.feature-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.feature-ic svg { width: 24px; height: 24px; }
.type-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.type-card:hover { border-color: var(--accent-text); color: var(--text); transform: translateY(-2px); }
.type-label { font-weight: 700; font-size: 1.15rem; }
.type-pitch { color: var(--muted); flex: 1; }
.type-price { margin-top: 10px; }
.type-price b { color: var(--accent-text); font-size: 1.35rem; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 66px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.section-alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.steps b { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

.cta-band { background: var(--accent); color: var(--accent-ink); padding: 40px 0; }
.cta-band h2 { font-size: 1.6rem; margin-bottom: 4px; }
.cta-band p { margin: 0; opacity: .85; }
.cta-band-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }

/* ---------- package chooser: 1 type -> 2 size list -> detail panel */
.step-h { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin: 0 0 14px; }
.step-h span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .9rem; }
.type-pick { display: grid; gap: 12px; margin-bottom: 32px; }
@media (min-width: 640px) { .type-pick { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .type-pick { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.tp { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tp:hover { color: var(--text); border-color: var(--muted); }
.tp[aria-selected="true"] { border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.tp b { font-size: 1.1rem; }
.tp-pitch { font-size: .93rem; }
.tp-for { font-size: .88rem; color: var(--muted); flex: 1; }
.tp-from { margin-top: 6px; font-size: .88rem; color: var(--muted); }
.tp-from b { font-size: 1rem; color: var(--accent-text); }

.pick { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .pick { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 32px; } }
.pick-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.pick-head .step-h { margin: 0; }
.period-pick { display: inline-flex; align-items: center; gap: 8px; font-size: .93rem; color: var(--muted); }
.period-pick select { width: auto; min-height: 40px; padding: 6px 12px; color: var(--text); font-weight: 600; }
.disk-filter { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.disk-filter button { padding: 6px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font: 500 .9rem/1.4 var(--font); cursor: pointer; }
.disk-filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li[hidden] { display: none; }
.row { display: flex; align-items: center; gap: 14px; padding: 13px 16px; color: var(--text); text-decoration: none; }
.row:hover { background: var(--surface-2); color: var(--text); }
.row[aria-current="true"] { background: var(--accent-soft); box-shadow: inset 4px 0 0 var(--accent); }
.row-dot { flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 50%; }
.row[aria-current="true"] .row-dot { border: 5px solid var(--accent); }
.row-main { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.row-main b { font-size: 1.05rem; }
.row-main small { color: var(--muted); font-size: .82rem; }
.row-price { text-align: right; white-space: nowrap; }
.row-price b { font-size: 1.1rem; }
.row-price small { display: block; color: var(--muted); font-size: .78rem; }
.tag { padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 600; line-height: 1.6; }
.tag-ssd { color: var(--text); }
.tag-hot { background: var(--accent); color: var(--accent-ink); }

.detail { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 960px) { .detail { position: sticky; top: 84px; } }
.detail-type { margin: 0 0 2px; color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.detail-name { font-size: 1.5rem; margin-bottom: 6px; }
.detail-name small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.detail-price { margin: 0; font-size: 2.2rem; font-weight: 700; line-height: 1.2; }
.detail-type, .detail-name, .detail-price, .detail-avg { text-align: right; }
.detail-price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.detail-avg { min-height: 1.5em; margin: 2px 0 14px; color: var(--ok); font-size: .9rem; font-weight: 500; }
.detail .chips { margin-bottom: 16px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.chips li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; }
.chips .i { color: var(--accent-text); }
.pick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.pick-bar[hidden] { display: none; }
.pick-bar-txt { flex: 1; min-width: 0; font-size: .9rem; line-height: 1.4; }
.pick-bar-txt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 960px) { .pick-bar, .pick-bar[hidden] { display: none; } }
.specs { margin: 0 0 14px; border-top: 1px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.all-prices { margin-bottom: 16px; font-size: .92rem; }
.all-prices summary { cursor: default; list-style: none; color: var(--accent-text); pointer-events: none; }
.all-prices summary::-webkit-details-marker { display: none; }
.all-prices table { width: 100%; margin-top: 8px; border-collapse: collapse; }
.all-prices th { text-align: left; font-weight: 400; color: var(--muted); padding: 7px 0; }
.all-prices td { text-align: right; padding: 7px 0; }
.all-prices tr + tr th, .all-prices tr + tr td { border-top: 1px solid var(--line); }
.pkg-actions { display: grid; gap: 8px; margin-top: auto; }

/* ---------- payment (bank names only; account numbers live in /member) */
.bank-list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; }
.bank-list li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-weight: 500; }
.bank-list img { width: 36px; height: 36px; border-radius: 50%; }

/* ---------- register */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0; margin: 0 0 20px; }
.stepper li { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px solid var(--line); color: var(--muted); font-size: .92rem; }
.stepper span { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); font-weight: 700; font-size: .85rem; }
.stepper li.on, .stepper li.done { border-color: var(--accent-text); color: var(--text); }
.stepper li.on span, .stepper li.done span { background: var(--accent); color: var(--accent-ink); }
.reg .step { margin: 0 0 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.reg legend { float: left; width: 100%; margin-bottom: 16px; font-size: 1.15rem; font-weight: 700; }
.reg legend + * { clear: both; }
.js .reg .step { display: none; }
.js .reg .step.on { display: block; }
.field { margin-bottom: 16px; }
.field-2 { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text);
  font: 1rem/1.4 var(--font); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--bad) !important; background: color-mix(in srgb, var(--bad) 7%, var(--bg)); }
[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 25%, transparent); }
.field.has-err > label { color: var(--bad); }
.val-banner { margin-bottom: 16px; }
.val-banner ul { margin: 6px 0 0; padding-left: 20px; }
.val-banner a { color: inherit; text-decoration: underline; }
.hint { margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.hint.ok { color: var(--ok); }
.hint.bad { color: var(--bad); }
.field-err { margin: 6px 0 0; font-size: .9rem; color: var(--bad); }
.trial-note { margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); }
.trial-note b { margin-right: 6px; }
.choice-row { display: grid; gap: 10px; margin-bottom: 18px; }
@media (min-width: 640px) { .choice-row { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice > span { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.choice b { display: block; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 4px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent-text); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary { margin: 4px 0 16px; padding: 16px 18px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); border-radius: var(--radius-sm); }
.summary h3 { font-size: 1rem; }
.summary dl { margin: 0; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: .95rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.step-nav-end { justify-content: flex-end; }
.js .step-nav-end { justify-content: space-between; }

/* ---------- done / 404 / box */
.box { margin: 24px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; }
.ticks .i { color: var(--accent-text); margin-top: .3em; }
.done-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.done-ic svg { width: 34px; height: 34px; }
.big-num { font-size: 5rem; font-weight: 700; line-height: 1; color: var(--accent-text); margin-bottom: 8px; }

/* ---------- footer */
.foot { margin-top: 0; padding: 44px 0 20px; background: #0a0a0b; color: #d4d4d8; border-top: 1px solid var(--line); }
.foot .logo, .foot .logo:hover { color: #fff; }
.foot .muted { color: #9a9aa3; margin-top: 12px; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-h { font-size: .95rem; color: #fff; margin-bottom: 10px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-list a { display: inline-flex; align-items: center; gap: 8px; color: #d4d4d8; text-decoration: none; word-break: break-all; }
.foot-list a:hover { color: #ff8f3d; }
.foot-note { margin-top: 32px; padding-top: 18px; border-top: 1px solid #222226; font-size: .85rem; color: #8b8b94; }
.foot-note p { margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- promotions (a period whose discount beats every longer one, e.g. 3 months -50%): noticeable but quiet,
   light card + thin orange border, the % in a soft orange badge */
.promo-sec { padding: 4px 0 20px; }
.promo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.promo-head h2 { margin: 0; font-size: 1.15rem; }
.promo-flag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; font-weight: 700; }
.promo-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.promo-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-items: center; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius); background: var(--surface); color: var(--text);
  text-decoration: none; transition: border-color .15s, background .15s; }
.promo-card:hover { color: var(--text); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.promo-card > :not(.promo-pct) { grid-column: 2; }
.promo-pct { grid-row: 1 / span 4; align-self: center; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text);
  font-size: 1.3rem; font-weight: 700; line-height: 1; }
.promo-name { font-size: .88rem; color: var(--muted); }
.promo-name b { color: var(--text); font-size: 1rem; }
.promo-when { font-size: .85rem; color: var(--muted); }
.promo-price { font-size: .9rem; color: var(--muted); }
.promo-price b { font-size: 1.15rem; color: var(--text); }
.promo-price s, .promo-box-price s { margin-left: 6px; color: var(--muted); font-size: .85rem; }
.promo-save { font-size: .82rem; color: var(--ok); }
.promo-go { display: none; }

.tp { padding-top: 16px; }
.tp-promo { align-self: flex-start; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .76rem; font-weight: 600; }
.tag-promo { background: var(--accent-soft); color: var(--accent-text); }
.row-off { color: var(--ok); font-weight: 600; }
.row-off:empty { display: none; }
.row-off.on { display: inline-block; margin-top: 2px; padding: 0 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); }

.promo-box { margin: 6px 0 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.promo-box[hidden] { display: none; }
.promo-box .btn[hidden] { display: none; }
.promo-box p { margin: 0 0 2px; }
.promo-box-h b { color: var(--accent-text); }
.promo-box-price b { font-size: 1.25rem; }
.promo-box-save { font-size: .85rem; color: var(--ok); }
.promo-box .btn { margin-top: 8px; }
.all-prices td.off { color: var(--ok); font-size: .85rem; text-align: left; padding-left: 8px; }
.all-prices tr.is-promo th, .all-prices tr.is-promo td { font-weight: 700; color: var(--accent-text); }
.all-prices tr.is-promo td.off::after { content: " ราคาพิเศษ"; }
.detail-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.reg-price { margin: -4px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.reg-price[hidden] { display: none; }
.reg-price .promo-box { margin-top: 0; }
.reg-price-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.reg-price-table th { text-align: left; font-weight: 400; color: var(--muted); padding: 3px 0; }
.reg-price-table td { text-align: right; padding: 3px 0; }
.reg-price-table td.off { color: var(--ok); font-size: .85rem; text-align: left; padding-left: 8px; }
.reg-price-table tr.is-promo th, .reg-price-table tr.is-promo td { font-weight: 700; color: var(--accent-text); }
.reg-price-table tr.is-promo td.off::after { content: " ราคาพิเศษ"; }
.promo-strip { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); }
.promo-strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
.promo-strip .promo-pct { padding: 6px 9px; font-size: 1.1rem; background: var(--surface); }
.promo-strip-txt { flex: 1; min-width: 220px; display: flex; flex-direction: column; font-size: .92rem; }
.promo-strip-txt b { font-size: 1rem; }
.promo-strip-txt span { color: var(--muted); font-size: .88rem; }
.promo-strip .btn { min-height: 38px; padding: 0 16px; font-size: .95rem; }

/* swipe hint: phones only */
.swipe-hint { display: none; }

/* ---------- package chooser on phones (< 960px): less scrolling
   types = one swipeable row, sizes = 2-column grid, promos = one swipeable row, bar with price + "สมัคร" stays at the bottom */
.type-note { display: none; }
@media (max-width: 959px) {
  .page-head { padding: 24px 0 0; }
  .page-head .lead { display: none; }
  .section-tight { padding: 14px 0 88px; }
  .step-h { font-size: 1.05rem; margin-bottom: 10px; }

  .promo-sec { padding: 8px 0 4px; }
  .promo-head { margin-bottom: 8px; }
  .promo-head h2 { font-size: 1rem; }
  .swipe-hint { display: inline-block; margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 600; color: var(--accent-text); white-space: nowrap; }
  .promo-head .swipe-hint { margin-left: 0; }
  .promo-grid, .type-pick { scroll-padding: 0 16px; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent); }
  .promo-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .promo-grid::-webkit-scrollbar { display: none; }
  .promo-card { flex: none; width: min(232px, 76vw); scroll-snap-align: start; padding: 10px 12px; column-gap: 10px; }
  .promo-pct { font-size: 1.1rem; padding: 6px 8px; }
  .promo-when, .promo-save { display: none; }

  .type-pick { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .type-pick::-webkit-scrollbar { display: none; }
  .tp { flex: none; min-width: 132px; max-width: 70vw; padding: 10px 14px; scroll-snap-align: start; }
  .tp b { font-size: 1rem; white-space: nowrap; }
  .tp-pitch, .tp-for { display: none; }
  .tp-from { margin-top: 0; font-size: .8rem; white-space: nowrap; }
  .tp-promo { font-size: .7rem; padding: 0 8px; white-space: nowrap; }
  .type-note { display: block; margin: 0 0 16px; color: var(--muted); font-size: .9rem; }

  .pick { gap: 16px; }
  .pick-head { margin-bottom: 8px; }
  .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; background: transparent; overflow: visible; }
  .rows li + li { border-top: 0; }
  .row { position: relative; flex-direction: column; align-items: stretch; gap: 6px; height: 100%; padding: 12px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: var(--surface); }
  .row[aria-current="true"] { border-color: var(--accent-text); box-shadow: 0 0 0 2px var(--accent); }
  .row-dot { display: none; }
  .row-main { flex-direction: column; align-items: flex-start; gap: 3px; flex: 1; }
  .row-main b { font-size: 1.1rem; }
  .row-main .tag { margin-right: 4px; }
  .row-price { text-align: left; white-space: normal; }
  .row-price b { font-size: 1.05rem; }
  .row-price small { display: inline; font-size: .76rem; }
  .row-price .row-off { display: block; }
  .row-price .row-off:empty { display: none; }
  .disk-filter { display: flex; width: 100%; margin-bottom: 8px; }
  .disk-filter button { flex: 1; padding: 8px 6px; }

  .detail { padding: 18px; scroll-margin-top: 72px; }
  .detail-price { font-size: 1.9rem; }
  .pick-bar { gap: 8px; }
  .pick-bar .btn-ghost { flex: none; }
}

.pw-tools { margin: -4px 0 16px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--radius-sm); background: var(--bg); }
.pw-tools[hidden] { display: none; }
.pw-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pw-head .hint { margin: 0; flex: 1; min-width: 200px; }
.pw-result { margin-top: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius-sm); background: var(--accent-soft); }
.pw-result[hidden] { display: none; }
.pw-label { display: block; margin-bottom: 6px; color: var(--accent-text); font-size: .85rem; font-weight: 600; }
.pw-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.pw-code { font: 700 1.5rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--text); user-select: all; word-break: break-all; }

/* mouse drag on the swipe rows (site.js): grab cursor, no snapping while dragging */
.promo-grid, .type-pick { cursor: grab; }
.promo-grid.is-dragging, .type-pick.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.promo-grid.is-dragging .promo-card, .type-pick.is-dragging .tp { pointer-events: none; }
.hint a, .field-err a { color: var(--accent-text); text-decoration: underline; white-space: nowrap; }
.have-account { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: .95rem; }
.have-account a { color: var(--accent-text); font-weight: 600; }
