/* FittedCV landing page — home-only layer, loaded after fittedcv-brand.css + css/style.css by
   index.html only. Every class here is prefixed `h-` so nothing collides with the shared
   style.css classes that /setup, /get-started, /privacy, /contact still use.

   Design notes (narrative landing page):
   - Story order: Hook (hero + live tailoring demo) → Problem (dark band) → How it works →
     What it does → Free (receipt) → FAQ → Action.
   - Colour stays inside the brand rule: grayscale + the one accent hue. The accent marks the
     "payoff" moments (right fit, matched lines, primary CTA); nothing else is hued.
   - Physical section transitions: the dark band has rounded bottom corners and casts a shadow
     over the section that slides underneath it, instead of gradient bridges.
   - Motion: entrance animations fire once (hero on load, sections via main.js's existing
     .reveal observer, staggered with .h-d1–.h-d5). The only loop is a slow 7s float on the hero
     card stack. Everything is switched off under prefers-reduced-motion. */

:root {
  --h-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --h-radius-lg: 22px;
  --h-radius-xl: 48px;
  --h-shadow-card: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.07), 0 24px 60px rgba(10, 10, 10, 0.08);
  --h-shadow-band: 0 40px 80px rgba(10, 10, 10, 0.22), 0 16px 32px rgba(10, 10, 10, 0.14);
  /* accent that stays legible on the inverted band (dark band in light mode) */
  --h-accent-on-invert: #a78bfa;
  --h-mark: color-mix(in srgb, var(--accent) 16%, transparent);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --h-shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.45);
    --h-shadow-band: 0 30px 70px rgba(0, 0, 0, 0.5);
    --h-accent-on-invert: #6d28d9;
    --h-mark: color-mix(in srgb, var(--accent) 28%, transparent);
  }
}
:root[data-theme="dark"] {
  --h-shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 24px 60px rgba(0, 0, 0, 0.45);
  --h-shadow-band: 0 30px 70px rgba(0, 0, 0, 0.5);
  --h-accent-on-invert: #6d28d9;
  --h-mark: color-mix(in srgb, var(--accent) 28%, transparent);
}

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

.h-page h1, .h-page h2 { text-wrap: balance; }
.h-page p { text-wrap: pretty; }

/* serif italic accent word — the "warmth moment" inside an otherwise sans headline */
/* Heading emphasis: same bold sans as the heading, color only (no serif/italic).
   Class name kept for markup stability; each section sets its color. */
.h-serif {
  font: inherit;
  letter-spacing: inherit;
}

.h-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.h-label::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

/* --- reveal stagger (pairs with style.css's .js-reveal .reveal / .is-visible) --- */
.js-reveal .reveal.h-d1 { transition-delay: 0.08s; }
.js-reveal .reveal.h-d2 { transition-delay: 0.22s; }
.js-reveal .reveal.h-d3 { transition-delay: 0.36s; }
.js-reveal .reveal.h-d4 { transition-delay: 0.6s; }
.js-reveal .reveal.h-d5 { transition-delay: 0.9s; }

/* ================================================================== HERO */

.h-hero {
  position: relative;
  padding: 84px 0 104px;
  overflow: hidden;
  isolation: isolate;
}

/* layered background: dot texture (masked to fade out) + slow accent glow */
.h-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 13%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.7;
}
.h-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 62%);
  filter: blur(10px);
  animation: h-breathe 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes h-breathe {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate(-30px, 24px) scale(1.06); opacity: 1; }
}

.h-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.h-hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.h-hero h1 .h-serif { color: var(--accent); }

.h-hero .lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 19.5px);
  max-width: 560px;
}
.h-hero .lede b { color: var(--fg); font-weight: 650; }

.h-hero-ctas { margin-top: 34px; align-items: center; }
.h-hero-ctas .btn { padding: 14px 26px; font-size: 15.5px; border-radius: 999px; }
.h-hero-ctas .btn-accent {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.h-hero-ctas .btn-accent:hover { transform: translateY(-1px); }
.h-btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.h-btn-ghost:hover { border-color: var(--fg); }
.h-btn-ghost svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.h-btn-ghost:hover svg { transform: translateY(2px); }

.h-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
}
.h-promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
  color: var(--fg);
}
.h-promises svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.h-hero-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 520px;
}
.h-hero-note a { color: var(--fg); text-underline-offset: 2px; }

