/* Svibe public site — one stylesheet for /about /features /changelog /privacy (TH + EN).
 *
 * Served by nginx with the nav, footer and <head> bits pulled in by SSI from
 * /site/_*.html, so a change here or in a partial reaches all eight pages.
 * The pages work with JavaScript off: the only script is the theme picker in
 * _head.html, and without it the site simply follows the device.
 *
 * Theme: <html data-theme="light|dark"> when the visitor picked one (stored in
 * localStorage "svibe.colorMode", the same key the web app uses, so the choice
 * carries over after sign-in). No attribute = follow the device.
 * Every screenshot exists twice; .l / .d decide which one shows.
 */

/* ---- tokens: dark is the house look (Huly-style), light is its daylight twin ---- */
:root {
  color-scheme: light;
  --bg: #fbfaff;
  --bg-2: #f3f1fb;
  --surface: #ffffff;
  --surface-2: #f7f5fd;
  --line: rgba(40, 28, 96, 0.1);
  --line-strong: rgba(40, 28, 96, 0.18);
  --ink: #15121f;
  --ink-2: #3b3650;
  --muted: #6b6683;
  --brand: #6d5bd0;
  --brand-2: #7c5cff;
  --brand-ink: #5241ad;
  --glow-a: rgba(124, 92, 255, 0.28);
  --glow-b: rgba(232, 121, 249, 0.18);
  --glow-c: rgba(56, 189, 248, 0.14);
  --btn-bg: #15121f;
  --btn-ink: #ffffff;
  --chip: rgba(109, 91, 208, 0.08);
  --ok: #15803d;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(21, 18, 31, 0.05), 0 24px 60px -24px rgba(82, 65, 173, 0.35);
  --frame: linear-gradient(180deg, rgba(109, 91, 208, 0.35), rgba(109, 91, 208, 0.06));
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07060d;
  --bg-2: #0c0a16;
  --surface: #110f1d;
  --surface-2: #161327;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --ink: #f5f3ff;
  --ink-2: #d6d2ea;
  --muted: #9a95b4;
  --brand: #a897ee;
  --brand-2: #8b6dff;
  --brand-ink: #c4b8f6;
  --glow-a: rgba(124, 92, 255, 0.45);
  --glow-b: rgba(217, 70, 239, 0.22);
  --glow-c: rgba(56, 189, 248, 0.16);
  --btn-bg: #ffffff;
  --btn-ink: #0b0914;
  --chip: rgba(168, 151, 238, 0.1);
  --ok: #4ade80;
  --warn: #fbbf24;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --frame: linear-gradient(180deg, rgba(168, 151, 238, 0.45), rgba(168, 151, 238, 0.04));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #07060d;
    --bg-2: #0c0a16;
    --surface: #110f1d;
    --surface-2: #161327;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --ink: #f5f3ff;
    --ink-2: #d6d2ea;
    --muted: #9a95b4;
    --brand: #a897ee;
    --brand-2: #8b6dff;
    --brand-ink: #c4b8f6;
    --glow-a: rgba(124, 92, 255, 0.45);
    --glow-b: rgba(217, 70, 239, 0.22);
    --glow-c: rgba(56, 189, 248, 0.16);
    --btn-bg: #ffffff;
    --btn-ink: #0b0914;
    --chip: rgba(168, 151, 238, 0.1);
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
    --frame: linear-gradient(180deg, rgba(168, 151, 238, 0.45), rgba(168, 151, 238, 0.04));
  }
}

/* which screenshot shows: .l in light, .d in dark */
.d { display: none !important; }
:root[data-theme="dark"] .l { display: none !important; }
:root[data-theme="dark"] .d { display: block !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .l { display: none !important; }
  :root:not([data-theme="light"]) .d { display: block !important; }
}

