/* Olive — runolive.ai
   Tokens match the app (platform frontend/src/index.css @ 46a849a unless noted).
   Two text roles use a darker app value where the app token is below WCAG AA on the
   page background: secondary text (#78745F → the app's #5A5A4F) and inline links
   (#6B7C4A → the app's #2F3A1F). Fonts are self-hosted (no third-party requests), OFL-1.1. */

/* Newsreader: the app's own file, @fontsource-variable/newsreader 5.2.10, latin, wght 200–800 */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
/* Plus Jakarta Sans: the app loads it from Google Fonts; self-hosted here from @fontsource-variable/plus-jakarta-sans 5.3.0, latin, wght 200–800 */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2-variations"), url("fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --ink: #2D3319;        /* --olive-ink (index.css:19); logo ink (Logo.tsx:9) */
  --olive: #6B7C4A;      /* --olive-accent = --primary (index.css:20, :34): buttons, accents */
  --olive-deep: #2F3A1F; /* --olive-dark-mid (index.css:18): primary hover (button.tsx:14); inline links */
  --on-olive: #FAFAF7;   /* --primary-foreground (index.css:35) */
  --leaf: #6B7F3B;       /* logo leaf (Logo.tsx:8): review marks */
  --stone: #5A5A4F;      /* secondary body text (BriefTab.tsx:964) */
  --paper: #F5F3EE;      /* --olive-bg = --background (index.css:22) */
  --paper-deep: #F1EAD9; /* warm wash, top stop of the home gradient (HomePage.tsx:32) */
  --card: #FFFFFF;       /* --olive-card (index.css:23) */
  --sage: #E6E8D8;       /* --accent (index.css:42) */
  --line: #E8E6DD;       /* --olive-border (index.css:24) */
  --input: #DED9CC;      /* --input (index.css:48): form field borders */
  --warning: #8B3A3A;    /* --olive-warning = --destructive (index.css:25) */
  --warning-bg: #FDF7F7; /* warning card background (BriefTab.tsx:949) */
  --radius-md: 8px;      /* calc(--radius - 2px), --radius 0.625rem (index.css:14, :63) */
  --radius-lg: 10px;     /* --radius */
  --radius-xl: 14px;     /* calc(--radius + 4px) (index.css:65): cards (card.tsx:10) */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);                               /* Tailwind v4 shadow-xs */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); /* Tailwind v4 shadow-sm: cards, primary button */
  --serif: "Newsreader", Georgia, serif;             /* --font-serif (index.css:60) */
  --sans: "Plus Jakarta Sans", system-ui, sans-serif; /* --font-sans (index.css:59) */
  --measure: 68ch;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper-deep) 0%, var(--paper) 520px) var(--paper); /* the app's warm wash: linear-gradient(180deg,#F1EAD9 0%,#F5F3EE 100%) */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--olive-deep); text-decoration-color: var(--olive); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 4px; } /* focus ring = --ring */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { padding: 26px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 30px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--olive); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 24px; border-radius: var(--radius-md); font: 600 14px/20px var(--sans); white-space: nowrap; text-decoration: none; transition: background-color .15s ease, color .15s ease; } /* button.tsx:8 base + size lg (:30) */
.btn-primary { background: var(--olive); color: var(--on-olive); box-shadow: var(--shadow-sm); } /* variant default (button.tsx:13-14) */
.btn-primary:hover { background: var(--olive-deep); color: var(--on-olive); }
.btn-quiet { color: var(--ink); padding: 0 16px; } /* variant ghost (button.tsx:24) */
.btn-quiet:hover { background: var(--sage); color: #142016; } /* --accent / --accent-foreground = --olive-dark (index.css:17) */

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.hero h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; margin: 0 0 24px; max-width: 15ch; }
.lede { font-size: 19px; line-height: 1.6; color: var(--stone); max-width: 46ch; margin: 0 0 32px; }
section h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.12; margin: 0 0 16px; max-width: 26ch; }
section .intro { color: var(--stone); max-width: 58ch; margin: 0; }

/* Hero */
.hero { padding: 40px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* The review sheet: the one memorable element */
.sheet { position: relative; margin: 0; padding-right: 172px; }
.draft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: 0 1px 0 rgba(45,51,25,.04), 0 18px 40px -24px rgba(45,51,25,.28); padding: 22px 24px 26px; font-size: 15px; }
.draft-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.draft-head .who { font-weight: 600; }
.draft-head .role { color: var(--stone); font-size: 14px; display: block; font-weight: 400; }
.status { font-size: 13px; font-weight: 600; color: var(--olive-deep); background: var(--sage); border-radius: 999px; padding: 5px 10px; white-space: nowrap; }
.draft .subject { font-weight: 600; margin: 0 0 12px; }
.draft p { margin: 0 0 12px; }
.draft p:last-child { margin-bottom: 0; }
.mark { background: linear-gradient(transparent 58%, rgba(107,127,59,.22) 0); padding: 0 1px; }
.cut { color: #9A968A; text-decoration: line-through; text-decoration-color: rgba(107,127,59,.8); }
.notes { position: absolute; top: 64px; right: 0; width: 160px; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.notes li { font-size: 13px; line-height: 1.45; color: var(--ink); background: var(--sage); border-left: 3px solid var(--leaf); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 9px 11px; }
.notes li span { display: block; color: var(--stone); font-size: 12px; margin-top: 2px; }
.sheet-foot { margin-top: 14px; font-size: 13px; color: var(--stone); }

@media (prefers-reduced-motion: no-preference) {
  .notes li { opacity: 0; transform: translateX(6px); animation: note-in .45s ease forwards; }
  .notes li:nth-child(1) { animation-delay: .5s; }
  .notes li:nth-child(2) { animation-delay: .9s; }
  .notes li:nth-child(3) { animation-delay: 1.3s; }
  @keyframes note-in { to { opacity: 1; transform: none; } }
}

/* Sections */
.band { padding: 88px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--leaf); margin-bottom: 14px; }
.steps h3 { font-size: 22px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--stone); font-size: 16px; }

