/* ==========================================================================
   Resume Roaster — marketing site
   Design tokens mirror the app's design system (cv-roaster/src/ui/theme.ts):
   dark "Charcoal & Ember" (D-023) as the site world, light "Red Pen" (D-024)
   for paper artifacts + legal pages. Serif (Georgia) is reserved for the
   roaster's voice, exactly like in the app.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Charcoal & Ember (app dark palette, exact) */
  --bg: #16130f;
  --depth: #1d1610;
  --surface: #241f18;
  --surface-high: #2e2519;
  --hairline: #3a2c1f;
  --accent: #ff6b2c;
  --ember: #ffb03a;
  --glow: rgba(255, 107, 44, 0.35);
  --ink-on-ember: #1b0f06;
  --cta-from: #ff6b2c;
  --cta-to: #ffb03a;
  --ink-on-cta: #1b0f06;
  --text: #f7f2ea;
  --text-muted: #a89f92;
  --text-faint: #8d8072;
  --zinger-text: #ffd9a8;
  --zinger-surface: #241a13;
  --positive: #4cc38a;
  --negative: #ea575c;

  /* Grade heat scale — hotter = better (audit-locked in the app) */
  --heat-a: #ffce6b;
  --heat-b: #ffb03a;
  --heat-c: #ff7a2f;
  --heat-d: #f0563c;
  --heat-f: #d9453b;

  /* Red Pen (app light palette) — paper artifacts + legal pages */
  --paper: #fbf7ee;
  --paper-high: #f1e9d9;
  --paper-hairline: #e4dcc9;
  --paper-ink: #221d17;
  --paper-muted: #6e6558;
  --red-pen: #c2321e;

  /* Type */
  --font-sans:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', 'Noto Serif', serif;

  /* Layout */
  --container: 1080px;
  --prose: 660px;
  --radius-card: 16px;
  --radius-hero: 20px;

  color-scheme: dark;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--ember);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

::selection {
  background: var(--accent);
  color: var(--ink-on-ember);
}

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

h1,
h2,
h3 {
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll-reveal: only when JS is present, and never for reduced motion. */
.js .rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.js .rise.in {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 16px 26px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--hairline);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.btn-cta {
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: var(--ink-on-cta);
  box-shadow: 0 8px 30px var(--glow);
}

.btn-cta:hover {
  filter: brightness(1.06);
}

/* App Store badge — custom-drawn placeholder; swap for Apple's official
   badge artwork once the listing exists (see README → Placeholders). */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(247, 242, 234, 0.35);
  border-radius: 14px;
  padding: 12px 22px 12px 18px;
  text-decoration: none;
  box-shadow: 0 10px 36px var(--glow);
}

.store-badge:hover {
  text-decoration: none;
  border-color: rgba(247, 242, 234, 0.7);
}

.store-badge .apple-mark {
  width: 28px;
  height: 34px;
  flex: none;
}

