/* SAIHM site design, 2026-11. First-party; fonts are SIL OFL (see ../fonts/OFL-*.txt). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-var.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 400 600; font-display: swap; src: url(../fonts/newsreader-italic.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/jetbrains-mono-var.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #0d1b34;
  --ink-2: #3a4762;
  --muted: #5f6b85;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-2: #f4f7fc;
  --violet: #5b4bea;
  --violet-2: #8577ff;
  --violet-ink: #4f3fdc;
  --teal: #14b892;
  --teal-ink: #0b7a62;
  --cyan: #3cc7e8;
  --navy: #0b1830;
  --navy-2: #13233f;
  --pink: #ff9fcf;
  --peach: #ffc98f;
  --lav: #b3a6ff;
  --sky: #86d8ff;
  --mint: #96f0cf;
  --f-head: "Newsreader", Georgia, "Times New Roman", serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px;
  --shadow: 0 1px 2px rgba(13, 27, 52, .05), 0 10px 30px rgba(13, 27, 52, .08);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
/* Keep focused controls clear of the fixed chat bubble without shortening keyboard paging. */
:where(a[href], button, summary, input, select, textarea, [tabindex]:not([tabindex="-1"])) { scroll-margin-bottom: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--violet-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside running text are underlined, not told apart by color alone (WCAG 1.4.1). */
:where(p, figcaption) a:not(.arrow-link) { text-decoration: underline; text-underline-offset: 3px; }
code, pre { font-family: var(--f-mono); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.dark :focus-visible, .explore :focus-visible, .inv :focus-visible, .watch :focus-visible { outline-color: #8fe3c9; }
.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 16px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 500; letter-spacing: -.015em; color: var(--ink); margin: 0; }
h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; }
h2 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; }
h3 { font-size: 26px; line-height: 1.2; }
h1 em, h2 em, .big em { font-style: italic; color: var(--violet); }
p { margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.eyebrow { display: block; font: 600 14px/1.2 var(--f-body); color: var(--violet-ink); margin-bottom: 14px; }
.eyebrow.mono { font: 500 12px/1.2 var(--f-mono); letter-spacing: .02em; }
section { position: relative; }
.sec { padding: 104px 0; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head .lede { margin: 0; }

/* Color accents: soft blobs behind a section */
.glow { isolation: isolate; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.glow-a::before { background: radial-gradient(34% 46% at 0% 12%, rgba(179, 166, 255, .55), transparent 70%), radial-gradient(30% 40% at 100% 85%, rgba(134, 216, 255, .5), transparent 70%); }
.glow-b::before { background: radial-gradient(32% 44% at 100% 8%, rgba(255, 159, 207, .45), transparent 70%), radial-gradient(34% 46% at 0% 95%, rgba(150, 240, 207, .5), transparent 70%); }
.glow-c::before { background: radial-gradient(36% 50% at 85% 50%, rgba(255, 201, 143, .45), transparent 70%), radial-gradient(30% 44% at 5% 30%, rgba(179, 166, 255, .45), transparent 70%); }
.band { background: linear-gradient(180deg, #f2efff 0%, #eef7ff 55%, #effbf6 100%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--f-body); border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 6px 18px rgba(91, 75, 234, .32); }
.btn-primary:hover { background: #4c3cdf; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-text { background: none; color: var(--ink); padding: 0 6px; font-weight: 600; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(20, 184, 146, .25); flex: none; }
.arrow-link { font-weight: 600; color: var(--violet-ink); }
.tag { display: inline-block; font: 600 11px/1 var(--f-body); letter-spacing: .02em; padding: 5px 9px; border-radius: 999px; background: #eafaf4; color: var(--teal-ink); }
.tag.shm { background: #efedff; color: var(--violet-ink); }
.tag.next { background: #fff4e6; color: #a15c07; }

/* Header */
.site-head { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; padding: 0 12px; pointer-events: none; }
.nav { pointer-events: auto; max-width: 1040px; margin: 0 auto; height: 58px; display: flex; align-items: center; gap: 16px; padding: 0 8px 0 10px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border: 1px solid rgba(226, 231, 240, .9); border-radius: 999px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 21px/1 var(--f-head); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand { border-radius: 12px; }
.brand img { display: block; width: auto; height: 40px; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: var(--bg-2); color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
.nav-links + .nav-cta { margin-left: 0; }

/* Hero */
.hero { padding: 150px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -12% -8% 0; z-index: -1; background:
  radial-gradient(40% 54% at 4% 42%, rgba(255, 146, 202, 1), transparent 70%),
  radial-gradient(34% 44% at 30% 2%, rgba(255, 192, 122, .85), transparent 70%),
  radial-gradient(44% 56% at 80% 8%, rgba(160, 144, 255, 1), transparent 70%),
  radial-gradient(38% 52% at 100% 58%, rgba(104, 204, 255, .95), transparent 70%),
  radial-gradient(34% 40% at 55% 100%, rgba(122, 234, 194, .8), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(255, 255, 255, .85); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); margin-bottom: 26px; }
.badge b { white-space: nowrap; background: var(--violet); color: #fff; font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.hero .lede { margin: 28px 0 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { position: relative; padding: 40px 0 104px; }
.term { background: var(--navy); color: #d7e3ff; border-radius: 16px; box-shadow: 0 30px 60px rgba(11, 24, 48, .3); overflow: hidden; font: 13.5px/1.75 var(--f-mono); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: auto; color: #7f8db0; font-size: 12px; }
.term pre { margin: 0; padding: 18px 20px 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: #8fe3c9; }
.term .ok { color: #5fe0b4; }
.term .c { color: #7f8db0; }
.term .cur { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: #d7e3ff; animation: blink 1.1s steps(1) 4; }
@keyframes blink { 50% { opacity: 0; } }
.chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 14px; font-size: 13px; }
.chip-seal { top: -12px; right: -10px; display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; }
.chip-seal small { grid-column: 2; font: 11px/1.3 var(--f-mono); color: var(--muted); text-wrap: balance; }
.chip-share { bottom: 0; left: 5%; width: 284px; }
.chip-share small { display: block; font: 600 10.5px/1 var(--f-mono); letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.chip-share b { display: flex; align-items: center; gap: 8px; font: 600 15px/1.3 var(--f-body); margin: 6px 0 4px; }
.chip-share span { display: block; font: 12px/1.4 var(--f-mono); color: var(--violet-ink); }
.chip-share b.big-num { display: block; font: 500 34px/1.1 var(--f-head); color: var(--violet); margin: 6px 0 2px; }
.meter { height: 5px; border-radius: 9px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan), var(--teal)); border-radius: 9px; }

/* Marquee */
.marquee { padding: 34px 24px 6px; }
.marquee ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; }
.marquee li { flex: 0 0 104px; text-align: center; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }  /* C-05: AA over the hero glow */

/* Cards */
.cards { display: grid; gap: 20px; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: 0 1px 2px rgba(13, 27, 52, .03); }
.card .num { display: block; font: 500 12px/1 var(--f-mono); color: var(--violet-ink); margin-bottom: 18px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
a.card { color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d3d9e6; }

/* Beyond memory: bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(13, 27, 52, .03); }
.tile h3 { font-size: 24px; }
.tile p { color: var(--ink-2); font-size: 15px; margin: 0; }
.tile .tag { align-self: flex-start; }
.tile.wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.tile.wide > div { display: flex; flex-direction: column; gap: 12px; }
.tile.photo { position: relative; padding: 0; overflow: hidden; min-height: 300px; color: #fff; border: 0; background: var(--navy); }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 24, 48, 0) 45%, rgba(11, 24, 48, .35) 100%); }
.tile.photo > div { position: relative; z-index: 1; margin-top: auto; padding: 56px 24px 24px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, rgba(11, 24, 48, 0) 0%, rgba(11, 24, 48, .86) 34%, rgba(11, 24, 48, .94) 100%); }
.tile.photo h3 { color: #fff; }
.tile.photo p { color: #dbe3f3; }
.ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--violet), var(--cyan)); flex: none; }
.ico svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.t2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.ico.t3 { background: linear-gradient(135deg, var(--teal), var(--cyan)); }
.ico.t4 { background: linear-gradient(135deg, #f59e0b, #ec4899); }
.ico.t5 { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.grant { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 16px 18px; font-size: 13.5px; }
.grant header { display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; }
.grant header i { width: 26px; height: 26px; border-radius: 8px; background: #efedff; display: grid; place-items: center; font-style: normal; color: var(--violet-ink); font-size: 13px; }
.grant dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; }
.grant dt { color: var(--muted); }
.grant dd { margin: 0; font-family: var(--f-mono); font-size: 12.5px; }
.grant .ok { margin-top: 12px; color: var(--teal-ink); font: 600 12.5px/1.3 var(--f-mono); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: rgba(255, 255, 255, .9); color: var(--ink-2); font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.chips li.next { border-style: dashed; color: #a15c07; }
.more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 22px; }

/* How it works: static step rows */
.steps { margin-top: 24px; }
.step { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; margin-top: 72px; }
.step-text { max-width: 30em; }
.step-text h3 { font-size: clamp(28px, 2.8vw, 36px); margin-bottom: 16px; }
.step-text p { color: var(--ink-2); text-wrap: pretty; }
.qa details p, .qa-stack p, .person p, .final p, .answer p { text-wrap: pretty; }
.step-fig { margin: 0; }
.fig { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.fig svg { width: 100%; height: auto; }
.fig svg text { font-family: var(--f-body); }
.fig svg .mono { font-family: var(--f-mono); }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.progress i { height: 4px; border-radius: 4px; background: var(--line); }
.progress i.on { background: linear-gradient(90deg, var(--violet), var(--violet-2)); }
.flow { stroke-dasharray: 4 6; animation: flow 1.6s linear 3; }
@keyframes flow { to { stroke-dashoffset: -20; } }

/* People cards */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.person { display: block; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); color: inherit; transition: transform .15s, box-shadow .15s; }
.person:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.person img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.person div { padding: 20px 22px 24px; }
.person h3 { font-size: 24px; margin-bottom: 6px; }
.person p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* Recipes */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.recipes { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.recipes li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .9); font-size: 14.5px; }
.recipes b { font-weight: 600; }
.recipes li.rec { border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(133, 119, 255, .15); }
.recipes span { color: var(--ink-2); }
.console { display: grid; gap: 16px; }
.bubble { background: var(--navy); color: #e6edfb; border-radius: 18px 18px 18px 6px; padding: 18px 20px; font-size: 15px; line-height: 1.55; box-shadow: var(--shadow); }
.bubble small { display: block; font: 600 11px/1 var(--f-mono); letter-spacing: .05em; color: #8fe3c9; text-transform: uppercase; margin-bottom: 10px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; }
.panel header { display: flex; justify-content: space-between; align-items: center; font-weight: 600; margin-bottom: 10px; }
.panel header span { font: 600 12px/1 var(--f-body); background: #efedff; color: var(--violet-ink); padding: 6px 10px; border-radius: 999px; }
.lever { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.lever em { font: normal 12.5px/1 var(--f-mono); color: var(--ink); }
.sw { width: 36px; height: 20px; border-radius: 999px; background: #d9dfeb; position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.sw.on { background: var(--violet); }
.sw.on::after { left: 19px; }
.swarm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swarm div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; }
.swarm b { display: block; font: 600 12px/1.3 var(--f-mono); margin-bottom: 3px; }
.swarm span { color: var(--violet-ink); font-weight: 600; }

.shm-install { margin: 18px 0 0; font-size: 14.5px; color: var(--ink-2); }
.shm-install code, .inv-note code { background: var(--navy); color: #d7e3ff; padding: 3px 8px; border-radius: 6px; font-size: 13px; white-space: nowrap; }

/* Standing instructions */
.inv-grid { display: grid; grid-template-columns: 1fr minmax(180px, .55fr) 1fr; gap: 24px; align-items: center; }
.inv { margin: 0; background: var(--navy); color: #e6edfb; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.inv figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font: 600 11.5px/1 var(--f-mono); letter-spacing: .05em; text-transform: uppercase; color: #8fe3c9; }
.inv blockquote { margin: 0; padding: 18px 20px 22px; font: 14px/1.65 var(--f-mono); }
.copy { min-width: 76px; min-height: 32px; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: 6px 12px; font: 600 12px/1 var(--f-body); letter-spacing: 0; text-transform: none; cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, .16); }
.inv-link { margin: 0; font: 400 19px/1.45 var(--f-head); color: var(--ink); text-align: center; }
.inv-link span { display: block; font: 600 26px/1 var(--f-body); color: var(--violet); margin-top: 12px; }
.inv-note { margin: 26px 0 0; font-size: 14px; color: var(--muted); }

/* Built the other way round */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.vs > div { padding: 26px 28px; }
.vs > div + div { background: linear-gradient(160deg, #f3f1ff, #eafaf4); border-left: 1px solid var(--line); }
.vs h3 { font: 600 15px/1.3 var(--f-body); margin-bottom: 16px; }
.vs ol { margin: 0; padding: 0; list-style: none; counter-reset: v; display: grid; gap: 14px; }
.vs li { counter-increment: v; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); }
.vs li::before { content: counter(v); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--f-body); background: #eef1f6; color: var(--muted); }
.vs > div + div li::before { background: var(--violet); color: #fff; }
.qa-stack { display: grid; gap: 14px; }
.qa-stack div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.qa-stack h3 { font: 600 15.5px/1.35 var(--f-body); margin-bottom: 6px; }
.qa-stack p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.vs-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; margin-top: 24px; }
.shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot img { width: 100%; height: auto; }
.cap { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Dark benchmark */
.dark { background: radial-gradient(60% 80% at 15% 0%, #23407a 0%, transparent 60%), radial-gradient(50% 70% at 100% 100%, #0f4a48 0%, transparent 60%), var(--navy); color: #c9d4ea; }
.dark h2 { color: #fff; }
.dark .eyebrow { color: #6fe3c4; }
.dark a { color: #8fe3c9; }
.dark .lede { color: #c9d4ea; }
.bars { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); padding: 26px 26px 18px; font: 12.5px/1.4 var(--f-mono); margin: 0; }
.bar-row { margin-bottom: 18px; }
.bar-row header { display: flex; justify-content: space-between; color: #e6edfb; margin-bottom: 8px; }
.bar-row header b { color: #6fe3c4; font-weight: 600; }
.bar { height: 8px; border-radius: 6px; margin-bottom: 5px; }
.bar.all { background: rgba(255, 255, 255, .22); }
.bar.mem { background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.bar-row small { color: #b4c0d8; }
.bars .note { color: #b4c0d8; font-size: 11.5px; margin: 6px 0 0; font-family: var(--f-body); }

/* Get started */
.code-card pre { margin: 16px 0 0; background: var(--navy); color: #d7e3ff; border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.code-card .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #efeeff; color: var(--violet-ink); font: 600 13px/1 var(--f-body); margin-bottom: 18px; }
.code-card h3 { font: 600 17px/1.3 var(--f-body); }
.answer { margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; background: var(--bg-2); border-radius: var(--r); padding: 22px 26px; }
.answer p { margin: 0; color: var(--ink-2); font-size: 15px; }
.answer pre { margin: 0; background: var(--navy); color: #d7e3ff; padding: 12px 16px; border-radius: 12px; font-size: 13.5px; white-space: pre-wrap; }
.help { margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.help summary { cursor: pointer; color: var(--ink-2); font-weight: 600; padding: 6px 0; }
.help p { margin: 8px 0 0; }

/* Audience thumbnails: light diagrams, contained so nothing is cut off */
.aud { display: flex; flex-direction: column; }
.aud .thumb { margin: -28px -28px 20px; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 12px; background: #f7f9fd; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.aud .thumb img { width: 100%; height: 100%; object-fit: contain; }
.aud p { flex: 1; }
.aud h3 { font: 600 16px/1.3 var(--f-body); margin: 18px 0 0; display: flex; justify-content: space-between; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pills a { border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; padding: 7px 14px; border-radius: 999px; }
.pills a:hover { border-color: var(--violet-2); color: var(--violet-ink); text-decoration: none; }

/* Trust rows */
.rows { display: grid; gap: 12px; margin-top: 28px; }
.rows a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-weight: 500; background: #fff; }
.rows a:hover { border-color: var(--violet-2); text-decoration: none; box-shadow: var(--shadow); }
.rows a span { color: var(--muted); }

/* FAQ */
.qa { display: grid; gap: 12px; max-width: 860px; }
.qa details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 22px; }
.qa summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--violet-ink); font-size: 22px; line-height: 1; }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { color: var(--ink-2); padding-bottom: 18px; margin: 0; }

/* Final CTA */
.final { position: relative; overflow: hidden; border-radius: 28px; padding: 64px; border: 1px solid var(--line); background:
  radial-gradient(40% 70% at 8% 100%, rgba(255, 201, 143, .8), transparent 70%),
  radial-gradient(45% 80% at 30% 0%, rgba(179, 166, 255, .8), transparent 70%),
  radial-gradient(45% 80% at 85% 15%, rgba(134, 216, 255, .8), transparent 70%),
  radial-gradient(40% 70% at 92% 100%, rgba(150, 240, 207, .75), transparent 70%), #fbfcff; }
.final img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 26px; box-shadow: var(--shadow); }
.final h2 { max-width: 12em; }
.final p { max-width: 34em; color: var(--ink-2); margin: 22px 0 30px; }

/* Footer */
.foot { padding: 96px 0 48px; background: linear-gradient(180deg, #fff 0%, #f1efff 60%, #ecf8ff 100%); }
.big { font: 400 clamp(34px, 4vw, 52px)/1.15 var(--f-head); letter-spacing: -.015em; max-width: 15em; margin: 0 0 64px; }
.cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.cols h2 { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.cols a { color: var(--ink-2); font-size: 14.5px; }
.social { margin: 48px 0 0; font-size: 14px; color: var(--ink-2); }
.social a { color: var(--ink-2); font-weight: 600; }
.social code { font-size: 13px; background: #eef1f6; padding: 2px 6px; border-radius: 6px; }
.legal { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* Explore: native modal dialog; without scripts the opener links to the footer site map */
.explore:not([open]), .watch:not([open]) { display: none; }
.explore:focus-visible { outline: 2px solid #8fe3c9; outline-offset: -4px; }
.explore { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--navy); color: #fff; overflow-y: auto; scroll-padding-top: 96px; }
.explore::backdrop { background: var(--navy); }
.explore canvas { position: fixed; inset: 0; width: 100%; height: 100%; }
.explore-in { position: relative; max-width: 1100px; margin: 0 auto; padding: 28px 24px 64px; }
.explore-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin: -28px -24px 40px; padding: 20px 24px; background: rgba(11, 24, 48, .94); }
.explore-top .brand { color: #fff; }
.explore-close { gap: 6px; color: #fff; border: 1px solid rgba(255, 255, 255, .25); height: 40px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; background: transparent; font: 600 14px/1 var(--f-body); cursor: pointer; }
.explore-close:hover { background: rgba(255, 255, 255, .08); }
.explore h2 { color: #fff; font-size: clamp(32px, 4vw, 48px); margin-bottom: 40px; }
.explore h2 em { color: #8fe3c9; }
.ex-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.ex-grid h3 { font: 600 12px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: #8fe3c9; margin-bottom: 16px; }
.ex-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ex-grid a { color: #dfe7f7; font-size: 15px; }
body.locked { overflow: hidden; }

/* Video dialog */
.watch { border: 0; padding: 0; border-radius: 18px; width: min(960px, 94vw); max-height: 94vh; overflow: auto; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.watch::backdrop { background: rgba(11, 24, 48, .72); }
.watch video { width: 100%; height: auto; max-height: calc(94vh - 56px); }
.watch video:focus-visible { outline-offset: -4px; }
.watch-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; background: var(--navy); font-size: 13.5px; color: #c9d4ea; }
.watch-bar a { color: #8fe3c9; }
.watch-bar button { min-height: 36px; background: none; color: #fff; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 6px 14px; cursor: pointer; font: 600 13px/1 var(--f-body); }

/* Responsive */
@media (max-width: 1020px) {
  .cols { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 620px; }
  .c4, .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: 1 / -1; }
  .step { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; }
  .people { grid-template-columns: 1fr 1fr; }
  .people .person:last-child:nth-child(odd), .bento .tile.wide ~ .tile:last-child:nth-child(even) { grid-column: 1 / -1; }
  .people .person:last-child:nth-child(odd) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: center; }
  .nav-cta, .nav-links + .nav-cta { margin-left: auto; }
  .vs-row { grid-template-columns: 1fr; }
  .inv-grid { grid-template-columns: 1fr; }
  .inv-link { text-align: left; }
  .inv-link span { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .site-head { top: 8px; padding: 0 8px; }
  .nav { height: 54px; gap: 8px; }
  .brand { font-size: 19px; }
  .brand img { width: auto; height: 36px; }
  .nav-cta .btn { height: 36px; padding: 0 13px; font-size: 13.5px; }
  .hero { padding: 116px 0 40px; }
  .sec { padding: 72px 0; }
  .c3, .c4, .bento, .people, .ex-grid, .vs, .swarm { grid-template-columns: 1fr; }
  .people .person:last-child:nth-child(odd), .bento .tile.wide ~ .tile:last-child:nth-child(even) { grid-column: auto; }
  .people .person:last-child:nth-child(odd) { display: block; }
  .hero-art { padding-top: 64px; }
  .chip-seal { top: 0; }
  .foot { padding-bottom: 112px; }
  .tile.wide { grid-template-columns: 1fr; }
  .vs > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cols { grid-template-columns: 1fr 1fr; }
  .recipes li { grid-template-columns: 1fr; gap: 2px; }
  .answer { grid-template-columns: 1fr; }
  .chip-seal { right: 0; }
  .chip-share { left: 0; }
  .final { padding: 40px 24px; border-radius: 22px; }
  .card { padding: 22px; }
  .aud .thumb { margin: -22px -22px 18px; }
}
@media (max-width: 360px) {
  .nav { gap: 6px; padding: 0 6px; }
  .brand { font-size: 17px; gap: 7px; }
  .brand img { width: auto; height: 32px; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 0 10px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow, .term .cur { animation: none; }
  .btn, a.card, .person { transition: none; }
}

/* Chat launcher on phones (lens C1-09): a 52px icon button (its name stays "Open chat"); hidden on the
   sign-up pages, where it covered the primary button at the fold. */
@media (max-width: 560px) {
  #saihm-chat-bubble { width: 52px !important; height: 52px !important; padding: 0 !important; border-radius: 50% !important; font-size: 0 !important; line-height: 0 !important; right: 14px !important; bottom: 14px !important; }
  #saihm-chat-bubble::before { content: ""; position: absolute; left: 15px; top: 15px; width: 22px; height: 16px; border-radius: 6px; background: #fff; }
  #saihm-chat-bubble::after { content: ""; position: absolute; left: 18px; top: 29px; border: 5px solid transparent; border-top-color: #fff; border-left-color: #fff; }
  body:has(#free-step-done, #checkout) #saihm-chat-bubble { display: none !important; }
}