/* ---- base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 "Inter", "Noto Sans Thai", "Sukhumvit Set", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(en) body, body:lang(en) { line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- top bar ---- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo img, .logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 15px; padding: 6px 12px; border-radius: 999px; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--ink); text-decoration: none; background: var(--chip); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--chip); }
.acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.lang:hover { color: var(--ink); text-decoration: none; border-color: var(--line-strong); }

/* theme picker: three segments, only shown once the script has run */
.theme { display: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px; gap: 2px; }
.js .theme { display: inline-flex; }
.theme button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  width: 30px; height: 26px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
}
.theme button:hover { color: var(--ink); }
.theme button[aria-pressed="true"] { background: var(--chip); color: var(--ink); }
.theme svg { width: 15px; height: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 0 0 1px var(--line), 0 10px 30px -10px var(--glow-a); }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }

/* menu on small screens: a details/summary, no script needed */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 18px; height: 18px; }
.menu .sheet {
  position: absolute; right: 0; top: 46px; min-width: 220px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: grid;
}
.menu .sheet a { color: var(--ink); padding: 10px 12px; border-radius: 10px; }
.menu .sheet a:hover { background: var(--chip); text-decoration: none; }
@media (max-width: 860px) {
  .nav, .acts .login { display: none; }
  .menu { display: block; }
}

/* ---- hero ---- */
.hero { position: relative; padding: 88px 0 0; text-align: center; isolation: isolate; }
.hero::before { /* the light beam */
  content: ""; position: absolute; inset: -120px 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 38% at 50% 58%, var(--glow-a), transparent 70%),
    radial-gradient(28% 30% at 30% 40%, var(--glow-b), transparent 70%),
    radial-gradient(28% 30% at 72% 36%, var(--glow-c), transparent 70%);
  filter: blur(10px);
}
.hero::after { /* fine grid, fading out */
  content: ""; position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 30%, #000 30%, transparent 75%);
}
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 6px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.pill b { font-size: 12px; color: #fff; background: linear-gradient(90deg, var(--brand-2), #c06bff); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.pill:hover { text-decoration: none; border-color: var(--brand); }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
:lang(th) h1, :lang(th) h2 { line-height: 1.32; letter-spacing: -0.01em; }
/* Thai has no spaces between words, so the browser breaks headings inside a phrase
   ("…ในระบบ / เดียว"). Thai headings wrap each phrase in .nw; lines break only at
   the spaces between phrases, and balance evens them out. */
.nw { white-space: nowrap; }
h1, h2, h3 { text-wrap: balance; }
.hero h1 { font-size: clamp(40px, 7vw, 80px); font-weight: 800; margin: 26px auto 0; max-width: 16em; }
.grad { background: linear-gradient(100deg, var(--ink) 20%, var(--brand) 55%, #d38bff 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 640px; margin: 22px auto 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.fine { color: var(--muted); font-size: 13px; margin-top: 16px; }

.store {
  display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 14px;
  background: var(--btn-bg); color: var(--btn-ink); border: 1px solid var(--line-strong); text-align: left;
}
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-size: 11px; opacity: 0.7; line-height: 1.1; }
.store b { display: block; font-size: 16px; line-height: 1.2; }

/* the big product window under the hero */
.stage { position: relative; margin: 64px auto 0; width: min(1180px, 100% - 32px); perspective: 2000px; }
.window {
  position: relative; border-radius: 16px; padding: 1px; background: var(--frame); box-shadow: var(--shadow);
  transform: rotateX(8deg); transform-origin: 50% 0; transition: transform 0.6s ease;
}
.stage:hover .window { transform: rotateX(2deg); }
.window .inner { border-radius: 15px; overflow: hidden; background: var(--surface); }
.window .bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.window .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.window .bar span { margin: 0 auto; font-size: 12px; color: var(--muted); padding-right: 51px; }
.window img { width: 100%; height: auto; }
.stage::after { /* floor reflection fade */
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 30%;
  background: linear-gradient(transparent, var(--bg)); pointer-events: none; border-radius: 0 0 16px 16px;
}
@media (max-width: 700px) { .window { transform: none; } }

.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.platforms li { display: flex; align-items: center; gap: 8px; }
.platforms svg { width: 16px; height: 16px; color: var(--brand); }

/* ---- sections ---- */
.sec { padding: 120px 0 0; }
.sec:last-of-type { padding-bottom: 40px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
:lang(th) .eyebrow { letter-spacing: 0.02em; }
.sec-head { text-align: center; max-width: 980px; margin: 0 auto 56px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; margin-top: 12px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 16px auto 0; max-width: 760px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  display: flex; flex-direction: column; min-height: 320px; isolation: isolate;
}
.card::before { /* a soft spot of light in the corner */
  content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -180px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow-a), transparent); opacity: 0.55;
}
.card:hover { border-color: var(--line-strong); }
.card h3 { font-size: 21px; font-weight: 700; }
.card p { color: var(--muted); margin: 8px 0 0; font-size: 15px; }
.card .tag { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--chip); padding: 3px 10px; border-radius: 999px; margin-bottom: 14px; }
.card .shot { margin: 24px -28px -28px; flex: 1; min-height: 200px; position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.card .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.card .shot.right img { object-position: right top; }
.card .shot.inset { margin: 24px -28px -28px 28px; border-left: 1px solid var(--line); border-top-left-radius: 12px; }
.card .phone-peek { margin: 24px auto -120px; width: 62%; max-width: 260px; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.card.tall { min-height: 460px; }
@media (max-width: 980px) { .c2, .c3, .c4 { grid-column: span 3; } }
@media (max-width: 680px) { .bento { grid-template-columns: 1fr; } .c2, .c3, .c4, .c6 { grid-column: auto; } .card { min-height: 280px; } }

/* phones */
.phone {
  position: relative; border-radius: 22px; padding: 5px; background: linear-gradient(160deg, #2a2540, #0d0b16);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow);
}
.phone img { border-radius: 17px; width: 100%; height: auto; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 260px)); justify-content: center; gap: 32px; align-items: start; }
.phones figure { margin: 0; text-align: center; }
.phones figure:nth-child(2) { margin-top: 48px; }
.phones figcaption { color: var(--muted); font-size: 14px; margin-top: 16px; }
@media (max-width: 760px) {
  .phones { grid-template-columns: repeat(3, 70%); justify-content: start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 12px; margin: 0 -16px; }
  .phones figure { scroll-snap-align: center; }
  .phones figure:nth-child(2) { margin-top: 0; }
}

/* split rows: text + picture */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-top: 10px; }
.split p { color: var(--muted); font-size: 17px; margin: 14px 0 0; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip > :first-child { order: 0; } }
.frame { border-radius: 16px; padding: 1px; background: var(--frame); box-shadow: var(--shadow); }
.frame > div { border-radius: 15px; overflow: hidden; background: var(--surface); }
.frame.crop > div { aspect-ratio: 16 / 10; position: relative; }
.frame.crop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right top; }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15.5px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 6px;
  background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta span { font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.meta b { color: var(--ink-2); font-weight: 600; }

/* trust grid */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 22px; }
.mini .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--brand); margin-bottom: 14px; }
.mini .ico svg { width: 18px; height: 18px; }
.mini h3 { font-size: 16px; font-weight: 700; }
.mini p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
@media (max-width: 900px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }

/* updates teaser */
.updates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.upd { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--surface); color: var(--ink); display: block; }
.upd:hover { text-decoration: none; border-color: var(--brand); }
.upd .when { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.upd h3 { font-size: 17px; margin-top: 10px; }
.upd p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
@media (max-width: 860px) { .updates { grid-template-columns: 1fr; } }
.ver { font: 600 12px/1 "SF Mono", Menlo, Consolas, monospace; color: var(--brand-ink); background: var(--chip); padding: 4px 8px; border-radius: 6px; }
.plat { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.plat.app { color: var(--ok); }

/* final call */
.final {
  position: relative; text-align: center; border-radius: 28px; padding: 80px 24px; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line); background: var(--surface);
}
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 110%, var(--glow-a), transparent 70%), radial-gradient(30% 50% at 15% 0%, var(--glow-b), transparent 70%);
}
.final h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 800; }
.final p { color: var(--muted); max-width: 560px; margin: 16px auto 0; font-size: 17px; }

/* ---- page header (features, changelog, privacy) ---- */
.phead { position: relative; padding: 72px 0 40px; isolation: isolate; }
.phead::before { content: ""; position: absolute; inset: -80px 0 auto; height: 460px; z-index: -1; background: radial-gradient(40% 60% at 50% 30%, var(--glow-a), transparent 70%); opacity: 0.7; pointer-events: none; }
.phead h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 800; margin-top: 12px; }
.phead p { color: var(--muted); font-size: 18px; max-width: 680px; margin: 16px 0 0; }
.phead.center { text-align: center; }
.phead.center p { margin-inline: auto; }