/* hero entrance (once, on load) */
.h-hero-copy > * { animation: h-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.h-hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.h-hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.h-hero-copy > :nth-child(3) { animation-delay: 0.27s; }
.h-hero-copy > :nth-child(4) { animation-delay: 0.39s; }
.h-hero-copy > :nth-child(5) { animation-delay: 0.5s; }
.h-hero-copy > :nth-child(6) { animation-delay: 0.6s; }

@keyframes h-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* --- hero demo: job posting behind, tailored resume in front --- */

.h-demo {
  position: relative;
  min-height: 500px;
  animation: h-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
.h-demo-stack {
  position: relative;
  height: 100%;
  min-height: 500px;
  animation: h-float 7s ease-in-out 2s infinite;
}
@keyframes h-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.h-sheet {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--h-shadow-card);
}

.h-sheet-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.h-sheet-head i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  font-style: normal;
}

/* posting card (behind) */
.h-posting {
  top: 0;
  left: 0;
  width: 90%;
  transform: rotate(-2deg);
  transform-origin: top left;
  background: var(--subtle);
}
.h-posting-body { padding: 16px 18px 22px; }
.h-posting-title { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; margin: 0 0 3px; }
.h-posting-co { font-size: 12.5px; color: var(--muted); margin: 0 0 14px; }
.h-posting-label { font-size: 11px; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 8px; }
.h-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.h-chip {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  animation: h-chip-on 0.5s ease both;
}
.h-chip.h-k1 { animation-delay: 1.2s; }
.h-chip.h-k2 { animation-delay: 1.75s; }
.h-chip.h-k3 { animation-delay: 2.3s; }
@keyframes h-chip-on {
  to {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 45%, transparent);
    background: var(--accent-subtle);
  }
}
.h-chip.h-miss { border-style: dashed; animation: none; }

.h-lines { display: grid; gap: 7px; margin-top: 16px; }
.h-lines span { height: 7px; border-radius: 4px; background: var(--border); }
.h-lines span:nth-child(2) { width: 86%; }
.h-lines span:nth-child(3) { width: 64%; }

/* resume card (front) */
.h-resume {
  right: 0;
  top: 186px;
  width: 82%;
  z-index: 2;
}
.h-resume-body { padding: 18px 20px 22px; }
.h-resume-name { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.h-resume-role { font-size: 12.5px; color: var(--muted); margin: 2px 0 14px; }
.h-resume-sec {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 6px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.h-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.h-bullets li {
  position: relative;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  padding: 6px 10px 6px 14px;
  border-radius: 8px;
  border-left: 2.5px solid transparent;
}
.h-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--faint);
}
.h-bullets li.h-hit { animation: h-hit 0.55s ease both; }
.h-bullets li.h-hit:nth-child(1) { animation-delay: 1.2s; }
.h-bullets li.h-hit:nth-child(2) { animation-delay: 1.75s; }
.h-bullets li.h-hit:nth-child(3) { animation-delay: 2.3s; }
@keyframes h-hit {
  to {
    color: var(--fg);
    background: var(--h-mark);
    border-left-color: var(--accent);
  }
}

/* floating verdict + gap notes */
.h-float-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--h-shadow-card);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  animation: h-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.25) both;
}
.h-float-note strong { display: block; color: var(--fg); font-size: 13px; }
.h-float-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.h-verdict { top: -20px; right: -14px; animation-delay: 2.9s; }
.h-verdict svg { color: var(--accent); }

/* --- resume card header: style badge + note. The demo shows the app's default "Highly
   Targeted" style; the note points out that a Comprehensive style exists too. --- */
.h-resume-head { justify-content: space-between; }
.h-resume-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.h-style-badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
}
.h-style-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--faint);
  line-height: 1.45;
}
.h-style-note strong { color: var(--muted); font-weight: 650; }
@media (max-width: 480px) { .h-head-label { display: none; } }
.h-verdict-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 700;
}


@keyframes h-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.94); }
  to { opacity: 1; transform: none; }
}

/* ================================================================== PROBLEM BAND */

