/* ==========================================================================
   Signal Strategy — Design System
   Spec Section 5. Dark-mode first. No light-mode variant.
   ========================================================================== */

:root {
  --obsidian:        #0F172A;
  --slate-deep:      #111827;
  --border-subtle:   #1F2937;
  --signal-cyan:     #00F0FF;
  --emerald:         #10B981;
  --white:           #FFFFFF;
  --gray-cool:       #9CA3AF;

  --bg-primary:      var(--obsidian);
  --bg-secondary:    var(--slate-deep);
  --text-primary:    var(--white);
  --text-secondary:  var(--gray-cool);
  --accent:          var(--signal-cyan);
  --accent-hover:    var(--emerald);
  --border:          var(--border-subtle);

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --container: 1280px;
  --gutter-x:  64px;
  --section-y: 120px;
  --nav-h:     72px;
  --radius:    4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--obsidian); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--obsidian);
  padding: 12px 20px; font-weight: 600; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }

h1 {
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.25; }

p { color: var(--text-secondary); }
p + p { margin-top: 18px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow--muted { color: var(--text-secondary); }

.lede { font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }
.section-sub { margin-top: 12px; max-width: 60ch; }

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

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter-x); }
.section   { padding-block: var(--section-y); }
.section--tight { padding-block: 84px; }
.section--band  { background: var(--bg-secondary); border-block: 1px solid var(--border); }
.section-head   { margin-bottom: 56px; max-width: 70ch; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--narrow { max-width: 880px; margin-inline: auto; }

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 600;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 120ms ease, transform 120ms ease, border-color 120ms ease, color 120ms ease;
}
.btn--primary { background: var(--accent); color: var(--obsidian); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn--secondary { background: transparent; color: var(--white); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn--invert { background: var(--obsidian); color: var(--accent); }
.btn--invert:hover { background: var(--slate-deep); transform: translateY(-1px); }

.btn--sm { font-size: 13px; padding: 12px 22px; }

/* Every real link carries a permanent affordance beyond color — an underline
   here, an arrow suffix in the markup. Cyan also decorates non-interactive
   labels (eyebrows, column headers), and on touch screens there is no hover
   to tell them apart. Color must never be the only signal. */
.link-arrow {
  color: var(--accent); font-size: 15px; font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.4);
  text-underline-offset: 4px;
  transition: opacity 150ms ease, text-decoration-color 150ms ease;
}
.link-arrow:hover { opacity: 0.85; text-decoration-color: var(--accent); }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 40px; }

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

.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease;
}
.nav.is-scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--border);
}
.nav__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter-x);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav__logo img { height: 32px; width: auto; }
.nav__logo .mark-only { display: none; }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 150ms ease;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
}
.nav__toggle span {
  display: block; height: 2px; background: var(--white); border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav__overlay {
  position: fixed; inset: 0; z-index: 45;
  background: var(--obsidian);
  padding: calc(var(--nav-h) + 40px) 24px 32px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform 260ms cubic-bezier(.4,0,.2,1);
  visibility: hidden;
}
.nav__overlay.is-open { transform: translateY(0); visibility: visible; }
.nav__overlay a {
  font-family: var(--font-display); font-size: 30px; font-weight: 500;
  padding-block: 16px; border-bottom: 1px solid var(--border);
}
.nav__overlay .btn { margin-top: auto; text-align: center; }

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

.hero {
  min-height: 720px; display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + 80px) 80px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -10%; bottom: -30%;
  width: 70vw; height: 70vw; pointer-events: none;
  background: radial-gradient(circle, rgba(0,240,255,0.08) 0%, transparent 62%);
}
.hero__grid {
  display: grid; grid-template-columns: 58% 42%; gap: 48px; align-items: center;
  width: 100%; position: relative; z-index: 1;
}
.hero__copy p { margin-top: 26px; }
.hero__visual { display: flex; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 480px; height: auto; }

.wave-noise { stroke: var(--gray-cool); stroke-width: 2.5; fill: none; opacity: .55; }
.wave-clean { stroke: var(--accent); stroke-width: 3;   fill: none; }
.wave-scan  { stroke: var(--accent); stroke-width: 1.5; opacity: .6; }

/* ---------- Credibility strip ---------- */

.cred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cred__item { text-align: center; }
/* Scales down on narrow screens so a longer stat like "Principal-led" stays
   on one line instead of breaking at the hyphen. Fixed 30px overflows a
   two-column phone layout. */
