:root {
  --coral: #e8654a;
  --coral-dark: #a83d2b;
  --teal: #176f70;
  --paper: #efe4d2;
  --paper-light: #faf7f2;
  --cream: #fff8ed;
  --ink: #242424;
  --muted: rgba(36, 36, 36, .7);
  --line: rgba(36, 36, 36, .15);
  --slab: 'Alfa Slab One', Georgia, serif;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; }
[hidden] { display: none !important; }

.site-header { min-height: 78px; padding: 24px clamp(20px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.site-header a { font-family: var(--serif); font-size: 24px; text-decoration: none; }
.site-header span { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; }

.edge-tab { position: fixed; right: 0; top: 50%; z-index: 70; transform: translateY(-50%); writing-mode: vertical-rl; border: 1px solid rgba(232,101,74,.58); border-right: 0; border-radius: 8px 0 0 8px; background: rgba(255,248,237,.95); color: var(--ink); padding: 18px 10px; font-family: var(--serif); font-style: italic; font-size: 18px; cursor: pointer; }
.edge-menu { position: fixed; top: 0; right: 0; z-index: 80; width: min(420px, calc(100vw - 28px)); min-height: 100dvh; padding: 34px; background: var(--ink); color: var(--paper-light); transform: translateX(102%); visibility: hidden; pointer-events: none; transition: transform .38s cubic-bezier(.22,1,.36,1), visibility 0s linear .38s; }
.menu-open .edge-menu { transform: translateX(0); visibility: visible; pointer-events: auto; transition: transform .38s cubic-bezier(.22,1,.36,1); }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.18); font-family: var(--serif); font-size: 25px; }
.menu-close { width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; color: inherit; font-size: 26px; cursor: pointer; }
.edge-menu nav { display: grid; margin-top: 26px; }
.edge-menu nav a { display: grid; gap: 4px; padding: 20px 0; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.14); }
.edge-menu nav strong { font-family: var(--slab); font-size: 24px; }
.edge-menu nav span { color: rgba(255,255,255,.65); }

