/* ============================================================
   Rezgen.app — brand typeface (self-hosted Inter, variable)
   Loaded here so every page that links landing.css gets it with no
   third-party request. Paths are relative to this file (assets/css/).
   ============================================================ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
}

/* ============================================================
   Rezgen.app — design tokens
   ============================================================ */
:root {
  color-scheme: light;

  /* Neutrals + surfaces — matched to the app (assets/css/app.css):
     soft cool blue-gray base (#f6f8fb) rather than the lighter blue it used before. */
  --bg: #f6f8fb;
  --bg-alt: #eaf0f7;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #e6edf6;
  --surface-ink: #ffffff;

  --ink: #151a24;        /* app --app-text */
  --ink-2: #2a3850;
  --muted: #667085;      /* app --app-muted */
  --muted-2: #8492a6;

  --line: rgba(20, 28, 40, 0.10);        /* app border family (#d7dfea) */
  --line-strong: rgba(20, 28, 40, 0.20); /* app --app-border-strong (#b9c5d4) */

  /* Brand — anchored to the app's steel-blue (#256fb8 / #174e84) and the logo
     gradient (steel-blue #2f6fa3 -> teal #27a08a). */
  --brand: #256fb8;       /* app --app-blue */
  --brand-2: #4f93cc;
  --brand-3: #174e84;     /* app --app-blue-dark — eyebrows, headings, links */
  --brand-glow: rgba(37, 111, 184, 0.40);
  --brand-ink: #ffffff;   /* text that sits on the primary/brand gradient (now steel-blue) */

  --accent: #13795b;      /* app --app-green */
  --accent-2: #b8761a;
  --violet: #6c5ce7;
  --danger: #9f1f1f;      /* app --app-danger-text */
  --warning: #7a5300;     /* app --app-warning-text */

  /* Shadows — app's cool blue-gray tint (rgba(29,41,57,...)) for a shared sense of depth. */
  --shadow-lg: 0 30px 70px -28px rgba(29, 41, 57, 0.28), 0 8px 24px -12px rgba(29, 41, 57, 0.16);
  --shadow-md: 0 14px 36px -18px rgba(29, 41, 57, 0.20), 0 4px 14px -8px rgba(29, 41, 57, 0.12);
  --shadow-sm: 0 4px 14px -8px rgba(29, 41, 57, 0.16);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --max: 1240px;
  --header-bg: rgba(246, 248, 251, 0.78); /* app bg, translucent */
  --focus-ring: 0 0 0 3px rgba(37, 111, 184, 0.45); /* app focus ring hue */

  /* Gradients — steel-blue ramp + the literal logo gradient for accents.
     The primary button now matches the app: deep steel-blue with WHITE text. */
  --grad-brand: linear-gradient(135deg, #4f93cc 0%, #256fb8 50%, #174e84 100%);
  --grad-accent: linear-gradient(135deg, #2f6fa3 0%, #2f8f7a 55%, #27a08a 100%); /* logo gradient */
  --grad-primary-btn: linear-gradient(135deg, #3f8fcf 0%, #256fb8 54%, #174e84 100%);
  --grad-primary-btn-hover: linear-gradient(135deg, #4a98d4 0%, #2c79c0 54%, #1b5793 100%);
  --grad-accent-hover: linear-gradient(135deg, #3a7faf 0%, #2f8f7a 58%, #1f8773 100%);
  --grad-text-accent: linear-gradient(120deg, #2f6fa3 0%, #27a08a 100%); /* logo gradient */
  --grad-ribbon: linear-gradient(135deg, rgba(37, 111, 184, 0.16), rgba(39, 160, 138, 0.14));

  /* Atmospheric overlays */
  --hero-floor: radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%);

  /* Fluid type */
  --fs-xs: clamp(0.75rem, 0.71rem + 0.18vw, 0.82rem);
  --fs-sm: clamp(0.82rem, 0.78rem + 0.2vw, 0.92rem);
  --fs-base: clamp(0.95rem, 0.91rem + 0.22vw, 1.05rem);
  --fs-lg: clamp(1.05rem, 0.99rem + 0.32vw, 1.2rem);
  --fs-xl: clamp(1.18rem, 1.08rem + 0.55vw, 1.45rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl: clamp(1.9rem, 1.5rem + 1.8vw, 2.7rem);
  --fs-4xl: clamp(2.5rem, 1.9rem + 3vw, 4rem);
  --fs-display: clamp(2.5rem, 1.7rem + 4.4vw, 4.6rem);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;

  --ease: cubic-bezier(0.22, 0.7, 0.32, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #040814;
  --bg-alt: #070e1d;
  --surface: #0d1828;
  --surface-2: #122236;
  --surface-3: #1a2c46;
  --surface-ink: #0d1828;

  --ink: #f3f7fd;
  --ink-2: #d6e1ee;
  --muted: #94a6bd;
  --muted-2: #6f8298;

  --line: rgba(176, 206, 226, 0.12);
  --line-strong: rgba(176, 206, 226, 0.26);

  --brand: #6fb8dc;
  --brand-2: #3f8eb8;
  --brand-3: #a6cee2;
  --brand-glow: rgba(111, 184, 220, 0.5);
  --brand-ink: #04101e;

  --accent: #4ed1a5;
  --accent-2: #f4bd67;
  --violet: #a78bfa;
  --danger: #ff8b86;
  --warning: #ffd47c;

  --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.7), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.55), 0 4px 14px -8px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 14px -8px rgba(0, 0, 0, 0.45);

  --header-bg: rgba(4, 8, 20, 0.78);
  --focus-ring: 0 0 0 3px rgba(111, 184, 220, 0.5);

  --grad-brand: linear-gradient(135deg, #a6cee2 0%, #6fb8dc 50%, #3f8eb8 100%);
  --grad-accent: linear-gradient(135deg, #6fb8dc 0%, #5ed4ad 60%, #2ea985 100%);
  --grad-primary-btn: linear-gradient(135deg, #8ec9e5 0%, #6fb8dc 50%, #3f8eb8 100%);
  --grad-primary-btn-hover: linear-gradient(135deg, #a4d8ee 0%, #7cc2e4 50%, #4a98c1 100%);
  --grad-accent-hover: linear-gradient(135deg, #82c9e7 0%, #67ddb8 58%, #36b28f 100%);
  --grad-text-accent: linear-gradient(120deg, #8ed0ee 0%, #5ed4ad 100%);
  --grad-ribbon: linear-gradient(135deg, rgba(111, 184, 220, 0.22), rgba(94, 212, 173, 0.18));

  --hero-floor: radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  min-width: 320px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  color: var(--ink);
  background:
    radial-gradient(55% 45% at 88% -6%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%),
    radial-gradient(45% 35% at 0% 14%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    radial-gradient(70% 40% at 50% 105%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 75%);
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  letter-spacing: -0.018em;
  font-weight: 800;
}

p { overflow-wrap: break-word; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: color-mix(in srgb, var(--brand) 32%, transparent);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-160%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  transition: transform 180ms var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-pad { padding: var(--space-9) 0; }

@media (max-width: 820px) {
  .section-pad { padding: var(--space-8) 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--brand-3);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
}

.section-heading {
  max-width: 720px;
  margin-bottom: var(--space-6);
}

.section-heading.wide-heading { max-width: 920px; }

.section-heading h2 {
  margin-bottom: 14px;
  font-size: var(--fs-3xl);
  line-height: 1.08;
}

.section-heading p,
.hero-lede,
.cta-card p,
.workflow-grid p,
.proof-grid p {
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.55;
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}

.nav-wrap {
  width: min(100% - 32px, 1320px);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  border-radius: var(--radius);
}

.brand-logo {
  display: block;
  width: clamp(216px, 18vw, 270px);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 7px 13px rgba(14, 42, 72, 0.08));
}

.brand-logo-dark { display: none; }

[data-theme="dark"] .brand-logo-light { display: none; }
[data-theme="dark"] .brand-logo-dark { display: block; }

[data-theme="dark"] .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.site-footer .brand-logo {
  width: min(220px, 100%);
}

@media (max-width: 520px) {
  .brand-logo { width: clamp(184px, 50vw, 216px); max-height: 46px; }
}

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

.nav-menu a,
.theme-toggle,
.language-option,
.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 160ms var(--ease);
}

.nav-menu a:not(.nav-cta):hover,
.theme-toggle:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 24%, transparent);
}

.theme-toggle { gap: 8px; }

.language-switch {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(44px, 1fr));
  align-items: center;
  gap: 0;
  min-height: 44px;
  margin-left: 10px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line-strong));
  border-radius: 999px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, white), color-mix(in srgb, var(--brand) 12%, var(--surface-2))),
    var(--surface);
  box-shadow:
    0 14px 32px -24px var(--brand-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 color-mix(in srgb, var(--brand) 10%, transparent);
}

.language-switch::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 999px;
  background: var(--grad-primary-btn);
  box-shadow:
    0 10px 22px -12px var(--brand-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
  transform: translateX(0);
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.language-switch[data-active-lang="es"]::after {
  transform: translateX(100%);
}

.language-option {
  position: relative;
  z-index: 1;
  min-width: 46px;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  font-size: var(--fs-xs);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: none;
  text-decoration: none;
  transition: color 160ms var(--ease), transform 160ms var(--ease);
}

.language-option:hover,
.language-option:focus-visible {
  color: color-mix(in srgb, var(--brand-3) 92%, var(--ink));
  background: transparent;
  border-color: transparent;
  transform: translateY(-1px);
}

.language-option.active {
  color: var(--brand-ink);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  transform: none;
}

[data-theme="dark"] .language-switch {
  border-color: rgba(124, 198, 235, 0.30);
  background:
    linear-gradient(135deg, rgba(16, 26, 40, 0.98), rgba(28, 55, 74, 0.92)),
    var(--surface);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(124, 198, 235, 0.10);
}

[data-theme="dark"] .language-switch::after {
  background: linear-gradient(135deg, #56aee2 0%, #2f7fc7 54%, #1d5a99 100%);
  box-shadow:
    0 12px 24px -12px rgba(85, 174, 226, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.30);
}

[data-theme="dark"] .language-option {
  color: color-mix(in srgb, var(--muted) 72%, white);
}

[data-theme="dark"] .language-option:hover,
[data-theme="dark"] .language-option:focus-visible {
  color: #d8efff;
}

.nav-cta,
.nav-cta:visited {
  margin-left: 8px;
  padding: 10px 18px;
  color: var(--brand-ink) !important;
  border-color: transparent !important;
  background: var(--grad-primary-btn);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 24px -12px var(--brand-glow);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  color: var(--brand-ink) !important;
  border-color: transparent !important;
  transform: translateY(-1px);
  background: var(--grad-primary-btn-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 14px 30px -14px var(--brand-glow);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.nav-toggle:hover {
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line-strong));
  box-shadow: var(--shadow-sm);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   Buttons
   ============================================================ */
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-sm);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
  will-change: transform;
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.button-primary {
  color: var(--brand-ink);
  border-color: transparent;
  background: var(--grad-primary-btn);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 16px 36px -16px var(--brand-glow);
}

.button-primary:hover {
  background: var(--grad-primary-btn-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 22px 46px -16px var(--brand-glow);
}

.button-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line-strong));
  box-shadow: var(--shadow-md);
}

.button.full { width: 100%; }

.text-link {
  color: var(--brand-3);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}

.text-link:hover { border-color: var(--brand-3); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-7);
  padding-bottom: var(--space-9);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: var(--hero-floor);
  pointer-events: none;
  z-index: 0;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  gap: var(--space-7);
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero h1 {
  margin-bottom: 20px;
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  font-weight: 800;
}

.hero h1 em {
  font-style: normal;
  background: var(--grad-text-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lede {
  max-width: 52ch;
  margin-bottom: var(--space-5);
}

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

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-5);
}

.signal-stack span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.signal-stack span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ============================================================
   Cockpit preview
   ============================================================ */
.cockpit-frame {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--brand) 14%, var(--surface)) 0%, var(--surface) 55%);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 color-mix(in srgb, var(--surface) 80%, transparent);
  overflow: hidden;
}

.cockpit-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.cockpit-toolbar, .cockpit-grid { position: relative; z-index: 1; }

.cockpit-toolbar {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-2);
  box-shadow: inset 0 -1px 0 var(--line);
}

[data-theme="dark"] .cockpit-toolbar {
  background: #08111e;
  border-bottom-color: rgba(176, 206, 226, 0.18);
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: #ff6058;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.window-dot:nth-child(2) {
  background: #ffbd2e;
}

.window-dot:nth-child(3) {
  background: #28c941;
}

.cockpit-toolbar strong {
  margin-left: 12px;
  font-size: var(--fs-sm);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}

.cockpit-toolbar em {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px 5px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line));
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: color-mix(in srgb, var(--accent) 80%, var(--ink));
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.02em;
}

