/* Oat — "paper and pantry". Warm, matte, unhurried. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --oat-milk: #FAF7F1; /* background: a lighter oat */
  --husk: #EDE4D3;     /* cards */
  --loam: #2E2A24;     /* text */
  --stone: #6E665A;    /* secondary text */
  --sage: #4F6B4A;     /* buttons */
  --barley: #D9A441;   /* small highlights */
  --dew: #DCE6E0;      /* info notes */
  --clay: #B4553A;     /* warnings */
  --paper: #FFFDF8;
  --sprout: #E9EFE8;   /* a very pale green for "How it works": Dew, lightened toward Oat Milk */

  --heading: "miller-display", "Fraunces", Georgia, "Times New Roman", serif; /* Miller Display from Adobe Fonts */
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 3px;
  --line: rgba(46, 42, 36, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--oat-milk);
  color: var(--loam);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
@media (max-width: 560px) { body { font-size: 1.0625rem; } }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: 0; }
h2 { font-size: clamp(1.6rem, 4vw, 2.1rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--loam); }
:focus-visible { outline: 3px solid var(--loam); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--barley); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.small { font-size: 0.95rem; line-height: 1.55; }
.muted { color: var(--stone); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--loam); color: var(--oat-milk); padding: 8px 12px; border-radius: 3px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.wordmark {
  font-family: var(--heading); font-weight: 700; font-size: 2.1rem; line-height: 1;
  letter-spacing: -0.01em; color: var(--loam); text-decoration: none;
}
.site-nav { display: flex; gap: 32px; }
.site-nav a { color: var(--loam); text-decoration: none; font-size: 1.0625rem; padding: 6px 0; }
.site-nav a:hover { color: var(--sage); text-decoration: underline; }
.header-button { padding: 13px 20px; }
@media (max-width: 980px) { .site-nav { display: none; } }
@media (max-width: 420px) { .header-button { padding: 12px 14px; font-size: 1rem; } }
/* On a phone, the header keeps "Sign in" and the language switch; the big "Join the waitlist" button is just below. */
@media (max-width: 520px) { .header-actions .header-button { display: none; } }
.header-actions { display: flex; align-items: center; gap: 20px; }
.lang-switch { color: var(--loam); font-size: 1.0625rem; text-underline-offset: 3px; white-space: nowrap; }
.lang-switch:hover { color: var(--sage); }
@media (max-width: 420px) { .header-actions { gap: 12px; } .lang-switch { font-size: 1rem; } }

