/* ============================================================
   BEWERBHELD — Design System
   Light-first, calm, premium. Dark mode for the editor.
   Principles extracted (not copied) from Arc, Linear, Notion,
   Vercel, ElevenLabs.
   ============================================================ */

/* Fonts are self-hosted — see assets/css/fonts.css (loaded first on every
   page). The old render-blocking `@import url(fonts.googleapis…)` here caused
   a Safari hard-refresh FOUC and was removed (§12ag).
   @view-transition was also removed: its cross-page cross-fade surfaced the
   half-painted new frame on reload, amplifying the same flash. */

/* ---------- TOKENS : LIGHT (default) ----------
   System DNA: COOL graphite chrome that recedes +
   WARM ivory paper that advances as the hero.
   One restrained IRIS accent — cursor, selection, focus, a single CTA.
   Hierarchy is carried by type, space & contrast — not color.            */
:root {
  /* Cool neutral chrome — the UI that disappears */
  --bg:            oklch(0.984 0.002 275);  /* page — faint cool */
  --bg-sunken:     oklch(0.968 0.003 275);  /* recessed wells */
  --surface:       oklch(1 0 0);            /* chrome cards */
  --surface-2:     oklch(0.974 0.002 275);  /* nested surface */
  --overlay:       oklch(0.984 0.002 275 / 0.72);

  --border:        oklch(0.918 0.003 275);  /* hairline */
  --border-strong: oklch(0.852 0.004 275);
  --ring:          oklch(0.635 0.127 66 / 0.35);

  --text:          oklch(0.23 0.012 280);   /* cool ink */
  --text-muted:    oklch(0.48 0.011 280);
  --text-faint:    oklch(0.62 0.009 280);
  --text-onaccent: oklch(0.99 0.005 80);

  /* Accent — warm ochre (#b8893a). */
  --accent:        oklch(0.635 0.127 66);
  --accent-hover:  oklch(0.575 0.127 66);
  --accent-press:  oklch(0.52 0.117 66);
  --accent-soft:   oklch(0.962 0.022 66);   /* tinted bg */
  --accent-softer: oklch(0.978 0.012 66);
  --accent-line:   oklch(0.875 0.052 66);
  --accent-text:   oklch(0.525 0.13 66);

  /* Document paper — WARM ivory, the one object that advances */
  --paper:         oklch(0.993 0.007 88);
  --paper-ink:     oklch(0.20 0.008 70);
  --paper-rule:    oklch(0.885 0.008 88);

  /* Functional */
  --warn:          oklch(0.70 0.13 70);
  --danger:        oklch(0.58 0.16 25);

  /* Radii */
  --r-xs: 5px;  --r-sm: 7px;  --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px;

  /* Shadows — soft, low, premium (never harsh) */
  --sh-xs: 0 1px 2px oklch(0.2 0.01 80 / 0.05);
  --sh-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06), 0 2px 6px oklch(0.2 0.01 80 / 0.05);
  --sh-md: 0 2px 4px oklch(0.2 0.01 80 / 0.05), 0 8px 24px oklch(0.2 0.01 80 / 0.08);
  --sh-lg: 0 4px 8px oklch(0.2 0.01 80 / 0.05), 0 24px 56px oklch(0.2 0.01 80 / 0.12);
  --sh-paper: 0 1px 2px oklch(0.2 0.01 80 / 0.04), 0 18px 50px oklch(0.2 0.01 80 / 0.13);

  /* Type */
  --font-sans: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-doc:  'Newsreader', Georgia, serif;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 64px;

  /* ── MOTION SYSTEM — canonical, shared across every page (2026-07-08).
     Identical scale to glass.css so the homepage speaks the same motion
     vocabulary as the rest of the product. Durations scale with interaction
     weight; easings encode intent. Gated by prefers-reduced-motion below. */
  --ease-out:    cubic-bezier(.22, 1, .36, 1);    /* decelerate — reveals, settles */
  --ease-swift:  cubic-bezier(.4, 0, .2, 1);      /* standard — hovers, state flips */
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);   /* gentle overshoot — pops, toggles */
  --dur-fast:    .12s;   /* taps / active-press */
  --dur-micro:   .18s;   /* hovers, focus, chips */
  --dur-base:    .24s;   /* dropdowns, small state */
  --dur-reveal:  .38s;   /* panels, accordion, modals */
}

