/* ============================================================
   Fonts — IBM Plex Sans + Mono, SELF-HOSTED (woff2).
   No third-party font CDN, per the privacy pitch. latin + latin-ext
   cover en/de/es; add Plex Sans SC for zh later. font-display: swap.
   ============================================================ */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-latin-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-mono-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* IBM Plex Sans SC — Simplified-Chinese (Han) glyphs for the /zh-Hans/ page only.
   Self-hosted woff2, SUBSET to the characters used on that page (no third-party CDN —
   same privacy redline as the latin faces above). No unicode-range: Latin/digits keep
   matching 'IBM Plex Sans' first (its ranges win); only Han glyphs fall through to SC.
   Re-subset (scripts/subset-sc.sh) if the zh-Hans copy changes. font-display: swap. */
@font-face { font-family: 'IBM Plex Sans SC'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/ibm-plex-sans-sc-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans SC'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/ibm-plex-sans-sc-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans SC'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/ibm-plex-sans-sc-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans SC'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/ibm-plex-sans-sc-700-normal.woff2') format('woff2'); }

/* ============================================================
   VaultSync — landing design system
   Tokens lifted from the iOS app's Theme.swift:
   teal #00897B (lifted #26C4B0 on dark) · navy #0D1B2A · slate #263238
   8pt soft grid · radii control 12 / card 16 / hero 28
   ============================================================ */

:root {
  /* brand */
  --navy: #0D1B2A;
  --navy-2: #13283C;
  --teal: #00897B;
  --teal-strong: #00756A;
  --teal-300: #26C4B0;
  --teal-050: #E3F2F0;

  /* semantic surfaces — LIGHT (default) */
  --bg: #F4F6F7;
  --surface: #FFFFFF;
  --surface-2: #FBFCFC;
  --ink: #0D1B2A;
  --text: #3C4752;
  --muted: #6B7782;
  --border: #E6EAEC;
  --border-strong: #D6DCDF;
  --code-bg: #0F2336;
  --code-text: #D7E3EA;

  /* status (icon + label + color, never color alone) */
  --success: #2E9E6B;
  --attention: #E0922F;
  --error: #D2453B;
  --info: #4E6FB5;

  /* radii + shadow */
  --r-control: 12px;
  --r-card: 16px;
  --r-hero: 28px;
  --shadow-sm: 0 1px 2px rgba(13,27,42,.06), 0 1px 3px rgba(13,27,42,.04);
  --shadow-md: 0 6px 20px rgba(13,27,42,.07), 0 2px 6px rgba(13,27,42,.05);
  --shadow-lg: 0 28px 64px rgba(13,27,42,.14), 0 10px 28px rgba(13,27,42,.08);

  --maxw: 1160px;
  --gutter: 24px;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* zh-Hans: Han glyphs render via IBM Plex Sans SC (appended to the stacks); Latin and
   digits stay on 'IBM Plex Sans' / 'IBM Plex Mono'. Higher specificity than :root, so it
   wins regardless of source order. Applied via <html lang="zh-Hans"> on /zh-Hans/. */
html[lang="zh-Hans"] {
  --font-sans: 'IBM Plex Sans', 'IBM Plex Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'IBM Plex Sans SC', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* GLOBAL DARK (Tweaks toggle) — everything flips */
[data-theme="dark"] {
  --bg: #0A1622;
  --surface: #0F2336;
  --surface-2: #0C1E2F;
  --ink: #EAF1F4;
  --text: #B9C6D0;
  --muted: #8497A4;
  --border: #21384C;
  --border-strong: #2C475F;
  --teal: #26C4B0;
  --teal-strong: #4FD6D3;
  --teal-050: #10302C;
  --code-bg: #081320;
  --code-text: #D7E3EA;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 28px 64px rgba(0,0,0,.55), 0 10px 28px rgba(0,0,0,.4);
}

/* Always-dark technical panels (independent of theme) */
.panel-dark {
  --bg: var(--navy);
  --surface: #122B40;
  --surface-2: #0F2336;
  --ink: #EAF1F4;
  --text: #B9C6D0;
  --muted: #8497A4;
  --border: #23394D;
  --border-strong: #30506A;
  --teal: #26C4B0;
  --teal-strong: #4FD6D3;
  --teal-050: #10302C;
  --code-bg: #081320;
  --code-text: #D7E3EA;
  --shadow-md: 0 6px 20px rgba(0,0,0,.35);
  --shadow-lg: 0 28px 64px rgba(0,0,0,.5);
  background: var(--navy);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; transition: background-color .35s ease; }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-strong);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--teal); display: inline-block; }
