/* ==========================================================================
   Secret Scribe — landing page
   Modern clinical intelligence: deep forest ground, mint accents, no glow.
   Source of truth. Copied into the published site by landing/build.py.
   ========================================================================== */

/* Self-hosted webfonts. The app sends `default-src 'self'`, so fonts must be
   served from this origin — no Google Fonts request. Latin subsets, OFL. */
@font-face {
  font-family: "Manrope";
  src: url("./fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("./fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #073B32;
  --forest-deep: #052F29;
  --white: #FFFFFF;
  --mint: #B8E6D5;
  --mint-2: #A8C9BD;
  --jade: #167A68;
  --mineral: #F4F6F1;
  --graphite: #394541;
  --hairline: #E2E7E0;
  --ink-soft: #5C6B64;

  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --radius: var(--r-md);
  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: var(--font-body);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.022em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--forest-deep);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 17px;
  white-space: nowrap;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--mint);
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: 8px;
}

.site-nav a {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #56635D;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--forest-deep); border-bottom-color: var(--mint); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.link-signin {
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--graphite);
}
.link-signin:hover { color: var(--jade); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest-deep);
  border: 1px solid #C9D4CB;
  border-radius: var(--r-sm);
  padding: 9px 15px;
  transition: background .15s ease, border-color .15s ease;
}
.btn-outline:hover { background: var(--mineral); border-color: var(--jade); }

.menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--white);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--forest-deep);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  background: var(--forest);
  color: var(--white);
  padding: clamp(48px, 5.4vw, 72px) 0 clamp(52px, 6vw, 76px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  /* Faint depth in the ground; a single soft gradient, no coloured glow. */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 78% 0%, rgba(22, 122, 104, .55) 0%, rgba(7, 59, 50, 0) 62%),
    radial-gradient(90% 70% at 0% 100%, rgba(5, 47, 41, .9) 0%, rgba(5, 47, 41, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mint-2);
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.hero h1 {
  font-size: clamp(2.15rem, 3.75vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--white);
  text-wrap: balance;
}

/* The second line is the claim, not decoration: mint, same face, no italic. */
.hero h1 .hl { color: var(--mint); }

.lede {
  margin-top: 24px;
  max-width: 47ch;
  font-family: var(--font-body);
  font-size: clamp(15px, 1.15vw, 16.5px);
  font-weight: 400;
  line-height: 1.72;
  color: #B6CDC4;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  background: var(--white);
  color: var(--forest-deep);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--white);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary:hover { background: var(--mint); border-color: var(--mint); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(184, 230, 213, .3);
  background: rgba(255, 255, 255, .04);
  transition: background .15s ease, border-color .15s ease;
}
.btn-secondary svg { color: var(--mint); }
.btn-secondary:hover { background: rgba(184, 230, 213, .1); border-color: rgba(184, 230, 213, .55); }

.trust-points {
  margin-top: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 12.5px;
  color: var(--mint-2);
}
.trust-points li { display: inline-flex; align-items: center; gap: 8px; }
.trust-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 2px rgba(184, 230, 213, .18);
}

/* ---------- hero visual ---------- */

.hero-visual { position: relative; }

.shot {
  margin: 0;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
}

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #EDF1EC;
  border-bottom: 1px solid #DCE4DD;
  padding: 8px 12px;
}
.chrome-dots { display: inline-flex; gap: 5px; }
.chrome-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C6D0C8;
}
.chrome-url {
  font-size: 10.5px;
  color: #6C7A72;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot picture { display: block; }
.shot img { width: 100%; height: auto; }

.shot {
  margin: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .3), 0 2px 6px rgba(0, 0, 0, .16);
}

.shot-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F1F4F0;
  border-bottom: 1px solid #DEE5DE;
  padding: 9px 13px;
}
.chrome-dots { display: inline-flex; gap: 5px; }
.chrome-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C6D0C8;
}
.chrome-url {
  font-size: 10.5px;
  color: #6C7A72;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chrome-label {
  margin-left: auto;
  flex: none;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--jade);
  background: #E6F2EC;
  border-radius: 3px;
  padding: 2px 7px;
}

.shot picture { display: block; }
.shot img { width: 100%; height: auto; }

.shot-product { position: relative; }

/* Clinician and imaging context sit below the product, never on top of it:
   the note stays readable at every width. */
.hero-strip {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
  align-items: start;
}

.shot-photo,
.shot-detail {
  border-color: rgba(255, 255, 255, .14);
  background: var(--forest-deep);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .26);
}
.shot-photo img,
.shot-detail img { display: block; width: 100%; object-fit: cover; }
.shot-photo img { aspect-ratio: 3 / 2; }
.shot-detail img { aspect-ratio: 4 / 3; }

.shot-photo figcaption {
  font-size: 10.5px;
  letter-spacing: .02em;
  color: rgba(184, 230, 213, .82);
  padding: 7px 11px 8px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.shot-caption {
  font-size: 11px;
  color: #5F6E66;
  padding: 9px 13px 10px;
  border-top: 1px solid #EDF1EC;
  background: var(--white);
}

.visual-note {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: rgba(168, 201, 189, .78);
  max-width: 62ch;
}
.visual-tag {
  flex: none;
  border: 1px solid rgba(184, 230, 213, .3);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--mint);
}