.hero { min-height: calc(100svh - 78px); padding: clamp(64px, 10vw, 150px) clamp(20px, 7vw, 120px) 72px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(44px, 8vw, 120px); align-items: end; background: radial-gradient(circle at 82% 18%, rgba(255,255,255,.9), transparent 32%), var(--paper); }
.hero-copy { max-width: 960px; }
.eyebrow { margin: 0 0 20px; color: var(--coral-dark); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.eyebrow.light { color: #f3c36c; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-family: var(--slab); font-size: clamp(54px, 8vw, 126px); line-height: .96; font-weight: 400; }
h1 em { color: var(--coral); font-family: var(--serif); font-weight: 400; }
.hero-lead { max-width: 780px; margin-bottom: 34px; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 40px); line-height: 1.2; color: var(--muted); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 22px; border: 0; border-radius: 4px; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { background: var(--coral); color: white; box-shadow: 0 12px 28px rgba(168,61,43,.22); }
.button.cream { background: var(--cream); color: var(--ink); }
.hero-proof { display: grid; border-top: 1px solid var(--line); }
.hero-proof div { min-height: 86px; display: grid; grid-template-columns: 56px 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.hero-proof strong { font-family: var(--slab); font-size: 25px; color: var(--coral); }
.hero-proof span { font-weight: 700; }

.access-band { padding: clamp(54px, 7vw, 100px) clamp(20px, 7vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr); gap: clamp(36px, 8vw, 110px); background: var(--teal); color: var(--cream); }
.access-copy h2, .section-heading h2, .two-week-plan h2, .sla-bridge h2, .sources h2 { font-family: var(--slab); font-weight: 400; }
.access-copy h2 { max-width: 780px; font-size: clamp(38px, 5.4vw, 78px); line-height: 1.02; }
.access-copy p:last-child { max-width: 700px; font-family: var(--serif); font-size: 24px; line-height: 1.35; color: rgba(255,248,237,.78); }
.access-form { display: grid; gap: 16px; align-content: center; }
.access-form label, .calculator label { display: grid; gap: 8px; font-size: 13px; font-weight: 800; }
input, select { width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid rgba(36,36,36,.3); border-radius: 4px; background: var(--paper-light); color: var(--ink); }
.access-form input { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.96); }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-status { min-height: 22px; margin: 0; font-weight: 700; }
.privacy-note { margin: -4px 0 0; color: rgba(255,248,237,.7); font-size: 12px; }

.tool-section { padding: clamp(66px, 9vw, 130px) clamp(20px, 7vw, 120px); }
.section-heading { max-width: 920px; margin-bottom: 44px; }
.section-heading h2 { margin-bottom: 18px; font-size: clamp(42px, 6vw, 86px); line-height: 1; }
.section-heading > p:last-child { max-width: 750px; font-family: var(--serif); font-size: 22px; color: var(--muted); }
.calculator { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.calculator fieldset { margin: 0; padding: 28px; display: grid; gap: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-light); }
.calculator legend { padding: 0 8px; font-family: var(--slab); font-size: 24px; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.segmented { width: max-content; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.segmented label { display: block; }
.segmented input { position: absolute; width: auto; min-height: 0; opacity: 0; pointer-events: none; }
.segmented span { display: block; min-width: 76px; padding: 10px 18px; text-align: center; cursor: pointer; }
.segmented input:checked + span { background: var(--ink); color: var(--cream); }
.results { margin-top: 20px; padding: 28px; border-radius: 6px; background: var(--ink); color: var(--cream); }
.result-placeholder { color: rgba(255,248,237,.72); }
.metric-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.18); }
.metric { min-height: 150px; padding: 24px; display: grid; align-content: space-between; gap: 18px; background: var(--ink); }
.metric span { font-family: var(--slab); font-size: clamp(24px, 3vw, 42px); line-height: 1.05; }
.metric small { color: rgba(255,248,237,.68); line-height: 1.4; }
.two-week-plan { margin-top: 20px; padding: clamp(30px, 5vw, 68px); display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; border-radius: 6px; background: var(--coral-dark); color: var(--cream); }
.two-week-plan h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.two-week-plan ol { margin: 0; padding: 0; list-style: none; counter-reset: plan; display: grid; }
.two-week-plan li { counter-increment: plan; display: grid; grid-template-columns: 42px 150px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.two-week-plan li::before { content: counter(plan, decimal-leading-zero); color: #f3c36c; font-family: var(--slab); }
.two-week-plan li span { color: rgba(255,248,237,.78); }

.sla-bridge { padding: clamp(66px, 9vw, 130px) clamp(20px, 7vw, 120px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 50px; align-items: end; background: var(--paper-light); }
.sla-bridge > div { max-width: 950px; }
.sla-bridge h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1; }
.sla-bridge p:not(.eyebrow) { max-width: 760px; font-family: var(--serif); font-size: 22px; color: var(--muted); }
.sources { padding: 64px clamp(20px, 7vw, 120px); border-top: 1px solid var(--line); }
.sources h2 { font-size: 30px; }
.sources p { max-width: 900px; line-height: 1.65; color: var(--muted); }
.source-links { display: flex; flex-wrap: wrap; gap: 16px 30px; font-weight: 700; }
footer { padding: 28px clamp(20px, 7vw, 120px); display: flex; gap: 24px; border-top: 1px solid var(--line); font-size: 13px; }
footer span { margin-right: auto; font-weight: 800; }

@media (max-width: 820px) {
  .site-header { padding-right: 54px; }
  .hero { min-height: auto; grid-template-columns: 1fr; align-items: start; padding-top: 74px; }
  h1 { font-size: clamp(50px, 15vw, 74px); }
  .hero-proof { margin-top: 10px; }
  .access-band, .calculator, .two-week-plan, .sla-bridge { grid-template-columns: 1fr; }
  .access-form { max-width: 560px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { min-height: 112px; }
  .two-week-plan { gap: 10px; }
  .two-week-plan li { grid-template-columns: 34px 1fr; }
  .two-week-plan li span { grid-column: 2; }
  .sla-bridge { align-items: start; }
}

@media (max-width: 480px) {
  .site-header span { display: none; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero-lead { font-size: 23px; }
  .button { width: 100%; }
  .access-band, .tool-section, .sla-bridge, .sources { padding-left: 18px; padding-right: 18px; }
  .calculator fieldset, .results { padding: 20px; }
  .field-pair { grid-template-columns: 1fr 1fr; }
  .two-week-plan { padding: 24px 20px; }
  footer { flex-wrap: wrap; }
  footer span { width: 100%; }
}

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