.h-problem {
  position: relative;
  z-index: 2;
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: 112px 0 120px;
  border-radius: 0 0 var(--h-radius-xl) var(--h-radius-xl);
  box-shadow: var(--h-shadow-band);
  overflow: hidden;
}
.h-problem .h-label { color: var(--invert-faint); }

.h-problem-mark {
  position: absolute;
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--h-display);
  font-style: italic;
  font-size: clamp(260px, 38vw, 520px);
  line-height: 1;
  color: var(--invert-fg);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}

.h-problem-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.h-problem-lines li {
  font-size: clamp(22px, 2.8vw, 32px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--invert-muted);
}
.h-strike {
  color: var(--invert-fg);
  text-decoration: line-through;
  text-decoration-thickness: 2.5px;
  text-decoration-color: color-mix(in srgb, var(--invert-fg) 55%, transparent);
}

.h-payoff {
  margin: 56px 0 0;
  font-size: clamp(44px, 7.4vw, 96px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--invert-fg);
}
.h-payoff .h-serif { color: var(--h-accent-on-invert); }
.h-payoff-sub {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--invert-muted);
}

/* ================================================================== HOW IT WORKS */

/* slides underneath the dark band. (ID-qualified selectors here and on .h-features/.h-pricing
   so they beat style.css's `#how-it-works, #features, #pricing { padding-top: 36px }`.) */
#how-it-works.h-how {
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--h-radius-xl));
  padding: calc(var(--h-radius-xl) + 96px) 0 96px;
  background: var(--subtle);
}

.h-head { max-width: 680px; margin: 0 0 52px; }
.h-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.h-head.center .h-label { justify-content: center; }
.h-head h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; }
.h-head h2 .h-serif { color: var(--accent); }
.h-head p { margin: 18px 0 0; font-size: 18px; line-height: 1.55; color: var(--muted); }
.h-head.center p { margin-left: auto; margin-right: auto; max-width: 560px; }

.h-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
/* the connecting line, drawn through the number circles */
.h-steps::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 25%, var(--border)));
  opacity: 0.55;
}

.h-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.h-step-num {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px var(--subtle);
}
.h-step-num svg { width: 22px; height: 22px; }
.h-step-num b {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font: 700 11px/22px var(--font-mono);
}
.h-step-card {
  flex: 1;
  width: 100%;
  padding: 22px 18px 24px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.h-step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--h-shadow-card);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.h-step h3 { font-size: 17px; margin-bottom: 8px; }
.h-step p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* one-time setup */
.h-setup {
  margin: 56px auto 0;
  max-width: 920px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px 28px;
  align-items: center;
  padding: 26px 28px;
  border-radius: var(--h-radius-lg);
  background: var(--bg);
  border: 1px dashed color-mix(in srgb, var(--fg) 25%, var(--border));
}
.h-setup-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-subtle);
  color: var(--accent);
}
.h-setup-icon svg { width: 24px; height: 24px; }
.h-setup h3 { font-size: 17px; margin-bottom: 4px; }
.h-setup > div > p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.h-setup-steps {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.h-setup-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--subtle);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
}
.h-setup-steps b {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--fg);
  color: var(--bg);
  font: 700 11px var(--font-mono);
}
.h-setup-steps strong { color: var(--fg); }
.h-setup-steps a { color: var(--fg); text-underline-offset: 2px; }

/* ================================================================== FEATURES (bento) */

#features.h-features { padding: 112px 0 96px; }

.h-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.h-tile {
  grid-column: span 2;
  position: relative;
  padding: 28px 26px 30px;
  border-radius: var(--h-radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.h-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--h-shadow-card);
  border-color: color-mix(in srgb, var(--fg) 18%, var(--border));
}
.h-tile.h-wide { grid-column: span 3; }
.h-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-subtle);
  color: var(--accent);
  margin-bottom: 20px;
}
.h-tile-icon svg { width: 21px; height: 21px; }
.h-tile h3 { font-size: 19px; margin-bottom: 8px; }
.h-tile p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); max-width: 440px; }

