/* Brand type system (shared with the extension): Fraunces (editorial serif)
   for headings, Spline Sans for body, Spline Sans Mono for accents. Fonts are
   self-hosted in assets/fonts/ so pages make no external requests. Variable
   fonts: Fraunces carries an optical-size + weight axis; Spline carries weight. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext.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: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spline Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/splinesans-latin-ext.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: 'Spline Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/splinesans-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/splinesansmono-latin-ext.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: 'Spline Sans Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/splinesansmono-latin.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: oklch(0.985 0.004 80);
  --bg-elevated: oklch(0.995 0.003 80);
  --surface: oklch(0.97 0.006 80);
  --surface-strong: oklch(0.94 0.008 80);
  --card: oklch(0.998 0.002 80);
  --text: oklch(0.24 0.01 80);
  --text-muted: oklch(0.46 0.012 80);
  --text-soft: oklch(0.57 0.01 80);
  --border: oklch(0.88 0.008 80);
  --border-soft: oklch(0.91 0.006 80);

  /* One locked accent: a deep teal-green that also carries the privacy story. */
  --accent: oklch(0.52 0.088 178);
  --accent-strong: oklch(0.43 0.092 180);
  --accent-soft: oklch(0.95 0.03 178);
  --accent-ring: oklch(0.52 0.088 178 / 0.35);

  /* Semantic pair for the "without it / with it" comparison only. */
  --warn-soft: oklch(0.965 0.018 40);
  --warn-border: oklch(0.9 0.03 40);

  --mark-bg: oklch(0.52 0.09 178 / 0.16);
  --mark-text: oklch(0.36 0.08 180);

  --header-bg: oklch(0.985 0.004 80 / 0.82);
  --header-border: oklch(0.9 0.006 80 / 0.8);

  --band-bg: oklch(0.25 0.012 180);
  --band-text: oklch(0.96 0.006 80);
  --band-muted: oklch(0.82 0.01 80);

  --shadow: oklch(0.35 0.02 80 / 0.07);
  --shadow-strong: oklch(0.35 0.02 80 / 0.12);
  --highlight: oklch(1 0 0 / 0.6);

  /* Tinted, single-light-source shadow scale (warm neutral hue 80). */
  --shadow-sm: 0 1px 2px oklch(0.3 0.02 80 / 0.05), 0 2px 6px oklch(0.3 0.02 80 / 0.05);
  --shadow-md: 0 2px 6px oklch(0.3 0.02 80 / 0.06), 0 14px 34px oklch(0.3 0.02 80 / 0.09);
  --shadow-lg: 0 6px 18px oklch(0.3 0.02 80 / 0.08), 0 34px 72px oklch(0.3 0.02 80 / 0.14);
  --glow-accent: 0 10px 30px oklch(0.43 0.09 180 / 0.24);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
}

:root[data-theme="dark"] {
    --bg: oklch(0.185 0.005 80);
    --bg-elevated: oklch(0.215 0.006 80);
    --surface: oklch(0.235 0.006 80);
    --surface-strong: oklch(0.285 0.008 80);
    --card: oklch(0.235 0.007 80);
    --text: oklch(0.94 0.006 80);
    --text-muted: oklch(0.73 0.008 80);
    --text-soft: oklch(0.6 0.008 80);
    --border: oklch(0.32 0.008 80);
    --border-soft: oklch(0.28 0.007 80);

    --accent: oklch(0.76 0.1 178);
    --accent-strong: oklch(0.84 0.11 178);
    --accent-soft: oklch(0.32 0.045 178);
    --accent-ring: oklch(0.76 0.1 178 / 0.4);

    --warn-soft: oklch(0.28 0.03 40);
    --warn-border: oklch(0.36 0.05 40);

    --mark-bg: oklch(0.76 0.1 178 / 0.22);
    --mark-text: oklch(0.86 0.09 178);

    --header-bg: oklch(0.185 0.005 80 / 0.82);
    --header-border: oklch(0.3 0.008 80 / 0.8);

    --band-bg: oklch(0.16 0.006 80);
    --band-text: oklch(0.95 0.006 80);
    --band-muted: oklch(0.72 0.008 80);

    --shadow: oklch(0 0 0 / 0.4);
    --shadow-strong: oklch(0 0 0 / 0.55);
    --highlight: oklch(1 0 0 / 0.06);

    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4), 0 2px 6px oklch(0 0 0 / 0.35);
    --shadow-md: 0 2px 8px oklch(0 0 0 / 0.4), 0 16px 38px oklch(0 0 0 / 0.5);
    --shadow-lg: 0 8px 24px oklch(0 0 0 / 0.45), 0 40px 80px oklch(0 0 0 / 0.6);
    --glow-accent: 0 12px 34px oklch(0.76 0.1 178 / 0.24);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip; /* contain decorative bleed without breaking the sticky header */
}

