/* ==========================================================================
   OMI-AI — Elegant landing styles
   Light-only, monochrome zinc palette, Geist + Geist Mono.
   Engineering-grid canvas, hairline borders, 4px radii, frosted panels.
   No shadows. No dark mode. 150ms color transitions.
   ========================================================================== */

:root {
  /* canvas & surfaces */
  --bg:            #fafafa;                   /* page canvas (zinc-50) */
  --surface:       rgba(255, 255, 255, 0.5); /* frosted cards (bg-white/50 + blur) */
  --surface-solid: #ffffff;

  /* zinc text ramp */
  --text-900: #18181b;  /* headings, primary button bg */
  --text-800: #27272a;  /* default body text */
  --text-600: #52525c;  /* secondary labels */
  --text-500: #71717b;  /* muted body / nav / subhead */
  --text-400: #9f9fa9;  /* faint: serif accents, numbers, version tag */

  /* lines */
  --border:    #e4e4e7;            /* zinc-200 hairline */
  --border-2:  #d4d4d8;            /* zinc-300 hairline (slightly stronger) */
  --grid-line: rgba(0, 0, 0, 0.04);

  /* status */
  --dot-green: #22c55e;

  /* code panel syntax (subtle) */
  --code-bg:     #fafafa;
  --code-text:   #3f3f46;
  --code-key:    #4f46e5;  /* muted indigo for property keys */
  --code-string: #15803d;  /* muted green for strings */
  --code-num:    #b45309;  /* muted amber for numbers */
  --code-punct:  #a1a1aa;  /* faint for braces/commas/colons */
  --code-line:   #c4c4cd;  /* line numbers */

  /* radii / motion */
  --radius: 4px;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur:    150ms;

  /* layout */
  --container: 1152px;

  /* fonts */
  --font-sans:  "Geist", "Geist Fallback", ui-sans-serif, system-ui, sans-serif;
  --font-mono:  "Geist Mono", "Geist Mono Fallback", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
}

/* --------------------------------------------------------------------------
   Reset / base
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-800);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  min-height: 100vh;
  /* Defensive backstop only — the real fixes (min-width:0 on split items,
     internal code-panel scroll, wrapping nav) keep content within bounds. */
  overflow-x: hidden;
}

::selection { background: var(--border); }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, p { margin: 0; }

button { font-family: inherit; }

img, svg { display: block; }

/* Engineering grid background overlay (two stacked grids) */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px)  { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }

.mono { font-family: var(--font-mono); }

.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-400);
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand__glyph {
  width: 22px;
  height: 22px;
  border: 1px solid var(--text-900);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--text-900);
}
.brand__glyph svg { width: 12px; height: 12px; }

.brand__word {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-900);
}

/* The menu wrapper holds both center links and the right cluster */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: flex-end;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto; /* center within the menu row on desktop */
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-500);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text-900); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.nav__ghost {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-600);
  transition: color var(--dur) var(--ease);
}
.nav__ghost:hover { color: var(--text-900); }

/* mobile hamburger */
.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-800);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__toggle:hover { border-color: var(--border-2); color: var(--text-900); }
.nav__toggle svg { width: 18px; height: 18px; }
.nav__toggle .icon-close { display: none; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}
.btn svg { width: 15px; height: 15px; }

/* Primary (dark) */
.btn--primary {
  background: var(--text-900);
  color: #ffffff;
  border-color: var(--text-900);
}
.btn--primary:hover { background: #000000; border-color: #000000; }

/* Outline */
.btn--outline {
  background: var(--surface-solid);
  color: var(--text-600);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--border-2); color: var(--text-900); }

/* Sizes */
.btn--sm { padding: 7px 16px; font-weight: 500; }
.btn--lg { padding: 12px 24px; }

/* --------------------------------------------------------------------------
   Main / sections
   -------------------------------------------------------------------------- */

main {
  position: relative;
  z-index: 1;
  padding: 32px 0;
}