/* ---------- TOKENS : DARK (editor focus / opt-in) ----------
   Cool charcoal workspace — Linear/Cursor energy.                */
[data-theme="dark"] {
  /* Liquid-glass palette — warm near-black + amber accent + translucent glass surfaces */
  --bg:            #0a0908;
  --bg-sunken:     #08070a;
  --surface:       rgba(255,255,255,0.05);
  --surface-2:     rgba(255,255,255,0.08);
  --overlay:       rgba(10,9,8,0.74);

  --border:        rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.17);
  --ring:          rgba(232,168,94,0.40);

  --text:          #f4f1ec;
  --text-muted:    #b9b2a8;
  --text-faint:    #8a8278;
  --text-onaccent: #2a1c0c;

  --accent:        #e8a85e;
  --accent-hover:  #f3bd78;
  --accent-press:  #c8843a;
  --accent-soft:   rgba(232,168,94,0.16);
  --accent-softer: rgba(232,168,94,0.09);
  --accent-line:   rgba(232,168,94,0.35);
  --accent-text:   #f0bb7c;

  --paper:         #f6f3ee;
  --paper-ink:     #2a2722;
  --paper-rule:    rgba(40,36,30,0.16);

  --sh-xs: 0 1px 2px rgba(0,0,0,0.35);
  --sh-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 6px rgba(0,0,0,0.32);
  --sh-md: 0 2px 4px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.5);
  --sh-lg: 0 4px 8px rgba(0,0,0,0.45), 0 24px 56px rgba(0,0,0,0.6);
  --sh-paper: 0 1px 2px rgba(0,0,0,0.45), 0 18px 50px rgba(0,0,0,0.65);
}

/* ---------- Liquid-glass atmosphere & glass-morphism (dark mode only) ---------- */
/* iOS Safari does not support background-attachment:fixed on any element that is
   inside a scroll container (i.e. body when overflow:hidden is set on html).
   The entire background property is silently dropped → white page on iPhone.
   Fix: solid fallback on body + position:fixed pseudo-element for the gradient. */
[data-theme="dark"] body {
  background-color: #0a0908; /* immediate dark fallback while ::after paints */
}
[data-theme="dark"] body::after {
  content: '';
  position: fixed; /* iOS-safe; works everywhere background-attachment:fixed doesn't */
  inset: 0;
  z-index: -2; /* behind .marketing-page::before grid (z-index:-1) and all content */
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -8%, rgba(232,168,94,.13), transparent 55%),
    radial-gradient(80% 50% at 50% 105%, rgba(200,132,58,.08), transparent 60%),
    linear-gradient(180deg, #0c0a09 0%, #0a0908 40%, #08070a 100%);
}
/* Tier 1 — full glass: floating UI (nav/dropdowns/modals) + key hero visual moments.
   These get the strongest blur/saturation since they're the "liquid glass" focal points. */