body {
  margin: 0;
  font-family: "Spline Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* Editorial serif for all display text: headings, the brand wordmark, and the
   titles/wordmark inside the product-preview mock (so it mirrors the extension). */
h1, h2, h3, h4, h5, h6,
.brand span,
.mock-logo span,
.mock-result strong {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-optical-sizing: auto;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in oklch, var(--accent) 24%, transparent);
  color: var(--text);
}

p { text-wrap: pretty; }

/* Anchor targets clear the sticky header. */
[id] { scroll-margin-top: 92px; }

/* Numeric elements use tabular figures so prices and stats stay aligned. */
.price,
.stat strong,
.step-num,
.mono {
  font-variant-numeric: tabular-nums;
}

/* Fixed, subtle film grain to break digital flatness. Never intercepts input. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] body::before { opacity: 0.04; }
:root[data-theme="dark"] ::selection { background: color-mix(in oklch, var(--accent) 30%, transparent); }

.mono {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
}

.container {
  width: min(calc(100% - clamp(32px, 5vw, 40px)), var(--max));
  margin: 0 auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: inset 0 1px 0 var(--highlight);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand span {
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand span {
  font-size: clamp(0.84rem, 0.7rem + 0.9vw, 0.98rem);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.15s ease;
}

/* When the full nav can't fit (long languages), the secondary text links
   collapse cleanly; they remain reachable in the footer. Set by i18n.js. */
.header-inner.nav-tight .nav > a:not(.btn) {
  display: none;
}

.nav a:hover { color: var(--text); }
.nav a:not(.btn)[aria-current="page"] { color: var(--accent-strong); font-weight: 600; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.25s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 0.06s;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--glow-accent);
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px oklch(0.43 0.09 180 / 0.32);
}

:root[data-theme="dark"] .btn-primary:hover { box-shadow: 0 18px 44px oklch(0.76 0.1 178 / 0.32); }

:root[data-theme="dark"] .btn-primary {
  color: oklch(0.16 0.01 80);
  box-shadow: 0 8px 22px oklch(0 0 0 / 0.45);
}
:root[data-theme="dark"] .btn-primary:hover { color: oklch(0.14 0.01 80); }

.site-header .btn-primary {
  color: #fff; /* override .nav a (higher specificity) so the label stays readable on teal */
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.15;
  width: auto;
  min-width: 0;
  max-width: none;
}

.site-header .btn-primary:hover {
  color: #fff;
}

:root[data-theme="dark"] .site-header .btn-primary,
:root[data-theme="dark"] .site-header .btn-primary:hover {
  color: oklch(0.16 0.01 80);
}

.cta-band .btn-primary {
  background: #fff;
  color: oklch(0.4 0.092 180); /* fixed dark teal: button bg is always white in both modes */
  box-shadow: 0 8px 24px oklch(0.1 0.02 80 / 0.3);
}