.section { margin-bottom: 32px; }
.section:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Hero panel
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 20px;
  overflow: hidden;
}
@media (min-width: 480px) { .hero { padding: 32px; } }
@media (min-width: 768px) { .hero { padding: 48px; } }
@media (min-width: 1024px) { .hero { padding: 64px; } }

/* corner mono tags */
.hero__tag {
  position: absolute;
  top: 0;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-400);
  padding: 8px 12px;
  background: var(--surface-solid);
}
.hero__tag--tr {
  right: 0;
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 0 var(--radius);
}
.hero__tag--tl {
  left: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 var(--radius) 0;
}

/* On narrow screens the two corner tags crowd the pill/headline and the
   right tag can sit under an open mobile menu — hide them until there is
   room. They return at the tablet breakpoint. */
@media (max-width: 519px) {
  .hero__tag { display: none; }
}

/* faint crop-mark decoration on the right of the hero */
.hero__decor {
  position: absolute;
  right: 132px;
  top: 50%;
  transform: translateY(-50%);
  width: 150px;
  height: 150px;
  color: var(--border);
  pointer-events: none;
}
.hero__decor svg { width: 100%; height: 100%; }
@media (max-width: 1024px) { .hero__decor { display: none; } }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

/* eyebrow pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-500);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: var(--dot-green);
  flex-shrink: 0;
}

.hero__title {
  margin-top: 24px;
  /* Fluid from ~30px at 320px up to 40px before the tablet step. */
  font-size: clamp(30px, 7.6vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-900);
}
@media (min-width: 768px) {
  .hero__title { font-size: 60px; letter-spacing: -1.5px; }
}

.hero__subhead {
  margin-top: 24px;
  max-width: 640px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--text-500);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* On small screens, stack the two CTAs full-width with comfortable tap
   targets instead of letting them wrap awkwardly side by side. */
@media (max-width: 519px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; min-height: 44px; }
}

.hero__meta {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-400);
}

/* --------------------------------------------------------------------------
   Feature grid (3-up)
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
/* Stay single column until there is room for three comfortable columns;
   3-up at 768px made each card ~214px and forced cramped two-line titles. */
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) { .card { padding: 32px; } }

.card__icon { color: var(--text-400); margin-bottom: 28px; }
.card__icon svg { width: 22px; height: 22px; }

.card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-900);
  margin-bottom: 10px;
}

.card__body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--text-500);
}

.card__num {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-400);
}

/* --------------------------------------------------------------------------
   Split section ("A floor, not a framework.")
   -------------------------------------------------------------------------- */

.split {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch; /* equal-height columns so the code panel fills its box */
  overflow: hidden;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    /* Cap the row height so the code panel becomes a bounded, full-height box
       and its long JSON scrolls internally instead of stretching the layout. */
    height: 460px;
  }
}

.split__left {
  /* min-width:0 lets this grid item shrink below its content's intrinsic
     width so prose wraps instead of being clipped by the .split overflow. */
  min-width: 0;
  padding: 28px 20px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 480px) { .split__left { padding: 32px; } }
@media (min-width: 1024px) {
  .split__left {
    padding: 48px;
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.split__title {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.75px;
  color: var(--text-900);
}
@media (min-width: 768px) { .split__title { font-size: 30px; } }

.split__intro {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--text-500);
}

.checklist {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;           /* allow the text to shrink/wrap within the column */
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-800);
}

/* The text sits in its own flex child so it forms a normal inline-flow block
   (wrapping at spaces) instead of an anonymous flex item that distributes its
   words across the row. min-width:0 lets it shrink within the column. */
.checklist__text {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: break-word;
}

/* The .omi.json / .omi.jsonl mono tokens have no internal break points; let
   them break if (and only if) they can't otherwise fit the narrow column. */
.checklist__text .mono { overflow-wrap: anywhere; }

.checklist__mark {
  flex-shrink: 0;
  margin-top: 1px;
  width: 16px;
  height: 16px;
  color: var(--text-400);
}
.checklist__mark svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Code panel
   -------------------------------------------------------------------------- */

