/* Lammark v2 styles: mobile first, plain CSS.
   Built straight from the "Lammark" design system: warm cream grounds, deep navy
   actions, a serif voice for headlines and one small terracotta full stop.
   All colours, type, spacing and radii are tokens at the top. Change them there.
   Light and dark themes follow the visitor's device. */

/* ---------- Fonts (hosted on this site, no third-party requests) ---------- */
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: light theme ---------- */
:root {
  color-scheme: light dark;
  --surface: #faf8f3;
  --surface-alt: #efede6;
  --surface-raised: #ffffff;
  --surface-inverse: #1c1f26;
  --ink: #1c1f26;
  --ink-muted: #5b6170;
  --ink-inverse: #faf8f3;
  --hairline: #e2ddd2;
  --primary: #1e2a44;
  --primary-hover: #2c3a5c;
  --on-primary: #faf8f3;
  --accent: #d9603a;
  --accent-ink: #b4471f;
  --sage: #3f6b5a;
  --sage-tint: #e3ebe5;
  --focus: #b4471f;
  --shadow-card: 0 1px 2px rgba(28, 31, 38, 0.06), 0 8px 24px rgba(28, 31, 38, 0.06);
  --shadow-nav: 0 4px 20px rgba(28, 31, 38, 0.12);
  /* Sage on the dark hero uses the system's dark-theme sage so it stays readable */
  --sage-on-dark: #8fbfa8;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --container-max: 1200px;
  --measure: 640px;
  --gutter: var(--space-4);
}

/* ---------- Tokens: dark theme (when the visitor's device prefers dark) ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #15171c;
    --surface-alt: #22252d;
    --surface-raised: #1d2027;
    --surface-inverse: #0d0f13;
    --ink: #f2efe7;
    --ink-muted: #a8acb6;
    --ink-inverse: #f2efe7;
    --hairline: #33363f;
    --primary: #e4ddcc;
    --primary-hover: #f2ecdd;
    --on-primary: #1c1f26;
    --accent: #f08a5d;
    --accent-ink: #f08a5d;
    --sage: #8fbfa8;
    --sage-tint: #24332d;
    --focus: #f08a5d;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-nav: 0 4px 20px rgba(0, 0, 0, 0.5);
  }
}

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

html { scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

/* Browser parts drawn from the palette */
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.hero :focus-visible { outline-color: var(--ink-inverse); }

.container {
  width: min(100% - 2 * var(--gutter), var(--container-max));
  margin-inline: auto;
}