.cred__stat {
  font-family: var(--font-display); font-size: clamp(20px, 5.4vw, 30px);
  font-weight: 700; color: var(--white); line-height: 1.1;
  hyphens: none;
}
.cred__label {
  display: block; margin-top: 8px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Noise vs Signal matrix ---------- */

.matrix { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.matrix__head, .matrix__row { display: grid; grid-template-columns: 1fr 1fr; }
.matrix__head > div {
  padding: 20px 28px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--obsidian); border-bottom: 1px solid var(--border);
}
.matrix__head .is-noise  { color: var(--text-secondary); }
.matrix__head .is-signal { color: var(--accent); border-left: 1px solid var(--border); }
.matrix__row > div { padding: 20px 28px; font-size: 15px; border-bottom: 1px solid var(--border); }
.matrix__row > div + div { border-left: 1px solid var(--border); color: var(--white); }
.matrix__row > div:first-child { color: var(--text-secondary); }
.matrix__row:nth-child(even) { background: rgba(255,255,255,0.015); }
.matrix__row:last-child > div { border-bottom: 0; }

/* ---------- Cards ---------- */

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.card:hover { border-color: rgba(0,240,255,0.4); box-shadow: 0 0 24px rgba(0,240,255,0.08); }
.card--featured { border-top: 2px solid var(--accent); }
.card__title { margin-bottom: 14px; }
.card__desc { flex: 1; font-size: 15px; }
.card__marker {
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 13px; letter-spacing: 0.04em; color: var(--text-secondary);
}
.card__cta { margin-top: 18px; }

.feature { border-left: 2px solid var(--accent); padding-left: 22px; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 15px; }

/* ---------- Pipeline / steps ---------- */

.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.pipeline__line {
  position: absolute; top: 22px; left: 6%; right: 6%; height: 2px;
  background: var(--border); overflow: hidden;
}
.pipeline__line::after {
  content: ''; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.5s cubic-bezier(.4,0,.2,1);
}
.pipeline.is-visible .pipeline__line::after { transform: scaleX(1); }

.step { position: relative; }
.step__num {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--bg-secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--accent); margin-bottom: 22px; position: relative; z-index: 1;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 15px; }
.step__tag {
  display: inline-block; margin-top: 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px;
  color: var(--accent); background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2); border-radius: var(--radius);
  padding: 5px 10px; word-break: break-word;
}

/* ---------- Founder ---------- */

.founder { display: grid; grid-template-columns: 40% 60%; gap: 56px; align-items: center; }
/* height:auto is load-bearing. The <img> tags carry width/height attributes
   so the browser can reserve space before the file loads — but those act as
   presentational hints, so sizing only one axis in CSS leaves the other
   pinned to the literal attribute value and the image distorts. Setting
   height:auto releases it and restores the intrinsic aspect ratio. */
.founder__photo img { width: 100%; height: auto; }
.founder__photo .is-square { display: none; }
.founder__attr {
  display: inline-block; margin-top: 30px; padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px; font-weight: 500; color: var(--white);
}

/* ---------- Final CTA band ---------- */

.cta-band { background: var(--accent); color: var(--obsidian); text-align: center; padding-block: 100px; }
.cta-band h2 { color: var(--obsidian); }
.cta-band p { color: rgba(15,23,42,0.75); max-width: 62ch; margin: 18px auto 0; }
.cta-band .btn { margin-top: 36px; }
.cta-band__alt { display: block; margin-top: 22px; font-size: 14px; color: rgba(15,23,42,0.75); }
.cta-band__alt a { text-decoration: underline; font-weight: 500; }

/* ---------- Two-column compare ---------- */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare__col { padding: 32px; }
.compare__col + .compare__col { border-left: 1px solid var(--border); }
.compare__col h3 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 20px; font-family: var(--font-body); }
.compare__col:first-child h3 { color: var(--accent); }
.compare__col:last-child h3  { color: var(--text-secondary); }
.compare__col ul { list-style: none; }
.compare__col li { font-size: 15px; padding-block: 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.compare__col li:last-child { border-bottom: 0; }
.compare__col:first-child li { color: var(--white); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--border); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; text-align: left;
  font-family: var(--font-display); font-size: 17px; font-weight: 500; color: var(--white);
}
.faq__icon { flex: none; width: 14px; height: 14px; position: relative; }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; background: var(--accent);
  transition: transform 200ms ease, opacity 200ms ease;
}
.faq__icon::before { inset: 6px 0 6px 0; height: 2px; }
.faq__icon::after  { inset: 0 6px 0 6px; width: 2px; }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 260ms ease; }
.faq__a p { padding-bottom: 26px; font-size: 15px; max-width: 68ch; }

/* ---------- Form embed ---------- */