[data-theme="dark"] .cockpit-toolbar em {
  background: color-mix(in srgb, var(--accent) 18%, #08111e);
  color: color-mix(in srgb, var(--accent) 90%, #ffffff);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line-strong));
}

.cockpit-toolbar em::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
  50%      { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  .cockpit-toolbar em::before { animation: none; }
}

.cockpit-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  padding: 16px;
}

.cockpit-grid > section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.score-module {
  min-height: 158px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 18px;
  background:
    radial-gradient(85% 100% at 100% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 70%),
    var(--surface);
}

.score-module span,
.module-head span,
.ai-module > span,
.export-module > span,
.feature-card > span,
.comparison-card > span,
.legal-updated {
  display: inline-block;
  color: var(--muted-2);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.score-module strong {
  display: block;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  background: var(--grad-text-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.score-module small {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.parse-module, .ai-module, .export-module { padding: 16px; }

.module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.module-head strong {
  color: var(--ink-2);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }

.pill-row span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
}

.resume-module {
  grid-row: span 2;
  padding: 14px;
  background: var(--surface-2);
}

.resume-paper {
  min-height: 332px;
  padding: 18px;
  border-radius: 6px;
  background: #fdfdfb;
  color: #0e1116;
  box-shadow: 0 14px 36px -16px rgba(15, 22, 36, 0.32), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.resume-paper h3 {
  margin: 0;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #0e1116;
  font-weight: 700;
}

.resume-paper p {
  margin: 2px 0 14px;
  text-align: center;
  color: #2b2f38;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.78rem;
}

.resume-paper h4 {
  margin: 12px 0 7px;
  padding-bottom: 3px;
  border-bottom: 1px solid #1a1d24;
  color: #1a1d24;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.resume-line {
  height: 7px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: #2a2e38;
  opacity: 0.7;
}
.resume-line.wide   { width: 94%; }
.resume-line.medium { width: 74%; }
.resume-line.short  { width: 46%; }

.ai-module { display: grid; gap: 8px; }

.ai-module p {
  margin: 4px 0 8px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.decision-row, .export-module {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.decision-row button, .export-module button {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  transition: background 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.decision-row button:hover, .export-module button:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line-strong));
  box-shadow: var(--shadow-sm);
}

.decision-row button:first-child {
  color: #06120c;
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--grad-accent);
  -webkit-text-fill-color: initial;
}

.decision-row button:first-child:hover {
  background: var(--grad-accent-hover);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}

.export-module { align-items: center; }
.export-module > span { margin-right: auto; }

/* ============================================================
   Metrics band
   ============================================================ */
.metrics-band {
  border-block: 1px solid var(--line);
  background: transparent;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 12px 0;
  background: transparent;
}

.metrics-grid div {
  min-width: 0;
  display: grid;
  gap: 4px;
  position: relative;
  padding: 22px clamp(18px, 2.4vw, 32px);
  background: transparent;
}

.metrics-grid div + div {
  border-left: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
}

.metrics-grid strong {
  font-size: var(--fs-3xl);
  line-height: 1;
  letter-spacing: -0.025em;
  background: var(--grad-text-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.metrics-grid span {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: 500;
}

/* ============================================================
   Comparison (problem / solution)
   ============================================================ */
.split-story {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.split-story .section-heading h2 { font-size: var(--fs-3xl); }

.comparison-grid { display: grid; gap: 14px; }

.comparison-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.comparison-card h3 {
  margin-bottom: 8px;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.comparison-card p {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.muted-card {
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--muted) 6%, transparent) 11px 12px),
    color-mix(in srgb, var(--surface) 94%, var(--muted));
  border-style: dashed;
  border-color: color-mix(in srgb, var(--muted) 28%, var(--line));
}

.muted-card > span { color: var(--muted-2); }
.muted-card h3 { color: var(--muted); }

.active-card {
  position: relative;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background:
    radial-gradient(70% 100% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.active-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, transparent), transparent 30%);
  mix-blend-mode: overlay;
  opacity: 0.5;
}

.active-card > span { color: var(--accent); }

/* ============================================================
   Feature bento
   ============================================================ */
.feature-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line-strong));
  box-shadow: var(--shadow-md);
}

.feature-card > span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand-3);
  margin-bottom: var(--space-3);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: var(--fs-xl);
  color: var(--ink);
  letter-spacing: -0.012em;
}

