/* ============================================================
   Investor page — quieter companion to the marketing site.
   Reuses tokens and components from styles.css. Only new
   components and the calmer hero treatment live here.
   ============================================================ */

/* ---------- Shared: TODO markers + inline source links ---------- */
.todo {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--warn); font-weight: 700;
  border: 1px dashed rgba(var(--warn-rgb), 0.5);
  background: rgba(var(--warn-rgb), 0.07);
  padding: 2px 9px; border-radius: 6px; vertical-align: middle;
}
.todo-block {
  border: 1px dashed rgba(var(--warn-rgb), 0.4);
  background: rgba(var(--warn-rgb), 0.05);
  border-radius: 14px; padding: 26px 28px; color: var(--muted); font-size: 14.5px;
}
.todo-block .todo { margin-bottom: 12px; }

/* inline citation links inside prose */
.prose a, a.src, .wn-closing a, .lead a, .mkt-sub a, .pdms-sum p a, .cs-note a, figcaption a {
  color: var(--uv); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: rgba(var(--uv-rgb), 0.5);
  transition: color 0.2s, text-decoration-color 0.2s;
}
.prose a:hover, a.src:hover, .wn-closing a:hover, .lead a:hover, .mkt-sub a:hover, .pdms-sum p a:hover, .cs-note a:hover, figcaption a:hover { color: var(--cyan); text-decoration-color: var(--cyan); }

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px;
}

/* ---------- Quieter nav ---------- */
.nav-links .home-link { color: var(--muted); }

/* ---------- Logo lockup: AK monogram + wordmark ----------
   The mark is the traced AK ligature (assets/aionik-mark.svg), inlined so it
   inherits colour and can be themed per placement. Solid violet in the nav so
   it does not compete with the gradient already in the wordmark's "IK". */
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  line-height: 1;
}
.logo-mark {
  height: 0.92em; width: auto; flex-shrink: 0;
  color: var(--uv);
  transition: color 0.25s, opacity 0.25s;
}
a.logo:hover .logo-mark { opacity: 0.82; }
/* Option B: the monogram carries the gradient, so the wordmark goes plain
   white. Overrides the `.logo span` gradient inherited from styles.css,
   which would otherwise make the whole word transparent. */
.logo .logo-word,
.logo .logo-word span {
  display: inline-block;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
}
.logo .logo-word .tm {
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
/* footer lockup sits quieter than the nav */
.footer-logo .logo-mark { color: var(--muted); opacity: 0.85; }

/* NOTE: the base `.logo .tm` sizing/positioning moved to styles.css so every
   page (including the future main site) shares it. The `.logo .logo-word .tm`
   rule above only tunes the TM colour for this page's option-B lockup. */

/* ---------- Hero (calm, no canvas) ---------- */
.inv-hero {
  padding: 160px 0 90px; position: relative;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 15% 0%, rgba(var(--violet-rgb), 0.10), transparent 55%);
}
.inv-hero-split {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}
.inv-hero h1 { margin-bottom: 14px; }
/* quieter resolution line under the headline — deliberately smaller than h1
   so it does not compete with "hold one in your hands" */
.inv-hero .hero-tag {
  font-size: clamp(19px, 2.1vw, 26px); font-weight: 600;
  letter-spacing: -0.01em; color: var(--text); margin-bottom: 26px;
}
.inv-hero .positioning {
  font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 36px;
}
.round-status {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  margin-top: 30px; font-size: 13.5px; color: var(--muted);
  padding-top: 24px; border-top: 1px solid var(--line);
}
.round-status .rs-item { display: inline-flex; align-items: center; gap: 8px; }
.round-status .rs-item b { color: var(--text); font-weight: 600; }
.round-status .rs-item::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

/* Product stage: the photo is cropped tight to the device, then the
   "surface" it sits on is built here — a glossy floor reflection below,
   a hairline light horizon at the contact point, and a soft backlight.
   The photo's near-black backdrop lighten-blends into --bg, so the device
   reads as physically resting on a dark reflective surface in the page. */