.form-shell {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-secondary); padding: 32px;
  transition: border-color 150ms ease;
}
.form-shell:focus-within { border-color: var(--accent); }
.form-shell__placeholder {
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 64px 24px; text-align: center; color: var(--text-secondary); font-size: 15px;
}
.form-note { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin-top: 48px; margin-bottom: 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16px; color: var(--text-secondary); }
.prose ul { margin: 14px 0 0 22px; }
.prose li { padding-block: 4px; }
.prose a { color: var(--accent); text-decoration: underline; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 880px; }
.contact-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.contact-card h3 { margin-bottom: 10px; }
.contact-card p { font-size: 15px; }
.contact-card a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 240, 255, 0.4);
  text-underline-offset: 4px;
}
.contact-card a:hover { text-decoration-color: var(--accent); }

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

.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary);
  margin-bottom: 18px;
}
.footer ul { list-style: none; }
.footer li { padding-block: 6px; }
.footer li a, .footer__brand p { font-size: 14px; color: var(--text-secondary); }
/* The email address has no break opportunity and is wider than a narrow
   footer column. Without this it overflows and scrolls the whole page
   sideways on a phone. */
.footer li a { overflow-wrap: anywhere; }
.footer li a { transition: color 150ms ease; }
.footer li a:hover { color: var(--accent); }
.footer__brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; }
.footer__trust { margin-top: 4px; }
.footer__trust li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-secondary); }
.footer__trust svg { flex: none; margin-top: 4px; }
.footer__bottom {
  margin-top: 64px; border-top: 1px solid var(--border);
  padding-block: 26px; text-align: center;
  font-size: 12.5px; color: var(--text-secondary);
}
.footer__bottom a { color: var(--text-secondary); text-decoration: underline; }

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  :root { --gutter-x: 40px; --section-y: 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: 0; }
  .founder { grid-template-columns: 1fr; gap: 40px; }
  .pipeline { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .pipeline__line { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --gutter-x: 24px; --section-y: 72px; --nav-h: 60px; }
  body { font-size: 16px; }

  /* ---- Footer on phones ----
     Previously the footer stopped at two columns (set at 1024px) and never
     went further, leaving ~135px columns on a 390px screen. */
  .footer { padding-top: 56px; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__brand p { max-width: none; }

  /* Touch targets. 14px text on a 21px line box with 6px padding gives a
     33px tap area; WCAG 2.5.8 and the Apple HIG both want 44px. Making the
     anchor a block means the whole row is tappable, not just the glyphs. */
  .footer li { padding-block: 0; }
  .footer li a { display: block; padding-block: 12px; }
  .footer__trust li { padding-block: 4px; }

  /* The bottom bar carries the copyright and the processor list — 150+
     characters that centre-set into four ragged lines. Stack them as two
     left-aligned blocks and drop the separator between them. */
  .footer__bottom { text-align: left; padding-block: 22px; }
  .footer__sep { display: none; }
  .footer__bottom > span { display: block; }
  .footer__bottom > span + span { margin-top: 8px; }

  /* Security · Privacy · Terms — 13px inline links give a ~19px tap area.
     The extra line-height stops the padded boxes colliding when they wrap. */
  [data-footer-legal] { line-height: 2.4; }
  [data-footer-legal] a { display: inline-block; padding-block: 12px; }

  .nav__logo img { height: 28px; width: auto; }
  .nav__logo .full-lockup { display: none; }
  .nav__logo .mark-only  { display: block; }
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .grid--2, .grid--3, .grid--4, .contact-grid { grid-template-columns: 1fr; }
  .cred { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .pipeline { grid-template-columns: 1fr; gap: 36px; }

  .matrix__head { display: none; }
  .matrix__row { grid-template-columns: 1fr; }
  .matrix__row > div { padding: 16px 20px; }
  .matrix__row > div + div { border-left: 0; }
  .matrix__row > div:first-child { padding-bottom: 6px; border-bottom: 0; }
  .matrix__row > div:first-child::before {
    content: 'Noise'; display: block; margin-bottom: 6px;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary);
  }
  .matrix__row > div + div::before {
    content: 'Signal'; display: block; margin-bottom: 6px;
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
  }

  .compare { grid-template-columns: 1fr; }
  .compare__col + .compare__col { border-left: 0; border-top: 1px solid var(--border); }

  .founder__photo .is-wide   { display: none; }
  .founder__photo .is-square { display: block; }

  .cta-row .btn { width: 100%; text-align: center; }
  .cta-band { padding-block: 72px; }
  .form-shell { padding: 20px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .pipeline__line::after { transform: scaleX(1); }
}

@media print {
  .nav, .nav__overlay, .cta-band, .hero__visual { display: none; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   Diagnostic intake form
   ========================================================================== */

.dform { max-width: 760px; }

.dform__progress {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.dform__progress-label {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary); white-space: nowrap;
}
.dform__bar { flex: 1; height: 2px; background: var(--border); overflow: hidden; }
.dform__bar span {
  display: block; height: 100%; background: var(--accent);
  transform-origin: left; transition: transform 300ms ease;
}

.dform__step { display: none; }
.dform__step.is-active { display: block; }
.dform__step legend {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--white); margin-bottom: 28px; padding: 0;
}
.dform fieldset { border: 0; padding: 0; margin: 0; }

.field { margin-bottom: 26px; }
.field > label, .field__legend {
  display: block; font-size: 15px; font-weight: 500;
  color: var(--white); margin-bottom: 8px;
}
.field__help { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.field__optional { color: var(--text-secondary); font-weight: 400; }

.dform input[type="text"],
.dform input[type="email"],
.dform textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px;
  color: var(--white); background: var(--obsidian);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 150ms ease;
}
.dform textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.dform input::placeholder, .dform textarea::placeholder { color: #4B5563; }
.dform input:hover, .dform textarea:hover { border-color: #2D3748; }
.dform input:focus, .dform textarea:focus { outline: none; border-color: var(--accent); }

/* Choice chips — radio and checkbox */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: block; cursor: pointer;
  font-size: 14px; color: var(--text-secondary);
  background: var(--obsidian);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 18px;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}
.choice span:hover { border-color: #2D3748; color: var(--white); }
.choice input:checked + span {
  border-color: var(--accent); color: var(--accent);
  background: rgba(0, 240, 255, 0.06);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Consent */
.consent { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent__box {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  border: 1px solid var(--border); border-radius: 3px;
  background: var(--obsidian); position: relative;
  transition: border-color 150ms ease, background 150ms ease;
}
.consent input:checked + .consent__box { border-color: var(--accent); background: var(--accent); }
.consent input:checked + .consent__box::after {
  content: ''; position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px; border: solid var(--obsidian);
  border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.consent input:focus-visible + .consent__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent__text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.consent__text a { color: var(--accent); text-decoration: underline; }

/* Errors */
.field.has-error input,
.field.has-error textarea { border-color: #F87171; }
.field__error {
  display: none; margin-top: 8px; font-size: 13px; color: #F87171;
}
.field.has-error .field__error { display: block; }

.dform__alert {
  display: none; margin-bottom: 24px; padding: 16px 18px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: var(--radius);
  background: rgba(248, 113, 113, 0.07);
  font-size: 14px; color: #FCA5A5;
}
.dform__alert.is-visible { display: block; }

/* Actions */
.dform__actions {
  display: flex; align-items: center; gap: 14px;
  margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--border);
}
.dform__actions .btn--secondary { margin-right: auto; }
.dform button[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Honeypot — hidden from humans, visible to naive bots */
.dform__hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

/* Success state */
.dform__success { display: none; text-align: left; }
.dform__success.is-visible { display: block; }
.dform__success-mark {
  width: 52px; height: 52px; border-radius: var(--radius);
  border: 1px solid var(--accent); background: rgba(0, 240, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.dform__success h3 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
.dform__success p { font-size: 16px; max-width: 56ch; }
.dform__pay {
  margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--border);
}
.dform__pay p { margin-bottom: 18px; }
.dform__price {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--white); margin-left: 14px;
}

@media (max-width: 768px) {
  .dform__step legend { font-size: 19px; }
  .dform__actions { flex-direction: column-reverse; align-items: stretch; }
  .dform__actions .btn { width: 100%; text-align: center; margin-right: 0; }
  .choices { gap: 8px; }
  .choice span { width: 100%; }
  .choice { width: 100%; }
}

/* ---------- Payment gate ---------- */

.gate {
  max-width: 620px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 40px;
}
.gate__heading {
  font-family: var(--font-display); font-size: 26px; font-weight: 700;
  color: var(--white); margin-bottom: 14px;
}
.gate > p { font-size: 16px; }
.gate__list { list-style: none; margin: 26px 0 0; }
.gate__list li {
  display: flex; align-items: flex-start; gap: 11px;
  padding-block: 9px; font-size: 15px; color: var(--white);
}
.gate__list svg { flex: none; margin-top: 6px; }
.gate__actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border);
}
.gate__price {
  font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white);
}
.gate__refund { margin-top: 20px; font-size: 13px; }
.gate__status { margin-top: 18px; font-size: 14px; color: var(--text-secondary); }
.gate__status.is-error { color: #FCA5A5; }
.gate__status:empty { display: none; }

.btn.is-disabled { opacity: 0.4; pointer-events: none; }

.gate__confirmed {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 30px; padding: 14px 18px;
  border: 1px solid rgba(0, 240, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(0, 240, 255, 0.06);
  font-size: 14px; color: var(--accent);
}

@media (max-width: 768px) {
  .gate { padding: 26px 22px; }
  .gate__heading { font-size: 22px; }
  .gate__actions .btn { width: 100%; text-align: center; }
}

/* ---------- Retainer payment options ---------- */

.paygrid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 880px;
}
.paycard {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: border-color 150ms ease;
}
.paycard:hover { border-color: rgba(0, 240, 255, 0.4); }
.paycard--pick { border-top: 2px solid var(--accent); }
.paycard__tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.25); border-radius: var(--radius);
  padding: 4px 10px; margin-bottom: 16px;
}
.paycard h3 { margin-bottom: 12px; }
.paycard__desc { flex: 1; font-size: 15px; }
.paycard__note {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
}
.paycard .btn { margin-top: 22px; text-align: center; }

.paygrid__price {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: var(--white); margin-top: 30px;
}
.paygrid__note {
  margin-top: 22px; font-size: 13px; max-width: 72ch;
}

@media (max-width: 768px) {
  .paygrid { grid-template-columns: 1fr; }
  .paycard { padding: 26px 22px; }
}

/* ---------- File upload ---------- */

.upload { position: relative; }
.upload__input {
  position: absolute; opacity: 0; width: 0.1px; height: 0.1px; overflow: hidden;
}
.upload__face {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; cursor: pointer; text-align: center;
  padding: 34px 24px;
  background: var(--obsidian);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  transition: border-color 150ms ease, background 150ms ease;
}
.upload__face:hover { border-color: var(--accent); background: rgba(0, 240, 255, 0.03); }
.upload.is-over .upload__face {
  border-color: var(--accent); border-style: solid; background: rgba(0, 240, 255, 0.07);
}
.upload.has-files .upload__face { padding: 22px; }
.upload__input:focus-visible + .upload__face { outline: 2px solid var(--accent); outline-offset: 2px; }
.upload__label { font-size: 15px; font-weight: 500; color: var(--white); }
.upload__hint { font-size: 12px; letter-spacing: 0.04em; color: var(--text-secondary); }

.upload__list { list-style: none; margin-top: 12px; }
.upload__item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  background: var(--obsidian);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 14px;
}
.upload__name {
  flex: 1; color: var(--white);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.upload__size { flex: none; font-size: 12px; color: var(--text-secondary); }
.upload__remove {
  flex: none; width: 26px; height: 26px; padding: 0;
  background: none; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text-secondary); font-size: 17px; line-height: 1; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease;
}
.upload__remove:hover { border-color: #F87171; color: #F87171; }

.upload__privacy {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 14px; font-size: 13px; color: var(--text-secondary);
}
.upload__privacy svg { flex: none; margin-top: 4px; }

@media (max-width: 768px) {
  .upload__face { padding: 26px 16px; }
  .upload__hint { font-size: 11px; }
}

/* ---------- Security page — provider table ---------- */

.providers { border-top: 1px solid var(--border); max-width: 900px; }
.provider { padding: 26px 0; border-bottom: 1px solid var(--border); }
.provider__head {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px;
  margin-bottom: 12px;
}
.provider__head h3 { font-size: 20px; font-weight: 700; }
.provider__role { font-size: 13px; color: var(--text-secondary); }
.provider__certs {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px; letter-spacing: 0.01em;
  color: var(--accent); background: rgba(0, 240, 255, 0.07);
  border: 1px solid rgba(0, 240, 255, 0.22); border-radius: var(--radius);
  padding: 7px 12px; margin-bottom: 12px;
}
.provider__note { font-size: 14px; max-width: 68ch; }

@media (max-width: 768px) {
  .provider__certs { font-size: 11.5px; padding: 8px 10px; line-height: 1.7; }
}

/* Founding-rate note beside the gate price */
.gate__price-wrap { display: inline-flex; flex-direction: column; }
.gate__price-note {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-secondary); margin-top: 2px;
}

/* ---------- Sample report block ---------- */

.sample {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px 48px; background: var(--bg-secondary);
}
.sample__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sample__note { font-size: 12.5px; color: var(--text-secondary); }

@media (max-width: 768px) {
  .sample { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
}