.split__right {
  /* min-width:0 so the wide non-wrapping code panel is bounded by the column
     (and scrolls internally) instead of forcing the whole grid wider. */
  min-width: 0;
  padding: 28px 20px;
  display: flex;          /* let the code panel stretch to the column height */
  min-height: 0;          /* allow the inner panel to shrink and scroll */
}
@media (min-width: 480px) { .split__right { padding: 32px; } }
@media (min-width: 1024px) { .split__right { padding: 48px; } }

.codepanel {
  display: flex;
  flex-direction: column; /* fixed header on top, scrolling body below */
  width: 100%;
  min-width: 0;           /* never widen the column; scroll the body instead */
  /* On small screens the split stacks, so cap the panel height and let the
     long JSON scroll internally rather than producing a very tall section. */
  max-height: 420px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--code-bg);
  overflow: hidden;
}
@media (min-width: 1024px) {
  /* Inside the bounded 460px desktop split box, fill the full height. */
  .codepanel { height: 100%; max-height: none; }
}

.codepanel__tab {
  flex: 0 0 auto;         /* fixed filename header bar, never scrolls */
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  background: var(--surface-solid);
}

.codepanel__dots { display: flex; gap: 6px; }
.codepanel__dots span {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: var(--border);
}

.codepanel__name {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-400);
  margin-left: 4px;
}

.codepanel__body {
  flex: 1 1 auto;         /* fill remaining panel height; long JSON scrolls within */
  min-height: 0;
  margin: 0;
  padding: 16px 18px;
  overflow: auto;         /* scroll on both axes inside the full-height panel */
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  /* Collapse the literal "\n" text nodes between the block-level .code-line
     spans so they don't render as extra empty line boxes (which doubled the
     visible per-line spacing). Each .code-line keeps white-space: pre below,
     so its own indentation/spacing is preserved. */
  white-space: normal;
  color: var(--code-text);
  background: var(--code-bg);
  -webkit-font-smoothing: auto;
}
.codepanel__body code { font-family: inherit; white-space: normal; }

.code-line { display: block; white-space: pre; }

.ln {
  display: inline-block;
  width: 2ch;
  margin-right: 16px;
  text-align: right;
  color: var(--code-line);
  user-select: none;
  -webkit-user-select: none;
}

/* subtle syntax tokens */
.tok-key    { color: var(--code-key); }
.tok-string { color: var(--code-string); }
.tok-num    { color: var(--code-num); }
.tok-punct  { color: var(--code-punct); }

/* --------------------------------------------------------------------------
   Ecosystem (coming soon)
   -------------------------------------------------------------------------- */

.ecosystem__head {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-500);
}

.ecosystem__title {
  margin-top: 14px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.75px;
  color: var(--text-900);
}
@media (min-width: 768px) { .ecosystem__title { font-size: 30px; } }

.ecosystem__sub {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--text-500);
}

/* responsive grid: 1-up mobile, 2-up tablet, 4-up desktop */
.ecogrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .ecogrid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .ecogrid { grid-template-columns: repeat(4, 1fr); }
}

.ecocard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) { .ecocard { padding: 28px; } }

.ecocard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.ecocard__icon { color: var(--text-400); }
.ecocard__icon svg { width: 22px; height: 22px; }

.ecocard__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--text-900);
  margin-bottom: 10px;
}

.ecocard__body {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--text-500);
}

/* "Coming soon" badge — neutral monochrome, dashed hairline, muted dot.
   Deliberately distinct from the hero's solid green "available" dot. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  border: 1px dashed var(--border-2);
  border-radius: 9999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-400);
  background: var(--surface-solid);
}

.badge__dot {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: var(--text-400);
  flex-shrink: 0;
}

/* example sub-item chips */
.chips {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-500);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px 8px;
  background: var(--surface-solid);
}