.hero-photo { position: relative; margin: 0; }
.hero-photo .stage-img {
  position: relative; z-index: 1;
  display: block; width: 100%; height: auto;
  mix-blend-mode: lighten;
  filter: contrast(1.07) saturate(1.06) brightness(1.03);
}
/* backlight rising behind the device */
.stage-glow {
  position: absolute; z-index: 0;
  left: 4%; right: 4%; top: -10%; height: 105%;
  background: radial-gradient(ellipse 62% 55% at 50% 55%,
    rgba(var(--violet-rgb), 0.30), rgba(var(--cyan-rgb), 0.10) 55%, transparent 75%);
  filter: blur(34px);
}
/* the surface edge: a hairline of light where the device meets the floor */
.stage-horizon {
  position: relative; z-index: 2;
  height: 2px; margin: 0 6%;
  background: linear-gradient(90deg,
    transparent, rgba(var(--uv-rgb), 0.8) 20%, rgba(var(--text-rgb), 1) 50%, rgba(var(--cyan-rgb), 0.8) 80%, transparent);
  box-shadow: 0 0 18px rgba(var(--violet-rgb), 0.8), 0 0 46px rgba(var(--cyan-rgb), 0.4);
}
/* glossy floor: mirrored copy clipped to a shallow strip, fading out fast
   like polished black acrylic */
.stage-floor {
  position: relative; z-index: 0;
  overflow: hidden; aspect-ratio: 970 / 190;
  -webkit-mask-image: linear-gradient(180deg, rgba(var(--shadow-rgb), 0.85), rgba(var(--shadow-rgb), 0.25) 55%, transparent 92%);
  mask-image: linear-gradient(180deg, rgba(var(--shadow-rgb), 0.85), rgba(var(--shadow-rgb), 0.25) 55%, transparent 92%);
  pointer-events: none;
}
.stage-floor .stage-reflection {
  display: block; width: 100%; height: auto;
  transform: scaleY(-1);
  mix-blend-mode: lighten;
  filter: blur(3px) saturate(0.9) brightness(0.8);
  opacity: 0.55;
}

/* ---------- Mission band (purpose statement, sits below the hero) ---------- */
.mission {
  padding: 88px 0; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 82% 120%, rgba(var(--cyan-rgb), 0.07), transparent 55%);
}
.mission .container { max-width: 880px; }
.mission .kicker { margin-bottom: 22px; }
.mission-lead {
  font-size: clamp(21px, 2.3vw, 27px); line-height: 1.45;
  letter-spacing: -0.01em; color: var(--text); font-weight: 500;
  text-wrap: balance;
}
.mission-sub {
  margin-top: 24px; font-size: 17px; line-height: 1.6; color: var(--muted);
  max-width: 640px;
}

/* ---------- Team photo avatars ----------
   Real headshots replace the placeholder SVGs. Keep the violet->cyan ring
   from the placeholder as a gradient border, with a thin surface-colored
   gap so the photo reads as framed rather than bleeding into the ring. */
.team-card .avatar {
  width: 104px; height: 104px; margin: 0 auto 24px;
  border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
}
.team-card .avatar img {
  box-sizing: border-box;
  width: 100%; height: 100%; display: block;
  border-radius: 50%; object-fit: cover; object-position: center top;
  border: 3px solid var(--surface);
}
.team-card:hover .avatar {
  box-shadow: 0 0 22px rgba(var(--violet-rgb), 0.4);
}

/* ---------- Comparative proof figure (patent micrographs) ---------- */
.proof-figure {
  margin: 50px auto 0; max-width: 1020px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px -32px rgba(var(--shadow-rgb), 0.65);
}
.proof-figure img { display: block; width: 100%; height: auto; }
.proof-figure figcaption {
  padding: 18px 24px; font-size: 14px; line-height: 1.6;
  color: var(--muted); border-top: 1px solid var(--line);
}
.proof-figure figcaption strong { color: var(--text); font-weight: 600; }

/* ---------- Generic section lead prose ---------- */
.lead { max-width: 680px; }
.lead.muted { font-size: 17px; }

