/* LongevityGrok — redesign stylesheet (keeps Fedor's palette and type) */

:root {
  --bg: #050607;
  --bg-raise: #0a0c0f;
  --plate: #101317;
  --plate-2: #161a20;
  --line: #262626;
  --line-strong: #3a3a3a;
  --ink: #f3f5f7;
  --body: #c5ccd4;
  --mute: #8b939e;
  --green: #00A607;
  --green-2: #3fe046;
  --green-ink: #ffffff;
  --amber: #3fe046;
  --steel: #a8b0ba;
  --nav: 68px;
  --max: 1180px;
  --sans: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --cond: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --mono: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --code: ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); margin: 0; font-family: var(--cond); font-weight: 600; letter-spacing: 0.01em; line-height: 1.02; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -48px; z-index: 90; background: var(--green); color: var(--green-ink); padding: 8px 12px; font-family: var(--mono); font-size: 13px; }
.skip:focus { top: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.brand-name { font-family: var(--cond); font-weight: 600; font-size: 21px; letter-spacing: 0.08em; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; color: var(--mute);
  padding: 8px 12px; border-radius: 2px; transition: color .15s;
  position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); }
.nav a.btn { color: var(--green-ink); margin-left: 10px; padding: 9px 16px; }
.nav a.btn:hover { color: var(--green-ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--green); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }
.nav-toggle svg { margin: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--cond); font-weight: 600; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; padding: 12px 22px; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--green); color: var(--green-ink); }
.btn-primary:hover { background: var(--green-2); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-2); }
.btn-sm { font-size: 16px; padding: 8px 16px; }