.store-badge .store-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-badge .store-pre {
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.store-badge .store-main {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 19, 15, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand .flame {
  width: 26px;
  height: 26px;
}

.nav-links {
  display: none;
  gap: 26px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav .btn {
  padding: 10px 18px;
  font-size: 14px;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
  overflow: hidden;
}

.hero::before {
  /* ember glow rising from below — the roast night */
  content: '';
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 90%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 107, 44, 0.16), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.28;
  color: var(--zinger-text);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.hero h1 .marked {
  position: relative;
  white-space: nowrap;
}

.hero h1 .marked svg {
  position: absolute;
  left: -2%;
  bottom: -0.28em;
  width: 104%;
  height: 0.42em;
  overflow: visible;
}

.hero-attrib {
  font-size: 15px;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-sub strong {
  color: var(--text);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-note {
  font-size: 14px;
  color: var(--text-faint);
}

/* ---------- Paper resume artifact ---------- */
.paper-scene {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 12px 8px 28px;
}

.paper {
  position: relative;
  width: min(400px, 92%);
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 6px;
  padding: 30px 28px 34px;
  transform: rotate(-1.6deg);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 107, 44, 0.12);
}

.paper-name {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.paper-role {
  font-size: 12.5px;
  color: var(--paper-muted);
  margin-bottom: 16px;
}

.paper-rule {
  height: 1px;
  background: var(--paper-hairline);
  margin: 12px 0;
}

.paper-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-muted);
  margin: 14px 0 6px;
}

.paper-line {
  font-size: 13.5px;
  line-height: 1.55;
  margin-bottom: 6px;
}

.paper .circled {
  position: relative;
  white-space: nowrap;
}

.paper .circled svg {
  position: absolute;
  inset: -38% -6% -34% -5%;
  width: 112%;
  height: 172%;
  overflow: visible;
}

.paper .redline {
  position: relative;
  white-space: nowrap;
}

.paper .redline svg {
  position: absolute;
  left: 0;
  bottom: -0.34em;
  width: 100%;
  height: 0.4em;
  overflow: visible;
}

.margin-note {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--red-pen);
  font-size: 13.5px;
  line-height: 1.3;
}

.margin-note.note-1 {
  position: absolute;
  top: 21%;
  right: 10px;
  max-width: 122px;
  transform: rotate(2.5deg);
  text-align: right;
}

.margin-note.note-inline {
  text-align: right;
  margin: 0 4px 6px 0;
  transform: rotate(-1.5deg);
}

.stamp {
  position: absolute;
  right: -18px;
  bottom: -26px;
  width: 118px;
  height: 118px;
  border: 4px solid var(--heat-c);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--heat-c);
  transform: rotate(-10deg);
  background: rgba(22, 19, 15, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}

.stamp .stamp-grade {
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stamp .stamp-score {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .paper-line {
    font-size: 12.5px;
  }

  .stamp {
    right: -4px;
  }
}

/* ---------- Trust chips ---------- */
.chips {
  padding: 26px 0 10px;
}

.chips ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
}

.chips li .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
}

/* ---------- Sections ---------- */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--depth);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(26px, 3.6vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-lede {
  color: var(--text-muted);
  font-size: 18px;
  max-width: var(--prose);
  margin-bottom: 44px;
}

.center {
  text-align: center;
}

.center .section-lede {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .problem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px 24px;
}

.problem-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.problem-card p {
  color: var(--text-muted);
  font-size: 15.5px;
}

.problem-punch {
  margin-top: 36px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--zinger-text);
  text-align: center;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  gap: 28px;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 24px 30px;
}

.step-n {
  display: inline-grid;
  place-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  color: var(--ink-on-cta);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 20px;
}

.step .free-tag {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--positive);
  border: 1px solid var(--positive);
  border-radius: 999px;
  padding: 4px 10px;
}

.step .pro-tag {
  position: absolute;
  top: 22px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid var(--ember);
  border-radius: 999px;
  padding: 4px 10px;
}

/* mini phone vignettes */
.mini-phone {
  margin: 0 auto;
  width: 150px;
  height: 200px;
  border: 2px solid var(--hairline);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  background: var(--depth);
  padding: 18px 14px 0;
  overflow: hidden;
}

.mini-phone .ph-line {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-high);
  margin-bottom: 8px;
}

.mini-phone .ph-line.w60 {
  width: 60%;
}

.mini-phone .ph-line.w80 {
  width: 80%;
}

.mini-phone .ph-line.w45 {
  width: 45%;
}

.mini-phone .ph-btn {
  height: 26px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  margin-top: 14px;
}

.mini-phone .ph-grade {
  font-weight: 900;
  font-size: 52px;
  line-height: 1;
  color: var(--heat-c);
  text-align: center;
  margin: 10px 0 12px;
}

.mini-phone .ph-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-high);
  overflow: hidden;
  margin-bottom: 8px;
}

.mini-phone .ph-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--heat-c);
}

.mini-phone .ph-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.mini-phone .ph-check .box {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--positive);
  color: var(--positive);
  font-size: 10px;
  line-height: 12px;
  text-align: center;
  flex: none;
}

.mini-phone .ph-check .bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface-high);
  flex: 1;
}

/* ---------- Personas ---------- */
.persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.persona-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--hairline);
  background: var(--surface);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
}

.persona-tab[aria-selected='true'] {
  border-color: var(--persona-accent, var(--accent));
  color: var(--text);
}

