@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo-100-900-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/IBMPlexMono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* Layout: an instrument panel. Left-aligned copy on a 12-column grid, hairline
   rules with tick marks between sections, one accent "fair mark" per view. */
:root {
  color-scheme: light;
  --paper: #f3f5f4;
  --surface: #fbfcfb;
  --ink: #0e1614;
  --ink-2: #44514d;
  --ink-3: #5f6c68;
  --rule: #c9d2cf;
  --accent: #0a6b56;
  --accent-ink: #f3f5f4;
  --accent-soft: #dcebe6;
  --danger: #a3342b;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 2.6vw, 2.25rem);
  --step-4: clamp(2.25rem, 4.4vw, 3.5rem);

  --radius: 2px;
  --section: clamp(64px, 9vw, 104px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0b0f0e;
    --surface: #111816;
    --ink: #e6ebe9;
    --ink-2: #a3b0ac;
    --ink-3: #85928e;
    --rule: #26312e;
    --accent: #45c3a0;
    --accent-ink: #07100d;
    --accent-soft: #12302a;
    --danger: #ef8b80;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { left: 12px; }
.skip:hover { color: var(--paper); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 18px; }
.brand .mark-line { stroke: currentColor; }
.brand .mark-accent { stroke: var(--accent); }
.brand-name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--ink-3); font-weight: 450; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 560;
  font-size: 0.96rem;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--quiet:hover { color: var(--ink); border-color: var(--ink-2); filter: none; }

/* Type */
h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: var(--step-4);
  font-stretch: 108%;
  font-weight: 610;
  line-height: 1.06;
  max-width: 19ch;
}
h2 {
  font-size: var(--step-3);
  font-stretch: 106%;
  font-weight: 600;
  line-height: 1.12;
  max-width: 30ch;
}
h3 {
  font-size: var(--step-1);
  font-stretch: 104%;
  font-weight: 600;
  line-height: 1.25;
}
p { margin: 0; }
.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
}
.body-copy { color: var(--ink-2); max-width: 62ch; }
.mono {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* Section scaffold: a hairline rule carrying tick marks */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.ticks {
  height: 9px;
  margin-bottom: clamp(36px, 5vw, 56px);
  background:
    linear-gradient(var(--rule), var(--rule)) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 24px) left bottom / 100% 5px no-repeat;
  position: relative;
}
.ticks::after {
  content: "";
  position: absolute;
  left: 61.8%;
  bottom: 0;
  width: 2px;
  height: 9px;
  background: var(--accent);
}

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 72px); }
.hero + .section { padding-top: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { grid-column: span 7; display: grid; gap: 24px; justify-items: start; }
.hero-figure {
  grid-column: span 5;
  border: 1px solid var(--rule);
  background: var(--surface);
  aspect-ratio: 5 / 4;
  width: 100%;
}
.hero-figure canvas { width: 100%; height: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Areas: a 2 + 3 grid */
.areas {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 40px 32px;
  margin-top: 40px;
}
.area { grid-column: span 2; border-top: 1px solid var(--rule); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.area:nth-child(-n + 2) { grid-column: span 3; }
.area p { color: var(--ink-2); max-width: 46ch; }

/* Timeline (design-partner process) */
.timeline { display: grid; gap: 0; margin-top: 40px; max-width: 880px; }
.timeline-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 28px;
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.timeline-row:last-child { border-bottom: 1px solid var(--rule); }
.timeline-when { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); padding-top: 3px; }
.timeline-row div { display: grid; gap: 6px; }
.timeline-row p { color: var(--ink-2); max-width: 58ch; }

/* Statement */
.statement {
  font-family: var(--font-display);
  font-stretch: 104%;
  font-weight: 460;
  font-size: var(--step-2);
  line-height: 1.4;
  max-width: 40ch;
  color: var(--ink);
  margin-top: 24px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-copy { grid-column: span 5; display: grid; gap: 18px; }
.contact-form { grid-column: 7 / span 6; }

form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 560; font-size: 0.95rem; }
.hint { font-size: var(--step--1); color: var(--ink-3); }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 11px 12px;
  min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field-error { font-size: var(--step--1); color: var(--danger); min-height: 1.2em; }
.form-status { font-size: 0.95rem; color: var(--ink-2); min-height: 1.4em; }
.form-status.is-error { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done {
  border: 1px solid var(--rule);
  background: var(--surface);
  padding: 28px;
  display: grid;
  gap: 10px;
}

/* Program pages */
.pains { display: grid; gap: 0; margin-top: 36px; max-width: 900px; }
.pain {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 18px;
  padding-block: 20px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}
.pain::before { content: ""; width: 2px; height: 22px; margin-top: 6px; background: var(--accent); }
.pain strong { color: var(--ink); font-weight: 600; }

.blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  margin-top: 40px;
}
.block { display: grid; gap: 10px; align-content: start; }
.block:first-child { grid-column: 1 / -1; max-width: 760px; }
.block p { color: var(--ink-2); max-width: 56ch; }
.block .detail { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--accent); }

.terms {
  margin-top: 40px;
  border: 1px solid var(--rule);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.terms > div { padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.terms > div + div { border-left: 1px solid var(--rule); }
.terms ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 8px; }
.terms .price { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); }

.faq { margin-top: 32px; max-width: 860px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 36px 18px 0;
  font-weight: 560;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 16px;
  font-family: var(--font-mono);
  color: var(--ink-3);
}
.faq details[open] summary::after { content: "-"; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer p, .site-footer a { font-size: var(--step--1); color: var(--ink-3); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* Legal page */
.legal { max-width: 70ch; display: grid; gap: 18px; }
.legal h2 { font-size: var(--step-2); margin-top: 16px; }
.legal p, .legal li { color: var(--ink-2); }

/* Mobile */
@media (max-width: 860px) {
  .hero-copy, .hero-figure, .contact-copy, .contact-form { grid-column: 1 / -1; }
  .hero-figure { aspect-ratio: 16 / 10; }
  .areas { grid-template-columns: 1fr; }
  .area, .area:nth-child(-n + 2) { grid-column: 1 / -1; }
  .blocks { grid-template-columns: 1fr; }
  .terms { grid-template-columns: 1fr; }
  .terms > div + div { border-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .timeline-row { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; }
  .site-header .btn { display: none; }
}
.brand-name { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