.section-head { max-width: 620px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); }
.lede { font-size: clamp(17px, 1.55vw, 20px); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  border-radius: 999px; padding: 14px 24px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .12s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 1px 2px rgba(0,137,123,.4); }
.btn-teal:hover { background: var(--teal-strong); box-shadow: 0 8px 24px rgba(0,137,123,.28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 5%, transparent); }
.btn-sm { padding: 9px 16px; font-size: 14.5px; }

/* App Store badge (drawn — mockup) */
.appstore {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 13px;
  padding: 10px 20px 10px 17px; transition: transform .12s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-md);
}
.appstore:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.appstore:active { transform: translateY(1px); }
.appstore svg { width: 26px; height: 26px; flex: none; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; white-space: nowrap; }
.appstore .as-top { font-size: 11px; letter-spacing: .01em; opacity: .9; }
.appstore .as-big { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
[data-theme="dark"] .appstore, .panel-dark .appstore { background: #fff; color: #000; }

/* ---------- chips / pills ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--text);
}
.chip svg { width: 17px; height: 17px; flex: none; color: var(--teal-strong); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 500; line-height: 1.2;
}
.status svg { width: 15px; height: 15px; flex: none; }
.status.is-yes { color: var(--success); }
.status.is-no { color: var(--muted); }
.status.is-warn { color: var(--attention); }
.status.is-info { color: var(--info); }

.tag-mono {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal-strong); background: var(--teal-050);
  padding: 5px 10px; border-radius: 7px; display: inline-block;
}

/* ---------- generic card ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--text); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-gh { display: inline-flex; align-items: center; gap: 7px; }
.nav-gh svg { width: 18px; height: 18px; }
.gh-star { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.nav-cta { margin-left: 4px; }
.nav-toggle { display: none; }
@media (max-width: 860px) {
  .nav-links a:not(.nav-cta), .nav-gh { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 7vw, 96px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(34px, 5.2vw, 60px); font-weight: 600;
  letter-spacing: -0.032em; line-height: 1.04;
}
.hero h1 .accent, .hero h1 em { color: var(--teal-strong); font-style: normal; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.55vw, 20px); color: var(--text); max-width: 30ch; }
.hero-cta { margin-top: 32px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-proof { margin-top: 30px; display: flex; flex-direction: column; gap: 11px; }
.hero-proof .chip { font-size: 14.5px; }

/* hero visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; z-index: 1; }
.hero-glow {
  position: absolute; inset: -10% -20%; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 50% at 60% 42%, color-mix(in oklab, var(--teal) 30%, transparent), transparent 70%);
  filter: blur(8px);
}
.dotgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 22px 22px; color: color-mix(in oklab, var(--muted) 35%, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 75%);
  mask-image: radial-gradient(60% 60% at 50% 45%, #000, transparent 75%);
}

/* phone bezel */
.phone {
  position: relative; z-index: 2; width: clamp(228px, 26vw, 300px);
  border-radius: 44px; padding: 11px;
  background: linear-gradient(160deg, #20303f, #0a131c);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.06);
}
.phone::after {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; background: #05080c; border-radius: 999px; z-index: 3;
}
.phone-screen { border-radius: 34px; overflow: hidden; background: #fff; aspect-ratio: 1186/2556; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone-float { animation: none; } }

/* HERO — technical (dark) direction */
.hero[data-hero="technical"] {
  background: var(--navy);
  --bg: var(--navy); --surface: #122B40; --ink: #EAF1F4; --text: #B9C6D0;
  --muted: #8497A4; --border: #23394D; --border-strong: #30506A;
  --teal: #26C4B0; --teal-strong: #4FD6D3; --teal-050: #10302C;
}
.hero[data-hero="technical"] .dotgrid { opacity: .6; color: rgba(120,150,170,.5); }
.hero[data-hero="technical"] .btn-ghost { color: #EAF1F4; border-color: #30506A; }
.hero[data-hero="technical"] .btn-ghost:hover { border-color: #EAF1F4; background: rgba(255,255,255,.06); }
.hero[data-hero="technical"]::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background:
    linear-gradient(rgba(120,150,170,.05) 1px, transparent 1px) 0 0/100% 64px,
    linear-gradient(90deg, rgba(120,150,170,.05) 1px, transparent 1px) 0 0/64px 100%;
  -webkit-mask-image: linear-gradient(#000, transparent 80%); mask-image: linear-gradient(#000, transparent 80%);
}

/* ============================================================
   FREE-CORE strip
   ============================================================ */
.freecore { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface); }
.freecore-inner { display: flex; align-items: center; gap: 18px; padding: 22px 0; flex-wrap: wrap; }
.freecore .pill {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--teal); padding: 6px 12px; border-radius: 8px; font-weight: 500; flex: none;
}
.freecore p { font-size: 16px; color: var(--text); }
.freecore b { color: var(--ink); font-weight: 600; }

/* ============================================================
   HOW IT WORKS (dark)
   ============================================================ */
.arch-figure {
  margin: 44px 0 8px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-hero); padding: clamp(20px, 4vw, 44px);
}
.arch-figure svg { width: 100%; height: auto; }
.how-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.how-col h3 { font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.how-col h3 svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.how-col p { font-size: 15.5px; color: var(--muted); }

/* ============================================================
   FEATURES
   ============================================================ */
.feat-split { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
.feat-list { display: flex; flex-direction: column; gap: 4px; }
.feat-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.feat-item:last-child { border-bottom: 0; }
.feat-ic {
  flex: none; width: 46px; height: 46px; border-radius: 13px;
  background: var(--teal-050); color: var(--teal-strong);
  display: grid; place-items: center;
}
.feat-ic svg { width: 23px; height: 23px; }
.feat-item h3 { font-size: 18px; margin-bottom: 5px; }
.feat-item p { font-size: 15px; color: var(--muted); }
.feat-step { font-family: var(--font-mono); font-size: 12px; color: var(--teal-strong); font-weight: 500; }

/* ============================================================
   COMPARISON
   ============================================================ */
.cmp-scroll { overflow-x: auto; margin-top: 40px; border-radius: var(--r-card); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); font-size: 14.5px; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cmp thead th { background: var(--surface-2); font-size: 13px; color: var(--muted); font-weight: 600; position: sticky; top: 0; }
.cmp thead th.is-us { color: var(--teal-strong); }
.cmp .col-feature { color: var(--ink); font-weight: 600; width: 30%; }
.cmp td.is-us { background: color-mix(in oklab, var(--teal) 6%, var(--surface)); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .brand-cell { display: flex; flex-direction: column; gap: 2px; }
.cmp .brand-cell b { font-size: 14.5px; color: var(--ink); font-weight: 600; }
.cmp .brand-cell.us b { color: var(--teal-strong); }
.cmp-note { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cmp-choose { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 22px; }
.cmp-choose h4 { font-size: 15px; margin-bottom: 7px; }
.cmp-choose.us h4 { color: var(--teal-strong); }
.cmp-choose p { font-size: 14.5px; color: var(--muted); }
.cmp-links { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; }
.cmp-links a { color: var(--teal-strong); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.cmp-links a:hover { gap: 10px; }

/* ============================================================
   CLOUD RELAY (dark)
   ============================================================ */
.relay-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.guarantee { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.guarantee .g {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 15px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-control);
}
.guarantee .g svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.guarantee .g .g-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guarantee .g.ok svg { color: var(--success); }
.guarantee .g.never svg { color: var(--error); }
.guarantee .g b { color: var(--ink); display: block; font-size: 15px; font-weight: 600; }
.guarantee .g span { color: var(--muted); font-size: 14px; display: block; margin-top: 4px; }

.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-hero); padding: 28px; box-shadow: var(--shadow-md); }
.price-card h3 { font-size: 19px; }
.price-rows { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-control); position: relative; }
.price-row.best { border-color: var(--teal); background: var(--teal-050); }
.price-row .plan { font-weight: 600; color: var(--ink); font-size: 15px; }
.price-row .amt { font-family: var(--font-mono); font-size: 22px; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.price-row .amt small { font-size: 13px; color: var(--muted); font-weight: 400; }
.best-badge { position: absolute; top: -11px; left: 18px; white-space: nowrap; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--teal); color: #fff; padding: 4px 9px; border-radius: 6px; }
.price-fine { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.code {
  background: var(--code-bg); border-radius: var(--r-control); border: 1px solid var(--border-strong);
  overflow: hidden; box-shadow: var(--shadow-md); margin-top: 28px;
}
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-bar .dots { display: flex; gap: 6px; }
.code-bar .dots i { width: 11px; height: 11px; border-radius: 999px; display: block; }
.code-bar .dots i:nth-child(1) { background: #ff5f56; }
.code-bar .dots i:nth-child(2) { background: #ffbd2e; }
.code-bar .dots i:nth-child(3) { background: #27c93f; }
.code-bar .copy { font-family: var(--font-mono); font-size: 12px; color: #9fb3c2; background: rgba(255,255,255,.07); border: 0; padding: 6px 12px; border-radius: 7px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.code-bar .copy:hover { background: rgba(255,255,255,.14); color: #fff; }
.code pre { margin: 0; padding: 18px 16px; overflow-x: auto; }
.code code { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; color: var(--code-text); white-space: pre; }
.code .tok-cmd { color: #6fd3d0; }
.code .tok-flag { color: #9fb3c2; }
.code .tok-edit { color: #ffd479; }
.code-edit-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.code-edit-note b { color: var(--ink); }

/* ============================================================
   HONEST iOS block
   ============================================================ */
.honest { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-hero); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.honest-top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.honest-top svg { width: 22px; height: 22px; color: var(--attention); }
.honest h3 { font-size: clamp(21px, 2.4vw, 27px); }
.honest-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; margin-top: 20px; }
.honest-cols p { font-size: 15.5px; color: var(--text); }
.honest-cols p b { color: var(--ink); font-weight: 600; }

/* ============================================================
   MAKER
   ============================================================ */
.maker { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); flex-wrap: wrap; }
.maker img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow-md); flex: none; }
.maker-txt { flex: 1; min-width: 280px; }
.maker-txt h3 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 10px; }
.maker-txt p { color: var(--muted); font-size: 16px; max-width: 60ch; }
.maker-links { display: flex; gap: 18px; margin-top: 16px; flex-wrap: wrap; }

/* ============================================================
   FINAL CTA (dark)
   ============================================================ */
.final { text-align: center; }
.final img.icon { width: 76px; height: 76px; border-radius: 18px; margin: 0 auto 26px; box-shadow: var(--shadow-lg); }
.final h2 { font-size: clamp(30px, 4.4vw, 52px); max-width: 16ch; margin: 0 auto; }
.final p { margin: 18px auto 0; color: var(--muted); max-width: 46ch; font-size: 18px; }
.final .hero-cta { justify-content: center; margin-top: 34px; }

/* ============================================================
   FOOTER (dark)
   ============================================================ */
.footer { padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand .brand { color: var(--ink); margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.foot-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.foot-col a { display: block; color: var(--text); font-size: 14.5px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--teal-strong); }
.foot-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-bottom .legal { font-size: 13px; color: var(--muted); max-width: 64ch; line-height: 1.6; }
.foot-meta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-priv { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.foot-priv svg { width: 15px; height: 15px; color: var(--success); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { order: -1; }
  .hero-sub { max-width: none; }
  .how-cols { grid-template-columns: 1fr; gap: 20px; }
  .feat-split { grid-template-columns: 1fr; }
  .feat-split .phone-wrap { display: none; }
  .relay-grid { grid-template-columns: 1fr; }
  .honest-cols { grid-template-columns: 1fr; }
  .cmp-note { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta { gap: 12px; }
  .btn, .appstore { width: 100%; }
  .freecore-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