/* Buttons */
.button {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font: 700 1.0625rem/1.2 var(--body);
  padding: 15px 24px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #435C3F; color: #fff; }
.button[disabled] { opacity: 0.6; cursor: default; }
.button-large { font-size: 1.2rem; padding: 20px 34px; }
.arrow-link { font-weight: 700; color: var(--loam); font-size: 1.1rem; }
.arrow-link:hover { color: var(--sage); }

/* Hero */
.hero { padding: 64px 0 80px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.eyebrow { font-weight: 700; color: var(--stone); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); line-height: 1.04; letter-spacing: -0.01em; margin-bottom: 24px; }
.lede { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.3rem); line-height: 1.55; color: #4A443B; max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin: 30px 0; }
.hero-note { border-top: 1px solid var(--line); padding-top: 18px; color: #4A443B; max-width: 34em; }
@media (max-width: 1099px) {
  .hero { padding-top: 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* The demo screen: what the person writes, then how it appears on the court form.
   It's a static picture first; site/hero.js only adds the typing, once. Text stays at least 14px. */
.demo-shot { margin: 0; min-width: 0; container-type: inline-size; }
/* A quiet label: it names the picture as an example without competing with what's in it. */
.demo-label { margin: 0 0 10px; color: #5E574C; font-size: 0.95rem; line-height: 1.4; }
.shot-window {
  background: var(--paper);
  border: 1px solid #E2D5BF;
  border-radius: 6px;
  overflow: hidden;
  /* A soft, warm-toned lift: brown shadows, not grey ones. */
  box-shadow: 0 1px 2px rgba(92, 64, 30, 0.06), 0 12px 24px -12px rgba(92, 64, 30, 0.18), 0 36px 64px -40px rgba(92, 64, 30, 0.45);
  font-size: 1rem;
  line-height: 1.5;
}
.shot-window p { margin: 0; }
.shot-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 18px; background: var(--paper); }
.shot-logo { font-family: var(--heading); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.shot-title, .shot-step { color: var(--stone); font-size: 0.9rem; }
.shot-step { margin-left: auto; color: #4A443B; background: #F3ECDF; padding: 2px 10px; border-radius: 3px; }
.shot-progress { height: 3px; background: #EFE6D6; }
.shot-progress span { display: block; width: 68%; height: 100%; background: var(--sage); }
.shot-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Sentence-case labels with a small coloured dot: green for what you write, gold for the form. */
.shot-pane-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; color: #5E574C; margin-bottom: 12px !important; }
.shot-pane-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; }
.shot-form .shot-pane-label::before { background: var(--barley); }
.shot-question { padding: 22px 24px 22px; background: #F6EFE3; }
.shot-ask { font-family: var(--heading); font-weight: 600; font-size: 1.6rem; line-height: 1.15; margin-bottom: 14px !important; }
/* The fields and buttons copy the real demo's controls (site/demo/demo.css), drawn as a picture:
   they aren't real controls, so they can't be clicked or reached with the keyboard. */
.shot-label { font-weight: 700; margin-bottom: 6px !important; }
.shot-input {
  background: var(--paper); color: var(--loam); border: 1px solid #A39783; border-radius: 3px;
  padding: 9px 12px; min-height: 2.75em; margin-bottom: 16px !important;
  box-shadow: inset 0 1px 0 rgba(46, 42, 36, 0.04);
}
/* The field being typed in has a soft green outline, as the real one does when it's in use. */
.shot-typing { min-height: 7.6em; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(79, 107, 74, 0.16); }
.shot-caret { display: none; width: 2px; height: 1.05em; margin-left: 1px; background: var(--loam); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
.demo-shot.is-playing .shot-caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.shot-buttons {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 20px !important; padding-top: 16px; border-top: 1px solid rgba(92, 64, 30, 0.12);
}
.shot-back, .shot-next {
  display: inline-flex; align-items: center; justify-content: center; min-width: 5.5em; min-height: 2.6em;
  padding: 0 18px; border-radius: 3px; font-weight: 700; font-size: 0.9375rem; line-height: 1.2;
  cursor: default; user-select: none;
}
.shot-back { color: var(--loam); background: var(--paper); border: 1px solid #A39783; }
.shot-next { background: var(--sage); color: #fff; border: 1px solid var(--sage); }
/* The court form sits on a warm desk, lifted a little like a real sheet of paper. */
.shot-form { padding: 22px 24px 24px; background: #E6D8BF; border-left: 1px solid #DCCAAC; }
/* The form looks like the printed page: plain Arial/Helvetica, dark-blue filled-in text. */
.shot-paper { background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; border-radius: 2px; padding: 16px 18px 14px; box-shadow: 0 1px 2px rgba(92, 64, 30, 0.12), 0 10px 22px -12px rgba(92, 64, 30, 0.35); }
.shot-form-top { display: flex; justify-content: space-between; font-size: 0.875rem; border-bottom: 2px solid #111; padding-bottom: 5px; margin-bottom: 10px !important; }
.shot-form-heading { font-weight: 700; font-size: 0.875rem; margin-bottom: 10px !important; }
.shot-para { display: grid; grid-template-columns: 1.6em 1fr; color: #0d1a5a; padding: 7px 8px 7px 6px; background: rgba(217, 164, 65, 0.24); border-left: 3px solid var(--barley); }
.shot-form-foot { font-size: 0.875rem; font-style: italic; color: #555; margin-top: 12px !important; line-height: 1.4; }
/* The hero plays once (site/hero.js): the sentence types in, "Next" is pressed, the new paragraph arrives. */
.shot-rest { color: transparent; }
.shot-next.shot-pressed { background: #3D5439; transform: translateY(1px); }
.shot-new.shot-waiting { opacity: 0; }
.shot-new.shot-arriving { animation: shot-arrive 1.6s ease-out; }
@keyframes shot-arrive {
  0% { opacity: 0; transform: translateY(6px); background: rgba(217, 164, 65, 0.6); }
  30% { opacity: 1; transform: none; background: rgba(217, 164, 65, 0.6); }
  100% { background: rgba(217, 164, 65, 0.24); }
}
.demo-shot figcaption { font-size: 0.95rem; line-height: 1.55; color: #4A443B; margin-top: 14px; max-width: 40em; text-wrap: pretty; }
/* When the picture is narrow (phones, or a narrow hero column), the form goes under the question. */
@container (max-width: 600px) {
  .shot-body { grid-template-columns: 1fr; }
  .shot-form { border-left: 0; border-top: 1px solid #DCCAAC; }
}
@container (max-width: 380px) {
  .shot-title { display: none; }
  .shot-question, .shot-form { padding: 18px 16px 18px; }
  .shot-paper { padding: 12px 12px 10px; }
}

/* Sections: separated by thin rules, not boxes */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }
section h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.section-lede { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem); color: #4A443B; max-width: 36em; }
.two-col-text { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.two-col-text > p { margin-top: 0.35em; }
@media (max-width: 860px) { .two-col-text { grid-template-columns: 1fr; gap: 12px; } }

/* How it works: a pale green band, three numbered columns under a rule */
.steps { background: var(--sprout); border-top: 0; padding: 80px 0; }
.steps + section { border-top: 0; }
.steps h2 { max-width: 22em; }
.step-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-list li { border-top: 2px solid var(--loam); padding-top: 18px; }
.step-num { display: block; font-family: var(--heading); font-weight: 600; font-size: 3.2rem; line-height: 1; color: var(--sage); margin-bottom: 14px; }
.step-list h3 { font-size: 1.4rem; margin-bottom: 8px; }
.step-list p { color: #3F3A32; margin: 0; max-width: 34em; }
@media (max-width: 860px) { .step-list { grid-template-columns: 1fr; gap: 28px; } }

/* Term and description rows, divided by hairlines */
.ruled-list { margin: 0; border-top: 1px solid var(--line); }
.ruled-list > div { display: grid; grid-template-columns: 13em 1fr; gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ruled-list dt { font-weight: 700; }
.ruled-list dd { margin: 0; color: #4A443B; max-width: 36em; }
@media (max-width: 560px) { .ruled-list > div { grid-template-columns: 1fr; } }

/* Two plain columns with a rule between them */
.split { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0 8px; }
.split > div { padding: 4px 40px 4px 0; }
.split > div + div { padding: 4px 0 4px 40px; border-left: 1px solid var(--line); }
@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; }
  .split > div, .split > div + div { padding: 0 0 20px; border-left: 0; }
  .split > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
}

.checks, .crosses { list-style: none; padding: 0; margin: 0; }
.checks li, .crosses li { padding-left: 1.6em; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.crosses li::before { content: "—"; position: absolute; left: 0; color: var(--stone); }
.does .section-lede { margin-bottom: 18px; }
.checks-wide { columns: 2; column-gap: 48px; margin: 4px 0 40px; font-size: 1.125rem; }
.checks-wide li { break-inside: avoid; }
@media (max-width: 720px) { .checks-wide { columns: 1; } }

/* What Oat doesn't do: a plain statement, then the limits, under a heavier rule */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 56px; border-top: 2px solid var(--loam); padding-top: 28px; }
.statement { font-family: var(--heading); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; margin-bottom: 14px; }
.limits h3 { margin-top: 0.3em; }
@media (max-width: 860px) { .limits { grid-template-columns: 1fr; } }

/* Respondents */
.responses .button { margin-top: 4px; }

.note {
  background: var(--dew);
  border-left: 3px solid var(--sage);
  padding: 14px 18px;
  margin-top: 28px;
}

/* Pricing: the free plan leads; the paid plan sits beside it, quieter, until its price is set */
.pricing-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: start; }
.plan-free h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; max-width: 12em; }
.plan-free .price { font-family: var(--heading); font-weight: 600; font-size: clamp(3rem, 2rem + 4vw, 4.5rem); line-height: 1; color: var(--sage); margin: 8px 0 20px; }
.plan-free .checks { font-size: 1.125rem; margin-bottom: 20px; }
.plan-paid { border-left: 1px solid var(--line); padding-left: 40px; margin-top: 10px; color: #4A443B; }
.plan-paid h3 { font-size: 1.2rem; color: var(--loam); }
@media (max-width: 860px) {
  .pricing-inner { grid-template-columns: 1fr; }
  .plan-paid { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; }
}

/* The one box on the page: the waitlist form */
.card { background: var(--husk); border-radius: var(--radius); padding: 22px 22px 8px; }
/* Stone on Husk is 4.48:1, just under the 4.5:1 that small text needs (WCAG AA). Inside cards, secondary text
   uses a slightly darker stone (5.06:1). */
.card { --stone: #665E52; }

.terms { padding-left: 1.2em; }
.terms li { margin-bottom: 8px; }

/* Questions */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
summary {
  cursor: pointer;
  font-family: var(--heading);
  font-size: 1.2rem;
  padding: 12px 0;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--stone); font-family: var(--body); }
details[open] summary::after { content: "–"; }

/* Waitlist form */
.form-card { padding: 32px 32px 18px; }
.form-card h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.3rem); line-height: 1.15; margin-bottom: 0.35em; }
.form-card h2 + p { color: #4A443B; margin-bottom: 1.4em; }
@media (max-width: 560px) { .form-card { padding: 24px 20px 12px; } }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--stone);
  border-radius: 3px;
  background: var(--paper);
  color: var(--loam);
  margin-bottom: 16px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 12px; }
.check input { width: 1.2em; height: 1.2em; margin-top: 0.25em; accent-color: var(--sage); }
.consent { color: #5E574C; } /* Stone, a shade darker so it stays readable on the Husk card */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; min-height: 1.6em; }
.form-status.ok { background: var(--dew); padding: 12px 14px; border-left: 3px solid var(--sage); }
.form-status.error { color: var(--clay); font-weight: 700; }

/* Footer */
.site-footer { background: var(--loam); color: #DCD3C3; padding: 28px 0 48px; }
.site-footer .wrap { border-top: 1px solid rgba(246, 241, 231, 0.18); padding-top: 52px; }
.footer-mark {
  font-family: var(--heading); font-weight: 700; font-size: clamp(3rem, 7vw, 4.2rem);
  line-height: 1; letter-spacing: -0.01em; color: var(--oat-milk); margin-bottom: 18px;
}
.footer-tag { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.6; margin-bottom: 40px; }
.footer-legal { font-size: 0.95rem; color: #B9AF9E; }
.footer-legal p { margin-bottom: 6px; }
.site-footer a { color: var(--oat-milk); }
.site-footer a:hover { color: var(--barley); }

/* Simple text pages */
.page { padding: 40px 0 64px; }
.page h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Home headline: three lines on wide screens, like the design */
@media (min-width: 1100px) {
  /* Sized to the text column (0.9 of 2 parts, after padding and gap) so "Small Claims Court," stays on one line
     (checked with the Fraunces fallback). */
  .hero h1 { font-size: min(4.4rem, calc((min(100vw, 1320px) - 104px) * 0.45 / 9.8)); line-height: 1.02; letter-spacing: -0.015em; }
  .hero h1 span { display: block; }
}

/* Guides: long-form legal information, plain text with thin rules between entries. */
.guide h2 { margin-top: 36px; }
.guide h3 { margin-top: 24px; }
.guide .formula { font-family: inherit; padding: 12px 16px; border-left: 3px solid var(--barley, #D9A441); background: var(--husk, #EDE4D3); border-radius: 3px; }
.guide-list { list-style: none; padding: 0; margin: 24px 0; border-top: 1px solid var(--line); }
.guide-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-weight: 700; }