/* featured tile: dark, with the honesty example */
.h-tile.h-feature-truth {
  background: var(--invert-bg);
  color: var(--invert-fg);
  border-color: var(--invert-bg);
}
.h-feature-truth p { color: var(--invert-muted); }
.h-feature-truth .h-tile-icon {
  background: color-mix(in srgb, var(--h-accent-on-invert) 18%, transparent);
  color: var(--h-accent-on-invert);
}
.h-truth-rows { display: grid; gap: 8px; margin-top: 22px; }
.h-truth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--invert-border);
  font-size: 13px;
  color: var(--invert-muted);
}
.h-truth-row svg { width: 16px; height: 16px; flex-shrink: 0; }
.h-truth-row.h-ok svg { color: var(--h-accent-on-invert); }
.h-truth-row.h-no { border-style: dashed; }
.h-truth-row strong { color: var(--invert-fg); font-weight: 650; }

/* same rows on a light tile (the "targeted" tile) */
.h-rows-light .h-truth-row { border-color: var(--border); color: var(--muted); background: var(--subtle); }
.h-rows-light .h-truth-row strong { color: var(--fg); }
.h-rows-light .h-truth-row b {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--accent-fg);
  font: 700 10.5px var(--font-mono);
}

/* extension callout */
.h-ext {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 32px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--h-radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 55%),
    var(--subtle);
}
.h-ext h3 { font-size: 19px; margin-bottom: 6px; }
.h-ext p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; max-width: 620px; }
.h-ext .btn-row { gap: 10px; }

/* ================================================================== PRICING (receipt) */

#pricing.h-pricing { padding: 104px 0; background: var(--subtle); }

.h-pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 64px;
  align-items: center;
}
.h-pricing h2 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.035em; line-height: 1.02; }
.h-pricing h2 .h-serif { color: var(--accent); }
.h-pricing .lede { margin-top: 20px; }
.h-pricing-fine { margin: 22px 0 0; font-size: 13.5px; color: var(--faint); line-height: 1.6; max-width: 540px; }

.h-receipt {
  position: relative;
  background: var(--bg);
  border-radius: 14px 14px 0 0;
  padding: 30px 30px 34px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--muted);
  box-shadow: var(--h-shadow-card);
  transform: rotate(1.2deg);
  transition: transform 0.4s ease;
}
.h-receipt:hover { transform: rotate(0deg) translateY(-2px); }
/* torn zig-zag bottom edge */
.h-receipt::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background:
    linear-gradient(135deg, var(--bg) 50%, transparent 50%) 0 0 / 16px 12px repeat-x,
    linear-gradient(225deg, var(--bg) 50%, transparent 50%) 0 0 / 16px 12px repeat-x;
}
.h-receipt-head {
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1.5px dashed var(--border);
}
.h-receipt-head strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.h-receipt-head span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.h-receipt dl { margin: 0; display: grid; gap: 11px; }
.h-receipt dl > div { display: flex; align-items: baseline; gap: 8px; }
.h-receipt dt { white-space: nowrap; }
.h-receipt dd { margin: 0; color: var(--fg); font-weight: 650; text-align: right; }
.h-receipt dl > div::after { content: none; }
.h-receipt .h-dots { flex: 1; border-bottom: 1.5px dotted var(--border); transform: translateY(-4px); min-width: 12px; }
.h-receipt-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--border);
}
.h-receipt-total dt, .h-receipt-total dd { font-size: 15px; color: var(--fg); font-weight: 750; }
.h-receipt-total dd { color: var(--accent); }
.h-receipt-foot {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

/* ================================================================== FAQ */

.h-faq { padding: 104px 0; }
.h-faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.h-faq-list details {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.h-faq-list details[open] { border-color: color-mix(in srgb, var(--fg) 22%, var(--border)); box-shadow: var(--h-shadow-card); }
.h-faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.h-faq-list summary::-webkit-details-marker { display: none; }
.h-faq-list summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 16px; }
.h-faq-plus {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--subtle);
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}
.h-faq-plus svg { width: 14px; height: 14px; }
details[open] .h-faq-plus { transform: rotate(45deg); background: var(--accent); color: var(--accent-fg); }
.h-faq-list details p {
  margin: 0;
  padding: 0 22px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 680px;
}
.h-faq-list details p a { color: var(--fg); text-underline-offset: 2px; }

/* ================================================================== CLOSING CTA */

