/* ============================================================
   MedNeuron — marketing site
   Palette: deep petrol ink, monitor cyan, escalation amber
   Type: Bricolage Grotesque / Public Sans / IBM Plex Mono
   ============================================================ */

:root {
  --ink: #0b1b21;
  --ink-2: #06141a;
  --ink-3: #10262e;
  --paper: #f4f9f8;
  --paper-2: #eaf3f1;
  --cyan: #35e0c8;
  --cyan-deep: #14b8a6;
  --cyan-dim: #1c6e64;
  --amber: #ffb454;
  --red: #ff6e5e;
  --text-dark: #22383e;
  --text-mut: #5b7278;
  --text-on-dark: #d9e8e6;
  --text-on-dark-mut: #8fa6ab;
  --line-dark: rgba(53, 224, 200, 0.14);
  --line-paper: rgba(34, 56, 62, 0.12);
  --display: "Bricolage Grotesque", "Public Sans", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1160px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ink);
  color: var(--text-on-dark);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
strong { font-weight: 650; }
.mono { font-family: var(--mono); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 780px; }
.desktop-br { display: none; }
@media (min-width: 720px) { .desktop-br { display: inline; } }

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

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 640; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin-bottom: 18px; }
h3 { font-size: 1.22rem; line-height: 1.3; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan-deep);
  margin-bottom: 16px;
}
.dark .eyebrow, .hero .eyebrow { color: var(--cyan); }
.section-lede {
  max-width: 640px;
  font-size: 1.12rem;
  color: var(--text-mut);
  margin-bottom: 40px;
}
.section-lede.on-dark { color: var(--text-on-dark-mut); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 650;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), #1fb8d4);
  color: #04231e;
  box-shadow: 0 6px 24px rgba(53, 224, 200, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(53, 224, 200, 0.38); }
.btn-ghost {
  border-color: rgba(53, 224, 200, 0.4);
  color: var(--cyan);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--cyan); background: rgba(53, 224, 200, 0.08); }
.btn-ghost-dark {
  border-color: rgba(34, 56, 62, 0.35);
  color: var(--text-dark);
  background: transparent;
}
.btn-ghost-dark:hover { border-color: var(--text-dark); background: rgba(34, 56, 62, 0.06); }
.btn-wide { width: 100%; justify-content: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(6, 20, 26, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word {
  font-family: var(--display);
  font-weight: 680;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-word em { font-style: normal; color: var(--cyan); }
.nav-links { display: none; gap: 26px; margin-left: auto; }
.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--text-on-dark-mut);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: #fff; }
.btn-nav { display: none; padding: 10px 20px; font-size: 0.9rem; }
.nav-burger {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text-on-dark); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 28px 24px;
  border-top: 1px solid var(--line-dark);
}
.nav-drawer[hidden] { display: none; }
.nav-drawer a {
  text-decoration: none;
  color: var(--text-on-dark);
  font-weight: 550;
  padding: 10px 0;
}
.nav-drawer .btn { margin-top: 10px; justify-content: center; }
@media (min-width: 920px) {
  .nav-links { display: flex; }
  .btn-nav { display: inline-flex; }
  .nav-burger, .nav-drawer { display: none !important; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(31, 184, 212, 0.13), transparent 65%),
    radial-gradient(700px 420px at 10% 15%, rgba(53, 224, 200, 0.08), transparent 60%),
    var(--ink-2);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 180, 84, 0.45);
  color: var(--amber);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 24px;
  background: rgba(255, 180, 84, 0.07);
}
.hero h1 { color: #fff; max-width: 880px; }
.hero h1 .hl {
  background: linear-gradient(115deg, var(--cyan) 20%, #1fb8d4 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
@media (min-width: 940px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 48px;
    align-items: center;
  }
  .hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); }
  .hero-side { align-items: flex-end; text-align: right; }
  .hero-side .hero-ctas { justify-content: flex-end; }
}
.hero-side { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.hero-side .eyebrow-badge { margin-bottom: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* gate stage (signature animation) */
.gate-stage {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 0 28px 56px;
  position: relative;
}
.gate-hud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding: 16px 22px;
  border: 1px solid var(--line-dark);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(16, 38, 46, 0.55);
}
.hud-item { display: flex; flex-direction: column; gap: 2px; }
.hud-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-on-dark-mut);
}
.hud-value { font-size: 0.95rem; font-weight: 600; color: var(--cyan); transition: color 0.3s ease, opacity 0.3s ease; }
.hud-value.escalated { color: var(--amber); }
.hud-value.hud-cond { color: var(--text-on-dark); }
.hud-value.swapping { opacity: 0; }
#gateCanvas {
  width: 100%;
  height: 260px;
  display: block;
  border: 1px solid var(--line-dark);
  background:
    linear-gradient(rgba(53, 224, 200, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 224, 200, 0.045) 1px, transparent 1px),
    rgba(8, 24, 30, 0.6);
  background-size: 34px 34px, 34px 34px, auto;
}
.gate-tiers {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 22px;
  border: 1px solid var(--line-dark);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(16, 38, 46, 0.55);
}
.tier {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(143, 166, 171, 0.28);
  color: var(--text-on-dark-mut);
  transition: all 0.25s ease;
}
.tier.lit {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(255, 180, 84, 0.1);
  box-shadow: 0 0 18px rgba(255, 180, 84, 0.25);
}
.gate-caption {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--text-on-dark-mut);
  max-width: 640px;
}

