/* BIQDADDY public pages (homepage, product pages, /en/)
   Navy ink, teal for the main action, Google Sans for everything, Latin and Thai.
   Type, hairlines and real screens carry the page; no icons in the content.
   It keeps its own tokens so it never depends on app.css. Light is the default;
   [data-theme="dark"] swaps the surfaces. Components only read var(). */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f3f6f8;
  --surface: #ffffff;
  --surface-2: #f6f9fa;
  --surface-3: #edf2f5;
  --line: #e1e8ed;
  --line-strong: #cbd6de;
  --text-1: #05243f;
  --text-2: #3b5366;
  --text-3: #566c80;
  --accent: #2fd3c6;
  --accent-hover: #5fe0d5;
  --on-accent: #030a14;
  --accent-ink: #0b6e65;
  --accent-tint: #dff6f3;
  --accent-tint-ink: #08605a;
  --accent-line: rgba(8, 96, 90, .18);
  --focus: #0b6e65;
  --header-bg: rgba(255, 255, 255, .92);
  --shadow-header: 0 6px 20px rgba(5, 36, 63, .07);
  --logo-filter: none;
  /* the closing call to action stays navy in both themes */
  --navy-bg: #05243f;
  --navy-surface-2: rgba(255, 255, 255, .1);
  --navy-line: rgba(228, 237, 241, .18);
  --navy-text-1: #ffffff;
  --navy-text-2: #c6d4dc;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #030a14;
  --bg-alt: #061224;
  --surface: #08182b;
  --surface-2: #0b1f36;
  --surface-3: #0f2742;
  --line: rgba(228, 237, 241, .1);
  --line-strong: rgba(228, 237, 241, .2);
  --text-1: #e8f0f3;
  --text-2: #b3c3cb;
  --text-3: #93a8b6;
  --accent: #2fd3c6;
  --accent-hover: #5fe0d5;
  --on-accent: #030a14;
  --accent-ink: #2fd3c6;
  --accent-tint: rgba(47, 211, 198, .13);
  --accent-tint-ink: #7fe6dc;
  --accent-line: rgba(127, 230, 220, .2);
  --focus: #2fd3c6;
  --header-bg: rgba(3, 10, 20, .86);
  --shadow-header: 0 6px 20px rgba(0, 0, 0, .3);
  --logo-filter: brightness(0) invert(1);
  --navy-bg: #061a30;
  color-scheme: dark;
}

:root {
  /* Google Sans covers Thai as well as Latin, so one family sets the whole page, code included */
  --font: 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* type: Thai needs room above and below the line (tone marks, sara u) */
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 17px;
  --fs-lg: 19px;
  --fs-xl: 22px;
  --fs-h3: 19px;
  --fs-h2: clamp(26px, 1.6vw + 20px, 40px);
  --fs-h1: clamp(34px, 3.6vw + 20px, 68px);
  --fs-lead: clamp(17px, .4vw + 15.5px, 20px);
  --fs-price: clamp(22px, 0.8vw + 16px, 30px);
  --lh-body: 1.65;
  --lh-h3: 1.4;
  --lh-h2: 1.3;
  --lh-h1: 1.26;
  --track: -.015em;
  --fw-body: 400;
  --fw-medium: 500;
  --fw-semi: 600;
  --fw-bold: 700;

  /* space */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 72px;
  --sec-pad: clamp(64px, 7vw, 112px);
  --sec-pad-tight: clamp(40px, 5vw, 72px);
  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 1200px;
  --measure: 760px;
  --measure-cta: 34em;
  --header-h: 64px;
  --cta-shot-h: clamp(180px, 26vw, 360px);
  --cta-shot-w: 880px;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;
  --bw: 1px;
  --bw-2: 2px;
  --ic: 20px;
  --tap: 44px;
  --btn-h: 50px;
  --btn-h-sm: 40px;
  --logo-h: 16px;
  --step-n: 40px;
  --flow-n: 2rem;
  --chevron: 8px;

  /* motion */
  --dur-fast: 150ms;
  --dur: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --blur: 12px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-press: 90ms;
  --dur-in: 640ms;
  --dur-hero: 900ms;
  --dur-slow: 1100ms;
  --dur-open: 320ms;
  --dur-theme: 560ms;
  --stagger: 60ms;
  --stagger-hero: 110ms;
  --rise: 24px;
  --rise-sm: 10px;
  --rise-lg: 64px;
  --press: .97;
  --mark-room: .35em;
}

