:root {
  --paper: #f4eddf;
  --ink: #161813;
  --orange: #f25c2a;
  --acid: #d8f24a;
  --green: #1f4c3b;
  --line: rgba(22, 24, 19, 0.22);
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter Tight", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 20; background: white; padding: .8rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  min-height: 76px;
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 700; letter-spacing: -.03em; }
.brand-zero { background: var(--ink); color: var(--paper); padding: .28rem .42rem; }
.brand-slash { color: var(--orange); font-size: 1.35rem; }
.status { display: flex; align-items: center; gap: .55rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .11em; }
.status i { width: .58rem; height: .58rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(31, 76, 59, .12); }

.hero { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1.2fr .8fr; }
.hero-copy { padding: clamp(4rem, 9vw, 8rem) clamp(1.2rem, 7vw, 8rem); border-right: 1px solid var(--line); }
.eyebrow, .section-label { margin: 0 0 2.2rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.hero h1 { margin: 0; font-size: clamp(4.7rem, 10.5vw, 10rem); line-height: .78; letter-spacing: -.075em; font-weight: 600; }
.hero h1 em, h2 em { font-family: var(--serif); font-weight: 400; color: var(--orange); }
.lede { max-width: 42rem; margin: 3rem 0 0; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.45; }
.hero-actions { display: flex; align-items: center; gap: 1.6rem; margin-top: 2.4rem; flex-wrap: wrap; }
.primary-button { border: 0; border-radius: 0; background: var(--ink); color: white; padding: 1.05rem 1.25rem; min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; cursor: pointer; font-weight: 650; text-decoration: none; box-shadow: 7px 7px 0 var(--orange); transition: transform .18s, box-shadow .18s; }
.primary-button:hover { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--orange); }
.primary-button:focus-visible, .secondary-button:focus-visible, .balloon-button:focus-visible, .dialog-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.text-link { text-underline-offset: .35rem; font-weight: 600; }
.microcopy { margin-top: 1.5rem; color: rgba(22, 24, 19, .67); font-size: .88rem; }
.hero-stage { padding: clamp(3rem, 6vw, 6rem) clamp(1.2rem, 4vw, 4rem); background: var(--acid); display: flex; flex-direction: column; justify-content: center; }
.stage-card { border: 2px solid var(--ink); padding: 1.5rem; background: var(--paper); box-shadow: 9px 9px 0 var(--ink); }
.stage-card strong { display: block; margin-top: 1.7rem; font-size: clamp(1.4rem, 2.5vw, 2.2rem); letter-spacing: -.04em; }
.stage-card p { margin: .7rem 0 0; line-height: 1.4; }
.stage-index { font-size: .72rem; font-weight: 700; }
.stage-ceo { background: var(--orange); color: #fff; transform: rotate(-1.2deg); }
.stage-arrow { font-size: 2rem; text-align: center; padding: .75rem; }
.horse-track { border-bottom: 2px dashed var(--ink); padding-top: 2.6rem; display: flex; justify-content: space-between; align-items: flex-end; font-size: 1.8rem; }
.carrots { font-size: 1.2rem; letter-spacing: .2rem; }

.pain { padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 8rem); background: var(--ink); color: white; }
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.28); border: 1px solid rgba(255,255,255,.28); }
.pain-card { padding: clamp(2rem, 5vw, 4.2rem); background: var(--ink); min-height: 440px; display: flex; flex-direction: column; align-items: flex-start; }
.pain-card > span { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--acid); }
.pain-card h2 { margin: auto 0 1.5rem; max-width: 11ch; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: .95; letter-spacing: -.055em; }
.pain-card p { max-width: 33rem; line-height: 1.5; color: rgba(255,255,255,.72); }
.pain-card a { margin-top: 1.4rem; color: var(--acid); font-weight: 650; text-underline-offset: .35rem; }
.pain-paper { background: var(--orange); }
.pain-paper > span, .pain-paper a { color: var(--ink); }
.pain-paper p { color: rgba(255,255,255,.88); }

.birth { padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 8rem); }
.birth-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 4rem; align-items: end; }
.birth h2, .workspace h2, .final-cta h2 { margin: 0; font-size: clamp(3.3rem, 7vw, 7rem); line-height: .92; letter-spacing: -.06em; }
.birth-intro > p { max-width: 36rem; font-size: 1.2rem; line-height: 1.55; }
.steps { list-style: none; margin: 5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.steps li { padding: 1.4rem 2rem 2rem 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 2rem; }
.steps li:last-child { border-right: 0; }
.steps span { font-size: .72rem; font-weight: 700; }
.steps h3 { margin: 2.6rem 0 .8rem; font-size: 1.5rem; letter-spacing: -.04em; }
.steps p { margin: 0; line-height: 1.5; color: rgba(22, 24, 19, .72); }
.steps-four { grid-template-columns: repeat(4, 1fr); }
.process-actions { margin-top: 3rem; display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.process-actions .secondary-button { min-height: 54px; display: inline-flex; align-items: center; text-decoration: none; }

.workspace { background: var(--green); color: white; padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 8rem); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.workspace-copy > p:last-child { max-width: 36rem; margin-top: 2rem; font-size: 1.13rem; line-height: 1.55; color: rgba(255,255,255,.78); }
.folder { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); box-shadow: 14px 14px 0 var(--orange); transform: rotate(1deg); }
.folder-tab { display: inline-block; margin-top: -2.6rem; padding: .8rem 1.2rem; background: var(--orange); color: white; font-size: .72rem; font-weight: 700; letter-spacing: .1em; }
.folder ul { list-style: none; margin: 0; padding: 1.1rem 1.5rem 1.5rem; }
.folder li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1.2rem; font-weight: 600; }
.folder li:last-child { border-bottom: 0; }
.folder li span { color: var(--orange); font-size: .75rem; }