/* ---------- trust strip ---------- */

.trust {
  background: var(--mineral);
  border-bottom: 1px solid var(--hairline);
  padding: clamp(34px, 4vw, 48px) 0;
}
.trust-statement {
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--forest-deep);
}
.principles {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.principles li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--graphite);
  border-top: 1px solid #D8E0D8;
  padding-top: 12px;
}
.principle-no {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--jade);
}

/* ---------- generic section rhythm ---------- */

.section { padding: clamp(58px, 7vw, 96px) 0; }
.section-mineral { background: var(--mineral); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--jade);
  margin-bottom: 16px;
}
.kicker-tight { margin-bottom: 8px; }

.section h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.3rem);
  line-height: 1.18;
  color: var(--forest-deep);
  max-width: 26ch;
}

.section-lede {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- compare ---------- */

.compare {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.compare-card {
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  border: 1px solid var(--hairline);
}
.compare-card h3 { font-size: 16px; margin-bottom: 4px; }
.compare-sub {
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.compare-card ul { display: grid; gap: 12px; }
.compare-card li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.6;
}
.compare-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 12px;
}

.compare-generic { background: var(--mineral); color: #62706A; }
.compare-generic h3 { color: #4A5751; }
.compare-generic .compare-sub { color: #8A968F; }
.compare-generic li::before { content: "✕"; color: #A8B2AC; }

.compare-ours { background: var(--forest); border-color: var(--forest); color: var(--mint-2); }
.compare-ours h3 { color: var(--white); }
.compare-ours .compare-sub { color: var(--mint); }
.compare-ours li::before { content: "✓"; color: var(--mint); }

/* ---------- failure modes ---------- */

.failure-modes { margin-top: 44px; }
.modes-title { font-size: 14px; color: var(--forest-deep); margin-bottom: 20px; font-weight: 600; }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.mode-grid li { border-top: 1px solid #D8E0D8; padding-top: 14px; }
.mode-grid h4 { font-size: 13.5px; color: var(--forest-deep); margin-bottom: 6px; }
.mode-grid p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- stages ---------- */

.stages {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.stages li {
  border-top: 2px solid var(--forest);
  padding-top: 16px;
}
.stage-no {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--jade);
  margin-bottom: 10px;
}
.stages h3 { font-size: 14.5px; color: var(--forest-deep); margin-bottom: 8px; }
.stages p { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- features ---------- */

.feature-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-grid li { background: var(--white); padding: 22px 22px 24px; }
.feature-grid h3 { font-size: 14px; color: var(--forest-deep); margin-bottom: 7px; }
.feature-grid p { font-size: 13px; line-height: 1.62; color: var(--ink-soft); }

/* ---------- engine ---------- */

.engine {
  margin-top: 48px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--mineral);
  padding: clamp(20px, 3vw, 30px);
}

.engine-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.engine-head h3 { font-size: 17px; color: var(--forest-deep); }
.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4C5A53;
  border: 1px solid #D3DDD4;
  border-radius: 20px;
  padding: 5px 11px;
  background: var(--white);
  white-space: nowrap;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(22, 122, 104, .14);
}

.engine-sub { margin-top: 10px; font-size: 13px; color: var(--ink-soft); max-width: 70ch; }

.engine-controls {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.engine-controls label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6C7A72;
}

select, input[type="text"], input[type="email"] {
  font-family: inherit;
  font-size: 13.5px;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid #D3DDD4;
  border-radius: var(--r-sm);
  padding: 9px 11px;
}
select { max-width: 100%; }
select:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 2px;
}

.btn-jade {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--white);
  background: var(--forest);
  border: 1px solid var(--forest);
  border-radius: var(--r-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: background .15s ease;
}
.btn-jade:hover:not(:disabled) { background: var(--jade); border-color: var(--jade); }
.btn-jade:disabled { opacity: .55; cursor: progress; }

.engine-body { margin-top: 24px; }
.engine-meta { font-size: 12px; color: var(--ink-soft); margin-bottom: 14px; }

.engine-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.engine-cols h4 {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6C7A72;
  font-weight: 600;
  margin-bottom: 10px;
}

.fact-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 12px;
}
.fact-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--graphite);
}
.fact-status {
  flex: none;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 3px;
  padding: 1px 5px;
  background: #EAF3EE;
  color: var(--jade);
}
.fact-status.is-absent { background: #F3EFE7; color: #8A6A2A; }

.note-out {
  margin: 0;
  max-height: 320px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 14px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--graphite);
  white-space: pre-wrap;
}

.engine-error {
  margin-top: 16px;
  font-size: 13px;
  color: #8A3B32;
  background: #FBEFEC;
  border: 1px solid #E9CFC9;
  border-radius: 6px;
  padding: 10px 12px;
}

.engine-foot { margin-top: 16px; font-size: 12px; color: var(--ink-soft); }

/* ---------- forest section ---------- */

.section-forest { background: var(--forest-deep); color: var(--mint-2); }
.section-forest h2 { color: var(--white); }
.section-forest .kicker { color: var(--mint); }
.section-lede-invert { color: var(--mint-2); }

.roadmap {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.roadmap li { border-top: 1px solid rgba(184, 230, 213, .25); padding-top: 18px; }
.roadmap-state {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 10px;
}
.roadmap h3 { font-size: 15px; color: var(--white); margin-bottom: 12px; }
.roadmap ul { display: grid; gap: 9px; }
.roadmap li li {
  border: 0;
  padding: 0 0 0 14px;
  position: relative;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--mint-2);
}
.roadmap li li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 1px;
  background: rgba(184, 230, 213, .5);
}