/* English sets tighter than Thai, which needs room for tone marks */
html[lang="en"] {
  --lh-h1: 1.1;
  --lh-h2: 1.16;
  --track: -.03em;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--sp-8)); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  line-height: var(--lh-body);
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* browsers set code in a monospace of their own unless told otherwise */
code, pre, kbd, samp { font-family: var(--font); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: var(--fw-bold); color: var(--text-1); text-wrap: balance; }
p, li, dd, summary { text-wrap: pretty; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); letter-spacing: var(--track); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
b, strong { font-weight: var(--fw-bold); }
a { color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: var(--bw-2) solid var(--focus); outline-offset: var(--bw-2); border-radius: var(--r-sm); }
main:focus { outline: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: var(--ic); height: var(--ic); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.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: var(--sp-4); top: calc(-1 * var(--sp-10)); z-index: 100; padding: var(--sp-2) var(--sp-4); background: var(--text-1); color: var(--bg); border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: var(--sp-3); }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
a[href^="tel:"] { white-space: nowrap; }
.note { margin-top: var(--sp-3); color: var(--text-3); font-size: var(--fs-xs); text-align: center; }
/* a customer code in running text */
.code { font-weight: var(--fw-semi); letter-spacing: .04em; }
/* a word beside a heading: plain text, not a pill */
.badge { color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--fw-semi); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--btn-h); padding: 0 var(--sp-6);
  border: var(--bw) solid transparent; border-radius: var(--r-pill);
  font: inherit; font-weight: var(--fw-semi); line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text-1); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--on-navy { background: transparent; color: var(--navy-text-1); border-color: var(--navy-line); }
.btn--on-navy:hover { background: var(--navy-surface-2); }
.btn--sm { min-height: var(--btn-h-sm); padding: 0 var(--sp-5); font-size: var(--fs-sm); }
.icon-btn {
  display: inline-grid; place-items: center; width: var(--tap); height: var(--tap);
  border: var(--bw) solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--text-1); cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-strong); }
/* a plain link at the end of a block */
.more { display: inline-block; margin-top: var(--sp-5); color: var(--accent-ink); font-weight: var(--fw-semi); text-decoration: underline; text-underline-offset: .2em; }
.more:hover { color: var(--text-1); }

/* ----------------------------------------------------------------- header */
/* a floating pill, inset from the page edges; only the pill takes clicks */
.hd { position: sticky; top: var(--sp-3); z-index: 50; margin-top: var(--sp-3); padding-inline: var(--gutter); pointer-events: none; }
.hd-in {
  position: relative; display: flex; align-items: center; gap: var(--sp-5);
  max-width: var(--wrap); min-height: var(--header-h); padding: 0 var(--sp-3) 0 var(--sp-6); pointer-events: auto;
  border: var(--bw) solid var(--line); border-radius: var(--r-pill); background: var(--header-bg); box-shadow: var(--shadow-header);
  -webkit-backdrop-filter: saturate(1.4) blur(var(--blur)); backdrop-filter: saturate(1.4) blur(var(--blur));
}
.brand { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; flex: none; }
.brand img { height: var(--logo-h); width: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: var(--sp-1); margin-inline: auto; }
.nav a { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-pill); color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--text-1); background: var(--surface-3); }
.nav .nav-login { display: none; }
.hd-tools { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.hd-login { display: inline-flex; align-items: center; min-height: var(--btn-h-sm); padding: 0 var(--sp-4); border: var(--bw) solid var(--line-strong); border-radius: var(--r-pill); color: var(--text-1); font-size: var(--fs-sm); font-weight: var(--fw-semi); text-decoration: none; white-space: nowrap; }
.hd-login:hover { border-color: var(--text-3); }
.hd-tools .icon-btn, .hd-tools .lang { width: var(--btn-h-sm); min-width: var(--btn-h-sm); height: var(--btn-h-sm); }
/* language switch: in the header on wide screens, inside the menu on a phone */
.lang { display: inline-grid; place-items: center; min-width: var(--tap); height: var(--tap); padding: 0 var(--sp-2); border: var(--bw) solid var(--line); border-radius: var(--r-pill); color: var(--text-1); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none; }
.lang:hover { border-color: var(--line-strong); }
.nav a[aria-current="page"] { color: var(--text-1); background: var(--surface-3); }
.menu-btn { display: none; }
.ic-sun, .ic-close { display: none; }
[data-theme="dark"] .ic-moon { display: none; }
[data-theme="dark"] .ic-sun { display: block; }
.menu-btn[aria-expanded="true"] .ic-menu { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }

/* ------------------------------------------------------------------- hero */
.hero-in { padding-block: var(--sp-10) var(--sp-9); text-align: center; }
.hero-title { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--track); }
.hero-title > span { display: block; }
.hero-lead { max-width: var(--measure); margin: var(--sp-6) auto 0; color: var(--text-2); font-size: var(--fs-lead); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-7); }
.works { max-width: var(--measure); margin: var(--sp-7) auto 0; color: var(--text-3); font-size: var(--fs-sm); text-wrap: balance; }