.dot { color: var(--accent); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -80px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Type scale (from the design system) ---------- */
.display-l {
  font: 400 clamp(2rem, 5.2vw, 3rem)/1.12 var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.heading-l {
  font: 500 clamp(1.625rem, 3.6vw, 2rem)/1.2 var(--font-sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.body-l { font: 400 18px/28px var(--font-sans); max-width: var(--measure); }

.eyebrow {
  display: inline-block;
  font: 600 11px/16px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-tint);
  padding: var(--space-1) 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-4);
}

/* ---------- Buttons ---------- */
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 500 14px/20px var(--font-sans);
  min-height: 44px;
  padding: 12px var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-light { background: var(--ink-inverse); color: #1c1f26; }
.btn-light:hover { background: #ffffff; }
.btn-ghost { background: transparent; color: var(--ink-inverse); border-color: var(--ink-inverse); }
.btn-ghost:hover { background: var(--ink-inverse); color: #1c1f26; }
.btn-sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Floating pill navigation ---------- */
.nav-wrap {
  position: fixed;
  top: var(--space-4);
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none; /* only the pill itself takes clicks */
}
.nav {
  pointer-events: auto;
  width: min(100% - 2 * var(--gutter), var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-6);
  box-shadow: var(--shadow-nav);
}
.wordmark {
  font: 600 18px/24px var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.nav ul { display: none; gap: var(--space-6); }
.nav ul a { font-size: 14px; line-height: 20px; color: var(--ink-muted); text-decoration: none; }
.nav ul a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Hero: dark, rounded, no photo (none exists yet) ---------- */
.hero {
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  margin: var(--space-2);
  border-radius: var(--radius-lg);
  padding: 120px 0 var(--space-12);
}
.hero-grid { display: grid; gap: var(--space-12); align-items: end; }
.hero h1 {
  font: 400 clamp(2.75rem, 8.4vw, 4.5rem)/1.06 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: var(--space-6);
}
.lead { font: 400 18px/28px var(--font-sans); max-width: 520px; margin-bottom: var(--space-8); color: var(--ink-inverse); opacity: 0.9; }
.hero-note { font-size: 14px; line-height: 21px; margin-top: var(--space-6); opacity: 0.85; }

/* Stat: serif numeral in sage, small tracked caption */
.hero-facts { display: grid; gap: 0; }
.stat {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-top: 1px solid rgba(250, 248, 243, 0.2);
}
.stat-num { font: 400 clamp(2.25rem, 5vw, 3.5rem)/1 var(--font-display); color: var(--sage-on-dark); }
.stat-label {
  font: 600 11px/16px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-inverse);
  opacity: 0.85;
}

/* ---------- Sections ---------- */
.section { padding: var(--space-12) 0; }
.band { background: var(--surface-alt); }
.intro { margin-bottom: var(--space-8); }
.intro .eyebrow, .split .eyebrow { margin-bottom: var(--space-4); }

.split { display: grid; gap: var(--space-8); }

/* Pain points: open columns divided by hairlines, no cards */
.pains { display: grid; gap: 0 var(--space-8); }
.pains li { padding: var(--space-6) 0; border-top: 1px solid var(--hairline); }
.pains h3 { font: 600 17px/24px var(--font-sans); margin-bottom: var(--space-2); }
.pains p { color: var(--ink); font-size: 16px; line-height: 1.55; }
.cards p { color: var(--ink-muted); font-size: 16px; }
.closing { font: 400 clamp(1.125rem, 2vw, 1.375rem)/1.3 var(--font-display); letter-spacing: -0.01em; margin-top: var(--space-6); }
.closing .nw { white-space: nowrap; } /* keeps "not people problems." together */
.closing-sub { display: block; margin-top: var(--space-1); color: var(--ink); }
@media (min-width: 720px) { .closing .first { white-space: nowrap; } } /* first sentence on one line on wider screens */

/* ServiceCard: white card, thin line icon, nothing else */
.cards { display: grid; gap: var(--space-6); }
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.card svg { width: 32px; height: 32px; stroke: var(--ink); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-2); }
.card h3 { font: 600 17px/24px var(--font-sans); }

/* Tabs */
.tabs { padding: 0; }
.tab-list { display: none; gap: var(--space-8); border-bottom: 1px solid var(--hairline); margin-bottom: var(--space-6); flex-wrap: wrap; }
.js .tab-list { display: flex; }
.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--space-3) 0;
  min-height: 44px;
  font: 500 14px/20px var(--font-sans);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--primary); }
.tab-panel + .tab-panel { margin-top: var(--space-8); }
.js .tab-panel + .tab-panel { margin-top: 0; }
.js .tab-panel[hidden] { display: none; }
.tab-panel h3 { font: 500 22px/28px var(--font-sans); margin-bottom: var(--space-4); }

.checks, .dots { display: grid; gap: var(--space-3); max-width: var(--measure); }
.checks li, .dots li { display: flex; gap: var(--space-3); font-size: 16px; line-height: 24px; }
.checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; stroke: var(--sage); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dots li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

.why-free { margin-top: var(--space-12); max-width: var(--measure); }
.why-free h3, .example h3 { font: 500 22px/28px var(--font-sans); margin-bottom: var(--space-3); }
.why-free-text { font-size: 18px; line-height: 1.65; color: var(--ink-muted); max-width: 60ch; }
.why-free-text .lead-in { color: var(--ink); font-weight: 500; }
.why-free-text .s { display: block; } /* one sentence per line */
.why-free-text .s + .s { margin-top: var(--space-1); }

/* Before / after example */
.example { margin-top: var(--space-12); }
.example-label {
  display: inline-block;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-3) var(--space-3) 0; }