[data-theme="dark"] .login-modal-box,
[data-theme="dark"] .util-panel,
[data-theme="dark"] .account-menu-panel,
[data-theme="dark"] .doc__frame,
[data-theme="dark"] .hero__doc,
[data-theme="dark"] .appwin {
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09), var(--sh-md);
  border-color: var(--border-strong);
}
[data-theme="dark"] .appwin__bar,
[data-theme="dark"] .appside {
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

/* Tier 2 — light glass accent: ordinary cards/sections get a noticeable but not
   dominant frosted texture — more presence than a bare hint, short of full glass. */
[data-theme="dark"] .card,
[data-theme="dark"] .glass-card,
[data-theme="dark"] .trust,
[data-theme="dark"] .foot,
[data-theme="dark"] .step,
[data-theme="dark"] .pcard,
[data-theme="dark"] .ba-card {
  backdrop-filter: blur(15px) saturate(140%);
  -webkit-backdrop-filter: blur(15px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), var(--sh-sm);
}
[data-theme="dark"] .card {
  background: linear-gradient(160deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
}

/* Tier 3 — small surface accents: pills, badges, ghost buttons, kbd chips —
   subtle frosted backgrounds so even the small interactive bits feel "glass". */
[data-theme="dark"] .badge,
[data-theme="dark"] .kbd,
[data-theme="dark"] .ai-opt,
[data-theme="dark"] .btn--ghost,
[data-theme="dark"] .appwin__addr,
[data-theme="dark"] .navi a.is-active {
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  background: rgba(255,255,255,0.045);
}
[data-theme="dark"] .ai-opt.is-active,
[data-theme="dark"] .navi a.is-active {
  background: var(--accent-soft);
}

/* ---------- Liquid Glass — premium reflection & glow system ----------
   Evolves the existing tiered glass-morphism with: a cursor-tracked
   reflection sheen on key focal surfaces (--glass-x/--glass-y, set by
   site.js on .appwin / .hero__doc--main / .doc__frame only — "key
   moments", not every card, to keep perf/complexity sane on mobile),
   deeper layered shadows for an "ultra-premium slab" feel, frosted
   glass-pill nav links, and true glass buttons. Falls back gracefully
   to a fixed soft highlight position with no JS.                      */
:root { --glass-x: 30%; --glass-y: -8%; }

[data-theme="dark"] .glass-card,
[data-theme="dark"] .appwin,
[data-theme="dark"] .doc__frame,
[data-theme="dark"] .hero__doc--main {
  background-image:
    radial-gradient(440px circle at var(--glass-x) var(--glass-y), rgba(255,255,255,0.10), transparent 62%);
  background-blend-mode: screen;
}
[data-theme="dark"] .glass-card {
  background-color: transparent;
  background-image:
    radial-gradient(440px circle at var(--glass-x) var(--glass-y), rgba(255,255,255,0.09), transparent 62%),
    linear-gradient(160deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.024) 100%);
}
[data-theme="dark"] .glass-card:hover {
  background-image:
    radial-gradient(440px circle at var(--glass-x) var(--glass-y), rgba(255,255,255,0.13), transparent 60%),
    linear-gradient(160deg, oklch(0.73 0.118 67 / 0.14) 0%, rgba(255,255,255,0.04) 100%);
}
[data-theme="dark"] .appwin,
[data-theme="dark"] .doc__frame,
[data-theme="dark"] .hero__doc--main {
  background-color: var(--surface);
  transition: box-shadow 280ms ease, border-color 280ms ease, transform 280ms ease, background-image 80ms linear;
}
[data-theme="dark"] .appwin:hover,
[data-theme="dark"] .doc__frame:hover {
  border-color: rgba(232,168,94,0.30);
  box-shadow:
    0 0 0 1px rgba(232,168,94,0.10),
    0 28px 90px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.12);
}

/* Deepen the glass-card resting + hover shadow into a softer, larger,
   more "floating slab" silhouette — layered glow + inner highlight.   */
[data-theme="dark"] .glass-card {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    inset 0 -1px 0 rgba(255,255,255,0.025),
    0 18px 60px rgba(0,0,0,0.34);
}
[data-theme="dark"] .glass-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px var(--accent-line),
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 30px 90px rgba(0,0,0,0.46),
    0 0 60px rgba(232,168,94,0.10);
}