/* --------------------------------------------------------------- sections */
.sec { position: relative; padding-block: var(--sec-pad); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-block: var(--sec-pad-tight); }
.sec--shot, .sec--preview { padding-block: 0; }
.sec-head { max-width: var(--measure); margin: 0 auto var(--sp-8); text-align: center; }
.sec-head--left { margin-left: 0; text-align: left; }
.lead { margin-top: var(--sp-4); color: var(--text-2); font-size: var(--fs-md); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: var(--sp-9); }

/* ------------------------------------------------------------ real screens */
.frame { border: var(--bw) solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
/* each screen comes in both themes; only the one in view downloads (loading="lazy") */
.shot { display: block; }
.shot img { width: 100%; }
.shot--dark { display: none; }
[data-theme="dark"] .shot--light { display: none; }
[data-theme="dark"] .shot--dark { display: block; }

/* one screen open at a time (<details name>), no script needed */
.shots-list details { border-top: var(--bw) solid var(--line-strong); }
.shots-list details:last-child { border-bottom: var(--bw) solid var(--line-strong); }
.shots-list summary { position: relative; display: block; padding: var(--sp-4) var(--sp-8) var(--sp-4) 0; border-radius: var(--r-sm); font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.4; cursor: pointer; list-style: none; }
.shot-body { padding-bottom: var(--sp-6); }

/* lists without bullets: a hairline between lines */
.checks li { padding-block: var(--sp-3); border-top: var(--bw) solid var(--line); color: var(--text-1); }
.checks li:last-child { border-bottom: var(--bw) solid var(--line); }

/* one customer's path, numbered */
.flow { counter-reset: flow; }
.flow li { counter-increment: flow; position: relative; padding: var(--sp-3) 0 var(--sp-3) var(--flow-n); border-top: var(--bw) solid var(--line); }
.flow li:last-child { border-bottom: var(--bw) solid var(--line); }
.flow li::before { content: counter(flow); position: absolute; left: 0; color: var(--text-3); font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; }
.flow-t { font-weight: var(--fw-semi); line-height: 1.45; }
.flow-m { color: var(--text-3); font-size: var(--fs-sm); }

.together-title { margin-bottom: var(--sp-3); font-size: var(--fs-md); }
.plans-link { margin-top: var(--sp-6); text-align: center; }
.plans-link .more { margin-top: 0; }

/* a block of code a customer pastes */
.code-body { margin: 0; padding: var(--sp-5); border: var(--bw) solid var(--line-strong); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-1); font-size: var(--fs-sm); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ------------------------------------------------------- what each part does */
.feat-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-9); }
.feat-col-title { padding-bottom: var(--sp-3); border-bottom: var(--bw) solid var(--line-strong); font-size: var(--fs-xl); }
.feat-list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--sp-2) var(--sp-6); padding: var(--sp-4) 0; border-bottom: var(--bw) solid var(--line); }
.feat-list dt { font-weight: var(--fw-bold); line-height: 1.45; }
.feat-list dd { color: var(--text-2); font-size: var(--fs-sm); }
.feat-list--wide { border-top: var(--bw) solid var(--line-strong); }
.feat-list--wide > div { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }

/* ------------------------------------------------------------------ steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-7); }
.step { padding-top: var(--sp-4); border-top: var(--bw) solid var(--line-strong); }
.step-n { display: block; color: var(--text-3); font-size: var(--fs-lg); font-weight: var(--fw-semi); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: var(--sp-2); }
.step p { margin-top: var(--sp-2); color: var(--text-2); }

/* a real sequence on the product pages */
.rows { border-top: var(--bw) solid var(--line-strong); }
.row { display: grid; grid-template-columns: var(--step-n) minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: var(--sp-5) 0; border-bottom: var(--bw) solid var(--line); }
.row-n { color: var(--text-3); font-size: var(--fs-lg); font-weight: var(--fw-semi); line-height: 1.4; font-variant-numeric: tabular-nums; }
.row-text { max-width: var(--measure); }
.row-text p { margin-top: var(--sp-2); color: var(--text-2); }

/* three facts under a screen */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); margin-top: var(--sp-7); }
.facts > div { padding-top: var(--sp-4); border-top: var(--bw) solid var(--line-strong); }
.facts dt { font-weight: var(--fw-bold); }
.facts dd { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-sm); }

/* each product page points to the other */
.cross { padding-block: var(--sp-6); border-block: var(--bw) solid var(--line-strong); }
.cross h2 { font-size: var(--fs-xl); line-height: var(--lh-h2); }
.cross p { max-width: var(--measure); margin-top: var(--sp-2); color: var(--text-2); }
.cross .more { margin-top: var(--sp-3); }

/* ------------------------------------------------------------------ plans */
/* products down the side, sizes across (ARIA table roles, so it stays a table when a phone restacks it);
   on a phone each product keeps its three sizes side by side and each price names its size */
/* a product page's own three plans (the full table is on the homepage) */
.plans-mini dd { display: grid; gap: var(--sp-1); }
.plans-mini .price-amt { color: var(--text-1); }
.plan-note { color: var(--text-2); font-size: var(--fs-sm); }
.price { border-top: var(--bw) solid var(--line-strong); }
.price-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-6); align-items: start; padding: var(--sp-6) var(--sp-5); border-bottom: var(--bw) solid var(--line-strong); }
.price-head { align-items: end; padding-block: var(--sp-5); }
.price-size b, .price-prod b { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-lg); line-height: 1.4; }
.price-size span { color: var(--text-3); font-size: var(--fs-sm); }
.price-prod > span { display: block; max-width: 30ch; margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-sm); }
.price-cell { display: grid; align-content: start; }
.price-tier { display: none; }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-1); }
.price-amt { font-size: var(--fs-price); line-height: 1.25; font-variant-numeric: tabular-nums; }
.price-per { color: var(--text-3); font-size: var(--fs-sm); }
.price-note { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-sm); }
.price-row--pick { margin-top: var(--sp-3); border-bottom: 0; border-radius: var(--r-md); background: var(--accent-tint); }
.price-row--pick b, .price-row--pick .badge, .price-row--pick .price-prod > span, .price-row--pick .price-per, .price-row--pick .price-note { color: var(--accent-tint-ink); }
.price-foot { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); margin-top: var(--sp-8); text-align: center; }
.price-foot p { max-width: var(--measure-cta); color: var(--text-3); font-size: var(--fs-sm); }
.start-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--sp-2) var(--sp-6); padding: var(--sp-4) 0; border-bottom: var(--bw) solid var(--line-strong); }
.start-list > div:first-child { padding-top: 0; }
.start-list dt { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-weight: var(--fw-bold); }
.start-list dd { color: var(--text-2); }

/* -------------------------------------------------------------------- faq */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--sp-9); align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + var(--sp-6)); }
.faq-aside .lead a { color: var(--accent-ink); font-weight: var(--fw-semi); }
.faq details { border-top: var(--bw) solid var(--line-strong); }
.faq details:last-child { border-bottom: var(--bw) solid var(--line-strong); }
.faq summary { position: relative; display: block; padding: var(--sp-4) var(--sp-8) var(--sp-4) 0; font-weight: var(--fw-semi); line-height: 1.5; cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.faq summary::-webkit-details-marker, .shots-list summary::-webkit-details-marker { display: none; }
.faq summary::after, .shots-list summary::after { content: ""; position: absolute; right: var(--sp-2); top: 50%; width: var(--chevron); height: var(--chevron); border-right: var(--bw-2) solid var(--text-2); border-bottom: var(--bw-2) solid var(--text-2); transform: translateY(-75%) rotate(45deg); transition: transform var(--dur-fast) var(--ease); }
.faq details[open] summary::after, .shots-list details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding-bottom: var(--sp-5); color: var(--text-2); }