.memory-rule { padding: clamp(5rem, 9vw, 9rem) clamp(1.2rem, 7vw, 8rem); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.memory-rule .section-label { grid-column: 1 / -1; margin-bottom: 0; }
.memory-rule h2 { margin: 0; font-size: clamp(3.3rem, 7vw, 7rem); line-height: .92; letter-spacing: -.06em; }
.memory-rule h2 em { font-family: var(--serif); font-weight: 400; color: var(--orange); }
.memory-rule > p:last-child { margin: 0; max-width: 38rem; font-size: 1.2rem; line-height: 1.55; }

.final-cta { padding: clamp(5rem, 10vw, 10rem) clamp(1.2rem, 7vw, 8rem); background: var(--orange); color: white; text-align: center; }
.final-cta > p { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; }
.final-cta h2 em { color: var(--acid); }
.light-button { margin-top: 3rem; background: white; color: var(--ink); box-shadow: 7px 7px 0 var(--acid); }
.final-copy { max-width: 46rem; margin: 2rem auto 0; font-size: 1.15rem; line-height: 1.5; }

footer { min-height: 210px; padding: 2.5rem clamp(1.2rem, 4vw, 4.5rem); display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: end; }
.footer-brand span { background: var(--ink); color: var(--paper); padding: .25rem .4rem; }
footer > p { max-width: 25rem; margin: 0; color: rgba(22, 24, 19, .65); }
.balloon-button { border: 0; background: transparent; display: flex; align-items: center; gap: 1rem; cursor: pointer; text-align: left; }
.balloon { width: 48px; height: 58px; border-radius: 50% 50% 48% 48%; background: var(--orange); color: transparent; display: block; position: relative; box-shadow: inset -8px -5px rgba(0,0,0,.08); transition: transform .18s; }
.balloon::after { content: ""; position: absolute; width: 1px; height: 35px; background: var(--ink); left: 50%; bottom: -34px; transform: rotate(6deg); transform-origin: top; }
.balloon-button:hover .balloon { transform: scale(1.08) rotate(3deg); }
.balloon-label { font-size: .76rem; line-height: 1.25; font-weight: 600; }

.intake { width: min(780px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 18px 18px 0 var(--orange); }
.intake::backdrop { background: rgba(15, 18, 13, .78); backdrop-filter: blur(5px); }
.intake-shell { position: relative; padding: clamp(1.5rem, 5vw, 4rem); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.intake h2 { margin: 0; max-width: 650px; font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: .93; letter-spacing: -.055em; }
.dialog-lede, .intake-result > p { line-height: 1.5; font-size: 1.05rem; }
.intake label { display: grid; gap: .5rem; margin-top: 1.25rem; font-size: .82rem; font-weight: 700; }
.intake input:not([type="file"]), .intake textarea { width: 100%; border: 1px solid var(--ink); border-radius: 0; background: white; padding: .9rem 1rem; color: var(--ink); resize: vertical; }
.intake input:focus, .intake textarea:focus { outline: 3px solid var(--acid); outline-offset: 0; }
.file-field { border: 1px dashed var(--ink); padding: 1rem; }
.file-field small { font-weight: 400; }
.file-field > span { font-weight: 400; color: rgba(22,24,19,.65); }
.form-submit { width: 100%; margin-top: 1.5rem; }
.intake-result pre { max-height: 300px; overflow: auto; white-space: pre-wrap; background: white; border: 1px solid var(--ink); padding: 1rem; font: .83rem/1.45 ui-monospace, monospace; }
.result-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.secondary-button { border: 1px solid var(--ink); background: transparent; padding: .8rem 1.2rem; cursor: pointer; font-weight: 650; }
.integration-note { border-left: 5px solid var(--acid); padding: .8rem 1rem; background: white; font-size: .9rem !important; }

.celebration { position: fixed; inset: 0; z-index: 30; pointer-events: none; display: grid; place-items: center; font-size: clamp(4rem, 15vw, 11rem); opacity: 0; }
.celebration.pop { animation: celebrate 1.4s ease-out; }
@keyframes celebrate { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1.08); } 70% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }

@media (max-width: 850px) {
  .hero, .birth-intro, .workspace, .pain-grid, .memory-rule { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .memory-rule .section-label { grid-column: auto; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero h1 { font-size: clamp(4rem, 20vw, 7rem); line-height: .88; letter-spacing: -.065em; }
  .pain-card { min-height: auto; }
  .pain-card h2 { margin: 4rem 0 1.5rem; line-height: 1.02; }
  .birth h2, .workspace h2, .memory-rule h2, .final-cta h2 { line-height: 1; letter-spacing: -.05em; }
  .steps, .steps-four { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 1.2rem; }
  footer { grid-template-columns: 1fr; align-items: start; }
  .balloon-button { margin: 1rem 0 2rem; }
}

@media (max-width: 520px) {
  .status { display: none; }
  .site-header { min-height: 68px; }
  .brand { font-size: .92rem; }
  .hero-copy { padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(3.85rem, 19vw, 5.4rem); line-height: .9; }
  .lede { margin-top: 2.4rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-button { width: 100%; gap: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
  .stage-card { box-shadow: 6px 6px 0 var(--ink); }
  .stage-ceo { transform: none; }
  .folder { margin-top: 2rem; transform: none; box-shadow: 8px 8px 0 var(--orange); }
  .folder-tab { max-width: calc(100% - 1rem); line-height: 1.25; }
  .final-cta { text-align: left; }
  .light-button { margin-top: 2.2rem; }
}

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