/* --------------------------------------------------------------------------
   Connect (Updates + Get involved)
   Two hairline-bordered frosted blocks, reusing the eyebrow / title / sub
   scale from the Ecosystem section. Slim, native form controls — no shadows.
   -------------------------------------------------------------------------- */

.connect__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .connect__grid { grid-template-columns: 1fr 1fr; }
}

.connect__block {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 480px) { .connect__block { padding: 32px; } }

.connect__title {
  margin-top: 14px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text-900);
}
@media (min-width: 768px) { .connect__title { font-size: 28px; letter-spacing: -0.75px; } }

.connect__sub {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--text-500);
}

/* --- form scaffolding --- */
.cform {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cfield {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cfieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cfield__label {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-600);
  padding: 0;
}

/* email/text row: input grows, button hugs (wraps on narrow widths) */
.cform__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.cform__row .cinput { flex: 1 1 220px; }
.cform__row .btn { flex: 0 0 auto; }

.cform__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* On small screens, give the form submit buttons a comfortable full-width
   tap target instead of a hugging ~32px-tall button. */
@media (max-width: 519px) {
  .cform__row .btn,
  .cform__actions .btn {
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
  }
}

/* inputs + textarea — hairline border, 4px radius, frosted, no shadow */
.cinput {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-900);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
  transition: border-color var(--dur) var(--ease);
}
.cinput::placeholder { color: var(--text-400); }
.cinput:hover { border-color: var(--border-2); }

.cinput--area {
  resize: vertical;
  min-height: 76px;
}

/* radio group — accessible, label-wrapped controls */
.cradios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cradio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-800);
  cursor: pointer;
}

.cradio__input {
  flex-shrink: 0;
  margin: 0;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  accent-color: var(--text-900);
  cursor: pointer;
}

.cradio__text { padding-top: 0; }

/* honest inline status (aria-live region) — hidden until populated by JS */
.cform__status {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-800);
}
.cform__status:empty { display: none; }
.cform__status a {
  color: var(--text-900);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cform__status a:hover { color: #000000; }

.cform__micro {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-400);
}

/* Visible keyboard focus for the new form controls, matching the site's
   hairline monochrome system (2px ring + 2px offset, as used in the docs). */
.cinput:focus-visible,
.cradio__input:focus-visible,
.connect .btn:focus-visible {
  outline: 2px solid var(--text-900);
  outline-offset: 2px;
}
.cinput:focus-visible { border-color: var(--border-2); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding: 32px 0 64px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__copy { font-size: 13px; color: var(--text-500); }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__link {
  font-size: 14px;
  color: var(--text-500);
  transition: color var(--dur) var(--ease);
}
.footer__link:hover { color: var(--text-900); }

/* --------------------------------------------------------------------------
   Responsive nav (mobile)
   -------------------------------------------------------------------------- */

@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }

  /* Let the bar wrap so the menu can drop onto a full-width second row
     instead of being squeezed into the leftover horizontal space. The bar
     itself is not vertically centred so the wrapped menu pushes content
     downward rather than overflowing upward. */
  .nav__bar {
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    row-gap: 0;
  }

  /* Menu collapses below the bar; hidden by default */
  .nav__menu {
    display: none;
    flex: 0 0 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }

  .nav.is-open .nav__menu {
    display: flex;
    margin-top: 16px;
    border-top: 1px solid var(--border);
    /* opaque backing so the dropdown never reads through onto the hero */
    background: var(--bg);
    padding: 16px 0 20px;
    gap: 20px;
  }

  .nav.is-open .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
  }

  /* full-width tappable rows (~44px) for the primary links */
  .nav.is-open .nav__link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    font-size: 15px;
  }

  .nav.is-open .nav__right {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .nav.is-open .nav__ghost {
    align-self: stretch;
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .nav.is-open .nav__right .btn {
    width: 100%;
    min-height: 44px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion — neutralize the transitions added for the connect forms.
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .cinput,
  .connect .btn {
    transition: none;
  }
}