/* -------------------------------------------------------------------- cta */
.cta { display: grid; justify-items: center; gap: var(--sp-7); overflow: clip; padding: var(--sp-10) var(--sp-8); border-radius: var(--r-xl); color: var(--navy-text-1); background: var(--navy-bg); text-align: center; }
.cta h2 { color: var(--navy-text-1); }
.cta p { max-width: var(--measure-cta); margin: var(--sp-3) auto 0; color: var(--navy-text-2); font-size: var(--fs-md); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
/* the real report rises from the bottom edge of the block */
.cta--shot { padding-bottom: 0; }
.cta-shot { width: 100%; max-width: var(--cta-shot-w); height: var(--cta-shot-h); margin-top: var(--sp-2); overflow: hidden; border: var(--bw) solid var(--navy-line); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; }

/* ----------------------------------------------------------------- footer */
.ft { padding-block: var(--sp-9) var(--sp-7); border-top: var(--bw) solid var(--line); background: var(--bg); }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: var(--sp-8); }
.ft-brand img { height: var(--logo-h); width: auto; filter: var(--logo-filter); }
.ft-brand p { max-width: 22rem; margin-top: var(--sp-4); color: var(--text-2); font-size: var(--fs-sm); }
.ft-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-6); }
.ft-title { font-size: var(--fs-xs); font-weight: var(--fw-bold); line-height: 1.5; color: var(--text-3); }
.ft-cols ul { display: grid; gap: var(--sp-1); margin-top: var(--sp-3); }
.ft-cols a { display: inline-block; padding-block: var(--sp-1); color: var(--text-1); font-size: var(--fs-sm); text-decoration: none; }
.ft-cols a:hover { color: var(--accent-ink); text-decoration: underline; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-8); padding-top: var(--sp-5); border-top: var(--bw) solid var(--line); color: var(--text-3); font-size: var(--fs-xs); }
.ft-bottom a { color: var(--text-1); font-weight: var(--fw-semi); }

/* mobile contact bar */
.mbar { display: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .nav { display: none; position: absolute; top: calc(100% + var(--sp-2)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--sp-3); background: var(--surface); border: var(--bw) solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-header); }
  .nav.is-open { display: flex; }
  .nav a { padding: var(--sp-3) var(--sp-2); border-radius: var(--r-sm); font-size: var(--fs-base); }
  .nav .nav-login { display: block; }
  .hd-login { display: none; }
  .menu-btn { display: inline-grid; }
  .hd-tools { margin-left: auto; }
}

@media (max-width: 1080px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .faq-aside { position: static; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
}

@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .feat-cols { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
  .price-head { display: none; }
  .price-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); padding: var(--sp-5) 0; }
  .price-row--pick { padding: var(--sp-5) var(--sp-4); }
  .price-prod { grid-column: 1 / -1; }
  .price-prod > span { max-width: none; }
  .price-tier { display: block; color: var(--text-3); font-size: var(--fs-xs); font-weight: var(--fw-semi); }
  .price-row--pick .price-tier { color: var(--accent-tint-ink); }
}
@media (max-width: 560px) {
  .price-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .price-prod { padding-bottom: var(--sp-3); }
  .price-cell { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tier line" "note line"; column-gap: var(--sp-4); align-items: center; padding: var(--sp-3) 0; border-top: var(--bw) solid var(--line); }
  .price-tier { grid-area: tier; color: var(--text-1); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
  .price-note { grid-area: note; margin-top: 0; }
  .price-cell .price-line { grid-area: line; flex-direction: column; align-items: flex-end; }
  /* a product page's plans: the size on top, its quota and price on one row */
  .plans-mini dd { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: var(--sp-4); }
  .plans-mini .plan-note { grid-row: 1; grid-column: 1; }
  .plans-mini .price-line { grid-row: 1; grid-column: 2; }
  .price-row--pick .price-cell { border-top-color: var(--accent-line); }
  .ft-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 56px; --logo-h: 13px; --fs-md: 16px; --fs-lg: 17px; --fs-xl: 20px; --fs-h3: 17px; --sec-pad: 64px; --sec-pad-tight: 40px; --fs-price: 20px; --step-n: 28px; }
  .hd-cta { display: none; }
  .hd-tools .lang { display: none; }
  .hd-in { gap: var(--sp-3); padding-left: var(--sp-5); }
  .hero-in { padding-block: var(--sp-9) var(--sp-8); }
  .hero-actions .btn { flex: 1 1 100%; }
  .feat-list > div { grid-template-columns: minmax(0, 1fr); }
  .feat-cols .feat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--sp-4); }
  .feat-cols .feat-list > div { display: block; padding: var(--sp-3) 0; }
  .feat-cols .feat-list dt { font-size: var(--fs-sm); line-height: 1.5; }
  .feat-cols .feat-list dd { display: none; }
  .start-list > div { grid-template-columns: minmax(0, 1fr); }
  .code-body { padding: var(--sp-4); }
  .cta { padding: var(--sp-9) var(--sp-5); }
  .cta--shot { padding-bottom: 0; }
  .ft-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft { padding-bottom: calc(var(--btn-h) + var(--sp-9)); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2);
    padding: var(--sp-2) var(--gutter) calc(var(--sp-2) + env(safe-area-inset-bottom));
    background: var(--header-bg); border-top: var(--bw) solid var(--line); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
    transition: transform var(--dur) var(--ease), visibility var(--dur);
  }
  /* the bar steps aside while the hero's or the closing section's own buttons are on screen */
  .cta-in-view .mbar { transform: translateY(100%); visibility: hidden; }
}