th {
  font: 600 11px/16px var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--hairline);
}
td { border-bottom: 1px solid var(--hairline); font-size: 15px; line-height: 22px; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child { color: var(--sage); font-weight: 500; }

/* About */
.creds { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-6); }
.creds li {
  font: 500 14px/20px var(--font-sans);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
}

/* Apply: a split panel on the alternate ground, like the system's CTABanner */
.apply {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-4);
  display: grid;
  gap: var(--space-8);
}
.apply-intro p { color: var(--ink-muted); margin-top: var(--space-3); max-width: 460px; }

.form {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}
.field { display: grid; gap: var(--space-2); }
.field label { font: 500 14px/20px var(--font-sans); }
.field input, .field textarea {
  width: 100%;
  font: 400 16px/24px var(--font-sans);
  color: var(--ink);
  background: var(--surface-raised);
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); opacity: 1; }
.field [aria-invalid="true"] { border-width: 2px; border-color: var(--accent-ink); padding: calc(var(--space-3) - 1px) calc(var(--space-4) - 1px); }
.field-error { font-size: 14px; line-height: 20px; color: var(--accent-ink); font-weight: 500; }

/* Spam trap, hidden from people */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { justify-self: start; }
.privacy { font-size: 14px; line-height: 21px; color: var(--ink-muted); max-width: 460px; }

.form-message { font-size: 16px; line-height: 24px; padding: var(--space-4); border-radius: var(--radius-md); }
.form-message[hidden] { display: none; }
.form-message.error { border: 1px solid var(--accent-ink); color: var(--ink); }
.form-message.success { background: var(--sage-tint); color: var(--ink); }

/* FAQ: hairline-separated, one native <details> per row */
.faq { border-top: 1px solid var(--hairline); padding-top: var(--space-1); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  min-height: 44px;
  font: 600 17px/24px var(--font-sans);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 24px/1 var(--font-sans); color: var(--ink-muted); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-muted); padding: 0 var(--space-8) var(--space-4) 0; max-width: var(--measure); }

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-inverse);
  color: var(--ink-inverse);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: var(--space-12) 0;
  margin-top: var(--space-8);
}
.footer-inner { display: grid; gap: var(--space-3); font-size: 14px; line-height: 21px; }
.footer .wordmark { color: var(--ink-inverse); }
.footer a { color: var(--ink-inverse); }
.footer :focus-visible { outline-color: var(--ink-inverse); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: var(--space-8); }
  .hero { margin: var(--space-3); padding: 140px 0 var(--space-16); }
  .section { padding: var(--space-16) 0; }
  .nav ul { display: flex; }
  .pains, .cards { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .pains li { padding: var(--space-4) 0 0; }
  .apply { padding: var(--space-12); }
  .footer-inner { grid-template-columns: 1fr auto auto; gap: var(--space-8); align-items: center; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.5fr 1fr; gap: var(--space-16); }
  .hero-facts { padding-bottom: var(--space-2); }
  .split { grid-template-columns: 1fr 1.25fr; gap: var(--space-16); align-items: start; }
  .apply { grid-template-columns: 1fr 1.2fr; gap: var(--space-12); align-items: start; }
}

/* ---------- Print: keep it plain ---------- */
@media print {
  .nav-wrap, .skip-link { display: none; }
  .hero, .footer { background: none; color: var(--ink); }
}

/* ---------- Photography (free stock photos, credited in assets/images/CREDITS.md) ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-photo { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(28, 31, 38, 0.74); } /* keeps white text readable over the photo */
.hero > .container { position: relative; z-index: 2; }

.card-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 var(--space-1);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.apply-photo { height: auto; display: block; width: 100%; max-width: 520px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-md); margin-top: var(--space-6); }

.credits { grid-column: 1 / -1; opacity: 0.8; font-size: 13px; }