/* ---------- Why now ---------- */
.whynow .wn-block { max-width: 720px; margin-top: 54px; }
.whynow .wn-block:first-of-type { margin-top: 46px; }
.wn-lead {
  font-size: 20px; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.wn-para { font-size: 16.5px; color: var(--muted); }
.wn-para + .wn-para { margin-top: 14px; }   /* tighter than between blocks */
.wn-closing { max-width: 720px; margin-top: 26px; font-size: 16.5px; color: var(--text); }

/* ---------- Market scale (analyst compilation) ---------- */
.mkt-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin: 32px 0 28px;
}
.mkt-stat {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 24px 22px; background: rgba(var(--fill-rgb), 0.02);
}
.mkt-k {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700;
}
.mkt-v {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em;
  margin: 10px 0 8px; line-height: 1.1;
  background: linear-gradient(90deg, var(--uv), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mkt-sub { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* source list: firm name links left, published figures right */
.mkt-sources {
  margin-top: 30px; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 28px; background: rgba(var(--fill-rgb), 0.02);
}
.mkt-src-title {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan); font-weight: 700; margin-bottom: 16px;
}
.mkt-sources ul { list-style: none; }
.mkt-sources li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; padding: 10px 0; font-size: 14.5px;
  border-bottom: 1px solid rgba(var(--fill-rgb), 0.05);
}
.mkt-sources li:last-child { border-bottom: none; }
.mkt-sources li span { color: var(--muted); font-size: 13.5px; text-align: right; flex-shrink: 0; }
.mkt-note {
  margin-top: 16px; padding-top: 16px; font-size: 12.5px; line-height: 1.6;
  color: var(--muted); border-top: 1px solid var(--line);
}

/* comparison table */
.cmp-wrap { margin-top: 34px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp thead th {
  text-align: left; padding: 14px 18px;
  color: var(--cyan); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.cmp tbody th {
  text-align: left; padding: 18px; font-weight: 600; color: var(--text);
  vertical-align: top; border-bottom: 1px solid var(--line); width: 26%;
}
.cmp tbody td {
  padding: 18px; color: var(--muted); vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.cmp tbody tr:hover { background: rgba(var(--fill-rgb), 0.02); }
.cmp tr.us th, .cmp tr.us td {
  background: linear-gradient(90deg, rgba(var(--violet-rgb), 0.10), rgba(var(--cyan-rgb), 0.04));
}
.cmp tr.us th {
  color: var(--uv); font-weight: 800;
  box-shadow: inset 3px 0 0 var(--violet);
}
.cmp tr.us:hover th, .cmp tr.us:hover td {
  background: linear-gradient(90deg, rgba(var(--violet-rgb), 0.14), rgba(var(--cyan-rgb), 0.06));
}

/* ---------- The insight — four results ---------- */
.results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.result-card {
  background: rgba(var(--fill-rgb), 0.03); border: 1px solid rgba(var(--fill-rgb), 0.08);
  border-radius: 16px; padding: 30px 26px;
}
.result-card .num { font-size: 12px; color: var(--cyan); letter-spacing: 0.2em; display: block; margin-bottom: 16px; }
.result-card h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.3; }
.result-card p { font-size: 14px; color: var(--muted); }

/* ---------- What exists today: today / next / at scale ---------- */
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; align-items: start; }
/* two-column variant: built vs not built yet, after the roadmap columns were cut */
.stages.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; }
.stage { border-radius: 16px; padding: 32px 28px; }
.stage h3 { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 4px; }
.stage .when { font-size: 12px; color: var(--muted); margin-bottom: 22px; letter-spacing: 0.04em; }
.stage ul { list-style: none; }
.stage li { font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid rgba(var(--fill-rgb), 0.05); }
.stage li:last-child { border-bottom: none; }
/* today: solid and confident */
.stage.today { background: linear-gradient(160deg, rgba(var(--violet-rgb), 0.12), rgba(var(--cyan-rgb), 0.05)); border: 1px solid var(--violet); box-shadow: 0 0 40px rgba(var(--violet-rgb), 0.10); }
.stage.today h3 { color: var(--uv); }
.stage.today li { color: var(--text); }
/* next: present but lighter */
.stage.next { background: rgba(var(--fill-rgb), 0.03); border: 1px solid rgba(var(--fill-rgb), 0.10); }
.stage.next h3 { color: var(--cyan); }
.stage.next li { color: var(--muted); }
/* at scale: outlined thesis, deliberately faint */
.stage.scale { background: transparent; border: 1px dashed rgba(var(--violet-rgb), 0.35); }
.stage.scale h3 { color: var(--muted); }
.stage.scale li { color: var(--muted); }

/* ---------- Scope & potential ---------- */
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.scope-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px 28px; background: rgba(var(--fill-rgb), 0.02); }
.scope-card .tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.scope-card h3 { font-size: 18px; margin: 10px 0; }
.scope-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Evidence ---------- */
.ev-list { margin-top: 46px; }
.ev-row { display: grid; grid-template-columns: 210px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ev-row .cat { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.ev-row .body { font-size: 15px; color: var(--muted); }
.ev-row .body strong { color: var(--text); font-weight: 600; }

/* ---------- The ask ---------- */
.ask-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.term { border: 1px solid var(--line); border-radius: 14px; padding: 24px 22px; background: rgba(var(--fill-rgb), 0.02); }
.term .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.term .v { font-size: 21px; font-weight: 800; margin-top: 10px; letter-spacing: -0.01em; }

.funds { margin-top: 52px; max-width: 720px; }
.funds h3, .milestones-wrap h3, .ask-extra h3 { font-size: 15px; letter-spacing: 0.02em; margin-bottom: 22px; color: var(--text); }
.fund { margin-bottom: 18px; }
.fund-top { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 8px; color: var(--text); }
.fund-top .pct { color: var(--uv); font-weight: 700; }
.fund-track { height: 8px; border-radius: 999px; background: rgba(var(--fill-rgb), 0.06); overflow: hidden; }
.fund-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--cyan)); }