.feature-card p {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.55;
  margin-top: auto;
}

/* Big feature card with embedded illustration */
.feature-card-large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 470px;
  padding: 28px;
  background:
    radial-gradient(80% 60% at 0% 100%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--surface);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line-strong));
}

.feature-card-large h3 {
  font-size: var(--fs-2xl);
  margin-bottom: 6px;
}

.feature-card-large .feature-vis {
  flex: 1;
  margin: 18px 0;
  min-height: 220px;
  position: relative;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 8%, transparent), transparent),
    color-mix(in srgb, var(--surface) 84%, var(--brand));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}

.feature-vis-doc,
.feature-vis-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.feature-vis-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-vis-doc .doc-line {
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 25%, transparent);
}

.feature-vis-doc .doc-line.hit {
  background: var(--grad-text-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent),
              0 0 12px -2px color-mix(in srgb, var(--accent) 60%, transparent);
}

.feature-vis-doc .doc-line.w-90 { width: 90%; }
.feature-vis-doc .doc-line.w-70 { width: 70%; }
.feature-vis-doc .doc-line.w-80 { width: 80%; }
.feature-vis-doc .doc-line.w-60 { width: 60%; }
.feature-vis-doc .doc-line.w-50 { width: 50%; }
.feature-vis-doc .doc-line.w-40 { width: 40%; }

