:root {
  --ink: #18181B;
  --ink-2: #26262B;
  --orange: #F97316;
  --orange-deep: #C2410C;
  --paper: #FFFFFF;
  --tint: #FFF7ED;
  --body: #333333;
  --muted: #6B6B72;
  --rule: #E7E5E4;
  --reject: #C0392B;
  --on-ink: #E4E4E7;
  --on-ink-muted: #A1A1AA;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--body); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -0.035em; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ref { font-family: var(--mono); font-size: 0.8em; font-weight: 500; color: var(--orange-deep); background: var(--tint); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 700; font-size: 17px; text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: #EA580C; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { color: var(--on-ink); border: 1px solid #3F3F46; }
.btn-ghost:hover { border-color: var(--on-ink-muted); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }

/* Header */
.site-header { background: var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font-weight: 600; font-size: 15px; }
.brand img { width: 34px; height: 34px; }

/* Hero */
.hero { background: var(--ink); color: var(--on-ink); padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(28px, 4vw, 56px); align-items: start; }
.hero-copy { max-width: 34rem; }
.hero-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--orange); }
.hero h1 { color: #fff; font-size: clamp(26px, 3.1vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; margin: 0 0 8px; max-width: 18ch; text-wrap: balance; }
.hero-for { margin: 0 0 18px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.25; color: #fff; max-width: 22ch; text-wrap: balance; }
.hero h1 .accent, .hero-for .accent { color: var(--orange); }
.hero .lede { color: var(--on-ink-muted); font-size: 16px; line-height: 1.55; max-width: 42ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, auto); gap: 8px 28px; justify-content: start; }
.facts li { font-size: 14px; color: var(--on-ink-muted); line-height: 1.35; }
.facts strong { display: block; color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }

/* Review card: the interactive moment */
.review-card { background: var(--paper); color: var(--body); border-radius: 16px; padding: 24px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); position: relative; }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; }
.rc-app { display: flex; align-items: center; gap: 12px; }
.rc-icon { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(145deg, #34D399, #059669); display: grid; place-items: center; }
.rc-icon svg { width: 24px; height: 24px; }
.rc-name { font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.2; }
.rc-ver { font-size: 13px; color: var(--muted); }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; white-space: nowrap; transition: background-color .3s ease, color .3s ease; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status[data-state="rejected"] { background: #FDECEA; color: var(--reject); }
.status[data-state="review"] { background: #F4F4F5; color: var(--ink); }
.status[data-state="approved"] { background: var(--orange); color: #fff; }
.rc-note { font-size: 14.5px; line-height: 1.5; background: #FAFAF9; border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.rc-note b { color: var(--ink); }
.rc-label { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.fixes { list-style: none; margin: 0 0 16px; padding: 0; }
.fixes li + li { border-top: 1px solid var(--rule); }
.fixes label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 2px; cursor: pointer; font-size: 15px; line-height: 1.4; }
.fixes input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink); border-radius: 5px; display: grid; place-items: center; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.fixes input::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.fixes input:checked { background: var(--orange); border-color: var(--orange); }
.fixes input:checked::after { opacity: 1; }
.fixes input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(0,0,0,.25); }
.fixes .ref { margin-left: 4px; }
.rc-bar { height: 6px; background: #F4F4F5; border-radius: 99px; overflow: hidden; }
.rc-bar span { display: block; height: 100%; width: 0; background: var(--orange); transition: width .35s ease; }
.rc-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 10px; }
.rc-approved { position: absolute; inset: 0; border-radius: 16px; background: rgba(255,255,255,.96); display: grid; place-items: center; text-align: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.rc-approved.show { opacity: 1; pointer-events: auto; }
.rc-approved .big { font-size: 56px; font-weight: 800; letter-spacing: -0.05em; color: var(--ink); line-height: 1; margin-bottom: 10px; }
.rc-approved .big span { color: var(--orange); }
.rc-approved p { color: var(--muted); max-width: 30ch; margin: 0 auto 16px; font-size: 15px; }
.rc-reset { background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.card-caption { font-size: 14px; color: var(--on-ink-muted); margin-top: 14px; text-align: center; }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { font-size: 19px; color: var(--muted); margin-top: 16px; max-width: 60ch; }

/* Rejection map */
.map { width: 100%; border-collapse: collapse; font-size: 16px; }
.map th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 2px solid var(--ink); }
.map td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.map td:first-child { width: 22%; font-weight: 700; color: var(--ink); }
.map td:first-child .ref { display: inline-block; margin-bottom: 6px; }
.map td:nth-child(2) { width: 36%; }
.map td:last-child { color: var(--muted); }

/* Inside */
.inside { background: var(--tint); overflow-x: clip; }
.inside-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.pages { position: sticky; top: 32px; height: 560px; }
.pages img { position: absolute; width: 68%; border-radius: 6px; box-shadow: 0 18px 40px -16px rgba(24,24,27,.45); border: 1px solid rgba(24,24,27,.08); }
.pages .p1 { left: 0; top: 0; z-index: 3; }
.pages .p2 { left: 22%; top: 40px; z-index: 2; transform: rotate(3deg); }
.pages .p3 { left: 38%; top: 92px; z-index: 1; transform: rotate(6deg); }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.toc li { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; padding: 18px 0; border-bottom: 1px solid rgba(24,24,27,.12); }
.toc .n { font-weight: 800; color: var(--orange-deep); font-size: 17px; }
.toc h3 { font-size: 18px; }
.toc p { grid-column: 2; margin: 2px 0 0; font-size: 15.5px; color: var(--muted); }
.toc .pg { font-size: 14px; color: var(--muted); grid-row: 1; grid-column: 3; }
.toc li.check .n { color: var(--ink); }

/* Workflow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.flow li { list-style: none; padding: 22px 24px 0 0; }
.flow li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.flow ol { margin: 0; padding: 0; display: contents; }
.flow .step { font-size: 14px; font-weight: 600; color: var(--orange-deep); margin-bottom: 10px; }
.flow h3 { margin-bottom: 10px; }
.flow p { font-size: 15.5px; color: var(--muted); }

/* Case files */
.cases { background: var(--ink); color: var(--on-ink); }
.cases h2 { color: #fff; }
.cases .section-head p { color: var(--on-ink-muted); }
.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.case { border-top: 2px solid var(--orange); padding-top: 22px; }
.case h3 { color: #fff; margin-bottom: 8px; }
.case .refs { margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.case .ref { background: var(--ink-2); color: #FDBA74; }
.case p { font-size: 15.5px; color: var(--on-ink-muted); }
.case .lesson { color: #fff; font-weight: 500; }

/* Toolkit */
.toolkit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.tk-list { list-style: none; margin: 0; padding: 0; }
.tk-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.tk-list li:first-child { border-top: 1px solid var(--rule); }
.tk-list b { color: var(--ink); display: block; margin-bottom: 2px; }
.tk-list span { color: var(--muted); font-size: 15.5px; }
.terminal { background: var(--ink); border-radius: 12px; padding: 20px 22px; color: #E7E5E4; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; margin-bottom: 18px; }
.terminal .c { color: #A1A1AA; }
.terminal .o { color: #FDBA74; }
.credit { font-size: 15px; color: var(--muted); border-left: 3px solid var(--orange); padding: 2px 0 2px 16px; }
.credit b { color: var(--ink); }

/* Fit */
.fit { background: var(--tint); }
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.fit h3 { margin-bottom: 14px; font-size: 22px; }
.fit ul { margin: 0; padding-left: 20px; }
.fit li { margin-bottom: 10px; }

/* Author */
.author .wrap { display: grid; grid-template-columns: 120px 1fr; gap: 32px; align-items: start; max-width: 860px; }
.author-mark { width: 120px; height: 120px; border-radius: 20px; background: var(--ink); display: grid; place-items: center; }
.author-mark img { width: 70px; }
.author h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.author p { font-size: 18px; }

/* FAQ */
.faq .wrap { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-weight: 700; color: var(--ink); font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-right: 40px; }

/* Final CTA */
.final { background: var(--ink); color: var(--on-ink); text-align: left; }
.final .wrap { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 48px; align-items: center; }
.final h2 { color: #fff; font-size: clamp(36px, 5.5vw, 64px); margin-bottom: 18px; }
.final p { color: var(--on-ink-muted); max-width: 48ch; margin-bottom: 28px; font-size: 18px; }
.final .cover-shot { border-radius: 8px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: rotate(-3deg); max-width: 300px; justify-self: center; }
.pay-note { font-size: 14px; color: var(--on-ink-muted); margin-top: 14px; }

footer { background: var(--ink); color: var(--on-ink-muted); border-top: 1px solid #2E2E33; padding: 32px 0 40px; font-size: 13.5px; }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--on-ink); }
footer .legal { max-width: 90ch; line-height: 1.55; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .inside-grid, .toolkit-grid, .fit-grid, .final .wrap { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero h1, .hero-for { max-width: 26ch; }
  .pages { position: relative; top: 0; height: 420px; max-width: 520px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 24px; }
  .case-list { grid-template-columns: 1fr; }
  .final .cover-shot { justify-self: start; max-width: 220px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .facts { grid-template-columns: repeat(3, auto); gap: 8px 18px; }
  .facts strong { font-size: 19px; }
  .hero-actions .btn { width: 100%; }
  .review-card { padding: 18px; }
  .map thead { display: none; }
  .map, .map tbody, .map tr, .map td { display: block; width: 100% !important; }
  .map tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .map td { border: 0; padding: 2px 0; }
  .map td:nth-child(2) { color: var(--ink); }
  .pages { height: 330px; }
  .pages img { width: 56%; }
  .pages .p2 { left: 20%; top: 28px; }
  .pages .p3 { left: 38%; top: 60px; transform: rotate(4deg); }
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li + li { padding: 20px 0 0; border-left: 0; }
  .flow li + li { border-top: 1px solid var(--rule); margin-top: 20px; }
  .author .wrap { grid-template-columns: 1fr; }
  .author-mark { width: 84px; height: 84px; border-radius: 16px; }
  .author-mark img { width: 50px; }
  .toc li { grid-template-columns: 36px 1fr; }
  .toc .pg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Legal & utility pages */
.legal-page main { padding: clamp(48px, 8vw, 80px) 0; }
.legal-page .prose { max-width: 720px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 20px; }
.legal-page h2 { font-size: 20px; margin: 28px 0 10px; }
.legal-page ul { margin: 0 0 14px; padding-left: 20px; }
.legal-page li { margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.thanks-page { background: var(--tint); min-height: 60vh; display: flex; align-items: center; }
.thanks-page .box { max-width: 520px; }
.thanks-page h1 { margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.not-found-page { padding: clamp(48px, 10vw, 88px) 0 clamp(72px, 12vw, 112px); background: var(--tint); min-height: calc(100vh - 68px); display: flex; align-items: center; }
.not-found-page .nf-wrap { max-width: 440px; margin: 0 auto; text-align: center; }
.not-found-page .nf-code { font-size: clamp(88px, 18vw, 128px); font-weight: 800; letter-spacing: -0.06em; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.not-found-page .nf-code span { color: var(--orange); }
.not-found-page h1 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 14px; }
.not-found-page .nf-lede { color: var(--muted); font-size: 16px; margin-bottom: 22px; max-width: 36ch; margin-left: auto; margin-right: auto; }
.not-found-page .nf-card { text-align: left; background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: 16px 18px; margin-bottom: 28px; font-size: 14.5px; line-height: 1.5; box-shadow: 0 12px 40px -24px rgba(24,24,27,.25); }
.not-found-page .nf-card b { color: var(--ink); }
.not-found-page .nf-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.not-found-page .nf-ghost { color: var(--ink); border-color: var(--rule); }
.not-found-page .nf-ghost:hover { border-color: var(--muted); }