.cta-band .btn-primary:hover {
  background: oklch(0.96 0.01 178);
  color: oklch(0.34 0.09 180);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-large {
  padding: 15px 28px;
  font-size: 1rem;
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: clamp(0.72rem, 0.64rem + 0.35vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  max-width: 100%;
}

:root[data-theme="dark"] .eyebrow { color: var(--accent-strong); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 76px 0 52px;
  isolation: isolate;
}

/* Ambient light: a soft, single-source teal glow behind the product panel. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -8%;
  right: 0;
  width: 56%;
  height: 90%;
  background: radial-gradient(circle at 62% 42%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.3rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  max-width: 34rem;
  margin: 0 0 28px;
  font-size: clamp(0.98rem, 0.92rem + 0.35vw, 1.12rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 10px 18px;
  color: var(--text-soft);
  font-size: clamp(0.84rem, 0.8rem + 0.2vw, 0.92rem);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ---------- Product preview panel (illustrative, not a screenshot) ---------- */

.product-shot {
  position: relative;
}

.product-frame {
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow:
    var(--shadow-lg),
    0 0 60px oklch(0.52 0.088 178 / 0.08),
    0 1px 0 var(--highlight) inset;
}

:root[data-theme="dark"] .product-frame {
  box-shadow:
    var(--shadow-lg),
    0 0 70px oklch(0.76 0.1 178 / 0.12),
    0 1px 0 var(--highlight) inset;
}

/* Real product screenshots sit flush inside the frame. */
.product-frame .shot {
  display: block;
  width: 100%;
  height: auto;
}

/* Popup gallery: the four toolbar-popup screens shown side by side, each with a
   short caption, so a reader sees everything the popup puts one click away. */
.popup-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.5vw, 52px);
  /* Two per row and capped so each popup renders near its true on-screen size,
     which keeps the small popup text readable at a glance. */
  max-width: 900px;
  margin: clamp(30px, 4vw, 48px) auto 0;
  align-items: start;
}
.popup-card { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 20px); }
.popup-frame {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg), 0 1px 0 var(--highlight) inset;
}
.popup-frame img { display: block; width: 100%; height: auto; }
.popup-cap h3 { margin: 0 0 6px; font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.2rem); }
.popup-cap p { margin: 0; color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
@media (max-width: 620px) {
  .popup-gallery { grid-template-columns: 1fr; max-width: 380px; }
}

/* Product tour: a short caption, then a large full-width screenshot so the UI
   detail stays readable while scrolling. */
.showcase {
  display: grid;
  gap: clamp(56px, 8vw, 100px);
}
.showcase-copy {
  max-width: 42rem;
  margin: 0 auto clamp(22px, 3vw, 34px);
  text-align: center;
}
.showcase-eyebrow {
  font-size: clamp(0.72rem, 0.64rem + 0.35vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-strong);
  margin: 0 0 10px;
}
.showcase-copy h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.showcase-copy p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}
.showcase-media { width: 100%; }

/* Two-up checklist under the sessions intro, stacking on small screens. */
.sessions-points {
  grid-template-columns: 1fr 1fr;
  gap: 12px 30px;
}
@media (max-width: 640px) {
  .sessions-points { grid-template-columns: 1fr; }
}

.mock-app {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 400px;
}

.mock-sidebar {
  padding: 20px 16px;
  border-right: 1px solid var(--border-soft);
  background: var(--surface);
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.88rem;
  font-weight: 700;
}

.mock-logo img {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.mock-nav {
  display: grid;
  gap: 4px;
}

.mock-nav-item {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.mock-nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

.mock-main {
  padding: 22px 22px 26px;
}

.mock-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.mock-results {
  display: grid;
  gap: 10px;
}

.mock-result {
  padding: 13px 15px;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: var(--card);
}

.mock-result strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.mock-result p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.mock-result mark {
  background: var(--mark-bg);
  color: var(--mark-text);
  border-radius: 3px;
  padding: 0 3px;
}

/* ---------- Trust strip (plain, not carded) ---------- */

.trust-strip {
  padding: 20px 0 8px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}

.trust-card {
  padding: 18px 0 0;
  border-top: 2px solid var(--accent);
}

.trust-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.trust-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section-header {
  max-width: 42rem;
  margin-bottom: clamp(36px, 5vw, 52px);
}

.section-header h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Problem comparison ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.problem-card.bad {
  background: var(--warn-soft);
  border-color: var(--warn-border);
}

.problem-card.good {
  background: var(--accent-soft);
  border-color: color-mix(in oklch, var(--accent) 40%, transparent);
}

.problem-card h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.problem-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.problem-card li + li { margin-top: 8px; }

/* ---------- Features (icon-led, borderless, with rhythm) ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 40px;
}

.feature-card {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  margin-bottom: 16px;
}

.feature-icon svg { display: block; }

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Steps (connected timeline) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

:root[data-theme="dark"] .step-num { color: oklch(0.16 0.01 80); }

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 34px;
  right: -28px;
  height: 2px;
  background: var(--border);
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- Privacy panel ---------- */

.privacy-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent);
  background:
    radial-gradient(circle at top right, color-mix(in oklch, var(--accent) 14%, transparent), transparent 46%),
    var(--accent-soft);
}