.feature-vis-pills {
  align-items: flex-start;
}

.feature-vis-pills .vis-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.feature-vis-pills .pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand-3);
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}

.feature-vis-pills .pill.accent {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.feature-card-wide { grid-column: span 2; }

/* ============================================================
   Workflow / process
   ============================================================ */
.workflow-section {
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--brand) 5%, transparent) 50%, transparent 100%);
}

.workflow-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: start;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.process-list li {
  counter-increment: step;
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 88px;
  padding: 20px 22px 20px 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.process-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--grad-brand);
  color: var(--brand-ink);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15),
    0 6px 14px -6px var(--brand-glow);
}

.process-list strong {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.process-list span {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.55;
}

/* ============================================================
   Proof / "What you get back"
   ============================================================ */
.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: var(--space-7);
  align-items: center;
}

.proof-grid h2 {
  font-size: var(--fs-3xl);
  line-height: 1.08;
  margin-bottom: 14px;
}

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-5);
}

.proof-list span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.resume-output-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 65%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.resume-output-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.3;
  mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 80%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, transparent 30%, #000 80%);
}

.resume-output {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  background: #fdfdfb;
  color: #0e1116;
  border-radius: 6px;
  padding: 26px 28px;
  font-family: "Times New Roman", Times, serif;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 8px 20px -8px rgba(0, 0, 0, 0.3);
}

