/* PillSnap landing — shared styles for every page.
   Tokens mirror flutter/lib/app/theme.dart (see docs/design-system.md).
   No web fonts, no JavaScript. Bump ?v= in every <link> after editing (docs/landing.md). */

:root {
  color-scheme: light dark;
  --bg: #F6F8F7;
  --bg-2: #EFF3F2;
  --card: #FFFFFF;
  --tray: #EAEFED;
  --track: #DEE5E3;
  --ink: #17211F;
  --ink-2: #56635F;
  --line: #C9D3D0;
  --hair: rgba(23, 33, 31, .09);
  --outline: #6F7C78;
  --primary: #0B7A72;
  --on-primary: #FFFFFF;
  --mint: #D5F2EC;
  --on-mint: #0B5E57;
  --warn: #FFF0D4;
  --on-warn: #7A4600;
  --skip: #ECF0EE;
  --on-skip: #46524E;
  --miss: #FDE9E6;
  --on-miss: #9F2A1F;
  --amber: #FFB020;
  --amber-2: #FFC55C;
  --on-amber: #3A2600;
  --hero-1: #17A398;
  --hero-2: #0B7A72;
  --hero-3: #053B3B;
  --glow: #62D2C3;
  --text-grad: linear-gradient(115deg, #0E8F86 0%, #0B6E6E 55%, #075050 100%);
  --glass: rgba(246, 248, 247, .74);
  --shadow: 0 1px 2px rgba(16, 40, 36, .06), 0 10px 30px rgba(16, 40, 36, .08);
  --shadow-lg: 0 2px 8px rgba(16, 40, 36, .06), 0 30px 80px rgba(16, 40, 36, .16);
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-hero: 28px;
  --r-xl: 40px;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans Thai", "Sukhumvit Set", Thonburi, "Leelawadee UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1514;
    --bg-2: #141B1A;
    --card: #18201E;
    --tray: #1B2422;
    --track: #2A3331;
    --ink: #E3EAE8;
    --ink-2: #A9B6B2;
    --line: #3A4542;
    --hair: rgba(227, 234, 232, .1);
    --outline: #85928E;
    --primary: #62D2C3;
    --on-primary: #00332E;
    --mint: #0E3F3A;
    --on-mint: #9FF0E3;
    --warn: #46310C;
    --on-warn: #FFD592;
    --skip: #2A3331;
    --on-skip: #C9D3D0;
    --miss: #4A1B16;
    --on-miss: #FFB4AB;
    --amber: #FFC55C;
    --hero-1: #0C5F5A;
    --hero-2: #0A4B48;
    --hero-3: #053B3B;
    --text-grad: linear-gradient(115deg, #9FF0E3 0%, #62D2C3 55%, #3FB8A9 100%);
    --glass: rgba(15, 21, 20, .72);
    --shadow: 0 0 0 1px rgba(227, 234, 232, .08), 0 10px 30px rgba(0, 0, 0, .3);
    --shadow-lg: 0 0 0 1px rgba(227, 234, 232, .08), 0 30px 80px rgba(0, 0, 0, .5);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(th) body, body:lang(th) { line-height: 1.7; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; text-wrap: balance; }
:lang(th) :is(h1, h2, h3, h4) { line-height: 1.35; letter-spacing: 0 !important; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: none; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--hair); }
@media (min-width: 960px) { .nav { display: flex; } }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tray); border: 1px solid var(--hair); }
.lang a { min-width: 44px; padding: 6px 10px; border-radius: 999px; text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); text-decoration: none; line-height: 20px; }
.lang a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.lang a:not([aria-current]):hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary);
  font: 600 17px/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(11, 122, 114, .28); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--outline); }
.top .btn-sm { display: none; }
@media (min-width: 560px) { .top .btn-sm { display: inline-flex; } }