.persona-panel {
  background: var(--zinger-surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--persona-accent, var(--accent));
  border-radius: var(--radius-card);
  padding: 30px 28px;
  max-width: 720px;
}

.persona-panel[hidden] {
  display: none;
}

.persona-zinger {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.4;
  color: var(--zinger-text);
  margin-bottom: 16px;
}

.persona-meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.persona-name {
  font-weight: 800;
  font-size: 16px;
}

.persona-tagline {
  color: var(--text-faint);
  font-size: 14.5px;
}

/* ---------- Sample roast scorecard ---------- */
.scorecard {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-hero);
  padding: 34px 30px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.scorecard-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 20px;
}

.grade-badge {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-hero);
  display: grid;
  place-content: center;
  background: var(--surface-high);
  border: 2px solid var(--heat-c);
  color: var(--heat-c);
  font-size: 44px;
  font-weight: 900;
  box-shadow: 0 0 42px rgba(255, 122, 47, 0.25);
}

.score-line {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.score-big {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.score-big span {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-faint);
}

.scorecard-verdict {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  border-left: 3px solid var(--hairline);
  padding-left: 16px;
  margin-bottom: 26px;
}

.sc-sections {
  display: grid;
  gap: 18px;
  margin-bottom: 26px;
}

.sc-row {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}

.sc-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sc-name {
  font-weight: 800;
  font-size: 15.5px;
}

.sc-score {
  font-weight: 800;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

.sc-bar {
  height: 7px;
  border-radius: 4px;
  background: var(--surface-high);
  overflow: hidden;
  margin-bottom: 10px;
}

.sc-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  width: var(--w, 0%);
  background: var(--bar-color, var(--heat-c));
}

.js .sc-bar i {
  width: 0;
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}

.js .in .sc-bar i {
  width: var(--w, 0%);
}

.sc-crit {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.sc-fix {
  font-size: 14.5px;
  color: var(--positive);
}

.sc-fix strong {
  font-weight: 800;
}

.sc-zinger {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  color: var(--zinger-text);
  background: var(--zinger-surface);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.sc-strengths h4 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--positive);
}

.sc-strengths ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sc-strengths li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 7px;
}

.sc-strengths li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--positive);
  font-weight: 800;
}

.sample-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 14px;
  max-width: 560px;
  margin: 26px auto 0;
}

/* ---------- Pro (the fix) ---------- */
.fix-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .fix-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fix-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 24px;
}

.fix-card .fx-icon {
  font-size: 26px;
  margin-bottom: 14px;
}

.fix-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}

.fix-card p {
  color: var(--text-muted);
  font-size: 15.5px;
}

.truth-box {
  margin-top: 28px;
  background: var(--zinger-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  max-width: 760px;
}

.truth-box h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--ember);
}

.truth-box p {
  color: var(--text-muted);
  font-size: 15.5px;
}

.price-line {
  margin-top: 26px;
  color: var(--text-faint);
  font-size: 15px;
}

.price-line strong {
  color: var(--text);
}

/* ---------- The climb ---------- */
.delta-banner {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-hero);
  padding: 22px 34px;
  margin-bottom: 34px;
}

.delta-grade {
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}

.delta-grade.from {
  color: var(--heat-d);
}

.delta-grade.to {
  color: var(--heat-b);
}

.delta-arrow {
  width: 44px;
  height: 24px;
  flex: none;
}

.climb-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
  text-align: left;
  display: grid;
  gap: 14px;
}

.climb-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 16px;
}

.climb-list .ci {
  flex: none;
  font-size: 18px;
  line-height: 1.4;
}

.climb-list strong {
  color: var(--text);
}

/* ---------- Share card ---------- */
.share-split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 900px) {
  .share-split {
    grid-template-columns: 1fr 1fr;
  }
}

.share-copy .section-lede {
  margin-bottom: 24px;
}

.sharecard {
  width: min(320px, 88%);
  margin: 0 auto;
  aspect-ratio: 9 / 14.5;
  background: linear-gradient(170deg, var(--bg) 0%, var(--depth) 100%);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transform: rotate(1.8deg);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.6),
    0 0 70px rgba(255, 107, 44, 0.12);
}