.resume-output h4 {
  margin: 0;
  text-align: center;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: #0e1116;
  font-weight: 700;
}

.resume-output .role {
  text-align: center;
  font-size: 0.78rem;
  margin: 3px 0 16px;
  color: #2b2f38;
}

.resume-output .section-label {
  margin: 14px 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid #1a1d24;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #1a1d24;
  font-weight: 700;
}

.resume-output .ro-line {
  height: 6px;
  margin-bottom: 6px;
  border-radius: 2px;
  background: #2a2e38;
  opacity: 0.7;
}

.resume-output .ro-line.w90 { width: 92%; }
.resume-output .ro-line.w75 { width: 75%; }
.resume-output .ro-line.w60 { width: 60%; }
.resume-output .ro-line.w45 { width: 45%; }

.resume-annotation {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.resume-annotation::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: 11px;
  -webkit-mask-size: 11px;
}

.resume-annotation.top-left  { top: 26px; left: 18px; }
.resume-annotation.top-right { top: 50px; right: 18px; }
.resume-annotation.bottom-right { bottom: 36px; right: 22px; }

/* ============================================================
   Pricing
   ============================================================ */
.pricing-section {
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%);
}

.billing-state {
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.billing-state.error {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}

.billing-state.success {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

body.modal-open {
  overflow: hidden;
}

.checkout-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 13, 24, 0.58);
  backdrop-filter: blur(8px);
}