.boundaries {
  margin-top: 52px;
  border-top: 1px solid rgba(184, 230, 213, .2);
  padding-top: 26px;
}
.boundaries h3 { font-size: 14px; color: var(--white); margin-bottom: 18px; }
.boundaries dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 36px;
  margin: 0;
}
.boundaries dt {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 5px;
}
.boundaries dd {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mint-2);
}

/* ---------- cta ---------- */

.cta { background: var(--white); }
.cta-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.cta h2 { max-width: 22ch; }

.cta-links {
  margin-top: 26px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.link-quiet {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--jade);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 122, 104, .3);
  padding-bottom: 2px;
}
.link-quiet:hover { border-bottom-color: var(--jade); }

.beta-form {
  background: var(--mineral);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
  display: grid;
  gap: 14px;
}
.beta-form label {
  display: grid;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6C7A72;
}
.beta-form input, .beta-form select { width: 100%; }
.beta-form .check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.beta-form .check input { width: auto; margin-top: 3px; }
.beta-form .btn-jade { justify-self: start; }
.form-msg { font-size: 12.5px; color: var(--jade); min-height: 1em; }
.form-msg.is-error { color: #8A3B32; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--mint-2);
  padding: 44px 0 38px;
  border-top: 1px solid rgba(184, 230, 213, .16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 32px;
}
.footer-brand { color: var(--white); font-size: 15px; margin-bottom: 10px; }
.footer-brand .brand-mark { background: rgba(184, 230, 213, .12); color: var(--mint); width: 26px; height: 26px; }
.footer-note { font-size: 12.5px; line-height: 1.6; max-width: 32ch; color: rgba(168, 201, 189, .9); }
.footer-links { display: grid; gap: 8px; align-content: start; }
.footer-links a {
  font-size: 12.5px;
  color: rgba(184, 230, 213, .9);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); }
.footer-legal { font-size: 11.5px; line-height: 1.6; color: rgba(168, 201, 189, .7); }

/* ---------- motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12.5px; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .header-inner { gap: 16px; }
  .link-signin { display: none; }

  .menu-btn { display: flex; }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px 24px 14px;
    display: none;
    box-shadow: 0 18px 24px rgba(5, 47, 41, .08);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    font-size: 15px;
    padding: 13px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav a:last-child { border-bottom: 0; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 640px; }
  .hero-strip { grid-template-columns: 1.45fr 1fr; }

  .principles { grid-template-columns: 1fr; gap: 10px; }
  .compare { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; gap: 30px; }
  .boundaries dl { grid-template-columns: 1fr; gap: 18px; }
  .cta-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-note, .footer-legal { max-width: 46ch; }
}

@media (max-width: 640px) {
  .header-inner { height: 62px; padding: 0 18px; }
  .site-nav { top: 62px; }
  .wrap, .hero-grid { padding-left: 18px; padding-right: 18px; }
  .brand-text { font-size: 16px; }
  .btn-outline { padding: 8px 12px; font-size: 12.5px; }
  .header-actions { gap: 10px; }

  .hero { padding-top: 44px; }
  .hero h1 { font-size: clamp(2rem, 9.2vw, 2.6rem); }
  .hero-actions { gap: 10px; }
  .btn-primary { flex: 1 1 auto; }
  .trust-points { margin-top: 30px; gap: 8px 18px; font-size: 12px; }

  /* A full desktop frame is illegible on a phone: the zoomed detail crop is
     shown instead (see <picture> in index.html), and the collage stacks. */
  .shot-caption { font-size: 10.5px; }
  .hero-strip { grid-template-columns: 1fr; gap: 12px; }
  .shot-detail { max-width: 62%; }

  .feature-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; gap: 16px; }
  .stages { grid-template-columns: 1fr; }

  .engine-cols { grid-template-columns: 1fr; }
  .engine-controls { flex-direction: column; align-items: stretch; }
  .engine-controls select { width: 100%; }
  .engine-badge { white-space: normal; }

  .beta-form { padding: 20px; }
}

/* Below ~360px the brand, the outline CTA and the menu button no longer fit on
   one row; the CTA stays reachable in the hero and at the foot of the page. */
@media (max-width: 380px) {
  .btn-outline { display: none; }
}