/* Short laptop screens: compress the hero so the gate animation clears the fold. */
@media (min-width: 940px) and (max-height: 900px) {
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.4rem); }
  .eyebrow-badge { padding: 6px 14px; }
  .hero-grid { gap: 40px; }
  .hero-side { gap: 18px; }
  .gate-stage { margin-top: 28px; padding-bottom: 40px; }
  #gateCanvas { height: 230px; }
  .gate-hud { padding: 12px 20px; }
  .gate-tiers { padding: 11px 20px; }
  .gate-caption { margin-top: 11px; }
}

/* ---------- ledger strip ---------- */
.strip { background: var(--ink-3); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.strip-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-size: 2.5rem; font-weight: 600; color: var(--cyan); line-height: 1; }
.stat-label { font-size: 0.88rem; color: var(--text-on-dark-mut); max-width: 230px; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.paper { background: var(--paper); color: var(--text-dark); }
.section.paper h2, .section.paper h3 { color: var(--ink); }
.section.dark { background: var(--ink); }
.section.dark h2, .section.dark h3 { color: #fff; }
.grid-paper {
  background-image:
    linear-gradient(rgba(20, 184, 166, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
}

/* ---------- cards ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  margin-top: 48px;
}
.card {
  background: #fff;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11, 27, 33, 0.09); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-mut); font-size: 0.98rem; }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--cyan-deep);
  background: rgba(20, 184, 166, 0.1);
}
.card-icon svg { width: 26px; height: 26px; }
.dark-card { background: var(--ink-3); border-color: var(--line-dark); }
.dark-card p { color: var(--text-on-dark-mut); }
.dark-card:hover { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }

/* ---------- steps ---------- */
.steps { display: flex; flex-direction: column; gap: 18px; margin-top: 48px; }
.step {
  display: flex;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.step-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cyan-deep);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 10px;
  align-self: flex-start;
  padding: 8px 12px;
  flex: none;
}
.step-body h3 { margin-bottom: 10px; }
.step-body > p { color: var(--text-mut); max-width: 700px; }
.step-demo { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  font-size: 0.74rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  letter-spacing: 0.02em;
}
.chip.on { background: rgba(20, 184, 166, 0.12); color: var(--cyan-dim); border-color: rgba(20, 184, 166, 0.35); }
.chip.off { background: transparent; color: #9fb1b5; border-color: rgba(34, 56, 62, 0.15); text-decoration: line-through; }
.chip.gate-on { background: rgba(20, 184, 166, 0.12); color: var(--cyan-dim); border-color: rgba(20, 184, 166, 0.35); }
.chip.gate-warn { background: rgba(255, 180, 84, 0.14); color: #a06514; border-color: rgba(255, 180, 84, 0.5); }
.chip.gate-red { background: rgba(255, 110, 94, 0.12); color: #c2432f; border-color: rgba(255, 110, 94, 0.45); }
.chip.ledger { background: rgba(11, 27, 33, 0.05); color: var(--text-dark); border-color: rgba(34, 56, 62, 0.16); }
@media (max-width: 640px) { .step { flex-direction: column; gap: 16px; } }

/* ---------- breakthroughs ---------- */
.break-list { display: flex; flex-direction: column; gap: 84px; margin-top: 64px; }
.break {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
@media (min-width: 900px) {
  .break { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
  .break:nth-child(even) .break-text { order: 2; }
  .break:nth-child(even) .break-visual { order: 1; }
}
.break-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  margin-bottom: 14px;
}
.break-text h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 16px; }
.break-text > p { color: var(--text-on-dark-mut); }
.ticks { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.95rem; color: var(--text-on-dark); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.panel {
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.panel-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-on-dark-mut);
  margin-bottom: 20px;
}

/* divergence chart */
.divergence { width: 100%; height: auto; }
.dv-grid { stroke: rgba(143, 166, 171, 0.15); stroke-width: 1; fill: none; }
.dv-treated { stroke: var(--cyan); stroke-width: 2.5; fill: none; stroke-linecap: round; }
.dv-untreated { stroke: var(--amber); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 6 7; }
.dv-now { fill: #fff; }
.dv-label { font-family: var(--mono); font-size: 10px; }
.dv-label.t { fill: var(--cyan); }
.dv-label.u { fill: var(--amber); }
.reveal.on .dv-treated, .reveal.on .dv-untreated {
  stroke-dashoffset: 0;
}

/* TESS compare */
.tess-compare { display: flex; flex-direction: column; gap: 14px; }
.tess-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid;
}
.tess-row.conventional { border-color: rgba(255, 110, 94, 0.35); background: rgba(255, 110, 94, 0.06); }
.tess-row.medneuron { border-color: rgba(53, 224, 200, 0.35); background: rgba(53, 224, 200, 0.06); }
.tess-who { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-on-dark-mut); }
.tess-row.conventional .tess-what { color: #ffa294; }
.tess-row.medneuron .tess-what { color: var(--cyan); }
.tess-what { font-size: 0.95rem; font-weight: 550; }

/* TPWD bars */
.tpwd { display: flex; flex-direction: column; gap: 12px; }
.tpwd-bar { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; }
.tpwd-name { font-size: 0.72rem; color: var(--text-on-dark-mut); }
.tpwd-track { height: 10px; border-radius: 5px; background: rgba(143, 166, 171, 0.14); overflow: hidden; display: block; }
.tpwd-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transition: width 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tpwd-fill.red { background: linear-gradient(90deg, #d4593f, var(--red)); }
.tpwd-fill.pick { box-shadow: 0 0 14px rgba(53, 224, 200, 0.6); }
.reveal.on .tpwd-fill { width: var(--w); }
.tpwd-note { font-size: 0.8rem; color: var(--text-on-dark-mut); margin-top: 8px; }

/* ---------- platform grid ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.feat {
  background: #fff;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius);
  padding: 26px 26px 28px;
  border-top: 3px solid var(--cyan-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(11, 27, 33, 0.08); }
.feat h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feat p { font-size: 0.93rem; color: var(--text-mut); }
.platform-note {
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--text-mut);
  border-left: 3px solid var(--cyan-deep);
  padding-left: 16px;
  max-width: 620px;
}

/* ---------- patent ---------- */
.patent-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
  align-items: start;
}
@media (min-width: 960px) { .patent-wrap { grid-template-columns: 1.25fr 0.75fr; gap: 56px; } }
.patent-doc {
  background: var(--paper);
  color: var(--text-dark);
  border-radius: var(--radius);
  padding: 34px 36px 38px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  position: relative;
}
.patent-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-mut);
  border-bottom: 1px solid var(--line-paper);
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.patent-stamp {
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 4px;
  transform: rotate(-3deg);
  letter-spacing: 0.18em;
}
.patent-title {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.35;
  color: var(--ink) !important;
  margin-bottom: 26px;
}
.patent-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px 28px;
  margin-bottom: 30px;
}
.patent-meta div { display: flex; flex-direction: column; gap: 3px; }
.patent-meta dt { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-mut); }
.patent-meta dd { font-size: 0.92rem; font-weight: 500; color: var(--ink); }
.claims-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-mut);
  display: block;
  margin-bottom: 12px;
}
.claim-rows { display: flex; flex-direction: column; gap: 14px; }
.claim-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line-paper);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}
.claim-pill {
  flex: none;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--cyan-dim);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 999px;
  padding: 4px 10px;
  margin-top: 2px;
  min-width: 96px;
  text-align: center;
}
.claim-pill.anchor {
  color: #04231e;
  background: linear-gradient(120deg, var(--cyan), #1fb8d4);
  border-color: transparent;
}
.claim-row h4 {
  font-family: var(--display);
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 3px;
}
.claim-row p { font-size: 0.86rem; color: var(--text-mut); line-height: 1.5; }
@media (max-width: 520px) { .claim-row { flex-direction: column; gap: 8px; } }
.patent-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.patent-side p { color: var(--text-on-dark-mut); }
.patent-side strong { color: var(--text-on-dark); }
.patent-side .btn { margin-top: 8px; }

/* ---------- healthpilot ---------- */
.hp-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 940px) { .hp-wrap { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }
.hp-text p { color: var(--text-mut); margin-bottom: 18px; max-width: 580px; }
.hp-text .hero-ctas { margin-top: 28px; }
.text-link { color: var(--cyan-dim); font-weight: 600; text-decoration-color: rgba(20, 184, 166, 0.5); }
.soon-pill {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a06514;
  border: 1px solid rgba(255, 180, 84, 0.6);
  background: rgba(255, 180, 84, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
  margin-left: 12px;
  transform: translateY(-4px);
  white-space: nowrap;
}
.stack-live {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border: 1px solid rgba(53, 224, 200, 0.5);
  border-radius: 999px;
  padding: 2px 8px;
  margin-left: 8px;
}
.stack-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 6px;
  vertical-align: 1px;
}
.stack-conn.tagged {
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stack-soon {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #a06514;
  background: var(--paper);
  border: 1px solid rgba(255, 180, 84, 0.7);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.stack { display: flex; flex-direction: column; align-items: stretch; }
.stack-layer {
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid;
}
.stack-layer span { font-weight: 600; font-size: 0.95rem; }
.stack-layer small { font-size: 0.82rem; opacity: 0.75; }
.stack-layer.top { background: var(--ink); color: var(--text-on-dark); border-color: var(--ink); }
.stack-layer.mid {
  background: linear-gradient(120deg, rgba(53, 224, 200, 0.14), rgba(31, 184, 212, 0.1));
  border-color: rgba(20, 184, 166, 0.5);
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(20, 184, 166, 0.18);
}
.stack-layer.bot { background: #fff; border-color: var(--line-paper); color: var(--text-dark); }
.stack-conn {
  width: 2px;
  height: 26px;
  margin: 0 auto;
  background: repeating-linear-gradient(var(--cyan-deep) 0 4px, transparent 4px 8px);
}

/* ---------- access form ---------- */
.access-form { margin-top: 8px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.access-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}
.access-form input, .access-form select, .access-form textarea {
  font-family: var(--body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--line-paper);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.access-form input:focus, .access-form select:focus, .access-form textarea:focus {
  outline: none;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}
.access-form textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--text-mut); text-align: center; }
/* Honeypot: off-screen for people, fillable for bots. Never display:none — some bots skip those. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line-dark); padding: 64px 0 36px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.2fr 1fr; } }
.footer-brand p { margin-top: 16px; color: var(--text-on-dark-mut); font-size: 0.92rem; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-h {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-on-dark-mut);
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  text-decoration: none;
  color: var(--text-on-dark);
  font-size: 0.92rem;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-cols a:hover { color: var(--cyan); }
.footer-legal { padding-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.footer-legal p { font-size: 0.78rem; color: var(--text-on-dark-mut); max-width: 900px; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tpwd-fill { transition: none; width: var(--w); }
  .btn, .card, .feat { transition: none; }
}