.checkout-modal-backdrop[hidden] {
  display: none;
}

.checkout-modal {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.checkout-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
}

.checkout-modal-header h2 {
  margin: 4px 0 0;
  font-size: var(--fs-xl);
}

.modal-close {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.checkout-modal-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.checkout-modal-body p {
  margin: 0;
  color: var(--muted);
}

.checkout-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 20px 20px;
  flex-wrap: wrap;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.pricing-card-featured {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background:
    radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.pricing-card-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--brand) 0%, transparent 40%, var(--accent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plan-ribbon {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--grad-ribbon);
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  color: var(--brand-3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-head {
  display: grid;
  gap: 8px;
  margin-bottom: var(--space-4);
}

.plan-head > span {
  color: var(--muted);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.plan-head strong {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-weight: 800;
}

.plan-head strong span {
  font-size: var(--fs-base);
  color: var(--muted);
  font-weight: 600;
  margin-left: 4px;
}

.pricing-card > p {
  color: var(--muted);
  font-size: var(--fs-base);
  margin-bottom: 14px;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.pricing-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--grad-accent);
  box-shadow: inset 0 0 0 4px var(--surface);
}

.plan-note { margin-top: auto; color: var(--muted); font-size: 0.85rem; }

/* ============================================================
   FAQ — two-column, tighter
   ============================================================ */
.faq-section { padding: var(--space-8) 0; }

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  align-items: start;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
  overflow: hidden;
}

.faq-list details[open] {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow-md);
}

.faq-list summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink);
  line-height: 1.35;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--line));
  color: var(--brand-3);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 200ms var(--ease), background 200ms var(--ease);
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--grad-accent);
  color: #06120c;
  border-color: transparent;
}

.faq-list p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta .cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line-strong));
  border-radius: var(--radius-xl);
  background:
    radial-gradient(70% 100% at 0% 0%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 65%),
    var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