.h-cta {
  position: relative;
  overflow: hidden;
  margin: 0 var(--gutter) var(--gutter);
  padding: 104px 0 96px;
  border-radius: var(--h-radius-xl);
  background: var(--invert-bg);
  color: var(--invert-fg);
  text-align: center;
  isolation: isolate;
}
.h-cta::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 100%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--h-accent-on-invert) 35%, transparent), transparent 60%);
}
.h-cta .h-label { color: var(--invert-faint); justify-content: center; }
.h-cta h2 { font-size: clamp(36px, 5.4vw, 66px); letter-spacing: -0.035em; line-height: 1.03; max-width: 900px; margin: 0 auto; }
.h-cta h2 .h-serif { color: var(--h-accent-on-invert); }
.h-cta p { margin: 20px auto 0; max-width: 520px; font-size: 18px; line-height: 1.55; color: var(--invert-muted); }
.h-cta .btn-row { justify-content: center; margin-top: 36px; }
.h-cta .btn-accent { padding: 15px 30px; font-size: 16px; border-radius: 999px; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.h-cta .btn-accent:hover { transform: translateY(-1px); }
.h-cta-quote {
  margin: 56px auto 0 !important;
  font-family: var(--h-display);
  font-style: italic;
  font-size: 17px !important;
  color: var(--invert-faint) !important;
}

/* ================================================================== RESPONSIVE */

@media (max-width: 1020px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .h-demo { max-width: 560px; width: 100%; margin: 0 auto; }
  .h-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .h-steps::before { display: none; }
  .h-step:last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; width: 100%; }
  .h-tile, .h-tile.h-wide { grid-column: span 3; }
  .h-pricing-grid { grid-template-columns: 1fr; gap: 56px; }
  .h-receipt { max-width: 440px; width: 100%; margin: 0 auto; }
}

@media (max-width: 700px) {
  :root { --h-radius-xl: 32px; }
  .h-hero { padding: 48px 0 88px; }
  .h-hero::after { width: 480px; height: 480px; right: -220px; top: -120px; }
  .h-hero-ctas .btn { flex: 1 1 100%; }
  .h-demo, .h-demo-stack { min-height: 520px; }
  .h-posting { width: 100%; }
  .h-resume { width: 92%; top: 210px; }
  .h-verdict { right: -4px; top: -20px; }
  .h-problem { padding: 80px 0 88px; }
  #how-it-works.h-how { padding: calc(var(--h-radius-xl) + 72px) 0 72px; }
  .h-steps { grid-template-columns: 1fr; }
  .h-step:last-child { max-width: none; }
  .h-step { flex-direction: row; align-items: flex-start; text-align: left; gap: 16px; }
  .h-step-num { flex-shrink: 0; margin: 4px 0 0; }
  .h-setup { grid-template-columns: 1fr; padding: 22px; }
  .h-setup-steps { grid-template-columns: 1fr; }
  #features.h-features, #pricing.h-pricing, .h-faq { padding: 72px 0; }
  .h-bento { grid-template-columns: 1fr; }
  .h-tile, .h-tile.h-wide { grid-column: auto; }
  .h-ext { grid-template-columns: 1fr; padding: 24px 22px; }
  .h-receipt { padding: 24px 20px 28px; font-size: 12.5px; }
  .h-cta { margin: 0 12px 12px; padding: 72px 4px 64px; }
}

/* Short desktop screens (laptops, scaled displays): tighten the hero's vertical rhythm and size
   the headline off viewport height so the copy + CTAs sit above the fold. */
@media (min-width: 1021px) and (max-height: 860px) {
  .h-hero { padding: 36px 0 72px; }
  .h-hero h1 { font-size: clamp(40px, 7.6vh, 64px); }
  .h-hero .lede { margin-top: 16px; font-size: 17px; }
  .h-hero-ctas { margin-top: 24px; }
  .h-hero-ctas .btn { padding: 12px 22px; }
  .h-promises { margin-top: 20px; }
  .h-hero-note { margin-top: 12px; }
  .h-demo, .h-demo-stack { min-height: 470px; }
  .h-resume { top: 170px; }
  .h-verdict { top: -20px; }
}

@media (prefers-reduced-motion: reduce) {
  .h-page *, .h-page *::before, .h-page *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .h-demo-stack, .h-hero::after { animation: none !important; }
}