/* App Store / Google Play buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 172px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform .15s ease, box-shadow .25s ease;
}
.store:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 12px 28px rgba(0, 0, 0, .25); }
.store svg { width: 26px; height: 26px; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .9; }
.store b { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
:lang(th) .store b { font-size: 19px; }
.store-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }

/* ---------- Type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
:lang(th) .eyebrow { letter-spacing: .02em; text-transform: none; font-size: 15px; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill-tag b { padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-size: 12px; letter-spacing: .04em; }
.display { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -.045em; line-height: 1.02; }
.display .line { display: block; }
.nw { white-space: nowrap; }
:lang(th) .display { font-size: clamp(38px, 5.4vw, 74px); line-height: 1.22; }
.h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -.035em; line-height: 1.06; }
:lang(th) .h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.3; }
.h3 { font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.015em; line-height: 1.2; }
.lead { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.5; color: var(--ink-2); }
:lang(th) .lead { line-height: 1.7; }
.muted { color: var(--ink-2); }
.grad { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section + .section { padding-top: 0; }
.section.alt, .section.alt + .section { padding-top: clamp(80px, 11vw, 150px); }
.section.alt { background: var(--bg-2); }
.head { max-width: 780px; display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.head.center { margin-left: auto; margin-right: auto; justify-items: center; }
.head .lead { max-width: 640px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 38%, color-mix(in srgb, var(--glow) 38%, transparent), transparent 70%),
    radial-gradient(36% 40% at 12% 8%, color-mix(in srgb, var(--amber-2) 22%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.12fr .88fr; } }
.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .lead { max-width: 560px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 15px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; list-style: none; }
.hero-trust .ico { color: var(--primary); font-size: 18px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 560px; }
@media (max-width: 979px) { .hero-art { min-height: 0; } }

/* Floating cards around phones */
.float {
  position: absolute; z-index: 4;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--hair);
  border-radius: 22px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; font-size: 14px; line-height: 1.35;
}
.float.notif { width: 290px; bottom: 14%; left: -4%; }
.float.prov { width: 236px; top: 21%; right: -6%; display: grid; gap: 8px; }
@media (max-width: 1180px) { .float.notif { left: -10%; } .float.prov { right: -10%; } }
@media (max-width: 979px) {
  .float.notif { position: relative; inset: auto; width: min(100%, 340px); margin: -40px auto 0; }
  .float.prov { display: none; }
}
.notif-h { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.notif-h img { width: 20px; height: 20px; border-radius: 5px; }
.notif-h time { margin-left: auto; text-transform: none; font-weight: 500; }
.notif-t { margin-top: 6px; font-weight: 700; font-size: 15px; }
.notif-b { color: var(--ink-2); }
.notif-a { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.notif-a span { padding: 7px 4px; border-radius: 10px; background: var(--tray); text-align: center; font-size: 12px; font-weight: 600; color: var(--ink); }
.notif-a span:first-child { background: var(--primary); color: var(--on-primary); }

/* Provenance chips (scan result labels) */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip .ico { font-size: 13px; stroke-width: 2.4; }
.chip.ok { background: var(--mint); color: var(--on-mint); }
.chip.check { background: var(--warn); color: var(--on-warn); }
.chip.def { background: var(--skip); color: var(--on-skip); }
.prov-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.prov-row > span:first-child { font-weight: 600; }

/* ---------- Phone mockup (scales with its own width via container units) ---------- */
.phone {
  container-type: inline-size;
  position: relative; z-index: 2;
  width: min(100%, 330px); aspect-ratio: 9 / 19.5;
  border-radius: 52px; padding: 10px;
  background: linear-gradient(150deg, #36403e, #0b100f 45%, #1d2523);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .1), 0 50px 100px -30px rgba(5, 59, 59, .5), 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.phone.lg { width: min(100%, 350px); }
.screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 42px; background: var(--bg);
  font-size: 13px; font-size: 3.95cqw; line-height: 1.35; color: var(--ink);
  display: flex; flex-direction: column;
}
.island { position: absolute; z-index: 5; top: .8em; left: 50%; width: 7.4em; height: 2.15em; margin-left: -3.7em; border-radius: 2em; background: #000; }
.sbar { display: flex; justify-content: space-between; align-items: center; padding: 1.05em 2em 0 2.2em; height: 3.4em; font-weight: 600; font-size: 1em; flex: none; }
.sbar i { display: inline-flex; gap: .3em; align-items: center; }
.sbar i::before { content: ""; width: 1.35em; height: .7em; border-radius: .2em; border: 1.5px solid currentColor; opacity: .9; }
.sbar i::after { content: ""; width: .9em; height: .62em; background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 28%, currentColor 28% 46%, transparent 46% 56%, currentColor 56% 74%, transparent 74% 84%, currentColor 84%); }
.scr-body { flex: 1; padding: .4em 1.15em 0; display: flex; flex-direction: column; gap: .85em; min-height: 0; }
.app-h { display: flex; align-items: center; justify-content: space-between; gap: .6em; }
.app-h b { display: block; font-size: 2.05em; letter-spacing: -.02em; line-height: 1.1; }
.app-h small { display: block; color: var(--ink-2); font-size: .95em; }
.avatar { position: relative; display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--mint); color: var(--on-mint); font-weight: 700; font-size: 1em; flex: none; }
.avatar.b { background: var(--warn); color: var(--on-warn); }
.avatar.c { background: var(--skip); color: var(--on-skip); }

/* 7-day tray (CapsuleSelector) */
.tray7 { display: grid; grid-template-columns: repeat(7, 1fr); padding: .25em; border-radius: 999px; background: var(--tray); }
.tray7 span { display: grid; place-items: center; padding: .35em 0; border-radius: 999px; font-size: .78em; color: var(--ink-2); line-height: 1.25; }
.tray7 span b { font-size: 1.28em; color: var(--ink); }
.tray7 .sel { background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 4px 10px rgba(16, 40, 36, .12); }
.tray7 .sel b { color: var(--primary); }

/* Blister strip */
.blister { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding: 0 .4em; }
.blister::before { content: ""; position: absolute; left: 1.5em; right: 1.5em; top: 1.05em; height: .22em; border-radius: 1em; background: linear-gradient(90deg, var(--primary) 0 38%, var(--track) 38%); }
.pocket { position: relative; display: grid; justify-items: center; gap: .3em; font-size: .78em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pocket i { display: grid; place-items: center; width: 2.75em; height: 2.75em; border-radius: 50%; background: var(--bg); border: .16em solid var(--outline); }
.pocket.done i { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pocket.due i { background: var(--mint); border-color: var(--primary); color: var(--primary); }
.pocket i svg { width: 1.3em; height: 1.3em; stroke-width: 3; }
.blister-sum { font-size: .95em; color: var(--ink-2); }
.blister-sum b { color: var(--ink); }

/* Now card (Status Field) */
.now { border-radius: 1.75em; background: var(--mint); color: var(--on-mint); padding: 1em; display: grid; gap: .7em; }
.now.over { background: var(--warn); color: var(--on-warn); }
.now-top { display: flex; align-items: center; justify-content: space-between; }
.s-chip { display: inline-flex; align-items: center; gap: .35em; padding: .28em .7em .28em .5em; border-radius: 999px; background: var(--card); font-weight: 700; font-size: .85em; }
.s-chip svg { width: 1.15em; height: 1.15em; }
.now-time { font-size: 2.4em; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.med { display: flex; align-items: center; gap: .75em; color: var(--ink); }
.med b { display: block; font-size: 1.12em; line-height: 1.25; }
.med small { display: block; color: var(--ink-2); font-size: .9em; }
.now .med small { color: inherit; opacity: .9; }
.pillimg { position: relative; flex: none; width: 2.9em; height: 2.9em; border-radius: .8em; background: var(--card); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--hair); }
.pillimg::before { content: ""; width: 1.9em; height: .82em; border-radius: 1em; transform: rotate(-45deg); background: linear-gradient(90deg, #E9EEF0 0 50%, var(--amber) 50%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.pillimg.round::before { width: 1.25em; height: 1.25em; border-radius: 50%; transform: none; background: radial-gradient(circle at 35% 35%, #fff, #F3F5F4 60%, #D9E0DE); }
.pillimg.drop::before { width: 1em; height: 1.35em; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; transform: none; background: linear-gradient(180deg, #9FD8F0, #4FA9D3); }
.pillimg.blue::before { background: linear-gradient(90deg, #E9EEF0 0 50%, #5B8DEF 50%); }
.acts { display: grid; grid-template-columns: 1.6fr 1fr; gap: .55em; }
.acts span { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 2.9em; border-radius: 999px; font-weight: 700; font-size: 1em; }
.acts span:first-child { background: var(--primary); color: var(--on-primary); }
.acts span:last-child { box-shadow: inset 0 0 0 .12em currentColor; }
.acts svg { width: 1.2em; height: 1.2em; stroke-width: 2.6; }

/* Plain app card */
.m-card { border-radius: 1.5em; background: var(--card); padding: .85em 1em; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 6px 16px rgba(16, 40, 36, .07); display: grid; gap: .7em; }
.m-card h5 { margin: 0; font-size: .95em; font-weight: 700; color: var(--ink-2); }
.m-row { display: flex; align-items: center; gap: .7em; }
.m-row .t { width: 3.4em; flex: none; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: .3em; }
.m-row .t svg { width: 1.1em; height: 1.1em; color: var(--ink-2); }
.m-row b { display: block; font-size: 1em; }
.m-row small { display: block; color: var(--ink-2); font-size: .88em; }

/* Glass tab bar */
.tabbar { position: absolute; left: 1em; right: 1em; bottom: 1.6em; z-index: 3; height: 4.4em; border-radius: 999px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; background: color-mix(in srgb, var(--card) 78%, transparent); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 0 0 1px var(--hair), 0 8px 24px rgba(16, 40, 36, .14); color: var(--ink-2); }
.tabbar svg { width: 1.6em; height: 1.6em; }
.tabbar .on { color: var(--primary); }
.tabbar .plus { display: grid; place-items: center; width: 3.2em; height: 3.2em; border-radius: 50%; background: linear-gradient(145deg, var(--hero-1), var(--hero-2)); color: #fff; box-shadow: 0 6px 16px rgba(11, 122, 114, .35); }
.tabbar .plus svg { stroke-width: 2.6; }
.fade-bottom::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7em; background: linear-gradient(transparent, var(--bg) 70%); z-index: 2; pointer-events: none; }

/* Camera screen */
.screen.cam { background: #0b0f0e; color: #fff; }
.cam-top { display: flex; justify-content: space-between; padding: 0 1.2em; }
.cam-top span { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cam-top svg { width: 1.3em; height: 1.3em; }
.viewfinder { position: relative; margin: 1.2em 1.4em 0; flex: 1; border-radius: 1.4em; display: grid; place-items: center; background: radial-gradient(120% 80% at 50% 30%, #3c4846, #151c1b 70%); overflow: hidden; }
.label {
  position: relative; width: 74%; padding: 1em 1em 1.1em; border-radius: .5em; transform: rotate(-3deg);
  background: linear-gradient(180deg, #FDFDFB, #EEF0EC); color: #1f2a28; box-shadow: 0 1em 2em rgba(0, 0, 0, .45);
  font-size: .82em; line-height: 1.35; display: grid; gap: .35em;
}
.label .rx { display: flex; justify-content: space-between; font-size: .8em; color: #56635F; border-bottom: 1px dashed #b7c1be; padding-bottom: .35em; }
.label b { font-size: 1.25em; }
.label .bar { height: .45em; border-radius: 1em; background: #cfd6d3; }
.label .bar.s { width: 60%; }
.label .bar.m { width: 82%; }
.corners { position: absolute; inset: 14% 9%; pointer-events: none; }
.corners::before, .corners::after { content: ""; position: absolute; inset: 0; border: .3em solid rgba(255, 255, 255, .95); border-radius: 1.4em; -webkit-mask: linear-gradient(#000 0 0) top left / 28% 28% no-repeat, linear-gradient(#000 0 0) top right / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom left / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom right / 28% 28% no-repeat; mask: linear-gradient(#000 0 0) top left / 28% 28% no-repeat, linear-gradient(#000 0 0) top right / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom left / 28% 28% no-repeat, linear-gradient(#000 0 0) bottom right / 28% 28% no-repeat; }
.corners::after { display: none; }
.sweep { position: absolute; left: 10%; right: 10%; top: 46%; height: 2.4em; background: linear-gradient(180deg, transparent, rgba(98, 210, 195, .35) 70%, rgba(159, 240, 227, .95) 96%, transparent); border-radius: 50%; filter: blur(.5px); }
.cam-hint { margin: .9em auto 0; padding: .45em 1em; border-radius: 999px; background: rgba(0, 0, 0, .55); font-size: .9em; font-weight: 600; }
.cam-bar { display: flex; align-items: center; justify-content: space-between; padding: 1.1em 1.5em 2.3em; }
.thumbs { display: flex; gap: .4em; }
.thumbs i { width: 2.7em; height: 2.7em; border-radius: .6em; background: linear-gradient(160deg, #F4F6F3, #cfd6d3); border: .15em solid #fff; }
.shutter { width: 4.6em; height: 4.6em; border-radius: 50%; border: .28em solid #E3EAE8; display: grid; place-items: center; }
.shutter::before { content: ""; width: 3.5em; height: 3.5em; border-radius: 50%; background: #E3EAE8; }
.analyze { padding: .65em 1em; border-radius: 999px; background: var(--glow); color: #00332E; font-weight: 700; font-size: .95em; }

/* Lock screen */
.screen.lock { background: radial-gradient(90% 60% at 20% 10%, #2bb3a5 0%, transparent 60%), linear-gradient(170deg, #17A398, #0B7A72 45%, #053B3B); color: #fff; }
.lock-time { text-align: center; margin-top: .4em; }
.lock-time small { display: block; font-size: 1.05em; font-weight: 600; opacity: .9; }
.lock-time b { display: block; font-size: 5.6em; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lock-stack { display: grid; gap: .6em; padding: 0 .8em; margin-top: auto; margin-bottom: 2.6em; }
.live { border-radius: 1.6em; padding: 1em 1.05em; background: rgba(12, 22, 21, .58); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); display: grid; gap: .7em; }
.live-h { display: flex; align-items: center; gap: .5em; font-size: .9em; opacity: .9; }
.live-h img { width: 1.5em; height: 1.5em; border-radius: .38em; }
.live-h .s-chip { margin-left: auto; background: #D5F2EC; color: #0B5E57; }
.live-m { display: flex; align-items: baseline; justify-content: space-between; gap: .5em; }
.live-m b { font-size: 1.25em; }
.live-m span { font-size: 2em; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.live .acts span:first-child { background: #62D2C3; color: #00332E; }
.live .acts span:last-child { color: #fff; box-shadow: inset 0 0 0 .12em rgba(255, 255, 255, .7); }
.lnotif { border-radius: 1.4em; padding: .8em 1em; background: rgba(240, 246, 244, .78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #17211F; display: grid; grid-template-columns: auto 1fr auto; gap: .2em .65em; align-items: start; }
.lnotif img { width: 2.3em; height: 2.3em; border-radius: .6em; grid-row: span 2; }
.lnotif b { font-size: 1em; }
.lnotif small { color: #56635F; font-size: .85em; }
.lnotif p { grid-column: 2 / 4; font-size: .95em; color: #2b3634; }

/* ---------- Story band ---------- */
.band { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0B7A72, #075050 55%, #053B3B); border-radius: var(--r-xl); padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 96px); isolation: isolate; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 85% 20%, rgba(98, 210, 195, .35), transparent 70%), radial-gradient(40% 50% at 5% 100%, rgba(255, 197, 92, .16), transparent 70%); }
.band .quote { font-size: clamp(30px, 4.6vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; max-width: 22ch; text-wrap: balance; }
:lang(th) .band .quote { letter-spacing: 0; line-height: 1.35; max-width: 24ch; font-size: clamp(28px, 4vw, 50px); }
.band .quote em { font-style: normal; color: #FFC55C; }
.band .src { margin-top: 18px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.band-cols { display: grid; gap: 28px; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .18); }
@media (min-width: 820px) { .band-cols { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.band-cols b { display: block; font-size: 20px; margin-bottom: 6px; }
.band-cols p { color: rgba(255, 255, 255, .8); font-size: 16px; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--on-mint); font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--ink-2); }

/* ---------- Feature chapters ---------- */
.chapter { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 980px) {
  .chapter { grid-template-columns: 1fr 1fr; }
  .chapter.flip > .chapter-art { order: -1; }
}
.chapter-copy { display: grid; gap: 22px; align-content: start; }
.ticks { display: grid; gap: 14px; margin-top: 6px; }
.ticks li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.ticks li > .ico { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--mint); color: var(--on-mint); stroke-width: 2.6; }
.ticks b { display: block; }
.ticks span { color: var(--ink-2); }
.chapter-art { position: relative; display: grid; place-items: center; padding: clamp(28px, 5vw, 56px) clamp(12px, 3vw, 40px); border-radius: var(--r-xl); background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--glow) 30%, transparent), transparent 72%), var(--bg-2); overflow: hidden; }
.section.alt .chapter-art { background: radial-gradient(70% 60% at 50% 40%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 72%), var(--card); }
.duo { display: flex; align-items: center; justify-content: center; gap: 0; width: 100%; }
.duo .phone { width: min(62%, 300px); }

/* Scan result card */
.result { position: relative; z-index: 3; width: min(100%, 330px); margin-left: -18%; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 12px; font-size: 14px; }
@media (max-width: 560px) { .duo { flex-direction: column; } .duo .phone { width: min(86%, 300px); } .result { margin: -64px 0 0; width: min(100%, 340px); } }
.result-h { display: flex; gap: 12px; align-items: center; }
.result-h .pillimg { font-size: 15px; }
.result-h b { display: block; font-size: 17px; line-height: 1.25; }
.result-h small { color: var(--ink-2); }
.r-rows { display: grid; border-radius: var(--r-md); background: var(--bg-2); padding: 4px 12px; }
.r-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--hair); align-items: center; }
.r-row:last-child { border-bottom: 0; }
.r-row span { color: var(--ink-2); font-size: 13px; }
.r-row b { grid-column: 1; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.r-row .chip { grid-column: 2; grid-row: 1 / 3; }
.save { display: grid; justify-items: center; padding: 10px; border-radius: 999px; background: var(--primary); color: var(--on-primary); line-height: 1.25; }
.save b { font-size: 15px; }
.save small { font-size: 12px; opacity: .85; font-variant-numeric: tabular-nums; }

/* Safety cards */
.safety { display: grid; gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
@media (min-width: 700px) { .safety { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .safety { grid-template-columns: repeat(4, 1fr); } }
.s-card { background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start; }
.s-card .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--mint); color: var(--on-mint); }
.s-card.warm .ico { background: var(--warn); color: var(--on-warn); }
.s-card h3 { font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.s-card p { color: var(--ink-2); font-size: 16px; }

/* Family art */
.fam { position: relative; width: min(100%, 440px); display: grid; gap: 14px; }
.fam-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 18px; font-size: 15px; display: grid; gap: 12px; }
.fam-card h4 { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.people { display: grid; gap: 6px; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-md); }
.person.on { background: var(--mint); }
.person .avatar { font-size: 15px; }
.person b { display: block; }
.person small { display: block; color: var(--ink-2); font-size: 13px; }
.person.on small { color: var(--on-mint); }
.person .role { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--tray); color: var(--ink-2); }
.person.on .role { background: var(--card); color: var(--on-mint); }
.fam .float { position: relative; inset: auto; }
.fam-push { margin-left: 12%; }
.fam-push .notif-t { color: var(--on-warn); }
.code { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.code b { font: 700 28px/1 var(--mono); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.code small { color: var(--ink-2); font-size: 13px; }
.fam-share { margin-right: 14%; }

/* ---------- Pro schedules ---------- */
.sched { display: grid; gap: 16px; }
@media (min-width: 640px) { .sched { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sched { grid-template-columns: repeat(4, 1fr); } }
.sc { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.sc.wide { grid-column: span 1; }
@media (min-width: 1040px) { .sc.wide { grid-column: span 2; } }
.sc h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em; padding-right: 48px; }
.sc p { color: var(--ink-2); font-size: 15px; }
.pro { position: absolute; top: 20px; right: 20px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, var(--amber-2), var(--amber)); color: var(--on-amber); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.free { position: absolute; top: 20px; right: 20px; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: var(--on-mint); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.viz { height: 88px; border-radius: var(--r-md); background: var(--bg-2); padding: 12px; display: flex; align-items: flex-end; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.taper i { flex: 1; border-radius: 8px 8px 4px 4px; background: var(--primary); display: grid; place-items: start center; padding-top: 4px; color: var(--on-primary); font-style: normal; font-size: 12px; }
.taper i:nth-child(1) { height: 100%; }
.taper i:nth-child(2) { height: 76%; opacity: .85; }
.taper i:nth-child(3) { height: 52%; opacity: .7; }
.taper i:nth-child(4) { height: 30%; opacity: .55; }
.hours { position: relative; justify-content: space-between; align-items: center; }
.hours::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; height: 3px; margin-top: -10px; background: var(--track); border-radius: 2px; }
.hours span { position: relative; display: grid; justify-items: center; gap: 6px; }
.hours span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--bg-2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; gap: 4px; }
.days span { display: grid; justify-items: center; gap: 5px; }
.days span::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--outline); }
.days span.on::after { border-color: var(--primary); background: var(--primary); }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; align-items: stretch; }
.month i { height: 12px; border-radius: 4px; background: var(--track); }
.month i.on { background: var(--amber); box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 40%, transparent); }
.cycle-box { flex: 1; }
.cycle { display: flex; gap: 3px; align-items: center; }
.cycle i { flex: 1; height: 24px; border-radius: 6px; background: var(--primary); }
.cycle i.off { background: var(--track); }
.cycle-l { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.wkdose { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: end; }
.wkdose span { display: grid; justify-items: center; gap: 4px; }
.wkdose b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--on-mint); font-size: 13px; }
.wkdose .z b { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.eyes { justify-content: center; align-items: center; gap: 18px; }
.eye { display: grid; justify-items: center; gap: 6px; }
.eye i { position: relative; width: 52px; height: 30px; border-radius: 50% / 60%; border: 2.5px solid var(--outline); display: grid; place-items: center; }
.eye i::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--outline); }
.eye.on i { border-color: var(--primary); }
.eye.on i::before { background: var(--primary); box-shadow: 0 0 0 4px var(--mint); }
.zone { align-items: center; justify-content: center; gap: 12px; }
.zone span { display: grid; justify-items: center; gap: 2px; padding: 8px 12px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.zone span b { font-size: 18px; color: var(--ink); }
.zone .ico { font-size: 22px; color: var(--primary); }
.refill { display: grid; gap: 8px; align-content: center; align-items: stretch; }
.gauge { height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.gauge i { display: block; width: 22%; height: 100%; border-radius: 999px; background: var(--on-warn); }
.refill-l { display: flex; justify-content: space-between; }
.refill-l b { color: var(--on-warn); }

/* ---------- Stats ---------- */
.stats-art { display: grid; gap: 16px; width: min(100%, 460px); }
.stats-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 18px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 999px; background: var(--tray); font-size: 14px; font-weight: 600; text-align: center; color: var(--ink-2); }
.seg span { padding: 7px 0; border-radius: 999px; }
.seg .sel { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ring-row { display: flex; align-items: center; gap: 20px; }
.ring { position: relative; flex: none; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--primary) 0 84%, transparent 84% 85%, var(--on-warn) 85% 91%, transparent 91% 92%, var(--outline) 92% 95%, transparent 95% 96%, var(--on-miss) 96% 99.4%, transparent 99.4%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px)); mask: radial-gradient(farthest-side, transparent calc(100% - 14px), #000 calc(100% - 13px)); }
.ring-wrap { position: relative; }
.ring-wrap b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-copy b { display: block; font-size: 18px; line-height: 1.35; }
.ring-copy small { color: var(--ink-2); font-size: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; }
.tile b { margin-left: auto; font-size: 17px; font-variant-numeric: tabular-nums; }
.tile .ico { font-size: 16px; stroke-width: 2.6; }
.tile.t1 { background: var(--mint); color: var(--on-mint); }
.tile.t2 { background: var(--warn); color: var(--on-warn); }
.tile.t3 { background: var(--skip); color: var(--on-skip); }
.tile.t4 { background: var(--miss); color: var(--on-miss); }
.pdf { justify-self: end; width: 72%; margin-top: -40px; background: #fff; color: #17211F; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; display: grid; gap: 8px; font-size: 12px; transform: rotate(2deg); }
.pdf-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13px; }
.pdf-h span { padding: 2px 8px; border-radius: 6px; background: #FDE9E6; color: #9F2A1F; font-size: 11px; }
.pdf i { display: block; height: 7px; border-radius: 4px; background: #E4EAE8; }
.pdf i.s { width: 55%; }
.pdf i.m { width: 80%; }
.pdf-g { display: flex; gap: 4px; align-items: flex-end; height: 36px; }
.pdf-g i { flex: 1; background: #0B7A72; border-radius: 3px 3px 0 0; }
.pdf-g i:nth-child(1) { height: 90%; } .pdf-g i:nth-child(2) { height: 100%; } .pdf-g i:nth-child(3) { height: 80%; } .pdf-g i:nth-child(4) { height: 95%; } .pdf-g i:nth-child(5) { height: 70%; } .pdf-g i:nth-child(6) { height: 100%; } .pdf-g i:nth-child(7) { height: 92%; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .b-wide { grid-column: span 2; } }
.b { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 26px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.section.alt .b { box-shadow: var(--shadow); }
.b h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; }
.b p { color: var(--ink-2); font-size: 16px; }
.b > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--mint); color: var(--on-mint); }
.b-wide { display: grid; gap: 24px; }
@media (min-width: 720px) { .b-wide { grid-template-columns: 1fr auto; align-items: center; } }
/* Home screen widget mock */
.widget { width: 316px; max-width: 100%; aspect-ratio: 338 / 158; border-radius: 26px; background: var(--mint); color: var(--on-mint); padding: 14px; display: grid; grid-template-columns: 1fr 116px; gap: 12px; box-shadow: var(--shadow-lg); font-size: 13px; }
.w-l { display: grid; align-content: space-between; min-width: 0; }
.w-h { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; }
.w-h img { width: 16px; height: 16px; border-radius: 4px; }
.w-l .s-chip { font-size: 12px; justify-self: start; }
.w-l b { color: var(--ink); font-size: 17px; line-height: 1.2; display: block; }
.w-l small { color: var(--ink-2); font-size: 13px; }
.w-r { display: grid; gap: 8px; align-content: center; }
.w-r span { display: flex; align-items: center; justify-content: center; gap: 4px; height: 44px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.w-r span:first-child { background: var(--primary); color: var(--on-primary); }
.w-r span:last-child { box-shadow: inset 0 0 0 1.5px currentColor; }
.w-r svg { width: 16px; height: 16px; stroke-width: 2.6; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; }
.langs span { padding: 6px 12px; border-radius: 999px; background: var(--tray); font-weight: 600; font-size: 14px; }
.dm { display: flex; gap: 10px; }
.dm span { flex: 1; height: 56px; border-radius: 14px; background: #F6F8F7; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); display: grid; place-items: center; }
.dm span:last-child { background: #0F1514; }
.dm span::before { content: ""; width: 60%; height: 12px; border-radius: 6px; background: #0B7A72; }
.dm span:last-child::before { background: #62D2C3; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.plan { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 30px 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; border: 1.5px solid transparent; }
.plan.best { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.plan.best::before { content: attr(data-badge); position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 13px; font-weight: 700; }
.plan h3 { font-size: 24px; letter-spacing: -.02em; }
.plan .for { color: var(--ink-2); font-size: 15px; }
.plan .price { font-size: 15px; color: var(--ink-2); }
.plan .price b { display: block; font-size: 34px; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; }
.plan ul { display: grid; gap: 10px; flex: 1; }
.plan li { list-style: none; display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15px; }
.plan li .ico { margin-top: 3px; font-size: 18px; color: var(--primary); stroke-width: 2.6; }
.plan .btn { width: 100%; }
.compare-wrap { margin-top: clamp(40px, 6vw, 72px); background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.compare caption { text-align: left; padding: 22px 24px 8px; font-size: 20px; font-weight: 700; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--hair); vertical-align: middle; }
.compare th[scope="row"] { text-align: left; font-weight: 500; padding-left: 24px; width: 46%; }
.compare thead th + th { width: 18%; }
.compare tr.grp th { text-align: left; padding-left: 24px; }
@media (max-width: 640px) {
  .compare { min-width: 0; font-size: 14px; }
  .compare caption { padding: 20px 16px 6px; }
  .compare th, .compare td { padding: 12px 4px; }
  .compare th[scope="row"], .compare tr.grp th { padding-left: 16px; width: auto; }
  .compare thead th { font-size: 13px; }
  .compare thead th + th { width: 22%; }
  .compare td:last-child, .compare thead th:last-child { padding-right: 10px; }
  .yes, .no { width: 24px; height: 24px; }
}
.compare thead th { font-size: 14px; letter-spacing: .02em; color: var(--ink-2); font-weight: 700; position: sticky; top: 0; background: var(--card); }
.compare thead th.hl { color: var(--primary); }
.compare td.hl { background: color-mix(in srgb, var(--mint) 45%, transparent); }
.compare tbody tr.grp th { padding-top: 22px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); border-bottom: 0; }
:lang(th) .compare tbody tr.grp th { text-transform: none; letter-spacing: 0; font-size: 14px; }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.yes, .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle; }
.yes { background: var(--primary); color: var(--on-primary); }
.yes svg { width: 15px; height: 15px; stroke-width: 3; }
.no { color: var(--outline); }
.no::before { content: ""; width: 12px; height: 2px; border-radius: 2px; background: currentColor; }
.val { font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { margin-top: 20px; font-size: 14px; color: var(--ink-2); max-width: 860px; }

/* ---------- Privacy band ---------- */
.priv { background: #0F1514; color: #E3EAE8; border-radius: var(--r-xl); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); display: grid; gap: clamp(32px, 5vw, 56px); position: relative; overflow: hidden; isolation: isolate; }
.priv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 60% at 90% 0%, rgba(98, 210, 195, .22), transparent 70%); }
.priv .eyebrow { color: #62D2C3; }
.priv .lead { color: #A9B6B2; }
.priv-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .priv-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; } }
.priv-grid > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.priv-grid .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: rgba(98, 210, 195, .14); color: #62D2C3; }
.priv-grid b { display: block; font-size: 18px; margin-bottom: 4px; color: #fff; }
.priv-grid p { color: #A9B6B2; font-size: 16px; }
.priv a { color: #62D2C3; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 18px; position: relative; line-height: 1.4; border-radius: var(--r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }

/* ---------- Final CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; color: #fff; border-radius: var(--r-xl); padding: clamp(56px, 9vw, 120px) clamp(20px, 5vw, 64px); background: linear-gradient(150deg, #17A398, #0B7A72 45%, #053B3B); display: grid; justify-items: center; gap: 24px; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 55% at 20% 0%, rgba(98, 210, 195, .55), transparent 70%), radial-gradient(35% 45% at 90% 100%, rgba(255, 197, 92, .22), transparent 70%); }
.cta img { width: 104px; height: 104px; border-radius: 24px; box-shadow: 0 24px 48px rgba(0, 0, 0, .3); }
.cta .h2 { color: #fff; max-width: 16ch; }
.cta p { color: rgba(255, 255, 255, .85); font-size: 19px; max-width: 560px; }
.cta .stores { justify-content: center; }
.cta .store { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }

/* ---------- Footer ---------- */
.foot { padding: 64px 0 40px; font-size: 15px; color: var(--ink-2); }
.foot-grid { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--hair); }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot .brand { margin-bottom: 12px; }
.foot h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; }
:lang(th) .foot h2 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.foot ul { display: grid; gap: 8px; }
.foot li { list-style: none; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.disclaimer { margin-top: 28px; padding: 18px 20px; border-radius: var(--r-md); background: var(--warn); color: var(--on-warn); font-size: 14px; line-height: 1.6; }
.disclaimer b { color: inherit; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 24px; font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 48px); }
.legal-hero .wrap { display: grid; gap: 18px; }
.legal-hero .display { font-size: clamp(40px, 6vw, 72px); }
:lang(th) .legal-hero .display { font-size: clamp(36px, 5.4vw, 64px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--ink-2); font-size: 15px; }
.legal { display: grid; gap: 48px; padding-bottom: clamp(64px, 9vw, 120px); }
@media (min-width: 1000px) { .legal { grid-template-columns: 260px minmax(0, 1fr); gap: 64px; } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; } }
.toc h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
:lang(th) .toc h2 { text-transform: none; letter-spacing: 0; font-size: 15px; }
.toc ol { display: grid; gap: 2px; list-style: none; counter-reset: toc; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: 15px; line-height: 1.4; }
.toc a:hover { background: var(--tray); color: var(--ink); }
@media (max-width: 999px) {
  .toc { background: var(--card); border-radius: var(--r-lg); padding: 18px 14px; box-shadow: var(--shadow); }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 8px; }
  .toc a { padding: 6px 8px; font-size: 14px; }
}
.prose { max-width: 760px; font-size: 17px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -.02em; line-height: 1.25; margin-top: 56px; padding-top: 8px; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; line-height: 1.35; margin-top: 28px; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 8px; }
.prose li::marker { color: var(--primary); }
.prose strong { color: var(--ink); }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 86%, var(--ink-2)); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; }
.prose thead th { font-size: 13px; letter-spacing: .04em; color: var(--ink-2); background: var(--tray); }
.prose thead th:first-child { border-radius: 10px 0 0 10px; }
.prose thead th:last-child { border-radius: 0 10px 10px 0; }
.callout { border-radius: var(--r-lg); padding: 24px 26px; background: var(--warn); color: var(--on-warn); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.callout .ico { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: color-mix(in srgb, var(--on-warn) 14%, transparent); }
.callout h2, .callout h3 { font-size: 20px; margin: 0 0 8px !important; padding: 0; color: inherit; letter-spacing: -.01em; }
.callout p, .callout li { color: inherit !important; }
.callout > div > * + * { margin-top: 10px; }
.callout ul { padding-left: 1.2em; display: grid; gap: 6px; }
.callout li::marker { color: inherit; }
.callout.info { background: var(--mint); color: var(--on-mint); }
.callout.info .ico { background: color-mix(in srgb, var(--on-mint) 14%, transparent); }
@media (max-width: 560px) { .callout { grid-template-columns: 1fr; gap: 12px; padding: 20px; } }
.summary { display: grid; gap: 12px; margin-top: 8px; }
@media (min-width: 640px) { .summary { grid-template-columns: repeat(2, 1fr); } }
.summary div { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 18px 20px; }
.summary b { display: block; margin-bottom: 4px; }
.summary p { color: var(--ink-2) !important; font-size: 15px; }
.prose .summary + * { margin-top: 24px; }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.nf .wrap { display: grid; gap: 20px; justify-items: center; }
.nf .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Motion (one-shot only, never looping; off with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s cubic-bezier(.22, .61, .36, 1) both; }
  .rise.d1 { animation-delay: .12s; }
  .rise.d2 { animation-delay: .3s; }
  .rise.d3 { animation-delay: .48s; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }

@media print {
  .top, .foot-bottom, .toc, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}