/* ---- Glass-pill nav links: frosted pill on hover/active ---- */
[data-theme="dark"] .nav__link {
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
[data-theme="dark"] .nav__link:hover {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px) saturate(130%);
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--text);
}
[data-theme="dark"] .nav__link.is-active {
  background: var(--accent-soft);
  color: var(--accent-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

/* ---- Header icon button sizes: unified with glass.css (40px round) ---- */
[data-theme="dark"] .util-btn {
  width: 40px; height: 40px;
  border-radius: 999px;
}
[data-theme="dark"] .nav__hamburger {
  width: 40px; height: 40px;
  border-radius: 999px;
}

/* ---- CTA pill: btn--sm becomes a pill in dark mode to match glass.css ---- */
[data-theme="dark"] .btn--sm {
  border-radius: 999px;
}

/* ---- Glass buttons: translucent warm-glass primary, frosted ghost ---- */
[data-theme="dark"] .btn--primary {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 58%, var(--accent-press) 100%);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -10px 18px rgba(0,0,0,0.10),
    0 10px 32px rgba(232,168,94,0.22);
  text-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
[data-theme="dark"] .btn--primary:hover {
  background: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent-hover) 58%, var(--accent) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -10px 18px rgba(0,0,0,0.08),
    0 14px 42px rgba(232,168,94,0.32);
  transform: translateY(-1px);
}
[data-theme="dark"] .btn--ghost {
  border-color: rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 28px rgba(0,0,0,0.28);
  transform: translateY(-1px);
}

/* ---- Glass orbs: very subtle floating light sources behind content ---- */
.glass-orb {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.16;
  will-change: transform;
}
.glass-orb--1 {
  top: -10%; left: -8%;
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, rgba(232,168,94,0.55), transparent 70%);
  animation: glass-orb-drift-1 46s ease-in-out infinite alternate;
}
.glass-orb--2 {
  bottom: -16%; right: -10%;
  width: 42vw; height: 42vw;
  background: radial-gradient(circle, rgba(200,132,58,0.45), transparent 70%);
  animation: glass-orb-drift-2 54s ease-in-out infinite alternate;
}
@keyframes glass-orb-drift-1 {
  from { transform: translate(0, 0); }
  to   { transform: translate(4vw, 5vh); }
}
@keyframes glass-orb-drift-2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(-3vw, -4vh); }
}
@media (prefers-reduced-motion: reduce) {
  .glass-orb { animation: none; }
}
@media (max-width: 760px) {
  .glass-orb { opacity: 0.10; filter: blur(64px); }
}
/* On touch/mobile devices, disable the keyframe drift animations on the orbs.
   filter:blur(90px) on animating elements creates large GPU offscreen render buffers
   that compete with scroll compositing. Static orbs still provide the ambient light
   effect; GSAP breathing animation is already gated to !isTouch in the page script. */
@media (pointer: coarse) {
  /* Disable orb animation on touch: no GSAP, no CSS keyframes, no compositor layer. */
  .glass-orb { animation: none; will-change: auto; filter: blur(60px); }
}

/* ---- Mobile: eliminate backdrop-filter on non-essential elements ---- */
/* iOS Safari has a strict GPU compositor layer budget. Each backdrop-filter element
   requires a separate compositing layer for the element AND the sampled content
   behind it. With 15+ elements all using backdrop-filter simultaneously (Tier 2+3),
   iOS exceeds this budget and either drops to slow software rendering (scroll freeze)
   or renders nothing. Fix: keep blur ONLY on Tier 1 overlay/floating UI (nav,
   modals, dropdowns — at most one visible at a time) and remove it from all cards
   and decorative small elements. Cards fall back to their rgba background-color. */