@media (min-width: 960px) {
  /* Photo sits on the right and fades into the dark ground, so the headline stays on solid dark */
  .hero-photo { inset: 0 0 0 auto; width: 64%; object-position: 50% 35%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
  .hero::after { background: rgba(28, 31, 38, 0.18); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero-copy { max-width: 640px; }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--space-8); max-width: 600px; padding-bottom: 0; }
  .hero-facts .stat-num { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
  }

/* About: the photo sits beside the intro and matches its height. */
.about-text .body-l { margin-top: var(--space-4); }
.about-photo-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; }
.about-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 72%; }
@media (min-width: 960px) {
  .about { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .about-photo-wrap { aspect-ratio: auto; min-height: 280px; }
}

/* ---------- Shorter page: tighter rhythm and side-by-side layouts ---------- */
.card-photo { aspect-ratio: 16 / 9; }
.pilot-extra { display: grid; gap: var(--space-8); margin-top: var(--space-8); }
.pilot-extra .why-free, .pilot-extra .example { margin-top: 0; }
.apply { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.form > :not(.field), .form > .field:has(textarea) { grid-column: 1 / -1; }
.field textarea { min-height: 96px; }
.hero { padding-bottom: var(--space-8); }
#faq .faq details p { padding-bottom: var(--space-3); }

@media (min-width: 720px) {
  .form { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-4); }
  .hero { padding-bottom: var(--space-12); }
  .apply { padding: var(--space-8); }
}
@media (min-width: 960px) {
  .pilot-extra { grid-template-columns: 1.5fr 1fr; gap: var(--space-12); align-items: start; }
  #faq .split { grid-template-columns: 1fr; gap: var(--space-6); }
  #faq .faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-12); align-items: start; }
  #faq .faq details p { padding-right: 0; }
}

/* Phones: shorter picture banners, and no Apply photo so the form comes sooner */
@media (max-width: 719px) {
  .card-photo { aspect-ratio: 5 / 2; }
  .about-photo-wrap { aspect-ratio: 2 / 1; }
  .apply-photo { display: none; }
  .intro { margin-bottom: var(--space-6); }
  .pains li { padding: var(--space-4) 0; }
  .closing { margin-top: var(--space-4); }
  .pilot-extra { margin-top: var(--space-6); }
}

/* "Sound familiar?" kept compact */
#pain { padding-top: var(--space-8); padding-bottom: var(--space-8); }
#pain .intro { margin-bottom: var(--space-4); }

/* ---------- Pilot terms: all three lists visible, side by side ---------- */
@media (min-width: 960px) {
  .terms { display: grid; grid-template-columns: repeat(3, 1fr); }
  .term { padding: var(--space-8); }
  .term + .term { border-top: 0; border-left: 1px solid var(--hairline); }
}

/* ---------- Phone menu (a native <details>, no script needed to open) ---------- */
.nav { position: relative; }
.menu { margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 40px; padding: var(--space-2) var(--space-4); border: 1px solid var(--ink); border-radius: var(--radius-pill); font: 500 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--ink); color: var(--surface); }
.menu ul { position: absolute; top: calc(100% + var(--space-2)); left: 0; right: 0; display: grid; background: var(--surface); border-radius: var(--radius-md); box-shadow: var(--shadow-nav); padding: var(--space-2); }
.menu ul a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: 16px; }
.menu ul a:hover { background: var(--surface-alt); }
@media (min-width: 720px) { .menu { display: none; } }

/* ---------- Credentials: flat tags, so they no longer look like buttons ---------- */
.creds li { border: 0; background: var(--sage-tint); color: var(--sage); border-radius: var(--radius-sm); padding: var(--space-1) var(--space-3); font: 600 13px/20px var(--font-sans); }

/* ---------- Before / after: a messy side turning into a tidy one ---------- */
.example table { border-collapse: separate; border-spacing: 0 var(--space-2); }
.example th { border: 0; padding: 0 var(--space-4) var(--space-1); }
.example th:last-child { color: var(--sage); padding-left: var(--space-8); }
.example td { border: 0; padding: var(--space-4); font-size: 15px; line-height: 22px; vertical-align: middle; }
.example td:first-child { background: var(--surface-alt); color: var(--ink-muted); border-radius: var(--radius-md) 0 0 var(--radius-md); }
.example td:last-child { position: relative; background: var(--sage-tint); color: var(--ink); font-weight: 500; border-radius: 0 var(--radius-md) var(--radius-md) 0; padding-left: var(--space-8); }
.example td:last-child::before { content: ""; position: absolute; left: -14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--primary); }
.example td:last-child::after { content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--on-primary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 720px) { .example td { font-size: 16px; line-height: 24px; padding: var(--space-4) var(--space-6); } .example td:last-child { padding-left: var(--space-8); } }