.sharecard .shc-persona {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 20px;
}

.sharecard .shc-grade {
  font-size: 84px;
  font-weight: 900;
  line-height: 1;
  color: var(--heat-c);
  letter-spacing: -0.03em;
}

.sharecard .shc-score {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin: 8px 0 22px;
}

.sharecard .shc-zinger {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.42;
  color: var(--zinger-text);
  flex: 1;
}

.sharecard .shc-strength {
  font-size: 12.5px;
  color: var(--positive);
  line-height: 1.5;
  margin-bottom: 18px;
}

.sharecard .shc-mark {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
}

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.privacy-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px;
}

.privacy-card .pi {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-content: center;
  background: var(--surface-high);
  color: var(--positive);
  font-weight: 900;
}

.privacy-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}

.privacy-card p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.privacy-foot {
  text-align: center;
  margin-top: 28px;
  color: var(--text-faint);
  font-size: 14.5px;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-size: 17px;
  font-weight: 700;
}

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

.faq summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--ember);
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .faq-a {
  padding: 0 4px 24px;
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 640px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 110px 0 120px;
  text-align: center;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: auto -30% -70% -30%;
  height: 110%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 107, 44, 0.22), transparent 62%);
  pointer-events: none;
}

.final-cta .container {
  position: relative;
}

.final-zinger {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(26px, 4.2vw, 40px);
  line-height: 1.35;
  color: var(--zinger-text);
  max-width: 720px;
  margin: 0 auto 18px;
}

.final-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 38px;
}

.final-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.coming-soon {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 48px 0 56px;
  background: var(--depth);
}

.footer-inner {
  display: grid;
  gap: 28px;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.footer .brand {
  margin-bottom: 12px;
}

.footer-ethos {
  color: var(--text-faint);
  font-size: 14.5px;
  max-width: 420px;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: start;
}

@media (min-width: 760px) {
  .footer-links {
    justify-items: end;
    text-align: right;
  }
}

.footer-links a {
  color: var(--text-muted);
  font-size: 15px;
}

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

.footer-legalline {
  grid-column: 1 / -1;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}

/* ==========================================================================
   Paper pages (privacy / terms / 404) — the "Red Pen" world
   ========================================================================== */
.page-paper {
  background: var(--paper);
  color: var(--paper-ink);
  color-scheme: light;
}

.page-paper .nav {
  background: rgba(251, 247, 238, 0.9);
  border-bottom: 1px solid var(--paper-hairline);
}

.page-paper .brand {
  color: var(--paper-ink);
}

.page-paper .nav .btn-ghost {
  color: var(--paper-ink);
  border-color: var(--paper-hairline);
}

.page-paper .nav .btn-ghost:hover {
  border-color: var(--red-pen);
  color: var(--red-pen);
}

.page-paper ::selection {
  background: var(--red-pen);
  color: var(--paper);
}

.page-paper :focus-visible {
  outline-color: var(--red-pen);
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--paper-muted);
  font-size: 14.5px;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 21px;
  font-weight: 800;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.7;
  color: #3d362d;
}

.legal p {
  margin-bottom: 14px;
}

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

.legal li {
  margin-bottom: 10px;
}

.legal a {
  color: var(--red-pen);
  text-decoration: underline;
}

.legal strong {
  color: var(--paper-ink);
}

.legal .table-scroll {
  overflow-x: auto;
  margin-bottom: 14px;
}

.legal table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 14.5px;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--paper-hairline);
  padding: 10px 12px;
  line-height: 1.55;
}

.legal th {
  background: var(--paper-high);
  font-weight: 800;
}

.legal .back-home {
  display: inline-block;
  margin-top: 48px;
  font-weight: 700;
}

/* 404 */
.notfound {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 48px 24px;
}

.notfound .nf-grade {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  color: var(--heat-f);
  margin-bottom: 10px;
}

.notfound h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  color: var(--zinger-text);
  margin-bottom: 10px;
}

.notfound p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.notfound .btn {
  justify-self: center;
}

/* ---------- Motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .sc-bar i {
    width: var(--w, 0%);
    transition: none;
  }

  .faq summary::after {
    transition: none;
  }
}