@media (max-width: 768px) {
  /* Tier 2 — cards: remove blur entirely */
  [data-theme="dark"] .glass-card,
  [data-theme="dark"] .appwin,
  [data-theme="dark"] .doc__frame,
  [data-theme="dark"] .trust,
  [data-theme="dark"] .foot,
  [data-theme="dark"] .step,
  [data-theme="dark"] .pcard,
  [data-theme="dark"] .ba-card,
  [data-theme="dark"] .card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Tier 3 — decorative accents: remove blur entirely */
  [data-theme="dark"] .badge,
  [data-theme="dark"] .kbd,
  [data-theme="dark"] .ai-opt,
  [data-theme="dark"] .btn--ghost,
  [data-theme="dark"] .appwin__addr,
  [data-theme="dark"] .navi a.is-active {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  /* Tier 1 — floating UI: reduce but keep (these appear one at a time) */
  [data-theme="dark"] .util-panel,
  [data-theme="dark"] .account-menu-panel,
  [data-theme="dark"] .mobile-menu,
  [data-theme="dark"] .login-modal-box {
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
  }
  [data-theme="dark"] .glass-card:hover { transform: translateY(-2px); }
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  font-feature-settings: "ss01", "cv01";
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
@keyframes bh-fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-up { animation: bh-fade-up .4s cubic-bezier(.2,.7,.2,1) both; }

/* ---------- TYPE PRIMITIVES ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}
.eyebrow--accent { color: var(--accent-text); }

.display {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}
.h1 { font-weight: 700; letter-spacing: -0.028em; line-height: 1.02; font-size: clamp(2rem, 4vw, 3rem); }
.h2 { font-weight: 600; letter-spacing: -0.022em; line-height: 1.08; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.h3 { font-weight: 600; letter-spacing: -0.018em; line-height: 1.2; font-size: 1.25rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); line-height: 1.55; letter-spacing: -0.012em; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; }

/* ---------- LAYOUT HELPERS ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 28px; }
.wrap-wide { max-width: 1320px; margin-inline: auto; padding-inline: 28px; }
/* Section spacing — two tiers */
.section         { padding-block: clamp(96px, 10vw, 160px); }
.section--compact{ padding-block: clamp(64px,  7vw, 110px); }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px;
  border-radius: var(--r-sm);
  font-weight: 500; font-size: 0.95rem; letter-spacing: -0.01em;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .08s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0.5px); }
/* Site-wide disabled/busy state — matches glass.css so async buttons dim consistently. */
.btn:disabled, .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.btn--primary { background: var(--accent); color: var(--text-onaccent); box-shadow: var(--sh-xs); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { background: var(--accent-press); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-faint); }
.btn--soft { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn--soft:hover { background: var(--surface); border-color: var(--border-strong); }
.btn--sm { height: 34px; padding: 0 13px; font-size: 0.875rem; border-radius: var(--r-xs); }
.btn--lg { height: 50px; padding: 0 24px; font-size: 1.02rem; }
.btn--block { width: 100%; justify-content: center; }

/* keyboard hint pill */
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  border: 1px solid var(--border-strong); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; color: var(--text-muted);
  background: var(--surface); line-height: 1.4;
}

/* ---------- CHIPS / BADGES ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font-size: 0.82rem; color: var(--text-muted); letter-spacing: -0.005em; white-space: nowrap;
}
.chip--accent { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-text); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-faint);
}
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); flex: none; }

/* ---------- CARD ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-xs);
}
.card--pad { padding: 24px; }

/* ---------- HAIRLINE ---------- */
.hr { height: 1px; background: var(--border); border: 0; }