/* area jump bar on /features */
.jump { position: sticky; top: 64px; z-index: 40; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.jump .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.jump .wrap::-webkit-scrollbar { display: none; }
.jump a { flex: none; font-size: 14px; color: var(--muted); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.jump a:hover { color: var(--ink); text-decoration: none; border-color: var(--line-strong); }
.area { padding: 96px 0 0; }
.area + .area { border-top: 0; }
.soon { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--warn); }
.icon-panel { border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 28px; display: grid; gap: 12px; }
.icon-panel .row { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.icon-panel .row b { display: block; font-size: 15px; }
.icon-panel .row span { color: var(--muted); font-size: 14px; }
.icon-panel .dot { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--chip); color: var(--brand); font-size: 17px; }

/* ---- changelog ---- */
.cl { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.cl-side { position: sticky; top: 96px; display: grid; gap: 4px; font-size: 14px; }
.cl-side a { color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.cl-side a:hover { color: var(--ink); background: var(--chip); text-decoration: none; }
.cl-side .legend { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: grid; gap: 6px; }
@media (max-width: 860px) { .cl { grid-template-columns: 1fr; } .cl-side { position: static; display: flex; flex-wrap: wrap; } .cl-side .legend { width: 100%; } }
.month { margin-bottom: 56px; }
.month > h2 { font-size: 22px; font-weight: 700; margin-bottom: 20px; color: var(--ink-2); }
.rel { position: relative; padding-left: 28px; margin: 0 0 16px; }
.rel::before { content: ""; position: absolute; left: 6px; top: 26px; bottom: -22px; width: 1px; background: var(--line-strong); }
.rel::after { content: ""; position: absolute; left: 1px; top: 22px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }
.rel.major::after { background: var(--brand); box-shadow: 0 0 0 5px var(--chip); }
.rel.app::after { border-color: var(--ok); }
.rel:last-child::before { display: none; }
.rcard { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 20px 22px; }
.rel.major .rcard { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-color: var(--line-strong); }
.rmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.rcard h3 { font-size: 18px; margin: 10px 0 0; }
.rcard ul { margin: 10px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.rcard li { margin: 4px 0; }
.rcard li b { color: var(--ink); }
.rcard p { color: var(--ink-2); font-size: 15px; margin: 8px 0 0; }

/* ---- privacy (long-form text) ---- */
.doc { padding-bottom: 40px; }
.doc h2 { font-size: 24px; margin: 48px 0 12px; padding-top: 8px; }
.doc h3 { font-size: 18px; margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); font-weight: 600; }
.doc col.c1 { width: 24%; } .doc col.c3 { width: 22%; }
.doc .note { color: var(--muted); font-size: 14px; }
.toc { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px 22px; margin-top: 8px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---- footer ---- */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink); font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }
.foot .addr { margin: 14px 0 0; max-width: 360px; line-height: 1.6; }
.foot .base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child { grid-column: 1 / -1; } }

/* gentle entrance; skipped when motion is reduced (see above) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1, .hero .lead, .hero .ctas, .hero .pill { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lead { animation-delay: 0.08s; }
.hero .ctas { animation-delay: 0.16s; }
.stage { animation: rise 1s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

/* two phones side by side in a features row */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); justify-content: center; gap: 28px; align-items: start; }
.duo .phone:nth-child(2) { margin-top: 56px; }
@media (max-width: 520px) { .duo { gap: 14px; } .duo .phone { border-radius: 16px; padding: 4px; } .duo .phone img { border-radius: 12px; } }