.privacy-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.privacy-panel p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.privacy-list {
  display: grid;
  gap: 10px;
}

.privacy-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.privacy-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.privacy-stats {
  display: grid;
  gap: 12px;
}

.stat {
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid color-mix(in oklch, var(--accent) 24%, transparent);
  box-shadow: var(--shadow-sm);
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  color: var(--accent-strong);
}

.stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Pricing ---------- */

.pricing-wrap {
  display: grid;
  place-items: center;
}

.pricing-card {
  width: min(100%, 520px);
  padding: 38px 34px 34px;
  border-radius: 24px;
  border: 1px solid color-mix(in oklch, var(--accent) 20%, var(--border));
  background: var(--bg-elevated);
  box-shadow:
    var(--shadow-lg),
    0 0 50px oklch(0.52 0.088 178 / 0.06),
    inset 0 1px 0 var(--highlight);
  text-align: center;
}

.pricing-card .eyebrow {
  margin-bottom: 16px;
}

.pricing-card h2 {
  margin: 0 0 8px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.pricing-card .price {
  margin: 0 0 8px;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.pricing-card .price-note {
  margin: 0 0 24px;
  color: var(--text-muted);
}

.pricing-features {
  display: grid;
  gap: 10px;
  text-align: left;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.pricing-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.94rem;
}

.pricing-features svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-footnote {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

/* ---------- FAQ (divided list, not cards) ---------- */

.faq-grid {
  display: grid;
  gap: 0;
  max-width: 760px;
  border-top: 1px solid var(--border);
}

.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- Micro-interactions ---------- */

.feature-card,
.feature-icon,
.trust-card,
.faq-item h3,
.mock-result,
.stat {
  transition: border-color 0.25s var(--ease-out), transform 0.25s var(--ease-spring),
    background 0.25s ease, color 0.2s ease, box-shadow 0.25s var(--ease-out);
}

.feature-card:hover { border-top-color: var(--accent); }
.feature-card:hover .feature-icon { transform: translateY(-2px) scale(1.05); }

.trust-card:hover { transform: translateY(-2px); }

.faq-item:hover h3 { color: var(--accent-strong); }

.mock-result:hover {
  border-color: color-mix(in oklch, var(--accent) 40%, var(--border-soft));
  box-shadow: var(--shadow-sm);
}

/* ---------- CTA band ---------- */

.cta-band {
  margin: 56px 0 0;
  padding: 48px;
  border-radius: 24px;
  background: var(--band-bg);
  color: var(--band-text);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.cta-band p {
  margin: 0 auto 22px;
  max-width: 34rem;
  color: var(--band-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-links a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

.footer-cookie-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-cookie-link:hover { color: var(--text); }

/* ---------- Cookie consent banner ---------- */

.consent {
  position: fixed;
  left: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  z-index: 60;
  width: min(420px, calc(100% - 32px));
  padding: 20px 22px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out);
}

.consent-show {
  opacity: 1;
  transform: translateY(0);
}

.consent-text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.consent-text a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.consent .btn {
  padding: 9px 18px;
  font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; }
}

/* ---------- Legal pages ---------- */

.legal-main {
  padding: 56px 0 80px;
}

.legal-doc {
  max-width: 720px;
  margin: 0 auto;
}

.legal-doc h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 32px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.legal-doc h2 {
  margin: 32px 0 10px;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.legal-doc p {
  margin: 0 0 14px;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-doc li + li {
  margin-top: 8px;
}

.legal-doc a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc a:hover {
  color: var(--accent);
}

.pricing-footnote a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing-footnote a + a {
  margin-left: 14px;
}

.pricing-footnote a:hover {
  color: var(--accent);
}

/* ---------- Language switch ---------- */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.2s var(--ease-spring);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
}

.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { display: block; }
.theme-toggle .theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-toggle .theme-icon-dark { display: block; }

.lang-switch {
  position: relative;
  font-family: "Spline Sans", system-ui, -apple-system, sans-serif; /* override .mono on the container */
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-current:hover {
  color: var(--text);
  border-color: var(--accent);
}

.lang-current .lang-globe { flex-shrink: 0; }
.lang-current .lang-current-label { white-space: nowrap; }

.lang-current .lang-chev {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.lang-current[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 210px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 44px var(--shadow-strong);
  max-height: min(70vh, 440px);
  overflow-y: auto;
}

.lang-menu[hidden] { display: none; } /* display:grid above would otherwise defeat the hidden attribute */

.lang-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background 0.12s ease, color 0.12s ease;
}

.lang-menu a:hover { background: var(--surface); color: var(--text); }

.lang-menu a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}

/* ---------- Motion: subtle scroll reveal (progressive disclosure) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance: content rises in a gentle stagger once strings are ready. */
  html.i18n-ready .hero-copy > *,
  html.i18n-ready .product-shot {
    animation: hero-rise 0.7s var(--ease-out) both;
  }
  html.i18n-ready .hero-copy > *:nth-child(2) { animation-delay: 0.06s; }
  html.i18n-ready .hero-copy > *:nth-child(3) { animation-delay: 0.12s; }
  html.i18n-ready .hero-copy > *:nth-child(4) { animation-delay: 0.18s; }
  html.i18n-ready .hero-copy > *:nth-child(5) { animation-delay: 0.24s; }
  html.i18n-ready .product-shot { animation-delay: 0.14s; animation-duration: 0.85s; }

  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Barely-there float on the product panel for a sense of life. */
  .product-frame { animation: panel-float 7s ease-in-out 1.2s infinite; }
  @keyframes panel-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
  }

  /* Scroll-reveal for sections below the fold. */
  @supports (animation-timeline: view()) {
    .trust-card,
    .feature-card,
    .step,
    .problem-card,
    .faq-item,
    .pricing-card,
    .privacy-panel,
    .cta-band {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }

  @keyframes reveal-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav > a:not(.btn) {
    display: none;
  }

  /* Collapse the language switch to a compact globe button, keep it usable on mobile. */
  .lang-current .lang-current-label,
  .lang-current .lang-chev {
    display: none;
  }

  .lang-current {
    padding: 8px;
  }

  .header-inner {
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .nav {
    flex-shrink: 0;
    gap: 10px;
  }

  .site-header .btn-primary {
    padding: 9px 15px;
    font-size: 0.84rem;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .problem-grid,
  .privacy-panel,
  .mock-app {
    grid-template-columns: 1fr;
  }

  .mock-sidebar {
    display: none;
  }

  .feature-grid,
  .steps,
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid { gap: 4px 32px; }

  .step:nth-child(odd)::before { display: none; }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 48px;
  }

  .feature-grid,
  .steps,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .step::before { display: none !important; }

  .cta-band {
    padding: 32px 24px;
    margin-top: 40px;
  }
}

@media (max-width: 400px) {
  .hero-copy h1 {
    font-size: clamp(1.85rem, 6.8vw, 2.05rem);
  }

  .site-header .btn-primary {
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  .brand span {
    font-size: 0.82rem;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .btn-large {
    padding: 14px 22px;
    font-size: 0.95rem;
  }

  .site-header .btn-primary {
    padding: 10px 16px;
    font-size: 0.86rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand {
    gap: 10px;
  }

  /* Logo-only on the smallest screens so the header controls never crowd the wordmark. */
  .brand span {
    display: none;
  }

  .theme-toggle {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .hero-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (min-width: 1101px) and (max-width: 1280px) {
  .nav {
    gap: 18px;
  }

  .nav a {
    font-size: 0.88rem;
  }

  .site-header .btn-primary {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

html:not(.i18n-ready) body { opacity: 0; }
html.i18n-ready body { opacity: 1; transition: opacity 0.15s ease; }