/* ---------- LEGACY NAV (used by /cv/) ---------- */
body > .nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: var(--overlay); backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.nav__start { justify-self: start; }
.nav__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, var(--accent-hover), var(--accent-press));
  color: var(--text-onaccent);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 4px 12px -4px rgba(232,168,94,.6);
}
.brand__mark {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  background: var(--accent); color: var(--text-onaccent);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  box-shadow: var(--sh-xs);
}
.nav__links { display: flex; align-items: center; gap: 4px; justify-self: center; }
.nav__link {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: color .15s, background .15s, box-shadow .2s;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link.is-active {
  color: var(--accent-hover);
  background: var(--accent-soft);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.icon-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn svg { width: 18px; height: 18px; }
.hamburger { display: none; }
body > .nav .btn--sm {
  height: auto;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
}

/* ---------- UTIL ---------- */
.center { text-align: center; }
[hidden] { display: none !important; }

/* .grid-bg — neutralised; global grid is on body.marketing-page::before */
.grid-bg { display: none; }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ============================================================
   MARKETING ADDITIONS — 2026-06-03
   Hamburger nav, glass cards, cursor glow, scroll fade-ins,
   demo tabs, responsive polish
   ============================================================ */

/* ---- Active nav link ---- */
.nav__link.is-active { color: var(--accent-hover); font-weight: 500; }

/* ---- Hamburger button ---- */
.nav__hamburger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  transition: border-color .15s;
  padding: 0;
}
.nav__hamburger:hover { border-color: var(--border-strong); }
.nav__hamburger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile menu drawer ---- */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  bottom: 0;
  width: min(300px, 86vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 48;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(.25,.8,.25,1);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .mobile-menu { box-shadow: -8px 0 32px rgba(0,0,0,0.45); }
.mobile-menu.is-open { transform: none; }
.mobile-menu__overlay {
  display: none;
  position: fixed;
  inset: 0;                         /* full viewport — nav sits above at z-50 */
  background: rgba(8,7,10,0.72);    /* strong dim: was rgba(0,0,0,0.32) */
  z-index: 47;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  cursor: pointer;                  /* hint: click to close */
}
.mobile-menu__overlay.is-open { display: block; }
/* body.menu-open: overflow:hidden removed — JS now uses the position:fixed
   scroll-lock technique which is the only reliable iOS Safari fix.
   The class is kept for any external CSS that may reference it. */
body.menu-open { overflow: hidden; }

.mobile-menu__link {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background .12s, color .12s;
}
.mobile-menu__link:hover { background: var(--surface-2); color: var(--text); }
.mobile-menu__link.is-active { color: var(--accent-text); background: var(--accent-soft); }

.mobile-menu__cta {
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);    /* section separator after nav */
  border-bottom: 1px solid var(--border);
}
/* Scale back CTA visual dominance inside the drawer.
   Navigation is the primary purpose; the CTA is secondary.
   — button height 38px (was 42px): still tappable, clearly sub-nav
   — font-size 0.9rem: one step quieter without losing legibility
   — outer amber glow removed: gradient colour alone carries primary
     identity without radiating a light-source effect across the panel */
.mobile-menu__cta .btn {
  height: 38px;
  font-size: 0.9rem;
}
[data-theme="dark"] .mobile-menu__cta .btn--primary {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -8px 14px rgba(0,0,0,0.10);
}
.mobile-menu__util {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
}

/* ---- Cursor glow variable (kept for any future use, canvas handles the effect) ---- */
:root { --mouse-x: -200px; --mouse-y: -200px; }

/* ---- Single full-page background grid (20px, subtle) ---- */
.marketing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.05;
}
.marketing-page { position: relative; }

/* ---- Scroll fade-in (JS-driven, replaces CSS animation for new pages) ---- */
.scroll-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.scroll-fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .scroll-fade { opacity: 1; transform: none; transition: none; } }

/* ---- Featured pricing card dominance ---- */
.price.is-pop {
  transform: scale(1.05);
  transform-origin: top center;
  z-index: 1;
}
@media (max-width: 760px) {
  .price.is-pop { transform: none; }
}

/* ---- Glass Card System ---- */
.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow:
    0 0 0 1px var(--accent-line),
    0 12px 32px oklch(0.635 0.127 66 / 0.08),
    var(--sh-md);
  background: linear-gradient(160deg, var(--accent-softer) 0%, var(--surface) 55%);
}
[data-theme="dark"] .glass-card {
  background: linear-gradient(160deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.024) 100%);
}
[data-theme="dark"] .glass-card:hover {
  background: linear-gradient(160deg,
    oklch(0.73 0.118 67 / 0.14) 0%,
    rgba(255,255,255,0.04) 100%);
  border-color: var(--accent-line);
  box-shadow:
    0 0 0 1px var(--accent-line),
    0 24px 60px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
/* No-lift variant: glass bg/border/shadow without translate (accordion items) */
.glass-card--no-lift:hover { transform: none; }

/* Featured pricing card: retain accent border + compound scale+lift */
.price.is-pop.glass-card {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--sh-md);
}
.price.is-pop.glass-card:hover {
  transform: scale(1.05) translateY(-4px);
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 16px 48px oklch(0.635 0.127 66 / 0.14),
    var(--sh-lg);
}
@media (max-width: 760px) {
  .price.is-pop.glass-card:hover { transform: translateY(-4px); }
}