/* ---------- Sections ---------- */
section { padding: 104px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
.alt { background: var(--bg-raise); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(40px, 5.4vw, 64px); text-transform: uppercase; }
.section-head p { margin-top: 18px; font-size: 19px; color: var(--body); }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 104px; background:
  radial-gradient(1000px 520px at 15% 0%, rgba(0,166,7,.10), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(54px, 7.6vw, 104px); text-transform: uppercase; margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { margin-top: 26px; font-size: 20px; max-width: 600px; color: var(--body); }
.hero .actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero .fine { margin-top: 22px; font-size: 14px; color: var(--mute); }

/* Example chat card */
.demo { background: var(--plate); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.demo-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.demo-top .live { display: inline-flex; align-items: center; gap: 8px; color: var(--green); }
.demo-top .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.demo-body { padding: 20px 18px 22px; display: grid; gap: 14px; }
.msg { background: var(--plate-2); border: 1px solid var(--line); padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.msg .who { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.msg.card { border-color: rgba(0,166,7,.45); }
.msg .row { display: flex; gap: 10px; margin-top: 12px; }
.chip-btn { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-strong); color: var(--ink); }
.chip-btn.go { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.demo-note { padding: 0 18px 16px; font-size: 12px; color: var(--mute); }

/* ---------- Laws ---------- */
.laws { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.law { background: var(--bg); padding: 30px 26px 34px; }
.law .n { font-family: var(--cond); font-weight: 700; font-size: 56px; line-height: 1; color: var(--green); }
.law h3 { font-size: 26px; text-transform: uppercase; margin-top: 18px; }
.law p { margin-top: 14px; font-size: 15.5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card-box { background: var(--plate); border: 1px solid var(--line); padding: 28px 26px; display: flex; flex-direction: column; }
.card-box h3 { font-size: 26px; text-transform: uppercase; }
.card-box p { margin-top: 12px; font-size: 16px; }
.card-box .icon { width: 40px; height: 40px; color: var(--green); margin-bottom: 20px; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line-strong); color: var(--mute); margin-bottom: 16px; }
.tag.green { border-color: rgba(0,166,7,.5); color: var(--green-2); }
.tag.amber { border-color: rgba(0,166,7,.5); color: var(--amber); }

/* Audience cards */
.aud h3 { font-size: 32px; }
.aud .who { margin-top: 6px; font-size: 15px; color: var(--mute); }
.aud ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.aud li { padding-left: 22px; position: relative; }
.aud li::before { content: ""; position: absolute; left: 0; top: 10px; width: 10px; height: 2px; background: var(--green); }

/* ---------- Figure 1 ---------- */
.fig { margin: 0; }
.fig-scroll { overflow-x: auto; border: 1px solid var(--line); background: radial-gradient(800px 400px at 35% 30%, rgba(0,166,7,.05), transparent 70%), var(--bg); padding: 12px; }
.fig1 { display: block; width: 100%; min-width: 880px; height: auto; }
.fig1 .p { stroke-width: 1; }
.fig1 .p-u { fill: rgba(168,176,186,.04); stroke: rgba(168,176,186,.35); }
.fig1 .p-a { fill: rgba(0,166,7,.045); stroke: rgba(0,166,7,.45); }
.fig1 .p-b { fill: rgba(126,98,214,.05); stroke: rgba(126,98,214,.45); }
.fig1 .p-c { fill: rgba(0,166,7,.045); stroke: rgba(0,166,7,.45); }
.fig1 .t-panel { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.fig1 .c-u { fill: var(--steel); } .fig1 .c-a { fill: var(--green-2); } .fig1 .c-b { fill: #0dc115; } .fig1 .c-c { fill: var(--amber); }
.fig1 .n rect { fill: #101317; stroke-width: 1.2; }
.fig1 .n-u rect { stroke: rgba(168,176,186,.7); }
.fig1 .n-a rect { stroke: rgba(0,166,7,.7); }
.fig1 .n-b rect { stroke: rgba(126,98,214,.75); }
.fig1 .n-c rect { stroke: rgba(0,166,7,.7); }
.fig1 .n-hub rect { fill: #062a0d; stroke: var(--green); stroke-width: 1.8; }
.fig1 .n-hub2 rect { fill: #062a0d; stroke: var(--amber); stroke-width: 1.8; }
.fig1 .t-name { font-family: var(--sans); font-weight: 500; font-size: 15px; fill: var(--ink); text-anchor: middle; }
.fig1 .t-big { font-family: var(--cond); font-weight: 600; font-size: 21px; letter-spacing: .04em; }
.fig1 .t-cap { font-family: var(--mono); font-size: 11.5px; fill: var(--mute); text-anchor: middle; }
.fig1 .e path { fill: none; stroke: #8b939e; stroke-width: 1.4; }
.fig1 .e-g path { stroke: var(--green-2); stroke-width: 2; }
.fig1 .e-d path { stroke-dasharray: 4 5; stroke: #aeb6c0; }
.fig1 .pill rect { fill: #0b0d10; stroke: var(--line-strong); }
.fig1 .pill text { font-family: var(--mono); font-size: 11.5px; fill: var(--body); text-anchor: middle; dominant-baseline: central; }
.fig1 .pill-g rect { stroke: rgba(63,224,70,.6); }
.fig1 .pill-g text { fill: var(--green-2); }
.fig figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--mute); }
.fig .lg { display: inline-flex; align-items: center; gap: 10px; }
.fig .k { display: inline-block; width: 30px; height: 0; border-top: 2px solid #8b939e; }
.fig .k-g { border-top-color: var(--green-2); }
.fig .k-d { border-top: 2px dashed #aeb6c0; }
.fig .fig-hint { display: none; }
@media (max-width: 900px) { .fig .fig-hint { display: inline-flex; color: var(--green-2); } }

/* ---------- How it works flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1.5fr auto 1fr; align-items: center; gap: 0; }
.node { background: var(--plate); border: 1px solid var(--line-strong); padding: 24px 22px; }
.node h3 { font-size: 24px; text-transform: uppercase; }
.node p { margin-top: 8px; font-size: 15px; }
.node.core { border-color: var(--green); background: linear-gradient(180deg, rgba(0,166,7,.08), var(--plate) 60%); }
.node .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.node .chips span { font-size: 14px; padding: 6px 10px; border: 1px solid var(--line-strong); background: var(--plate-2); color: var(--ink); }
.node .feeds { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--mute); }
.node .feeds strong { color: var(--steel); font-weight: 500; }
.stack { display: grid; gap: 16px; }
.node.opt { border-style: dashed; border-color: rgba(0,166,7,.55); }
.node .soon { margin-top: 12px; font-size: 13.5px; color: var(--amber); }
.arrow { display: flex; align-items: center; justify-content: center; padding: 0 10px; color: var(--green); }
.arrow svg { width: 44px; height: 20px; }

.steps { margin-top: 56px; }
.steps h3 { font-size: 28px; text-transform: uppercase; }
.steps > p { margin-top: 10px; max-width: 720px; }
.step-row { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: s; }
.step-row li { counter-increment: s; background: var(--plate); border: 1px solid var(--line); border-top: 2px solid var(--green); padding: 16px 16px 18px; font-size: 14.5px; }
.step-row li::before { content: counter(s); display: block; font-family: var(--cond); font-weight: 700; font-size: 26px; color: var(--green); line-height: 1; margin-bottom: 8px; }
.step-row li strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.small-note { margin-top: 18px; font-size: 14px; color: var(--mute); max-width: 820px; }

/* ---------- Status lists ---------- */
.status { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.status li { display: grid; grid-template-columns: 14px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--plate); border: 1px solid var(--line); }
.status li::before { content: ""; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--green); }
.status.soon li { border-style: dashed; }
.status.soon li::before { background: transparent; border: 2px dashed var(--amber); }
.status strong { display: block; color: var(--ink); font-weight: 500; }
.status span { font-size: 15px; color: var(--mute); }
.col-title { font-size: 28px; text-transform: uppercase; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }

/* ---------- Get started ---------- */
.start-steps .card-box .big { font-family: var(--cond); font-weight: 700; font-size: 56px; line-height: 1; color: var(--green); margin-bottom: 14px; }
.start-steps code, .dev code { font-family: var(--mono); font-size: .9em; color: var(--green-2); }
.start-steps a { color: var(--green-2); }
.start-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.start-cta p { font-size: 15px; color: var(--mute); }
details.dev { margin-top: 40px; border: 1px solid var(--line-strong); background: var(--plate); }
details.dev summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--cond); font-weight: 600; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
details.dev summary::-webkit-details-marker { display: none; }
details.dev summary::after { content: "+"; font-family: var(--mono); color: var(--green); font-size: 22px; }
details.dev[open] summary::after { content: "–"; }
.dev-body { padding: 0 22px 24px; display: grid; gap: 18px; font-size: 15.5px; }
pre { margin: 0; padding: 18px 20px; background: #000; border: 1px solid var(--line); overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--body); }
.dev table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dev th, .dev td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.dev th { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 400; }

/* ---------- Research teaser ---------- */
.era .yr { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; color: var(--green); margin-bottom: 10px; }
.era h3 { font-size: 24px; }
.feature { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature .card-box h3 { font-size: 24px; text-transform: none; line-height: 1.15; }
.feature .meta { margin-top: 10px; font-size: 14px; color: var(--mute); }
.feature a.link, .link { color: var(--green-2); text-decoration: none; font-size: 15px; }
.feature a.link:hover, .link:hover { text-decoration: underline; }
.feature .card-box .foot { margin-top: auto; padding-top: 18px; }
.center-cta { margin-top: 40px; }

/* ---------- Team ---------- */
.person { background: var(--plate); border: 1px solid var(--line); padding: 26px; }
.person .avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--plate-2); border: 1px solid var(--line-strong); font-family: var(--cond); font-weight: 600; font-size: 20px; color: var(--green-2); letter-spacing: .04em; }
.person h3 { margin-top: 18px; font-size: 26px; }
.person .role { margin-top: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.person p { margin-top: 12px; font-size: 15px; }
.partners { margin-top: 20px; }
.partner { background: transparent; border: 1px solid var(--line); padding: 22px 24px; }
.partner h3 { font-size: 22px; text-transform: uppercase; }
.partner { display: flex; flex-direction: column; }
.partner p { margin-top: 8px; font-size: 15px; }
.partner .link { margin-top: auto; padding-top: 14px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg-raise); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; color: var(--body); }
.foot-grid a:hover { color: var(--green-2); }
.foot-grid .tagline { margin-top: 14px; color: var(--mute); max-width: 340px; }
.safety { margin-top: 48px; padding: 18px 20px; border: 1px solid var(--line-strong); color: var(--body); font-size: 14.5px; }
.safety strong { color: var(--ink); font-weight: 500; }
.legal { margin-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: 13px; }

/* ---------- Research page ---------- */
.page-hero { padding: 88px 0 72px; border-top: 0; background: radial-gradient(900px 420px at 10% 0%, rgba(0,166,7,.09), transparent 70%); }
.page-hero h1 { font-size: clamp(56px, 8vw, 104px); text-transform: uppercase; }
.page-hero p { margin-top: 22px; max-width: 760px; font-size: 20px; }
.toc { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.toc a { text-decoration: none; font-size: 14.5px; padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--ink); }
.toc a:hover { border-color: var(--green); color: var(--green-2); }
.cite { margin-top: 14px; font-size: 14px; color: var(--mute); }
.cite a { color: var(--green-2); text-decoration: none; }
.sources { margin-top: 24px; font-size: 14px; color: var(--mute); display: grid; gap: 6px; }
.sources a { color: var(--green-2); text-decoration: none; }
.map-figure { margin: 0; border: 1px solid var(--line); background: var(--bg); padding: 12px; }
.map-figure figcaption { margin-top: 12px; font-size: 14px; color: var(--mute); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.bib { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.bib th, .bib td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bib th { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); background: var(--plate); position: sticky; top: 0; }
.bib td:first-child { font-family: var(--mono); font-size: 13.5px; color: var(--green); white-space: nowrap; }
.bib td strong { color: var(--ink); font-weight: 500; }
.bib a { color: var(--green-2); text-decoration: none; word-break: break-word; }
.bib tr:hover td { background: rgba(255,255,255,.02); }
.paper-box { background: var(--plate); border: 1px solid var(--line-strong); padding: 34px 32px; }
.paper-box h3 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; }
.paper-box .authors { margin-top: 14px; color: var(--mute); }
.paper-box .row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .laws, .g4 { grid-template-columns: repeat(2, 1fr); }
  .step-row { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .arrow { padding: 10px 0; transform: rotate(90deg); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .g3, .feature { grid-template-columns: 1fr; }
  .g2 { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; }
  .nav { display: none; position: absolute; top: var(--nav); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin-top: 12px; justify-content: center; }
  section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .laws, .g4 { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Thesis quote ---------- */
.thesis { margin: 0 0 40px; padding: 26px 30px; border-left: 3px solid var(--green); background: var(--plate); max-width: 900px; }
.thesis p { font-family: var(--cond); font-weight: 600; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; color: var(--ink); text-transform: uppercase; letter-spacing: .01em; }
.thesis cite { display: block; margin-top: 12px; font-style: normal; font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }

/* ---------- Components + stages ---------- */
.comp td:first-child { font-family: var(--sans); font-size: 15px; color: var(--ink); white-space: normal; }
.st { display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid; white-space: nowrap; }
.st.live { color: var(--green-2); border-color: rgba(0,166,7,.5); }
.st.dev { color: var(--amber); border-color: rgba(0,166,7,.5); border-style: dashed; }
.st.ext { color: var(--steel); border-color: var(--line-strong); }
.sub-h { margin-top: 72px; font-size: 32px; text-transform: uppercase; }
.sub-p { margin-top: 8px; }
.stages { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); }
.stages li { padding: 24px 22px 28px; border-right: 1px solid var(--line); background: var(--plate); position: relative; }
.stages li:last-child { border-right: 0; background: linear-gradient(180deg, rgba(0,166,7,.10), var(--plate) 70%); }
.stages .sn { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.stages h4 { margin: 10px 0 0; font-family: var(--cond); font-weight: 600; font-size: 24px; text-transform: uppercase; color: var(--ink); line-height: 1.05; }
.stages p { margin-top: 10px; font-size: 15px; }
@media (max-width: 1080px) { .stages { grid-template-columns: 1fr; } .stages li { border-right: 0; border-bottom: 1px solid var(--line); } .stages li:last-child { border-bottom: 0; } }

/* ---------- Dropdown nav ---------- */
.nav .nav-link { text-decoration: none; font-size: 15px; color: var(--mute); padding: 8px 12px; }
.nav .nav-link:hover { color: var(--ink); }
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 15px; color: var(--mute); background: none; border: 0; padding: 8px 12px; cursor: pointer; }
.dd-btn svg { transition: transform .15s; opacity: .7; }
.dd-btn:hover, .dd.is-open .dd-btn, .dd-btn.is-current { color: var(--ink); }
.dd.is-open .dd-btn svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 10px); left: -8px; min-width: 290px; padding: 8px; background: #0c0f12; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); display: none; z-index: 60; }
.dd-menu.dd-right { left: auto; right: -8px; }
.dd-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.dd.is-open .dd-menu { display: grid; }
@media (hover: hover) and (min-width: 881px) { .dd:hover .dd-menu { display: grid; } .dd:hover .dd-btn { color: var(--ink); } }
.dd-menu a { display: block; text-decoration: none; padding: 10px 12px; border-left: 2px solid transparent; }
.dd-menu a strong { display: block; font-weight: 500; font-size: 15px; color: var(--ink); }
.dd-menu a span { display: block; font-size: 13px; color: var(--mute); margin-top: 1px; }
.dd-menu a:hover { background: var(--plate-2); border-left-color: var(--green); }
.nav a.is-active::after { display: none; }
@media (max-width: 880px) {
  .nav { max-height: calc(100vh - var(--nav)); overflow-y: auto; }
  .dd-btn { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .dd-menu { position: static; display: none; box-shadow: none; border: 0; background: transparent; padding: 4px 0 8px 10px; min-width: 0; }
  .dd.is-open .dd-menu { display: grid; }
  .nav .nav-link { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
}

/* ---------- Walkthrough player ---------- */
.player { border: 1px solid var(--line-strong); background: var(--plate); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.pl-screen { position: relative; display: grid; grid-template-columns: 210px 1fr; aspect-ratio: 16 / 8.2; min-height: 430px; background: #07090b; overflow: hidden; }
.pl-side { border-right: 1px solid var(--line); padding: 18px 14px; display: grid; align-content: start; gap: 6px; background: #090b0e; }
.pl-side-h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.pl-agent { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); padding: 8px 10px; border: 1px solid transparent; transition: all .25s; }
.pl-agent i { width: 8px; height: 8px; border-radius: 50%; background: #2a3038; transition: background .25s, box-shadow .25s; }
.pl-agent.on { color: var(--ink); border-color: rgba(0,166,7,.4); background: rgba(0,166,7,.07); }
.pl-agent.on i { background: var(--green); box-shadow: 0 0 0 4px rgba(0,166,7,.18); }
.pl-main { display: flex; flex-direction: column; min-width: 0; }
.pl-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.pl-title { font-family: var(--cond); font-weight: 600; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.pl-badge { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); border: 1px dashed rgba(0,166,7,.5); padding: 3px 8px; }
.pl-chat { flex: 1; padding: 18px 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.b { max-width: 78%; padding: 11px 14px; font-size: 15px; line-height: 1.45; animation: pop .35s ease both; }
.b-user { align-self: flex-end; background: #062a0d; border: 1px solid rgba(0,166,7,.35); color: var(--ink); }
.b-bot { align-self: flex-start; background: var(--plate-2); border: 1px solid var(--line); }
.b .from { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.b-sys { align-self: flex-start; font-family: var(--mono); font-size: 13px; color: var(--green-2); padding: 2px 4px; }
.b-card { align-self: flex-start; width: min(460px, 92%); background: var(--plate-2); border: 1px solid rgba(0,166,7,.45); padding: 14px 16px; }
.b-card .from { color: var(--green); }
.b-card h5 { margin: 0 0 6px; font-family: var(--cond); font-weight: 600; font-size: 19px; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
.b .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.b .chips span { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; padding: 5px 10px; border: 1px solid var(--line-strong); color: var(--ink); }
.b .chips span.sel { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.file { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.file::before { content: ""; width: 14px; height: 17px; border: 1.5px solid var(--green-2); border-radius: 2px; }
.meter { margin: 10px 0 6px; display: grid; gap: 8px; }
.meter .row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; }
.meter .track { height: 8px; background: #20262d; position: relative; }
.meter .fill { position: absolute; inset: 0 auto 0 0; background: var(--steel); transform-origin: left; animation: grow 1s ease both .2s; }
.meter .fill.g { background: var(--green); }
.meter .v { font-family: var(--mono); color: var(--ink); text-align: right; }
.marks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.marks b { font-weight: 500; color: var(--green-2); }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pl-poster, .pl-end { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; text-align: center; gap: 18px; background: radial-gradient(600px 300px at 50% 45%, rgba(0,166,7,.14), rgba(5,6,7,.94) 70%); }
.player[data-state="poster"] .pl-poster { display: grid; }
.player[data-state="end"] .pl-end { display: grid; }
.pl-big { width: 86px; height: 86px; border-radius: 50%; background: var(--green); color: var(--green-ink); border: 0; cursor: pointer; display: grid; place-items: center; padding-left: 6px; box-shadow: 0 0 0 10px rgba(0,166,7,.15); transition: transform .15s; }
.pl-big:hover { transform: scale(1.06); }
.pl-poster p strong { display: block; font-family: var(--cond); font-weight: 600; font-size: 28px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.pl-poster p span { font-size: 14px; color: var(--mute); }
.pl-end h3 { font-size: 34px; text-transform: uppercase; }
.pl-end ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; text-align: left; font-size: 15px; }
.pl-end li { padding-left: 22px; position: relative; }
.pl-end li::before { content: "✓"; position: absolute; left: 0; color: var(--green); }
.pl-end-row { display: flex; gap: 12px; margin-top: 6px; }
.pl-caption { margin: 0; padding: 16px 20px; min-height: 58px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); background: #0a0c0f; }
.pl-caption b { color: var(--green-2); font-weight: 500; margin-right: 6px; }
.pl-controls { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line); }
.pl-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: none; color: var(--ink); cursor: pointer; }
.pl-btn .i-pause { display: none; }
.player[data-state="playing"] .pl-btn .i-play { display: none; }
.player[data-state="playing"] .pl-btn .i-pause { display: block; }
.pl-bar { flex: 1; display: flex; gap: 4px; height: 6px; }
.pl-bar button { flex: 1; height: 6px; padding: 0; border: 0; background: #232a31; cursor: pointer; position: relative; overflow: hidden; }
.pl-bar button i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(0); }
.pl-time { font-family: var(--mono); font-size: 12.5px; color: var(--mute); min-width: 74px; text-align: right; }
.pl-chapters { list-style: none; margin: 0; padding: 0 20px 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; counter-reset: c; }
.pl-chapters button { width: 100%; text-align: left; background: none; border: 1px solid var(--line); color: var(--mute); padding: 10px 12px; cursor: pointer; font: inherit; font-size: 13.5px; }
.pl-chapters li { counter-increment: c; }
.pl-chapters button::before { content: counter(c); display: block; font-family: var(--cond); font-weight: 700; font-size: 20px; color: var(--green); line-height: 1; margin-bottom: 4px; }
.pl-chapters button:hover { border-color: var(--line-strong); color: var(--ink); }
.pl-chapters button.on { border-color: var(--green); color: var(--ink); background: rgba(0,166,7,.06); }
@media (max-width: 880px) {
  .pl-screen { grid-template-columns: 1fr; aspect-ratio: auto; min-height: 470px; }
  .pl-side { display: none; }
  .pl-chapters { grid-template-columns: repeat(3, 1fr); }
  .pl-end ul { grid-template-columns: 1fr; }
  .b { max-width: 92%; }
  .meter .row { grid-template-columns: 96px 1fr 40px; }
}
@media (prefers-reduced-motion: reduce) { .b, .meter .fill { animation: none; } }

/* ---------- Example week ---------- */
.persona { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border: 1px solid var(--line-strong); background: var(--plate); max-width: 760px; margin-bottom: 24px; }
.persona .avatar { flex: none; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #062a0d; border: 1px solid rgba(0,166,7,.45); font-family: var(--cond); font-weight: 600; font-size: 24px; color: var(--green-2); }
.persona strong { display: block; color: var(--ink); font-weight: 500; font-size: 17px; }
.persona span { font-size: 15px; color: var(--mute); }
.week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.week li { background: var(--plate); border: 1px solid var(--line); border-top: 2px solid var(--green); padding: 22px 22px 24px; }
.week .day { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.week h3 { margin-top: 8px; font-size: 26px; text-transform: uppercase; }
.week p { margin-top: 10px; font-size: 15.5px; }
@media (max-width: 880px) { .week { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border: 1px solid var(--line); background: var(--plate); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-size: 18px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--green); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 20px; font-size: 16px; }
.faq code { font-family: var(--mono); font-size: .9em; color: var(--green-2); }

/* ---------- Research extras ---------- */
.principles { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.principles li { padding: 14px 16px 14px 40px; position: relative; border: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.principles li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--green); }
.card-box p + p { margin-top: 10px; }
.card-box p strong { color: var(--ink); font-weight: 500; }
@media (max-width: 880px) { .principles { grid-template-columns: 1fr; } }

/* ---------- v4 additions ---------- */
.btn-ghost { background: transparent; }
button.btn { cursor: pointer; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.card-box .icon, .aud .icon { width: 44px; height: 44px; color: var(--green-2); margin-bottom: 18px; }
.aud-foot { margin-top: auto; padding-top: 20px; }
.aud ul { margin-bottom: 0; }
a[data-todo] { opacity: .55; pointer-events: none; }
a[data-todo]::after { content: " (link to be added)"; color: var(--amber); font-size: 13px; }

/* MotherShip box */
.seewhat { margin-top: 28px; padding: 26px 26px 24px; border: 1px solid rgba(0,166,7,.45); background: linear-gradient(180deg, rgba(0,166,7,.06), var(--plate) 70%); }
.seewhat h3 { font-size: 26px; text-transform: uppercase; }
.seewhat > p { margin-top: 8px; }
.inout { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inout > div { border: 1px solid var(--line); background: var(--bg); padding: 16px 18px; }
.inout .tag { margin-bottom: 10px; }
.inout p { font-size: 15.5px; }
.step-row { grid-template-columns: repeat(4, 1fr) !important; }
.step-row li.target { border-top: 2px dashed var(--amber); border-style: dashed; border-color: rgba(0,166,7,.5); background: transparent; }
.step-row li.target::before { color: var(--amber); }
@media (max-width: 880px) { .inout { grid-template-columns: 1fr; } .step-row { grid-template-columns: 1fr 1fr !important; } }

/* Join */
.join { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 24px; align-items: start; }
.join-paths { display: grid; gap: 12px; }
.path { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); background: var(--plate); text-decoration: none; transition: border-color .15s, background .15s; }
.path:hover, .path.on { border-color: var(--green); background: rgba(0,166,7,.05); }
.path .tag { margin-bottom: 6px; }
.path strong { color: var(--ink); font-weight: 500; font-size: 18px; }
.path span:last-child { font-size: 14.5px; color: var(--mute); }
.join-form { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line-strong); background: var(--plate); scroll-margin-top: calc(var(--nav) + 20px); }
.join-form h3 { font-size: 28px; text-transform: uppercase; }
.join-form label { display: grid; gap: 6px; font-size: 14px; color: var(--mute); }
.join-form .opt { color: var(--dim, #6a727c); }
.join-form input, .join-form select, .join-form textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); padding: 11px 12px; border-radius: 0; }
.join-form input:focus, .join-form select:focus, .join-form textarea:focus { outline: none; border-color: var(--green); }
.join-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.join-form button { justify-self: start; }
.hub-note { padding: 12px 14px; border-left: 3px solid var(--green); background: var(--bg); font-size: 14.5px; }
.hub-note strong { color: var(--ink); font-weight: 500; }
.form-note { font-size: 13px; color: var(--mute); }
.form-status { font-size: 14px; color: var(--green-2); min-height: 1em; }
.form-status.warn { color: var(--amber); }
@media (max-width: 880px) { .join { grid-template-columns: 1fr; } .join-form .row2 { grid-template-columns: 1fr; } }

/* News + cite */
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line-strong); max-width: 900px; }
.news li { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 18px 0 18px 24px; position: relative; }
.news li::before { content: ""; position: absolute; left: -7px; top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); }
.news li.soon::before { background: var(--bg); border: 2px dashed var(--amber); }
.news time { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--green); padding-top: 3px; }
.news li.soon time { color: var(--amber); }
.news strong { color: var(--ink); font-weight: 500; font-size: 17px; }
.news p { margin-top: 4px; font-size: 15px; }
.news .link { display: inline-block; margin-top: 6px; }
.cite-box { margin-top: 40px; max-width: 900px; padding: 24px 26px; border: 1px solid var(--line-strong); background: var(--plate); }
.cite-box h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 6px; }
.cite-k { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cite-t { margin-top: 6px; font-size: 14.5px; color: var(--body); padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); }
.cite-box .btn { margin-top: 16px; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 4px; } }

/* Logos */
.partner-logo { height: 46px; width: auto; margin: -4px 0 4px; }
.foot-logo { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; text-decoration: none; color: var(--mute); font-size: 13px; }
.foot-logo img { height: 40px; width: auto; }

/* ---------- Walkthrough v2 (Grok Bot style) ---------- */
.pl-screen { grid-template-columns: 236px 1fr; }
.pl-side { padding: 14px 10px; gap: 2px; }
.pl-side .grp { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 14px 8px 6px; display: flex; justify-content: space-between; }
.pl-side .grp:first-child { margin-top: 2px; }
.pl-side .grp em { font-style: normal; color: var(--green); }
.pl-bot { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 13.5px; color: var(--body); border-radius: 6px; transition: background .25s, color .25s; }
.pl-bot .av { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 500; color: var(--ink); background: #232a31; }
.pl-bot.main .av { background: var(--green); color: var(--green-ink); }
.pl-bot.on { background: rgba(0,166,7,.12); color: var(--ink); }
.pl-bot.new { animation: pop .4s ease both; }
.pl-workers { display: grid; gap: 2px; }
.pl-empty { font-size: 12.5px; color: #59616b; padding: 4px 8px; }
.pl-top .who { display: flex; align-items: center; gap: 10px; }
.pl-top .who .av { width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.pl-top .who small { display: block; font-size: 11.5px; color: var(--mute); font-family: var(--sans); letter-spacing: 0; text-transform: none; font-weight: 400; }
.pl-chat { gap: 12px; padding: 18px 24px 8px; }
.m { display: flex; gap: 10px; max-width: 84%; animation: pop .35s ease both; }
.m .av { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #232a31; display: grid; place-items: center; font-size: 10.5px; font-weight: 500; color: var(--ink); margin-top: 2px; }
.m.plsi .av { background: var(--green); color: var(--green-ink); }
.m .meta { font-size: 12px; color: var(--mute); margin-bottom: 3px; }
.m .meta b { color: var(--ink); font-weight: 500; margin-right: 6px; }
.m .txt { font-size: 14.5px; line-height: 1.5; color: var(--body); }
.m.user { align-self: flex-end; flex-direction: row-reverse; }
.m.user .av { background: #3a4552; }
.m.user .txt { background: #1d2329; border: 1px solid var(--line); padding: 9px 13px; border-radius: 14px 14px 4px 14px; color: var(--ink); }
.m.user .meta { text-align: right; }
.m.sys { align-self: flex-start; padding-left: 36px; font-family: var(--mono); font-size: 12.5px; color: var(--green-2); max-width: 100%; }
.gcard { margin-top: 8px; border: 1px solid var(--line-strong); background: #0f1317; border-radius: 10px; padding: 12px 14px; min-width: 300px; }
.gcard h6 { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink); font-family: var(--sans); }
.gcard .opt { display: flex; align-items: center; gap: 10px; padding: 7px 9px; margin-top: 4px; border: 1px solid var(--line); border-radius: 7px; font-size: 13.5px; color: var(--body); }
.gcard .opt .k { flex: none; width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 11px; background: #232a31; color: var(--ink); }
.gcard .opt.sel { border-color: rgba(0,166,7,.6); background: rgba(0,166,7,.08); color: var(--ink); }
.gcard .opt.sel .k { background: var(--green); color: var(--green-ink); }
.gcard .opt .d { color: var(--mute); font-size: 12px; margin-left: auto; }
.gcard .row { display: flex; gap: 8px; margin-top: 10px; }
.gcard .row span { font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); }
.gcard .row span.go { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.gcard .plan { display: grid; gap: 6px; font-size: 13.5px; }
.gcard .plan div { padding: 7px 9px; border-left: 2px solid var(--green); background: #12171c; }
.gcard .plan b { font-weight: 500; color: var(--ink); }
.gcard .plan i { font-style: normal; color: var(--green-2); }
.typing { display: inline-flex; gap: 4px; padding: 6px 2px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mute); animation: blink 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.pl-input { margin: 4px 24px 16px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: #59616b; }
.pl-input .mic { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #232a31; color: var(--ink); }
.pl-poster, .pl-end { background: radial-gradient(600px 300px at 50% 45%, rgba(0,166,7,.16), rgba(5,6,7,.985) 72%); }
.pl-end { padding: 24px; }
.pl-end-card { max-width: 640px; width: 100%; padding: 28px 30px; border: 1px solid var(--line-strong); background: var(--plate); display: grid; gap: 18px; text-align: left; }
.pl-end-card h3 { font-size: 30px; text-transform: uppercase; }
.pl-end-row { justify-content: flex-start; flex-wrap: wrap; }
.pl-chapters { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 880px) { .pl-chapters { grid-template-columns: repeat(4, 1fr); } .gcard { min-width: 0; } .m { max-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .m, .pl-bot.new, .typing i { animation: none; } }
.pl-main { min-height: 0; overflow: hidden; } .pl-chat { min-height: 0; }
.path .tag { justify-self: start; }
.join-form label { display: block; }
.join-form label input, .join-form label select, .join-form label textarea { display: block; width: 100%; margin-top: 6px; }
.partner-logo { width: 170px; height: 56px; object-fit: contain; object-position: left center; }

/* ---------- Insilico brand pass (Arial, brand greens) ---------- */
pre, code, .file, .dev code, .start-steps code, .faq code { font-family: var(--code); }
h1, h2, h3, h4, h5, h6 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; line-height: 1.12; }
h1, h2, h3, h4, h5, .section-head h2, .card-box h3, .law h3, .week h3, .node h3, .partner h3, .seewhat h3, .steps h3, .cite-box h3,
.join-form h3, .pl-end-card h3, .aud h3, .col-title, .sub-h, .stages h4, .page-hero h1, .hero h1, .thesis p, .pl-title, .pl-poster p strong,
.dev summary, .paper-box h3, .t-big { text-transform: none !important; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.06; letter-spacing: -0.02em; }
.page-hero h1 { font-size: clamp(42px, 5.6vw, 70px); letter-spacing: -0.02em; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.015em; }
.section-head p, .hero .lead, .page-hero p { font-size: 18px; }
.card-box h3, .law h3, .week h3, .node h3, .aud h3, .era h3, .person h3 { font-size: 20px; }
.aud h3 { font-size: 24px; }
.law h3 { font-size: 19px; }
.partner h3, .seewhat h3, .steps h3, .cite-box h3, .join-form h3, .col-title, .sub-h { font-size: 22px; }
.pl-end-card h3 { font-size: 24px; }
.paper-box h3 { font-size: clamp(22px, 2.6vw, 30px); }
.thesis p { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; }
.law .n, .start-steps .card-box .big { font-size: 44px; font-weight: 700; }
.step-row li::before, .pl-chapters button::before { font-weight: 700; }
.btn { font-family: var(--sans); font-weight: 700; font-size: 14.5px; letter-spacing: .04em; }
.btn-sm { font-size: 13.5px; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 19px; letter-spacing: .01em; }
.eyebrow, .tag, .pl-badge, .st, .cite-k, .news time, .person .role, .era .yr, .week .day, .stages .sn, .bib th, .dev th, .foot-grid h4, .demo-top, .msg .who, .t-panel { letter-spacing: .08em; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #0dc115; color: #fff; }
.nav a.btn, .nav a.btn:hover { color: #fff; }
a.link, .link, .start-steps a, .cite a, .sources a, .bib a { color: var(--green-2); }

/* Onboard pill */
.onboard { display: inline-flex; align-items: center; gap: 12px; padding: 9px 10px 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: #0b0d0f; text-decoration: none; color: var(--ink); font-size: 15px; transition: border-color .15s, background .15s; }
.onboard:hover { border-color: var(--green); background: rgba(0,166,7,.08); }
.onboard .ico { display: inline-flex; gap: 6px; }
.onboard .ico svg { width: 22px; height: 22px; color: var(--green-2); }
.onboard .go { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.hero .onboard { margin-bottom: 26px; }
.hero-logo { display: flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--mute); font-size: 13.5px; }
.hero-logo img { height: 46px; width: auto; }

/* Copy-prompt box */
.prompt-box { margin-top: 26px; border: 1px solid var(--green); background: rgba(0,166,7,.06); padding: 18px 20px; display: grid; gap: 10px; }
.prompt-box .k { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-2); }
.prompt-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.prompt-row code { flex: 1 1 380px; display: block; padding: 12px 14px; background: #000; border: 1px solid var(--line); color: var(--ink); font-size: 14px; line-height: 1.5; }
.section-logo { height: 34px; width: auto; opacity: .9; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.foot-logo img { height: 44px; }
.partner-logo { width: 190px; height: 64px; }

/* ---------- v6: insilico.com rhythm ---------- */
/* Light sections: same components, light tokens */
:root[data-theme="light"] section { --bg: #ffffff; --bg-raise: #f5f5f5; --plate: #f5f5f5; --plate-2: #ebebeb; --ink: #000000; --body: #262626; --mute: #5c5c5c;
  --line: #e3e3e3; --line-strong: #cfcfcf; --green-2: #007d05; --steel: #616161; --amber: #007d05; background: #ffffff; color: var(--body); border-top-color: #e3e3e3; }
:root[data-theme="light"] section.alt { --bg: #f5f5f5; --plate: #ffffff; background: #f5f5f5; }
:root[data-theme="light"] section .law { background: #fff; }
:root[data-theme="light"] section .persona .avatar { background: #e6f6e7; border-color: rgba(0,166,7,.4); color: #007d05; }
:root[data-theme="light"] section .thesis { background: #fff; }
:root[data-theme="light"] section.alt .thesis { background: #fff; }
:root[data-theme="light"] section .faq details, :root[data-theme="light"] section .person, :root[data-theme="light"] section .partner { background: var(--plate); }
:root[data-theme="light"] section .btn-ghost:hover { color: #007d05; border-color: #00A607; }
:root[data-theme="light"] section .join-form input, :root[data-theme="light"] section .join-form select, :root[data-theme="light"] section .join-form textarea { background: #fff; }
:root[data-theme="light"] section .cite-t { background: #fff; }
:root[data-theme="light"] section .st.ext { color: #616161; }
:root[data-theme="light"] section .tag.amber { border-color: rgba(0,125,5,.45); }

/* Header lockup */
.brand { gap: 14px; }
.brand-ism { height: 36px; width: auto; }
.brand-div { width: 1px; height: 26px; background: var(--line-strong); }
.brand-name { font-size: 18px; }
@media (max-width: 560px) { .brand-ism { height: 30px; } .brand-name { font-size: 16px; } .brand { gap: 10px; } }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(900px 600px at 78% 45%, rgba(0,166,7,.16), transparent 65%), radial-gradient(700px 400px at 0% 0%, rgba(0,166,7,.07), transparent 70%), #000; }
.hero .wrap { gap: 40px; }
@media (min-width: 881px) { .hero .wrap { grid-template-columns: 1.12fr 0.88fr; } }
.hero h1 { font-size: clamp(44px, 6.4vw, 92px) !important; line-height: .98; text-transform: uppercase !important; letter-spacing: -0.025em; font-weight: 700; margin-top: 14px; }
.hero h1 em { display: block; }
.hero .lead { font-size: 18px; max-width: 560px; }
.hero-logo img { height: 52px; }
.hero-visual { position: relative; }
.onboard { cursor: pointer; font: inherit; font-size: 15px; }
.toast { display: none; margin: -12px 0 22px; max-width: 520px; padding: 12px 14px; border: 1px solid rgba(0,166,7,.6); background: rgba(0,166,7,.1); font-size: 14.5px; color: var(--ink); }
.toast.show { display: block; animation: pop .3s ease both; }
.toast a { color: #3fe046; margin-left: 4px; }

/* Constellation */
.constellation { width: 100%; height: auto; display: block; overflow: visible; }
.constellation .ring { fill: none; stroke: rgba(0,166,7,.35); stroke-width: 1; stroke-dasharray: 2 6; }
.constellation .ring2 { stroke: rgba(255,255,255,.12); animation: spin 120s linear infinite; transform-origin: 280px 280px; }
.constellation .spoke { stroke: rgba(0,166,7,.45); stroke-width: 1.2; fill: none; }
.constellation .spoke.out { stroke: rgba(255,255,255,.16); }
.constellation .spoke.dash { stroke-dasharray: 4 5; stroke: rgba(0,166,7,.5); }
.constellation .nd circle { fill: #000; stroke: #00A607; stroke-width: 1.6; }
.constellation .nd.core circle { fill: #00A607; stroke: #3fe046; }
.constellation .nd.x circle { fill: #000; stroke: #fff; }
.constellation .nd.m circle { fill: #000; stroke: #00A607; stroke-dasharray: 3 3; }
.constellation text { font-family: Arial, sans-serif; font-size: 13px; fill: #c9c9c9; }
.constellation .nd.core text { fill: #ffffff; font-weight: 700; }
.constellation .pulse { fill: #3fe046; filter: drop-shadow(0 0 4px #3fe046); }
.constellation .pulse.p2 { fill: #ffffff; }
.constellation .hub circle { fill: #00A607; }
.constellation .hub-ring { fill: none; stroke: rgba(63,224,70,.6); stroke-width: 1.2; animation: breathe 3.2s ease-in-out infinite; transform-origin: 280px 280px; }
.constellation .hub-t { font-size: 15px; font-weight: 700; fill: #fff; }
.constellation .hub-s { font-size: 11.5px; fill: rgba(255,255,255,.85); letter-spacing: .06em; text-transform: uppercase; }
.constellation .legend text { font-size: 11.5px; fill: #8b8b8b; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .35; } }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { max-width: 520px; margin: 0 auto; } .constellation text { font-size: 15px; } .constellation .legend { display: none; } }
@media (prefers-reduced-motion: reduce) { .constellation .ring2, .constellation .hub-ring { animation: none; } .constellation .pulse { display: none; } }

/* Inline roles (Get started step 3) */
.roles { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.roles button { font: inherit; font-size: 13.5px; padding: 7px 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--mute); cursor: pointer; border-radius: 999px; }
.roles button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.role-txt { margin-top: 12px !important; font-size: 15px; }
.role-txt .tag { margin: 8px 0 0; display: inline-block; }
.hero h1 { font-size: clamp(40px, 5.3vw, 76px) !important; }
.hero h1 em { display: inline; }
.brand-ism { height: 46px; }
.c-legend { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 13px; color: #8b8b8b; margin-top: 4px; }
.c-legend span { display: inline-flex; align-items: center; gap: 8px; }
.c-legend .d { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.c-legend .d.core { background: #00A607; }
.c-legend .d.spec { border: 1.6px solid #00A607; }
.c-legend .d.opt { border: 1.6px dashed #00A607; }
@media (max-width: 560px) { .brand-ism { height: 36px; } }
.hero h1 { font-size: clamp(40px, 4.9vw, 68px) !important; }
.brand-ism { height: 54px; margin: -4px 0; }
.hero-logo { flex-wrap: wrap; }
@media (max-width: 880px) { .brand-ism { height: 40px; } }

.brand img.brand-ism { width: auto; height: 50px; margin: -6px 0; }
@media (max-width: 880px) { .brand img.brand-ism { height: 40px; } }
.constellation text { font-size: 14px; }
@media (min-width: 881px) { .hero-visual { margin-right: -40px; } }

/* ---------- Figure 1 (ecosystem, from preprint) ---------- */
.eco { margin: 0; }
.eco-flow { display: grid; grid-template-columns: 0.78fr auto 1.7fr auto 1.05fr auto 1fr; align-items: stretch; }
.eco-col { border: 1px solid var(--line-strong); background: #0b0d0f; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.eco .ei { width: 26px; height: 26px; color: #3fe046; flex: none; }
.eco .ei.sm { width: 20px; height: 20px; }
.eco h4 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.eco h5 { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.eco p { font-size: 13.5px; }
.eco-src { background: transparent; border-style: dashed; justify-content: center; }
.eco-card { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); background: #0b0d0f; }
.eco-sync { text-align: center; font-size: 12px; color: #3fe046; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.eco-sync::before { content: "↓"; display: block; font-size: 18px; line-height: 1; }
.eco-zone-h { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.eco-you { border-color: rgba(0,166,7,.55); background: linear-gradient(180deg, rgba(0,166,7,.10), #0b0d0f 55%); }
.eco-hub { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: #00A607; color: #fff; }
.eco-hub b { font-size: 15px; } .eco-hub span { font-size: 13px; opacity: .9; }
.eco-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eco-chips span { font-size: 12.5px; padding: 4px 9px; border: 1px solid rgba(0,166,7,.5); background: rgba(0,166,7,.10); color: var(--ink); }
.eco-chips span.s { background: transparent; border-color: var(--line-strong); color: var(--body); }
.eco-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eco-role { display: flex; gap: 10px; padding: 10px; border: 1px solid var(--line-strong); }
.eco-role h5 { margin-bottom: 4px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 13.5px; }
.eco-role p { font-size: 12.5px; color: var(--mute); }
.eco-note { font-size: 12.5px !important; color: var(--mute); border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.eco-air { border-color: rgba(0,166,7,.5); }
.eco-p { color: var(--body); }
.gates { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: g; }
.gates li { counter-increment: g; display: grid; gap: 2px; padding: 9px 10px 9px 36px; position: relative; border: 1px solid var(--line); background: #08090b; }
.gates li::before { content: counter(g); position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: #00A607; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.gates b { font-size: 13.5px; color: var(--ink); } .gates span { font-size: 12.5px; color: var(--mute); }
.eco-relay { margin-top: auto; padding: 9px 10px; border: 1px dashed rgba(0,166,7,.6); font-size: 12.5px; color: var(--body); }
.eco-ms { border-color: rgba(0,166,7,.55); background: linear-gradient(180deg, rgba(0,166,7,.08), #0b0d0f 60%); }
.eco-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.eco-list li { font-size: 13.5px; padding-left: 16px; position: relative; }
.eco-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #00A607; }
.eco-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 8px; color: #3fe046; min-width: 50px; }
.eco-arrow svg { width: 34px; height: 14px; }
.eco-arrow span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.eco-out { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 14px 18px; border: 1px solid var(--line); background: #0b0d0f; }
.eco-out span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.eco-out .eco-out-h { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-right: 6px; }
.eco figcaption, .lanes figcaption, .loop4 figcaption { margin-top: 12px; font-size: 13.5px; color: var(--mute); }
@media (max-width: 1080px) {
  .eco-flow { grid-template-columns: 1fr; }
  .eco-arrow { flex-direction: row; padding: 8px 0; } .eco-arrow svg { transform: rotate(90deg); }
  .eco-src { flex-direction: row; align-items: center; } .eco-src .eco-card { flex: 1; } .eco-sync::before { content: "→"; }
}
@media (max-width: 560px) { .eco-roles { grid-template-columns: 1fr; } .eco-src { flex-direction: column; } .eco-sync::before { content: "↓"; } }

/* ---------- Figure 3 (swimlanes) ---------- */
.lanes { margin: 22px 0 0; }
.lanes-head, .lanes .row { display: grid; grid-template-columns: 1fr 120px 1fr 120px 1fr; }
.lanes-head > div { padding: 12px 14px; border: 1px solid rgba(0,166,7,.4); background: rgba(0,166,7,.08); text-align: center; }
.lanes-head > div:nth-child(2), .lanes-head > div:nth-child(4) { border: 0; background: none; }
.lanes-head .relay { background: #00A607; border-color: #00A607; }
.lanes-head b { display: block; font-size: 16px; color: var(--ink); } .lanes-head span { font-size: 12.5px; color: var(--mute); }
.lanes-head .relay b, .lanes-head .relay span { color: #fff; }
.stage { margin-top: 10px; }
.stage h4 { margin: 0 0 8px; padding: 8px 12px; font-size: 14px; font-weight: 700; color: var(--ink); background: rgba(0,166,7,.12); border-left: 3px solid #00A607; }
.ln { padding: 12px 14px; border: 1px solid var(--line-strong); background: #0b0d0f; font-size: 13.5px; line-height: 1.5; border-left-width: 3px; }
.ln.p { border-left-color: #00A607; } .ln.r { border-left-color: #3fe046; } .ln.lm { border-left-color: #00A607; }
.ln.empty { border: 1px dashed var(--line); background: transparent; }
.la { display: flex; align-items: center; justify-content: center; position: relative; padding: 0 6px; }
.la::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid rgba(0,166,7,.7); }
.la span { position: relative; background: var(--bg-raise, #0a0c0f); padding: 3px 6px; font-size: 11.5px; line-height: 1.35; color: #3fe046; text-align: center; }
.la.none::before { display: none; }
.lanes .row:has(.la.wide) { grid-template-columns: 1fr 360px 1fr; }
.la.wide::before { border-top-style: dashed; }
.stage.knows .ln { border-style: dashed; background: transparent; }
@media (max-width: 1080px) {
  .lanes-head { display: none; }
  .lanes .row, .lanes .row:has(.la.wide) { grid-template-columns: 1fr; gap: 0; }
  .la { padding: 6px 0; } .la::before { display: none; } .la span { background: none; } .la.none { display: none; } .ln.empty { display: none; }
  .ln.p::before { content: "Your PLSI · "; font-weight: 700; color: var(--ink); }
  .ln.r::before { content: "Relay · "; font-weight: 700; color: var(--ink); }
  .ln.lm::before { content: "MotherShip · "; font-weight: 700; color: var(--ink); }
}

/* ---------- Figure 4 (findings loop) ---------- */
.loop4 { margin: 0; }
.loop4 ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.loop4 li { padding: 22px 20px 20px; border-right: 1px solid var(--line); background: var(--plate); display: flex; flex-direction: column; gap: 10px; position: relative; }
.loop4 li:last-child { border-right: 0; }
.loop4 li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 22px; width: 22px; height: 22px; border-radius: 50%; background: #00A607; color: #fff; display: grid; place-items: center; font-size: 13px; z-index: 1; }
.loop4 .n { font-size: 34px; font-weight: 700; color: #00A607; line-height: 1; }
.loop4 h4 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.loop4 p { font-size: 14.5px; }
.loop4 .tok { padding: 8px 10px; border-left: 3px solid #00A607; background: var(--bg); font-size: 13.5px; }
.loop4 .who { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; }
.loop4 .who span { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--mute); }
.loop4 .who .st-m { border-color: #00A607; color: #007d05; } .loop4 .who .st-l { border-color: #82AC3D; color: #5a7a26; }
@media (max-width: 1080px) { .loop4 ol { grid-template-columns: 1fr 1fr; } .loop4 li:nth-child(2) { border-right: 0; } .loop4 li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .loop4 li::after { display: none; } }
@media (max-width: 560px) { .loop4 ol { grid-template-columns: 1fr; } .loop4 li { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Smooth hand-off from the dark block to the light block */
#status { background: linear-gradient(180deg, var(--bg-raise) 0%, var(--bg-raise) 70%, #1a1d1f 100%); }
:root[data-theme="light"] section#product { border-top: 0; }
.lanes .row, .lanes .row:has(.la.wide) { grid-template-columns: 1fr 120px 1fr 120px 1fr; }
.lanes .ln.p { grid-column: 1; } .lanes .ln.r { grid-column: 3; } .lanes .ln.lm { grid-column: 5; }
.lanes .la.wide { grid-column: 2 / 5; }
.la span { background: var(--bg); }
.stage.knows .la.none { display: none; }
@media (max-width: 1080px) { .lanes .row, .lanes .row:has(.la.wide) { grid-template-columns: 1fr; } .lanes .ln.p, .lanes .ln.r, .lanes .ln.lm, .lanes .la.wide { grid-column: 1; } }
/* v8 */
.hero .eyebrow { font-size: clamp(18px, 1.9vw, 25px); letter-spacing: .05em; font-weight: 700; margin-top: 4px; }
.hero .fine { margin-top: 22px; font-size: 14px; color: var(--mute); }
footer .brand { display: inline-flex; }
/* v9: no orphan words / half lines */
h1, h2, h3, h4, .section-head p, .page-hero p, .hero .lead, .pl-caption, .thesis p { text-wrap: balance; }
p, li, figcaption, .small-note { text-wrap: pretty; }
/* Sharing journey (site-native diagram) */
.journey { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: j; }
.jc { position: relative; padding: 20px 18px 20px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(0,166,7,.10), #0b0d0f 45%); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .2s, border-color .2s; }
.jc:hover { transform: translateY(-3px); border-color: #00A607; }
.jc::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(0,166,7,.18), transparent 70%); pointer-events: none; }
.jc-top { display: flex; justify-content: space-between; align-items: center; }
.jc .ji { width: 38px; height: 38px; color: #3fe046; }
.jc-n { font-size: 30px; font-weight: 700; color: rgba(255,255,255,.12); letter-spacing: -.02em; }
.jc h4 { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.jc p { font-size: 14px; }
.route { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.rt { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; border: 1px solid; }
.rt.p { color: #3fe046; border-color: rgba(63,224,70,.5); }
.rt.r { color: #fff; background: #00A607; border-color: #00A607; }
.rt.m { color: #fff; border-color: rgba(255,255,255,.35); }
.rt.e { color: #3fe046; border-color: rgba(0,166,7,.55); }
.rt-a { font-style: normal; color: #616161; font-size: 12px; }
.knows { margin-top: 18px; padding: 18px; border: 1px dashed var(--line-strong); }
.knows h4 { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.kn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kn { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.kn .ki { grid-row: span 2; width: 30px; height: 30px; color: #3fe046; }
.kn b { color: var(--ink); font-size: 14.5px; } .kn p { font-size: 13.5px; color: var(--mute); }
@media (max-width: 1080px) { .journey { grid-template-columns: 1fr 1fr; } .kn-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .jc { transition: none; } .jc:hover { transform: none; } }
.route { flex-wrap: nowrap; } .rt { white-space: nowrap; }
.connect { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.connect span { font-size: 12px; padding: 3px 8px; border: 1px solid var(--line-strong); color: var(--ink); background: var(--bg); }
.connect span em { font-style: normal; color: var(--mute); }
.connect .ck { border: 0; background: none; padding: 0 4px 0 0; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 700; }
/* dark block now ends at #how: fade into the light block there */
#how { background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 85%, #15181a 100%); }
#status { background: none; }
.join-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* v12: intros and titles run the full content width (Abeer, 5 Nov): no width caps, no balanced/"pretty" early line breaks */
.section-head, .steps > p, .small-note, .page-hero p, .thesis, .persona, .faq, .news, .cite-box { max-width: none; }
h3, h4, p, li, figcaption, .small-note, .section-head p, .page-hero p, .thesis p, .pl-caption { text-wrap: wrap; }

/* v13: LongevityGrok wordmark larger, so the product name reads as the main brand */
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 27px; letter-spacing: -0.005em; }
.brand-div { height: 34px; }
footer .brand-name { font-size: 30px; }
@media (max-width: 880px) { .brand-name { font-size: 22px; } }
@media (max-width: 560px) { .brand-name { font-size: 19px; } .brand-div { height: 26px; } }

/* v14: blues replaced by brand greens; early access keeps a dashed outline to stay distinct from live */
.tag.amber { border-style: dashed; }

/* v15: ecosystem diagram - Setup column aligned like the others; "What it's for" as a box in the MotherShip column */
.eco-src { justify-content: flex-start; }
.eco-src-stack { display: flex; flex-direction: column; gap: 12px; }
.eco-setup { font-size: 12.5px; }
.eco-setup code { font-family: var(--code); color: #3fe046; font-size: .95em; }
.eco-ms .eco-out { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 14px; border: 1px solid rgba(0,166,7,.45); background: rgba(0,166,7,.06); }
.eco-ms .eco-out .eco-out-h { grid-column: 1 / -1; margin: 0; }
.eco-ms .eco-out span { font-size: 14px; }
@media (max-width: 880px) {
  .eco-src { flex-direction: column; align-items: stretch; }
  .eco-src-stack { flex-direction: row; align-items: center; } .eco-src-stack .eco-card { flex: 1; }
}
@media (max-width: 560px) { .eco-src-stack { flex-direction: column; align-items: stretch; } }
.eco-ms .eco-out { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
.eco-ms .eco-out span { white-space: nowrap; font-size: 15px; }

/* v16: MotherShip column mirrors the Airlock: intro line, stacked cards, compact "What it's for" grid at the bottom */
.eco-ms-cards { gap: 8px; }
.eco-ms-cards li { padding: 10px 12px 10px 30px; border: 1px solid var(--line-strong); background: #0b0d0f; font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.eco-ms-cards li::before { left: 12px; top: 16px; }
.eco-ms-cards li b { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.eco-ms .eco-out { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.eco-ms .eco-out .eco-out-h { font-size: 11px; }
.eco-ms .eco-out span:not(.eco-out-h) { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid rgba(0,166,7,.35); background: #0b0d0f; font-size: 13px; white-space: nowrap; }


/* ======== v17: one theme for the whole page, switchable (light / dark) ======== */
/* light tokens for the whole document (sections already get them above) */
:root[data-theme="light"] { --bg: #ffffff; --bg-raise: #f5f5f5; --plate: #f5f5f5; --plate-2: #ebebeb; --ink: #000000; --body: #262626; --mute: #5c5c5c;
  --line: #e3e3e3; --line-strong: #cfcfcf; --green-2: #007d05; --steel: #616161; --amber: #007d05; color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] body { background: #ffffff; color: var(--body); }
.on-light { display: none !important; }
:root[data-theme="light"] .on-dark { display: none !important; }
:root[data-theme="light"] .on-light { display: block !important; }
:root[data-theme="light"] .brand img.on-light { display: block !important; }

/* theme button */
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; border-radius: 50%; flex: none; }
.theme-toggle:hover { border-color: var(--green); color: var(--green); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; } :root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (max-width: 880px) { .nav .theme-toggle { margin: 10px 12px; } }

/* light: hero, header, menus, code boxes */
:root[data-theme="light"] .hero { background: radial-gradient(900px 600px at 78% 45%, rgba(0,166,7,.10), transparent 65%), #ffffff; }
:root[data-theme="light"] .page-hero { background: radial-gradient(900px 420px at 10% 0%, rgba(0,166,7,.08), transparent 70%), #ffffff; }
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.96); border-bottom-color: var(--line); }
:root[data-theme="light"] .dd-menu { background: #ffffff; box-shadow: 0 18px 40px rgba(0,0,0,.12); }
:root[data-theme="light"] .onboard { background: #ffffff; color: var(--ink); }
:root[data-theme="light"] .prompt-row code, :root[data-theme="light"] pre { background: #ffffff; color: var(--ink); }
:root[data-theme="light"] .toast a, :root[data-theme="light"] .eco-setup code { color: #007d05; }
:root[data-theme="light"] #how, :root[data-theme="light"] #status { background: #ffffff; }
:root[data-theme="light"] .btn-ghost { color: var(--ink); border-color: var(--line-strong); }
/* light: hero constellation */
:root[data-theme="light"] .constellation .ring2, :root[data-theme="light"] .constellation .spoke.out { stroke: rgba(0,0,0,.14); }
:root[data-theme="light"] .constellation .nd circle, :root[data-theme="light"] .constellation .nd.m circle { fill: #ffffff; }
:root[data-theme="light"] .constellation .nd.x circle { fill: #ffffff; stroke: #262626; }
:root[data-theme="light"] .constellation text { fill: #3a3a3a; }
:root[data-theme="light"] .constellation .nd.core text { fill: #000000; }
:root[data-theme="light"] .constellation .pulse.p2 { fill: #00A607; }
:root[data-theme="light"] .c-legend, :root[data-theme="light"] .constellation .legend text { color: #5c5c5c; fill: #5c5c5c; }
/* light: ecosystem diagram and share cards */
:root[data-theme="light"] .eco-col, :root[data-theme="light"] .eco-card, :root[data-theme="light"] .eco-ms-cards li, :root[data-theme="light"] .eco-ms .eco-out span:not(.eco-out-h) { background: #ffffff; }
:root[data-theme="light"] .eco-src { background: transparent; }
:root[data-theme="light"] .eco-you { background: linear-gradient(180deg, rgba(0,166,7,.08), #ffffff 55%); }
:root[data-theme="light"] .eco-ms { background: linear-gradient(180deg, rgba(0,166,7,.06), #ffffff 60%); }
:root[data-theme="light"] .eco .ei, :root[data-theme="light"] .eco-sync, :root[data-theme="light"] .eco-arrow, :root[data-theme="light"] .jc .ji, :root[data-theme="light"] .kn .ki { color: #007d05; }
:root[data-theme="light"] .jc { background: linear-gradient(180deg, rgba(0,166,7,.08), #ffffff 45%); }
:root[data-theme="light"] .jc-n { color: rgba(0,0,0,.12); }
:root[data-theme="light"] .rt.p, :root[data-theme="light"] .rt.e { color: #007d05; }
:root[data-theme="light"] .rt.m { color: #000; border-color: rgba(0,0,0,.3); }
:root[data-theme="light"] .inout > div, :root[data-theme="light"] .persona .avatar { background: #ffffff; }
:root[data-theme="light"] .fig1 .n rect, :root[data-theme="light"] .fig1 .pill rect { fill: #ffffff; }
:root[data-theme="light"] .fig1 .n-hub rect, :root[data-theme="light"] .fig1 .n-hub2 rect { fill: #e6f6e7; }
:root[data-theme="light"] .bib tr:hover td { background: rgba(0,0,0,.03); }
/* the walkthrough is a picture of the Grok Bot app: it stays dark in both themes */
.player { --bg: #050607; --plate: #101317; --plate-2: #161a20; --ink: #f3f5f7; --body: #c5ccd4; --mute: #8b939e; --line: #262626; --line-strong: #3a3a3a; --green-2: #3fe046; --amber: #3fe046; color: var(--body); }

/* ---------- See it in action: team infographic ---------- */
.team-fig { display: grid; gap: 18px; margin-bottom: 56px; }
.tf-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tf-stats div { background: var(--plate); padding: 22px 20px; display: grid; gap: 6px; }
.tf-stats b { font-size: 44px; line-height: 1; font-weight: 700; color: var(--green); }
.tf-stats span { font-size: 14px; color: var(--body); }
.tf-hub { display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: #00A607; color: #fff; }
.tf-hub b { display: block; font-size: 18px; color: #fff; }
.tf-hub span { font-size: 15px; color: rgba(255,255,255,.92); }
.tf-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #00A607 !important; font-weight: 700; font-size: 20px; }
.tf-groups { display: grid; grid-template-columns: 1.15fr 1.6fr; grid-template-areas: "core spec" "clinic lab"; gap: 18px; }
.tg-core { grid-area: core; } .tg-spec { grid-area: spec; } .tg-clinic { grid-area: clinic; } .tg-lab { grid-area: lab; }
.tg { border: 1px solid var(--line-strong); background: var(--plate); padding: 20px; }
.tg-core { border-color: rgba(0,166,7,.6); background: linear-gradient(180deg, rgba(0,166,7,.10), var(--plate) 50%); }
.tg-h { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.tg-n { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; font-weight: 700; border: 1.6px solid #00A607; color: var(--green); border-radius: 50%; }
.tg-core .tg-n { background: #00A607; color: #fff; }
.tg-clinic .tg-n, .tg-lab .tg-n { border-style: dashed; }
.tg-h h3 { font-size: 19px; margin: 0; }
.tg-h span { font-size: 13px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.tg ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.tg li { padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); display: grid; gap: 3px; transition: border-color .15s, transform .15s; }
.tg li:hover { border-color: #00A607; transform: translateY(-2px); }
.tg li b { font-size: 14.5px; color: var(--ink); }
.tg li span { font-size: 13px; color: var(--mute); line-height: 1.45; }
.tf-walk { margin: 0 0 18px; font-size: 22px; }
@media (max-width: 1080px) { .tf-stats { grid-template-columns: repeat(3, 1fr); } .tf-groups { grid-template-columns: 1fr; grid-template-areas: "core" "spec" "clinic" "lab"; } }
@media (max-width: 560px) { .tf-stats { grid-template-columns: 1fr 1fr; } .tf-stats b { font-size: 34px; } .tf-hub { align-items: flex-start; } }

/* ---------- First week: copy-paste prompts ---------- */
.week.tasks { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.week.tasks li { display: flex; flex-direction: column; }
.ask { margin-top: auto; padding-top: 16px; display: flex; gap: 10px; align-items: stretch; }
.ask code { flex: 1; font-family: var(--code); font-size: 13.5px; line-height: 1.5; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); }
.ask .btn { flex: none; align-self: flex-start; }

/* ---------- Partner marks ---------- */
.partner-mark { height: 48px; width: auto; margin-bottom: 14px; }
:root[data-theme="light"] .gates li { background: #ffffff; }
.partner .partner-mark, .partner .partner-logo { align-self: flex-start; }
.partner .partner-mark { width: auto; height: 48px; }
.partner .partner-logo.on-dark { display: block; }
:root[data-theme="light"] .partner .partner-logo.on-dark { display: none !important; }
:root[data-theme="light"] .constellation .hub-t { fill: #ffffff; }
:root[data-theme="light"] .constellation .hub-s { fill: rgba(255,255,255,.9); }
.ask { flex-direction: column; }
.ask code { font-family: var(--sans); font-size: 14.5px; padding: 12px 14px; border-left: 3px solid #00A607; }
.ask .btn { align-self: flex-end; }

/* ======== v18: team network, Four Laws icons, wider "Your space" ======== */
.tn-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; border: 1px solid var(--line); background: radial-gradient(700px 500px at 40% 50%, rgba(0,166,7,.08), transparent 70%), var(--bg); padding: 10px 24px 10px 10px; }
.tn-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tn-ring { fill: none; stroke: rgba(0,166,7,.35); stroke-width: 1.2; stroke-dasharray: 2 6; }
.tn-ring2 { stroke: var(--line-strong); }
.tn-l { stroke: rgba(0,166,7,.35); stroke-width: 1.2; }
.tn-l-spec { stroke: var(--line-strong); }
.tn-l-clinic, .tn-l-lab { stroke: var(--line-strong); stroke-dasharray: 4 5; }
.tn-l-you { stroke: #00A607; stroke-width: 2; stroke-dasharray: 6 6; animation: tn-dash 1.2s linear infinite; }
@keyframes tn-dash { to { stroke-dashoffset: -24; } }
.tn-n { cursor: pointer; outline: none; }
.tn-n .tn-bg { fill: var(--plate); stroke: var(--line-strong); stroke-width: 1.6; transition: stroke .2s, fill .2s; }
.tn-n .tn-ic { color: var(--ink); pointer-events: none; }
.tn-core .tn-bg { fill: rgba(0,166,7,.16); stroke: #00A607; }
.tn-core .tn-ic { color: var(--green-2); }
.tn-spec .tn-bg { stroke: #00A607; }
.tn-clinic .tn-bg, .tn-lab .tn-bg { stroke: #00A607; stroke-dasharray: 4 3; }
.tn-hub .tn-bg { fill: #00A607; stroke: #3fe046; stroke-width: 2; }
.tn-hub .tn-ic { color: #fff; }
.tn-you .tn-bg { fill: var(--bg); stroke: var(--ink); stroke-width: 2; }
.tn-hubring { fill: none; stroke: rgba(63,224,70,.55); stroke-width: 1.4; animation: breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.tn-lb { font-size: 14px; fill: var(--body); pointer-events: none; }
.tn-core .tn-lb { font-weight: 700; fill: var(--ink); font-size: 13.5px; }
.tn-you .tn-lb { font-weight: 700; fill: var(--ink); }
.tn-hl { font-size: 16px; font-weight: 700; fill: var(--ink); pointer-events: none; }
.tn-gl { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; fill: var(--mute); font-weight: 700; }
.tn-n:hover .tn-bg, .tn-n:focus .tn-bg, .tn-n.on .tn-bg { stroke: #3fe046; stroke-width: 2.6; }
.tn-n.on:not(.tn-hub) .tn-bg { fill: rgba(0,166,7,.28); }
.tn-n.ping .tn-bg { stroke: #3fe046; stroke-width: 3; }
.tn-dot { fill: #3fe046; filter: drop-shadow(0 0 5px rgba(63,224,70,.9)); pointer-events: none; }
.tn-dot.you { fill: var(--ink); filter: none; }
.tn-side { display: flex; flex-direction: column; gap: 18px; justify-content: center; padding: 18px 0; }
.team-panel { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid #00A607; background: var(--plate); min-height: 150px; }
.tp-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #00A607; color: #fff; }
.tp-ic svg { width: 26px; height: 26px; }
.team-panel b { display: block; font-size: 17px; color: var(--ink); margin: 2px 0 6px; }
.team-panel p { font-size: 14.5px; color: var(--body); margin: 0; }
.tp-g { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.tn-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--body); }
.tn-legend li { display: flex; align-items: center; gap: 10px; }
.tn-legend i { width: 16px; height: 16px; flex: none; display: inline-block; }
.lg-hub { background: #00A607; border-radius: 50%; } .lg-core { background: rgba(0,166,7,.2); border: 1.6px solid #00A607; border-radius: 4px; }
.lg-spec { border: 1.6px solid #00A607; border-radius: 50%; } .lg-pro { border: 1.6px dashed #00A607; border-radius: 50%; }
.lg-dot { width: 9px !important; height: 9px !important; margin: 0 3.5px; border-radius: 50%; background: #3fe046; box-shadow: 0 0 6px #3fe046; }
.tn-hint { font-size: 13.5px; color: var(--mute); margin: 0; }
details.tf-all { border: 1px solid var(--line-strong); background: var(--plate); }
details.tf-all > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; }
details.tf-all > summary::after { content: "+"; color: var(--green); font-size: 20px; line-height: 1; }
details.tf-all[open] > summary::after { content: "−"; }
details.tf-all > .tf-groups { padding: 0 18px 18px; }
@media (max-width: 1080px) { .tn-wrap { grid-template-columns: 1fr; padding: 10px; } .tn-side { padding: 0 8px 12px; } }
@media (max-width: 640px) { .tn-lb { font-size: 22px; } .tn-core .tn-lb { font-size: 20px; } .tn-gl { display: none; } }

/* Four Laws: icons */
.laws { gap: 16px; background: transparent; border: 0; }
.law { position: relative; border: 1px solid var(--line); background: var(--plate); padding: 28px 24px 30px; overflow: hidden; transition: border-color .2s, transform .2s; }
.law:hover { border-color: #00A607; transform: translateY(-3px); }
.law::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #00A607, #3fe046); }
.law-ic { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: rgba(0,166,7,.14); color: var(--green-2); margin-bottom: 18px; }
.law-ic svg { width: 32px; height: 32px; }
.law .n { position: absolute; right: 18px; top: 10px; font-size: 64px !important; color: rgba(0,166,7,.16) !important; }
:root[data-theme="light"] .law { background: #ffffff; }
@media (max-width: 1080px) { .laws { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .laws { grid-template-columns: 1fr; } }

/* Ecosystem: wider "Your space" */
.eco-flow { grid-template-columns: 0.62fr auto 2.25fr auto 0.95fr auto 0.95fr; }
.eco-chips span.p { background: transparent; border-style: dashed; border-color: rgba(0,166,7,.55); color: var(--body); }
@media (min-width: 1081px) {
  .eco { width: min(1440px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
  .eco-flow { grid-template-columns: 0.72fr auto 2.3fr auto 1.08fr auto 1.08fr; }
}
@media (max-width: 640px) { .tn-lb, .tn-hl { display: none; } .tn-wrap { padding: 4px; } }
@media (min-width: 881px) { .hero .eyebrow { letter-spacing: .08em; white-space: nowrap; } }

/* ======== v21: "Follow one request" story + all 30 bots always visible ======== */
.story { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; border: 1px solid var(--line); background: radial-gradient(700px 500px at 30% 40%, rgba(0,166,7,.08), transparent 70%), var(--bg); padding: 32px; margin-bottom: 40px; }
.sf { display: flex; flex-direction: column; align-items: center; }
.sf-row { display: flex; justify-content: center; gap: 12px; width: 100%; transition: opacity .35s; opacity: .38; }
.sf-row.on, .sf-row.done { opacity: 1; }
.sb { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--line-strong); background: var(--plate); min-width: 0; flex: 0 1 260px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.sf-3 .sb { flex-basis: 220px; }
.sb-ic { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,166,7,.15); color: var(--green-2); }
.sb-ic .ic { width: 24px; height: 24px; }
.sb.spec .sb-ic { border-radius: 50%; }
.sb-t { display: grid; gap: 2px; min-width: 0; }
.sb-t b { font-size: 16px; color: var(--ink); }
.sb-t span { font-size: 14.5px; color: var(--body); line-height: 1.4; }
.sb-hub { border-color: #00A607; background: #00A607; flex-basis: 360px; }
.sb-hub .sb-ic { background: #fff; color: #00A607; }
.sb-hub .sb-t b, .sb-hub .sb-t span { color: #fff; }
.sb-you { flex-basis: 440px; border-color: var(--ink); }
.sb-you .sb-ic { background: var(--ink); color: var(--bg); border-radius: 50%; }
.sb-you .sb-t span { font-size: 15.5px; color: var(--ink); font-style: italic; }
.sf-row.on .sb { border-color: #3fe046; box-shadow: 0 0 0 4px rgba(0,166,7,.18), 0 10px 30px rgba(0,166,7,.18); transform: translateY(-2px); }
.sf-row.on .sb-hub { box-shadow: 0 0 0 4px rgba(63,224,70,.35), 0 10px 30px rgba(0,166,7,.35); }
.sf-link { width: 2px; height: 26px; background: var(--line-strong); position: relative; overflow: hidden; }
.sf-link i { position: absolute; left: 0; right: 0; top: -100%; height: 100%; background: linear-gradient(180deg, transparent, #3fe046); }
.sf-link.on i { animation: sf-flow .9s linear infinite; }
.sf-link.done { background: #00A607; }
.sf-link::after { content: ""; position: absolute; left: -4px; bottom: 0; border: 5px solid transparent; border-top-color: var(--line-strong); border-bottom: 0; }
@keyframes sf-flow { to { top: 100%; } }
.sf-plan { flex: 0 1 460px; border: 1.5px solid var(--line-strong); background: var(--plate); padding: 14px 16px; display: grid; gap: 8px; transition: border-color .3s, box-shadow .3s; }
.sf-row.on .sf-plan { border-color: #3fe046; box-shadow: 0 0 0 4px rgba(0,166,7,.18); }
.sp-h { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink); }
.sp-h .ic { width: 18px; height: 18px; color: var(--green); }
.sp-k { margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.sp-i { font-size: 15px; color: var(--body); padding: 8px 10px; border-left: 3px solid #00A607; background: var(--bg); }
.sp-i b { color: var(--ink); } .sp-i i { font-style: normal; color: var(--green-2); }
.sp-a { display: flex; gap: 8px; } .sp-a span { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line-strong); color: var(--body); }
.sp-a span:first-child { background: #00A607; border-color: #00A607; color: #fff; font-weight: 700; }
.st-side { display: grid; gap: 16px; position: sticky; top: calc(var(--nav) + 20px); }
.st-ctl { display: flex; align-items: center; gap: 14px; }
.st-bar { flex: 1; height: 4px; background: var(--line); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: #00A607; transform-origin: left; transform: scaleX(0); }
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-steps button { width: 100%; display: flex; gap: 14px; text-align: left; font: inherit; background: var(--plate); border: 1px solid var(--line); padding: 14px 16px; cursor: pointer; color: var(--body); transition: border-color .2s, background .2s; }
.st-steps button:hover { border-color: #00A607; }
.ss-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 15px; color: var(--mute); }
.st-steps b { display: block; font-size: 16.5px; color: var(--ink); margin-bottom: 2px; }
.st-steps button > span:last-child > span { display: none; font-size: 15px; line-height: 1.5; }
.st-steps li.on button { border-color: #00A607; background: rgba(0,166,7,.10); }
.st-steps li.on .ss-n, .st-steps li.done .ss-n { background: #00A607; border-color: #00A607; color: #fff; }
.st-steps li.on button > span:last-child > span { display: block; }
.st-team-h { margin: 0 0 16px; font-size: 26px; }
.tm-hub { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: #00A607; color: #fff; margin-bottom: 16px; }
.tm-hub b { display: block; font-size: 18px; } .tm-hub span { font-size: 15.5px; color: rgba(255,255,255,.92); }
.tm-ic { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(0,166,7,.14); color: var(--green-2); }
.tm-ic .ic { width: 22px; height: 22px; }
.tm-ic.big { width: 48px; height: 48px; background: #fff; color: #00A607; border-radius: 12px; } .tm-ic.big .ic { width: 28px; height: 28px; }
.tm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tm-spec { grid-row: span 2; }
.tm { border: 1px solid var(--line-strong); background: var(--plate); padding: 20px; }
.tm-core { border-color: rgba(0,166,7,.6); }
.tm-h { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.tm-n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; border: 1.6px solid #00A607; color: var(--green); }
.tm-core .tm-n { background: #00A607; color: #fff; } .tm-clinic .tm-n, .tm-lab .tm-n { border-style: dashed; }
.tm-h h4 { margin: 0; font-size: 20px; color: var(--ink); } .tm-h span { font-size: 14px; color: var(--mute); }
.tm ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tm li { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); background: var(--bg); }
.tm li b { display: block; font-size: 16px; color: var(--ink); } .tm li span span { font-size: 14.5px; color: var(--body); line-height: 1.4; }
.tm-spec li .tm-ic, .tm-clinic li .tm-ic, .tm-lab li .tm-ic { border-radius: 50%; }
:root[data-theme="light"] .story { background: radial-gradient(700px 500px at 30% 40%, rgba(0,166,7,.06), transparent 70%), #fff; }
:root[data-theme="light"] .sb, :root[data-theme="light"] .sf-plan, :root[data-theme="light"] .tm li { background: #fff; }
:root[data-theme="light"] .sb-hub { background: #00A607; }
@media (max-width: 1080px) { .story { grid-template-columns: 1fr; padding: 20px; } .st-side { position: static; order: -1; } .tm-grid { grid-template-columns: 1fr; } .tm-spec { grid-row: auto; } }
@media (max-width: 640px) { .sf-3, .sf-2 { flex-direction: column; align-items: stretch; } .sb, .sf-plan { flex-basis: auto; } .sf-row { flex-direction: column; align-items: stretch; } }
@media (min-width: 1081px) { .story { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.sf-3 .sb { padding: 10px 12px; gap: 10px; } .sf-3 .sb-ic { width: 36px; height: 36px; } .sf-3 .sb-t b { font-size: 15px; } .sf-3 .sb-t span { font-size: 14px; }
.sf-link.on { background: rgba(0,166,7,.45); }
@media (max-width: 640px) { .sf-row .sb, .sf-row .sf-plan { flex: 0 0 auto; width: 100%; } .story { padding: 14px; } }

/* ======== v22: team roster as a card gallery with filter tabs ======== */
.roster { margin-bottom: 56px; }
.ro-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.ro-head .sub-h { margin: 0; font-size: 28px; }
.ro-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--plate); }
.ro-tabs button { font: inherit; font-size: 15px; padding: 8px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--body); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.ro-tabs button em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--plate-2); color: var(--mute); }
.ro-tabs button[aria-selected="true"] { background: #00A607; color: #fff; }
.ro-tabs button[aria-selected="true"] em { background: rgba(255,255,255,.25); color: #fff; }
.ro-lead { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border: 1px solid #00A607; background: linear-gradient(90deg, rgba(0,166,7,.16), transparent 70%), var(--plate); margin-bottom: 18px; }
.ro-lead b { display: block; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.ro-lead span { font-size: 15.5px; color: var(--body); }
.ro-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.bc-sep { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; padding: 14px 0 2px; border-bottom: 1px solid var(--line); }
.bc-sep:first-child { padding-top: 0; }
.bc-sep b { font-size: 18px; color: var(--ink); } .bc-sep span { font-size: 14.5px; color: var(--mute); }
.bc { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; border: 1px solid var(--line); background: var(--plate); transition: transform .2s, border-color .2s, box-shadow .2s; }
.bc:hover { transform: translateY(-4px); border-color: #00A607; box-shadow: 0 14px 30px rgba(0,166,7,.15); }
.bc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.bc-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,166,7,.14); color: var(--green-2); flex: none; }
.bc-ic svg { width: 28px; height: 28px; }
.bc-ic.lead { background: #00A607; color: #fff; }
.bc-core .bc-ic { background: #00A607; color: #fff; }
.bc-clinic .bc-ic, .bc-lab .bc-ic { background: transparent; border: 1.6px dashed #00A607; }
.bc-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(0,166,7,.5); color: var(--green-2); }
.bc-core .bc-tag { background: #00A607; border-color: #00A607; color: #fff; }
.bc-clinic .bc-tag, .bc-lab .bc-tag { border-style: dashed; }
.bc > b { font-size: 17px; color: var(--ink); }
.bc > p { margin: 0; font-size: 14.5px; color: var(--body); line-height: 1.5; }
.roster:not([data-f="all"]) .bc-sep { display: none; }
.roster[data-f="core"] .bc:not(.bc-core), .roster[data-f="spec"] .bc:not(.bc-spec), .roster[data-f="clinic"] .bc:not(.bc-clinic), .roster[data-f="lab"] .bc:not(.bc-lab) { display: none; }
:root[data-theme="light"] .bc { background: #ffffff; }
:root[data-theme="light"] .ro-tabs { background: #ffffff; }
:root[data-theme="light"] .ro-lead { background: linear-gradient(90deg, rgba(0,166,7,.10), transparent 70%), #ffffff; }
@media (max-width: 640px) { .ro-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .bc { padding: 14px; } .bc-ic { width: 44px; height: 44px; } .bc > b { font-size: 15.5px; } .bc > p { font-size: 13.5px; } .ro-tabs button { padding: 7px 11px; font-size: 14px; } }
.ro-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bc-cta { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 20px 24px; border: 1.5px dashed rgba(0,166,7,.6); background: linear-gradient(90deg, rgba(0,166,7,.10), transparent 80%); }
.bc-cta b { font-size: 18px; color: var(--ink); } .bc-cta p { margin: 0; font-size: 15px; color: var(--body); } .bc-cta .link { margin-top: 4px; }
.roster[data-f]:not([data-f="all"]):not([data-f="spec"]) .bc-cta { display: none; }
@media (max-width: 1080px) { .ro-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bc-cta { grid-column: span 2; } }
@media (max-width: 640px) { .ro-grid { grid-template-columns: 1fr 1fr; } .bc-cta { grid-column: 1 / -1; } }

/* ======== v23: team with photos, shinier Get started ======== */
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 28px; }
.pc { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); background: var(--plate); transition: border-color .2s, transform .2s, box-shadow .2s; }
.pc:hover { border-color: #00A607; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,166,7,.14); }
.pc-ph { flex: none; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; border: 3px solid #00A607; box-shadow: 0 0 0 4px rgba(0,166,7,.15); background: #e9e9e9; }
.pc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.2); transition: filter .3s; }
.pc:hover .pc-ph img { filter: none; }
.pc-ini { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #00A607, #3fe046); color: #fff; font-size: 34px; font-weight: 700; letter-spacing: .02em; }
.pc-b { min-width: 0; }
.pc-role { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.pc-b h3 { margin: 6px 0 8px; font-size: 20px; color: var(--ink); text-transform: none !important; }
.pc-b p { margin: 0; font-size: 15px; color: var(--body); line-height: 1.5; }
:root[data-theme="light"] .pc { background: #ffffff; }
@media (max-width: 1080px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } .pc-ph { width: 84px; height: 84px; } }

/* shinier Get started (header) */
.nav > a.btn-primary { position: relative; overflow: hidden; background: linear-gradient(135deg, #00A607 0%, #2fd439 55%, #00A607 100%); background-size: 200% 200%; box-shadow: 0 0 0 1px rgba(63,224,70,.55), 0 6px 22px rgba(0,166,7,.55), inset 0 1px 0 rgba(255,255,255,.35); animation: gs-glow 3.2s ease-in-out infinite; }
.nav > a.btn-primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: gs-shine 3.2s ease-in-out infinite; }
.nav > a.btn-primary:hover { background-position: 100% 0; box-shadow: 0 0 0 1px #3fe046, 0 8px 28px rgba(63,224,70,.7), inset 0 1px 0 rgba(255,255,255,.4); }
@keyframes gs-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes gs-glow { 0%, 100% { box-shadow: 0 0 0 1px rgba(63,224,70,.55), 0 6px 22px rgba(0,166,7,.45), inset 0 1px 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 1px rgba(63,224,70,.8), 0 6px 30px rgba(63,224,70,.7), inset 0 1px 0 rgba(255,255,255,.35); } }
@media (prefers-reduced-motion: reduce) { .nav > a.btn-primary, .nav > a.btn-primary::after { animation: none; } }
.pc { flex-direction: column; gap: 16px; padding: 24px; }
.pc-ph { width: 112px; height: 112px; }
.brand-name { white-space: nowrap; }

/* v25: video embeds + lead quotes */
.vid-frame{position:relative;display:block;width:100%;max-width:1100px;box-sizing:border-box;aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 20px 60px rgba(0,0,0,.35);margin:0 0 18px}
.vid-frame iframe,.vid-frame video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.vid-film{margin:8px 0 40px}
.leads{display:grid;gap:28px;margin:0 0 44px}
.lead-q{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:36px;align-items:center;padding:30px;border-radius:22px;border:1px solid color-mix(in srgb,currentColor 12%,transparent);background:color-mix(in srgb,#2fbf4a 6%,transparent)}
.lead-q.flip{grid-template-columns:1fr minmax(180px,260px)}
.lead-q.flip .pc-ph{order:2}
.lead-q .pc-ph img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:16px}
.lead-q blockquote{position:relative;margin:0 0 20px;padding:0 0 0 26px;border-left:3px solid #2fbf4a;font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:clamp(1.05rem,1.6vw,1.3rem);line-height:1.55}
.lead-q blockquote::before{content:"\201C";position:absolute;left:18px;top:-.55em;font-size:4.2em;line-height:1;color:#2fbf4a;opacity:.35;font-style:normal}
.lead-q blockquote p{margin:0 0 .8em}
.lead-q blockquote p:last-child{margin:0}
.lq-who h3{margin:4px 0 6px}
.lq-who p{margin:0;opacity:.8;font-size:.95rem}
@media (max-width:760px){.lead-q,.lead-q.flip{grid-template-columns:1fr;gap:20px;padding:22px}.lead-q.flip .pc-ph{order:0}.lead-q .pc-ph{max-width:220px}}

/* v25: legal pages */
.legal-doc{max-width:780px}
.legal-doc h2{margin:2.2em 0 .6em;font-size:1.35rem}
.legal-doc h3{margin:1.6em 0 .4em;font-size:1.05rem}
.legal-doc p{line-height:1.7;margin:0 0 1em}
.legal-eff{opacity:.7;font-size:.95rem}
.legal-links{font-size:.85rem;margin:10px 0 0}
.legal-links a{color:inherit;opacity:.8}
.legal-links a:hover{opacity:1}
.install-terms{font-size:.85rem;opacity:.8;margin-top:8px}
.leads .lead-q blockquote p{margin:0 0 1.3em}
.leads .lead-q blockquote p:last-child{margin-bottom:0}
.vid-film-2{margin-top:28px}

/* v26: mobile overflow fixes (later .eco-flow rules overrode the 1080px stack) */
@media (max-width: 1080px) {
  .eco-flow { grid-template-columns: 1fr !important; }
}
.eco-col, .eco-flow > *, .dev-body > * { min-width: 0; }
.dev table { display: block; overflow-x: auto; max-width: 100%; }
.dev pre { max-width: 100%; }

/* v26: leadership quotes in the site's .thesis style */
.lead-q { border-radius: 0; border: 0; border-left: 3px solid var(--green); background: var(--plate); padding: 30px 34px; gap: 40px; }
.lead-q .pc-ph img { border-radius: 0; }
.lead-q blockquote { margin: 0 0 22px; padding: 0; border: 0; font-family: var(--cond); font-style: normal; font-weight: 600; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.32; color: var(--ink); }
.lead-q blockquote::before { content: none; }
.leads .lead-q blockquote p { margin: 0 0 1em; }
.leads .lead-q blockquote p:last-child { margin-bottom: 0; }
.lq-who .pc-role { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.lq-who h3 { margin: 6px 0 4px; }
:root[data-theme="light"] section .lead-q, :root[data-theme="light"] section.alt .lead-q { background: #fff; }

/* v27: email contact card replaces the join form */
.join-mail { display: grid; gap: 16px; align-content: start; }
.join-mail .mail-big { font-size: 1.15em; font-weight: 600; word-break: break-all; }
.join-mail .btn { justify-self: start; }