/* --------------------------------------------------------------- parallax
   landing.js moves [data-px] layers with the `translate` property while the page scrolls.
   It does nothing for reduced motion. */
.px-on [data-px], .px-on [data-px-wide], .px-on [data-px-narrow], .px-on [data-px-scroll] { will-change: translate; }

/* ----------------------------------------------------------------- motion
   One entrance for the hero on load; after that, lists appear in order as they scroll into view.
   landing.js gives each stage .a-wait while it is below the screen and swaps it for .is-in, so it plays once.
   Without the script, or with reduced motion, everything just shows. */

/* switching theme: the new one spreads out as a circle from the button (landing.js sets the centre) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: theme-reveal var(--dur-theme) var(--ease-out); }

@media (prefers-reduced-motion: no-preference) {
  /* hero (only when the page opens in view): the title lines rise out of a mask, the buttons follow, the real screen
     comes up last. The lead paragraph is there from the first paint: on a phone it is the largest text, so it sets LCP. */
  .anim .hero-title > span { animation: mask-rise var(--dur-hero) var(--ease-out) backwards; }
  .anim .hero-title > span + span { animation-delay: var(--stagger-hero); }
  .anim .hero-actions { animation: rise var(--dur-in) var(--ease-out) calc(3 * var(--stagger-hero)) backwards; }
  .anim .sec--shot .frame, .anim .sec--preview .frame { animation: rise-lg var(--dur-slow) var(--ease-out) calc(3 * var(--stagger-hero)) backwards; }

  .a-wait .a-item { opacity: 0; }
  .is-in .a-item { animation: rise-sm var(--dur-in) var(--ease-out) calc(var(--i, 0) * var(--stagger)) backwards; }

  .btn:active { transform: scale(var(--press)); transition-duration: var(--dur-press); }
  .nav.is-open { animation: drop var(--dur) var(--ease-out); }
  .faq details, .shots-list details { interpolate-size: allow-keywords; }
  .faq details::details-content, .shots-list details::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-open) var(--ease-out), content-visibility var(--dur-open) allow-discrete; }
  .faq details[open]::details-content, .shots-list details[open]::details-content { block-size: auto; }
}
@media print { .a-wait .a-item { opacity: 1; } }

@keyframes rise { from { opacity: 0; translate: 0 var(--rise); } }
@keyframes rise-sm { from { opacity: 0; translate: 0 var(--rise-sm); } }
@keyframes rise-lg { from { opacity: 0; translate: 0 var(--rise-lg); } }
@keyframes drop { from { opacity: 0; translate: 0 calc(-1 * var(--rise-sm)); } }
/* --mark-room keeps Thai tone marks above the line inside the mask */
@keyframes mask-rise {
  from { clip-path: inset(calc(-1 * var(--mark-room)) calc(-1 * var(--mark-room)) calc(100% + var(--mark-room)) calc(-1 * var(--mark-room))); translate: 0 100%; }
  to { clip-path: inset(calc(-1 * var(--mark-room))); translate: 0 0; }
}
@keyframes theme-reveal {
  from { clip-path: circle(0 at var(--vt-x) var(--vt-y)); }
  to { clip-path: circle(var(--vt-r) at var(--vt-x) var(--vt-y)); }
}

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