/* FAQ accordion glass-card: inner padding so content clears the border */
.faq-item-block.glass-card .faq-btn { padding-inline: 18px; }
.faq-item-block.glass-card .faq-answer > div { padding-inline: 18px; }

/* ---- Mac window dots hover ---- */
.tl { transition: background .15s ease; cursor: default; }
.tl:nth-child(1):hover { background: #ff5f57 !important; }
.tl:nth-child(2):hover { background: #febc2e !important; }
.tl:nth-child(3):hover { background: #28c840 !important; }

/* ---- ATS score panel ---- */
.ats-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
  background: var(--bg-sunken);
}
.ats-score-ring {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ats-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ats-label { font-size: 0.9rem; color: var(--text-muted); }
.ats-label strong { display: block; font-size: 1rem; color: var(--text); margin-bottom: 3px; }
.ats-bar-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ats-bar-row + .ats-bar-row { margin-top: 10px; }
.ats-bar-label { font-size: 0.84rem; color: var(--text-muted); }
.ats-bar-track { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.ats-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.ats-pct { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); }

/* ---- Anschreiben panel ---- */
.anschr-panel {
  padding: 28px;
  flex: 1;
  background: var(--bg-sunken);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Section spacing — defined above in layout helpers */

/* ---- Overflow safety ---- */
/* Use clip on body (not hidden) to avoid creating a BFC/scroll container on body.
   overflow:hidden on body makes body the scroll container, which on iOS Safari
   breaks position:fixed children (they scroll with the page) and compounded the
   background-attachment:fixed white-page bug. clip clips overflow identically
   but does NOT create a scroll container, so position:fixed + sticky work correctly. */
html { overflow-x: clip; }
body { overflow-x: clip; }

/* ---- Responsive for 3-col nav ---- */
@media (max-width: 820px) {
  .nav__inner { grid-template-columns: 1fr auto; }
  .hide-mobile { display: none !important; }
  /* Hide everything in nav__end EXCEPT the hamburger button */
  .nav__end > *:not(.nav__hamburger) { display: none !important; }
  .nav__hamburger { display: flex; }
}

/* ---- Reduced motion (global fallback) ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto !important; }
}

/* ---- Utility icon dropdown ---- */
.util-menu { position: relative; }

.util-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: none;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0; padding: 0;
  transition: border-color .15s, color .15s, background .15s;
}
.util-btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.util-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.util-btn svg { width: 18px; height: 18px; }
.util-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-text);
  background: var(--accent-soft);
}

.util-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 216px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  z-index: 100;
  padding: 6px;
}

.util-user-email {
  padding: 8px 10px 2px;
  font-size: 0.8rem;
  color: var(--text-faint);
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.util-user-remaining {
  padding: 0 10px 10px;
  font-size: 0.82rem;
  color: var(--accent-text);
  font-weight: 500;
}
.util-divider { height: 1px; background: var(--border); margin: 4px 0; }

.util-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px;
  font: inherit; font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: none;
  background: none; border: none;
  border-radius: var(--r-sm);
  cursor: pointer; text-align: left;
  transition: background .12s, color .12s;
}
.util-item:hover { background: var(--surface-2); color: var(--text); }
.util-item--danger { color: var(--danger); }
.util-item--danger:hover { background: oklch(0.96 0.018 25 / 0.6); color: var(--danger); }
[data-theme="dark"] .util-item--danger:hover { background: oklch(0.28 0.04 25 / 0.5); }