.milestones-wrap { margin-top: 52px; }
.milestones { border-left: 1px solid var(--line); padding-left: 30px; margin-top: 10px; }
.ms { position: relative; padding-bottom: 28px; }
.ms:last-child { padding-bottom: 0; }
.ms::before {
  content: ''; position: absolute; left: -35px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
}
.ms .date { font-size: 12px; color: var(--cyan); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.ms h4 { font-size: 16px; margin: 5px 0 4px; }
.ms p { font-size: 14.5px; color: var(--muted); }

.ask-extra { margin-top: 52px; max-width: 720px; }
.ask-extra p { color: var(--muted); font-size: 15.5px; }

/* deck request — intentionally not wired until endpoint is confirmed */
.deck-form { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; padding: 30px; max-width: 620px; }
.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.deck-form input {
  width: 100%; background: rgba(var(--fill-rgb), 0.03); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 15px; color: var(--text); font-size: 14px; font-family: inherit;
}
.deck-form input::placeholder { color: var(--muted); }
.deck-form button[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Investor inquiry form ----------
   Native styled form in the closing CTA band. Posts to Google Forms.
   The band is centered; the form itself is left aligned so labels and
   fields read as a normal column. */
.inv-form {
  max-width: 620px; margin: 40px auto 0; text-align: left;
}
.if-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.if-grid .field { margin-bottom: 0; }
.if-grid + .field { margin-top: 18px; }

.field label {
  display: block; margin-bottom: 8px;
  font-size: 13px; font-weight: 600; color: var(--text); letter-spacing: 0.01em;
}
.field .req { color: var(--uv); }
.field .opt {
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); margin-left: 6px;
}

.field input, .field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: rgba(var(--fill-rgb), 0.03);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 15px; line-height: 1.5;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:hover, .field textarea:hover { border-color: rgba(var(--violet-rgb), 0.4); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  background: rgba(var(--fill-rgb), 0.05);
  box-shadow: 0 0 0 3px rgba(var(--violet-rgb), 0.18);
}
/* the shared focus-visible rule adds an outline for keyboard users; the ring
   above is the pointer-and-keyboard resting state */
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 2px; }

.field input.invalid, .field textarea.invalid {
  border-color: var(--warn-edge); background: rgba(var(--warn-edge-rgb), 0.06);
}
.field input.invalid:focus, .field textarea.invalid:focus {
  box-shadow: 0 0 0 3px rgba(var(--warn-edge-rgb), 0.18);
}
.field-err {
  margin-top: 7px; font-size: 12.5px; color: var(--warn-soft); letter-spacing: 0.01em;
}

/* honeypot: kept in the layout but out of sight and out of the tab order */
.if-hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.if-submit {
  border: none; cursor: pointer; font-family: inherit; margin-top: 8px;
  width: 100%;
}
.if-submit[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: 0 0 32px rgba(var(--violet-rgb), 0.4); }

/* the notes under the button sit centered with the rest of the band,
   even though the fields above them are a left aligned column */
.if-status, .if-privacy { text-align: center; }
.if-status { margin-top: 14px; font-size: 13.5px; min-height: 1px; }
.if-status.err { color: var(--warn-soft); }
.if-status.err a { color: var(--uv); text-decoration: underline; text-underline-offset: 3px; }
.if-privacy { margin-top: 12px; }

/* success panel replaces the form in place */
.if-done { max-width: 620px; margin: 44px auto 0; }
.if-done-mark {
  width: 52px; height: 52px; margin: 0 auto 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: var(--on-accent);
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 28px rgba(var(--violet-rgb), 0.45);
}
.if-done h3 { font-size: 21px; margin-bottom: 10px; }

@media (max-width: 560px) {
  .if-grid { grid-template-columns: 1fr; gap: 0; }
  .if-grid .field { margin-bottom: 18px; }
}

/* ---------- Cost, stated briefly ----------
   The itemized version lives on pdms.html. Here the job is scale, not
   detail, so the three figures are the only thing that needs to land.
   (An earlier line-item build of this is recoverable from git if the
   detail is ever wanted inline again.) */
.cost-brief {
  max-width: 720px; margin-top: 26px;
  font-size: 17.5px; line-height: 1.75; color: var(--muted);
}
/* Solid violet, not the title gradient: these are figures, and they need to
   read as one emphatic colour rather than as a heading treatment. */