.final-cta .cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.28;
  mask-image: radial-gradient(50% 60% at 50% 100%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(50% 60% at 50% 100%, #000 0%, transparent 80%);
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
  max-width: 22ch;
  font-size: var(--fs-3xl);
  line-height: 1.05;
  margin-bottom: 10px;
}

.cta-card p { max-width: 56ch; margin-top: 6px; }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-aside p { color: var(--muted); font-size: var(--fs-sm); }

.legal-card {
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.legal-card h1 {
  margin-bottom: 6px;
  font-size: var(--fs-4xl);
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.legal-card h2 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: var(--fs-xl);
  color: var(--ink);
}

.legal-card p {
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.65;
  max-width: 70ch;
  margin-bottom: 12px;
}

.legal-card ul {
  max-width: 70ch;
  margin: 12px 0 18px;
  padding-left: 22px;
  color: var(--muted);
}

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

.blog-hero-image {
  width: min(100%, 900px);
  height: auto;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-updated { margin-bottom: 18px; letter-spacing: 0.06em; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 0.85fr));
  gap: var(--space-6);
  padding: var(--space-7) 0 var(--space-5);
}

.footer-grid > div > p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-top: 12px;
  line-height: 1.55;
  max-width: 42ch;
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer a:not(.brand) {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color 160ms var(--ease);
}

.site-footer a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: var(--fs-xs);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .hero-stage,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-frame,
  .resume-output-card {
    max-width: 780px;
    margin-inline: auto;
  }

  .feature-bento,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-card-large,
  .feature-card-wide {
    grid-column: span 2;
  }

  .feature-card-large { min-height: 360px; }

  .split-story,
  .workflow-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card-featured { transform: none; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 28px, var(--max)); }

  .nav-toggle { display: block; }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.is-open { display: flex; }

  .site-shell-static .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-menu a,
  .theme-toggle,
  .language-option,
  .nav-cta {
    justify-content: flex-start;
    width: 100%;
    padding: 12px 14px;
    min-height: 46px;
  }

  .language-switch {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .language-option {
    justify-content: center;
    width: auto;
    min-width: 72px;
    min-height: 44px;
  }

  .nav-cta { margin-left: 0; margin-top: 6px; }

  .site-shell-static .nav-menu a,
  .site-shell-static .language-option,
  .site-shell-static .nav-cta {
    width: auto;
    min-height: 40px;
    padding: 8px 10px;
  }

  .site-shell-static .nav-cta {
    margin-top: 0;
  }

  .hero { padding-top: var(--space-7); }

  .cockpit-grid { grid-template-columns: 1fr; }
  .resume-module { grid-row: auto; }

  .metrics-grid,
  .pricing-grid,
  .feature-bento,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metrics-grid div + div {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--line-strong) 58%, transparent);
  }

  .feature-card-large,
  .feature-card-wide {
    grid-column: auto;
    min-height: 240px;
  }

  .feature-card-large .feature-vis {
    grid-template-columns: 1fr;
  }

  .cta-card,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .legal-layout { grid-template-columns: 1fr; }
  .legal-aside { position: static; }

  .faq-list { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 22px, var(--max)); }

  .hero-actions {
    display: grid;
  }

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

  .cockpit-toolbar em { display: none; }

  .cockpit-grid,
  .parse-module,
  .resume-module,
  .ai-module,
  .export-module,
  .score-module {
    padding: 14px;
  }

  .resume-paper { min-height: 260px; padding: 14px; }

  .metrics-grid div,
  .pricing-card,
  .comparison-card,
  .feature-card,
  .cta-card {
    padding: 22px;
  }

  .process-list li {
    min-height: auto;
    padding: 72px 18px 18px;
  }

  .process-list li::before {
    top: 16px;
    left: 16px;
  }

  .resume-output-card { padding: 24px 18px; }
  .resume-output { width: 100%; padding: 22px 22px; }
  .resume-annotation.top-left,
  .resume-annotation.top-right,
  .resume-annotation.bottom-right { display: none; }
}

/* ============================================================
   Entrance motion + atmospheric polish  (appended)
   One orchestrated, staggered page-load reveal — the high-impact
   moment. The global prefers-reduced-motion rule near the top of this
   file zeroes these durations, so reduced-motion users see the final
   state instantly with no movement.
   ============================================================ */
@keyframes rg-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rg-rise-soft {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Only animate the hero on the home view's first paint. */
.hero-copy > .eyebrow,
.hero-copy > h1,
.hero-copy > .hero-lede,
.hero-copy > .hero-actions,
.hero-copy > .signal-stack {
  animation: rg-rise 0.6s var(--ease) both;
}
.hero-copy > h1            { animation-delay: 0.06s; }
.hero-copy > .hero-lede    { animation-delay: 0.14s; }
.hero-copy > .hero-actions { animation-delay: 0.22s; }
.hero-copy > .signal-stack { animation-delay: 0.30s; }

.cockpit-frame { animation: rg-rise-soft 0.78s var(--ease) 0.18s both; }

/* Glass top-edge highlight on the hero mockup (works with its overflow:hidden). */
.cockpit-frame {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
[data-theme="dark"] .cockpit-frame {
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Soft steel-blue aura behind the hero (same hue as the app accent / logo). */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -12%;
  right: -8%;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--brand) 16%, transparent), transparent 72%);
  pointer-events: none;
  filter: blur(6px);
}

/* Reinforce the primary CTA's brand glow on hover (color already app-matched). */
.button-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 22px 46px -16px var(--brand-glow);
}

/* Subtle lift on the hero mockup when the user engages with the hero. */
.hero-stage:hover .cockpit-frame { transform: translateY(-2px); }
.cockpit-frame { transition: transform 320ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .hero-stage:hover .cockpit-frame { transform: none; }
}