/* Primary account destination — Dashboard */
.util-item--primary { color: var(--text); font-weight: 500; }
.util-item--primary svg { color: var(--accent-text); }
.util-item--primary:hover { background: var(--accent-soft); color: var(--accent-text); }
.util-item--primary:hover svg { color: var(--accent-text); }
[data-theme="dark"] .util-item--primary { background: rgba(232,168,94,.08); color: #f4f1ec; }
[data-theme="dark"] .util-item--primary svg { color: #e8a85e; }
[data-theme="dark"] .util-item--primary:hover { background: rgba(232,168,94,.16); color: #f3bd78; }
[data-theme="dark"] .util-item--primary:hover svg { color: #f3bd78; }

/* Mobile drawer — primary account destination */
.mobile-menu__link--primary { color: var(--text) !important; font-weight: 600; }
.mobile-menu__link--primary::after { content: '→'; margin-left: auto; opacity: 0.5; font-size: 0.88em; transition: opacity .12s, transform .12s; }
.mobile-menu__link--primary:hover::after { opacity: 1; transform: translateX(3px); }
[data-theme="dark"] .mobile-menu__link--primary { background: rgba(232,168,94,.06); border-left: 2px solid rgba(232,168,94,.45); padding-left: 18px; }
[data-theme="dark"] .mobile-menu__link--primary:hover { background: rgba(232,168,94,.12) !important; color: #f3bd78 !important; }

.util-label {
  padding: 8px 10px 4px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint);
}
.util-row { display: flex; gap: 4px; padding: 0 6px 4px; }

.util-pill {
  flex: 1; height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: none; color: var(--text-muted);
  font: inherit; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; padding: 0;
  transition: background .12s, color .12s, border-color .12s;
}
.util-pill:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.util-pill.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Account section — section separator when visible */
#mobileAccountSection { border-top: 1px solid var(--border); }

/* Mobile menu utility sections */
.mobile-menu__section-label {
  padding: 10px 20px 4px;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint);
}
.mobile-menu__info {
  padding: 2px 20px;
  font-size: 0.84rem; color: var(--text-faint); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mobile-menu__pill-row {
  display: flex; gap: 8px;
  padding: 8px 20px 16px;
}
.mobile-menu__pill-row .util-pill { flex: 0 0 auto; min-width: 54px; }
.mobile-menu__util { border-top: 1px solid var(--border); margin-top: 8px; }
.mobile-menu__util-group + .mobile-menu__util-group { border-top: 1px solid var(--border); }
.mobile-menu__link--danger {
  color: var(--danger) !important;
  width: 100%; text-align: left;
  background: none; border: none;
  font: inherit; cursor: pointer;
}

/* Mobile menu (.m-menu) — canonical component moved to public-header.css,
   which loads after this file on every public page. */

/* ---- Skip link (accessibility) ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--text-onaccent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--r-sm);
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---- Focus visible (ensure present) ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---- FAQ page accordion (separate from .qa) ---- */
.faq-accordion { max-width: 760px; margin: 48px auto 0; }
.faq-item-block { margin-bottom: 6px; }
.faq-item-block:last-child { margin-bottom: 0; }
.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  letter-spacing: -0.01em;
  transition: color .15s;
}
.faq-btn:hover { color: var(--accent-text); }
.faq-btn .faq-pm {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  color: var(--text-faint);
  transition: transform .25s ease, color .15s;
}
.faq-btn .faq-pm::before,
.faq-btn .faq-pm::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.faq-btn .faq-pm::before { top: 9px; left: 2px; right: 2px; height: 1.5px; }
.faq-btn .faq-pm::after { left: 9px; top: 2px; bottom: 2px; width: 1.5px; transition: transform .25s ease; }
.faq-item-block.is-open .faq-btn .faq-pm { color: var(--accent); }
.faq-item-block.is-open .faq-btn .faq-pm::after { transform: rotate(90deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.faq-answer > div { padding: 0 0 22px; max-width: 62ch; }
.faq-item-block.is-open .faq-answer { max-height: 400px; }

/* ---- How it works page step connectors ---- */
.hiw-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 48px auto 0;
}
.hiw-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  align-items: flex-start;
}
.hiw-step__n {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-onaccent);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.hiw-step__body h3 { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; }
.hiw-step__body p { color: var(--text-muted); font-size: 0.95rem; margin-top: 6px; line-height: 1.6; max-width: 52ch; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-faint);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--accent-text); }
.breadcrumb__sep { color: var(--border-strong); }