.cost-brief b {
  font-weight: 800; font-size: 1.12em; white-space: nowrap;
  letter-spacing: -0.01em; color: var(--cost);
}
.cost-brief-link { margin-top: 16px; font-size: 15px; }
.cost-brief-link a {
  color: var(--uv); text-decoration: none;
  border-bottom: 1px solid rgba(var(--violet-rgb), 0.35);
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.cost-brief-link a:hover { color: var(--cyan); border-color: var(--cyan); }

/* ---------- PDMS summary (links out to pdms.html) ----------
   Given a little more presence than a plain card grid, because it is the
   bridge into the deep dive and was reading as skippable. The lift is a
   framed panel with a hairline gradient top edge and a numbered rail on
   each card, not louder colour. */
.pdms-summary {
  position: relative; margin-top: 50px;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 42px 40px 40px;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(var(--violet-rgb), 0.09), transparent 70%),
    rgba(var(--fill-rgb), 0.015);
  overflow: hidden;
}
/* hairline of light along the top edge */
.pdms-summary::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--violet) 30%, var(--cyan) 70%, transparent);
  opacity: 0.85;
}
.pdms-sum-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pdms-sum {
  position: relative;
  border: 1px solid rgba(var(--fill-rgb), 0.07); border-radius: 14px;
  padding: 26px 26px 24px 30px;
  background: rgba(var(--fill-rgb), 0.025);
  transition: border-color 0.25s, background 0.25s;
}
/* accent rail, brightening on hover so the grid feels alive without colour noise */
.pdms-sum::before {
  content: ''; position: absolute; left: 0; top: 26px; bottom: 26px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
  opacity: 0.55; transition: opacity 0.25s;
}
.pdms-sum:hover { border-color: rgba(var(--violet-rgb), 0.4); background: rgba(var(--fill-rgb), 0.04); }
.pdms-sum:hover::before { opacity: 1; }
.pdms-sum-k {
  font-size: 15.5px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.pdms-sum p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* The wait card sits under the 2x2 grid at full width, because elapsed time
   is the consequence of everything in those four cards. */
.pdms-wait {
  margin-top: 18px; padding: 28px 30px;
  border: 1px solid rgba(var(--violet-rgb), 0.32); border-radius: 16px;
  background: linear-gradient(120deg, rgba(var(--violet-rgb), 0.10), rgba(var(--cyan-rgb), 0.04) 70%, transparent);
}
.pdms-wait-k {
  font-size: 15.5px; font-weight: 700; color: var(--uv);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.pdms-wait p { font-size: 15px; color: var(--muted); line-height: 1.65; }
/* Lead time is an incumbent cost in every sense except currency, so it takes the
   same amber as money. Dane's rule, 31 Aug 2026: key competitor negatives get
   amber, used sparingly so it keeps its force. */
.pdms-wait b { color: var(--cost); font-weight: 800; white-space: nowrap; }

.pdms-cta-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px solid rgba(var(--fill-rgb), 0.07);
}
.pdms-cta { margin: 0; }
.pdms-cta-note { font-size: 13.5px; color: var(--muted); }

@media (max-width: 860px) {
  .pdms-sum-grid { grid-template-columns: 1fr; }
  .pdms-summary { padding: 32px 24px 30px; }
}

/* ---------- Legal / footer ---------- */
.updated { text-align: center; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-top: 30px; }
.legal {
  max-width: 840px; margin: 20px auto 0; text-align: center;
  font-size: 12.5px; line-height: 1.7; color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .inv-hero-split { grid-template-columns: 1fr; gap: 44px; }
  .results { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  /* .stages.two needs naming explicitly: it outranks a bare .stages selector here */
  .stages, .stages.two, .scope-grid, .ask-terms { grid-template-columns: 1fr; }
  .ev-row { grid-template-columns: 1fr; gap: 8px; }
  .deck-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .results { grid-template-columns: 1fr; }
  /* comparison table collapses to stacked cards — no scroll, no type shrink */
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr {
    border: 1px solid var(--line); border-radius: 14px;
    margin-bottom: 16px; padding: 6px 4px; overflow: hidden;
  }
  .cmp tbody th { border-bottom: 1px solid var(--line); width: auto; font-size: 16px; }
  .cmp tbody td { border-bottom: none; padding: 12px 18px; }
  .cmp tbody td::before {
    content: attr(data-label); display: block;
    color: var(--cyan); font-size: 11px; letter-spacing: 0.12em;
    text-transform: uppercase; margin-bottom: 3px; font-weight: 700;
  }
  .cmp tr.us th { box-shadow: inset 0 3px 0 var(--violet); }
}