.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.points { margin: 0; padding: 0; list-style: none; }
.points li { padding: 22px 0; border-bottom: 1px solid var(--line); }
.points li:first-child { padding-top: 0; }
.points h3 { font-size: 22px; margin: 0 0 6px; }
.points p { margin: 0; color: var(--stone); }

.outputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.output { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 24px; }
.output h3 { font-size: 22px; margin: 0 0 6px; }
.output p { margin: 0; color: var(--stone); font-size: 16px; }

.closing { padding: 96px 0 104px; border-top: 1px solid var(--line); }
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.closing h2 { margin-bottom: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 14px; color: var(--stone); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.site-footer img { height: 22px; width: auto; display: block; margin-bottom: 12px; }
.site-footer p { margin: 0; max-width: 46ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: flex-start; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--olive); text-decoration: underline; }

/* Legal and utility pages */
.doc { padding: 24px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 4.2vw, 48px); line-height: 1.08; margin: 16px 0 12px; }
.doc .doc-meta { color: var(--stone); font-size: 15px; margin: 0 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.prose { font-size: 16px; line-height: 1.7; max-width: var(--measure); }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 26px; }
.prose li { margin-bottom: 8px; }
.prose li > p { margin: 0 0 8px; }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; background: var(--sage); }
.prose .clause-num { font-weight: 600; margin-right: 6px; }
.todo { background: #F6E7B8; border-radius: 3px; padding: 0 4px; font-weight: 600; }

/* Numbered legal lists (DPA): numbers are written into the text, so hide browser markers */
.prose ol.legal-l1, .prose ol.legal-l2 { list-style: none; padding-left: 0; }
.prose ol.legal-l1 > li > h2 { margin-top: 40px; }
.prose ol[type="a"] { list-style: lower-alpha; padding-left: 28px; }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .split, .closing .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { flex-wrap: wrap; row-gap: 12px; }
  .site-nav { width: 100%; gap: 18px; font-size: 14px; overflow-x: auto; white-space: nowrap; }
  .hero { padding: 16px 0 72px; }
  .sheet { padding-right: 0; }
  .notes { position: static; width: auto; margin-top: 14px; }
  .steps, .outputs { grid-template-columns: minmax(0, 1fr); }
  .band { padding: 64px 0; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Problem section */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; }
.needs h3 { font-size: 22px; margin: 0 0 8px; }
.needs p { margin: 0; color: var(--stone); font-size: 16px; }
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.audience h3 { font-size: 24px; margin: 0 0 10px; }
.audience p { margin: 0 0 12px; color: var(--stone); max-width: 56ch; }
.statement { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; color: var(--ink); max-width: 40ch; margin: 64px 0 0; padding-left: 24px; border-left: 3px solid var(--leaf); }

/* Multi-threading illustration */
.threads { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 24px; }
.threads-account { font-weight: 600; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.threads dl { margin: 0; display: grid; gap: 12px; }
.threads dl > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding: 12px 14px; background: var(--sage); border-radius: var(--radius-lg); }
.threads dt { font-weight: 600; font-size: 15px; }
.threads dd { margin: 0; font-size: 15px; color: var(--ink); }
.threads figcaption { margin-top: 14px; font-size: 13px; color: var(--stone); }

@media (max-width: 960px) {
  .needs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .audience { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
  .threads dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps-3 { grid-template-columns: minmax(0, 1fr); } }

/* Pack contents card */
.pack-points { margin-top: 28px; }
.packcard { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 24px; }
.packcard-title { font-weight: 600; margin: 0 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.packcard dl { margin: 0; display: grid; gap: 12px; }
.packcard dl > div { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 16px; padding: 12px 14px; background: var(--sage); border-radius: var(--radius-lg); }
.packcard dt { font-weight: 600; font-size: 15px; }
.packcard dd { margin: 0; font-size: 15px; }
.packcard figcaption { margin-top: 14px; font-size: 13px; color: var(--stone); }
@media (max-width: 640px) { .packcard dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

/* Tablets in landscape: stack the hero so the review notes never cover the draft */
@media (max-width: 1100px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .sheet { max-width: 760px; }
}

/* Sign-up / contact form (no JavaScript; errors are rendered by the Pages Function) */
.form { margin-top: 28px; max-width: 560px; display: grid; gap: 20px; }
.form .field { display: grid; gap: 6px; }
.form label, .form legend { font-weight: 600; font-size: 15px; }
.form .optional { font-weight: 400; color: var(--stone); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--card);
  border: 1px solid var(--input); border-radius: var(--radius-md); padding: 10px 12px; box-shadow: var(--shadow-xs);
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--olive); outline-offset: 1px; border-color: var(--olive); }
.form [aria-invalid="true"] { border-color: var(--warning); }
.form .intent { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.form .intent legend { padding: 0; margin-bottom: 4px; }
.form .intent label { font-weight: 400; display: flex; align-items: center; gap: 10px; }
.form .intent input { width: 18px; height: 18px; accent-color: var(--olive); margin: 0; }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-error { margin: 0; padding: 12px 14px; color: var(--warning); background: var(--warning-bg); border: 1px solid rgba(139,58,58,.25); border-radius: var(--radius-md); font-size: 15px; }
.form-error[hidden] { display: none; }
.form-privacy { margin: 0; font-size: 14px; color: var(--stone); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