/* "Sound familiar?": the punchline sits under the three problems in a soft panel, so it reads as the conclusion */
#pain .closing { margin-top: var(--space-6); padding: var(--space-4) var(--space-6); background: var(--sage-tint); border-radius: var(--radius-md); max-width: none; }
@media (min-width: 960px) {
  #pain .closing-sub { display: inline; margin: 0 0 0 var(--space-2); }
}

/* Call to action after the pilot details */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-8); }
.cta-row p { font-size: 14px; line-height: 21px; color: var(--ink-muted); }

/* Pilot: the tabs and "What a fix can look like" sit side by side; "Why free?" stands alone below */
.pilot-main { display: grid; gap: var(--space-8); }
.pilot-main .example { margin-top: 0; }
.pilot-main .tab-list { gap: var(--space-6); }
/* Both columns start with the same 48px header row and hairline, so they line up without boxes */
.pilot-main .tab-list, .pilot-main .example h3 { height: 48px; box-sizing: border-box; margin: 0 0 var(--space-6); border-bottom: 1px solid var(--hairline); }
.pilot-main .tab-list { align-items: stretch; }
.pilot-main .example h3 { display: flex; align-items: center; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
.why-free { margin-top: var(--space-8); }
@media (min-width: 960px) {
  .pilot-main { grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }
}


/* ---------- Tighter: a shorter page, same content ---------- */
.section { padding: var(--space-8) 0; }
.intro { margin-bottom: var(--space-6); }
.hero { padding-top: 96px; }
.hero-facts { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.hero-facts .stat-num { font-size: 1.75rem; }
.pilot-main { gap: var(--space-6); }
.why-free { margin-top: var(--space-6); }
.cta-row { margin-top: var(--space-6); }
.faq summary { padding: var(--space-3) 0; min-height: 48px; font-size: 16px; }
.apply { padding: var(--space-6) var(--space-4); }
.form { gap: var(--space-3); }
.field textarea { min-height: 80px; }
.footer { padding: var(--space-8) 0; margin-top: var(--space-4); }

@media (max-width: 719px) {
  /* Steps become compact rows: a small photo beside its text */
  .cards { gap: var(--space-4); }
  .card { display: grid; grid-template-columns: 104px 1fr; column-gap: var(--space-4); row-gap: var(--space-1); align-items: start; }
  .card .card-photo { grid-row: 1 / 3; width: 104px; height: 104px; aspect-ratio: 1; margin: 0; }
  .card h3 { align-self: end; }
  .card p { grid-column: 2; }
  .about-photo-wrap { aspect-ratio: 5 / 2; }
}
@media (min-width: 720px) {
  .section { padding: var(--space-12) 0; }
  .hero { padding-top: 120px; padding-bottom: var(--space-8); }
  .apply { padding: var(--space-8); }
  .hero-facts .stat-num { font-size: 2rem; }
}
@media (min-width: 960px) {
  .hero-facts { grid-template-columns: repeat(3, auto); gap: var(--space-8); }
  .hero-facts .stat-num { font-size: clamp(1.75rem, 2.6vw, 2.5rem); }
}

/* Privacy note: one sentence per line */
.privacy .l { display: block; }

/* Hero facts: numbers line up even when a caption wraps to two lines */
.hero-facts .stat { display: grid; grid-template-rows: auto 1fr; align-content: start; gap: var(--space-2); }
.hero-facts .stat-num { grid-row: 1; }
.hero-facts .stat-label { grid-row: 2; }

/* Tablet widths: a stronger dark overlay so the headline reads clearly over the photo */
@media (min-width: 720px) and (max-width: 959px) {
  .hero::after { background: rgba(28, 31, 38, 0.84); }
}
