/* Thesmos site, direction "Signal". Tokens, glass, glow, layout, reveals, fallbacks.
   a11y_check.py reads the hex tokens in :root and measures every text pair; keep them hex. */

@font-face { font-family: "Sora"; src: url("/assets/fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-var.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #041512;
  --bg-2: #0d2420;
  --bg-3: #14332d;
  --accent: #2ba08d;
  --accent-deep: #157365;
  --accent-lt: #62b3a3;
  --ink: #f6f7f6;
  --ink-2: #c6cbca;
  --ink-on-accent: #041512;
  --line: rgba(255, 255, 255, .12);
  --glow: rgba(43, 160, 141, .55);
  --glow-strong: rgba(43, 160, 141, .85);
  --glass-fill: rgba(255, 255, 255, .08);
  --glass-line: rgba(255, 255, 255, .12);
  --radius: 22px;
  --radius-sm: 14px;
  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(21, 115, 101, .34), transparent 62%),
    radial-gradient(900px 600px at 96% 8%, rgba(43, 160, 141, .12), transparent 60%),
    radial-gradient(1100px 800px at 50% 118%, rgba(21, 115, 101, .24), transparent 62%),
    var(--bg);
  background-attachment: fixed; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--ink); background: transparent; font: 400 1.0625rem/1.55 var(--font-body);
  overflow-x: hidden; text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-deep); color: var(--ink); }
.mono, .num, kbd { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
table.sr-only { display: block; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--accent); color: var(--ink-on-accent); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Layout */
main { flex: 1 0 auto; min-width: 0; }
.site-header, .site-footer { flex: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0; }
.section-head { max-width: 62ch; margin-bottom: 32px; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 .78rem/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-lt); margin: 0 0 14px; }
.eyebrow::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px 1px var(--glow-strong), 0 0 14px 2px var(--glow); }
.lede, .muted, .eyebrow, .hero-meta { text-shadow: 0 0 10px rgba(4, 21, 18, .85), 0 0 2px rgba(4, 21, 18, .6); }
.label { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.rule { position: relative; }
.rule::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line) 16%, var(--line) 84%, transparent),
    linear-gradient(90deg, transparent 34%, var(--accent-lt) 50%, transparent 66%);
  filter: drop-shadow(0 0 5px var(--glow-strong)); }

/* Glass. Fill, blur, hairline border, inner top highlight, refraction rim. */
.glass, .panel, .tile, .nav, .card { position: relative; border-radius: var(--radius);
  background: linear-gradient(var(--glass-fill), var(--glass-fill)), color-mix(in srgb, var(--bg-2) 62%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px rgba(0, 0, 0, .28), 0 1px 2px rgba(0, 0, 0, .25); }
.glass::after, .panel::after, .tile::after, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .16), transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.panel { container: sim / inline-size; padding: 18px; background: linear-gradient(var(--glass-fill), var(--glass-fill)), color-mix(in srgb, var(--bg-2) 86%, transparent); }
nav.glass { padding: 20px 24px; margin-bottom: 32px; border-radius: var(--radius-sm); }
nav.glass ol { margin: 0; padding-left: 1.2em; columns: 2 220px; }

/* Glow: used only on the hero heading, primary button, active nav item, chart band edge, card hover edge. */
.glow-text { text-shadow: 0 0 12px var(--glow), 0 0 48px rgba(43, 160, 141, .35); }
.glow-ring { box-shadow: 0 0 0 1px var(--glow), 0 0 22px -2px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.glow-edge, .tile:hover, .card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 0 0 1px var(--glow), 0 0 30px -6px var(--glow-strong), 0 10px 30px rgba(0, 0, 0, .28); }

/* Header */
.site-header { position: sticky; top: 12px; z-index: 50; margin-top: 12px; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px; border-radius: 999px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 999px; text-decoration: none; font: 600 1rem var(--font-head); }
.brand img { border-radius: 8px; width: 32px; height: 32px; }
.brand { color: var(--ink); }
.brand-mark { flex: none; width: 28px; height: 28px; color: var(--accent); }
.brand-name { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .94rem; font-weight: 500; transition: background .18s, color .18s; }
.nav-list a:hover { background: rgba(255, 255, 255, .1); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--ink); background: rgba(43, 160, 141, .22); box-shadow: 0 0 0 1px var(--glow), 0 0 20px -2px var(--glow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s, border-color .18s; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: none; }
.btn-primary { background: var(--accent); color: var(--ink-on-accent); }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 1px var(--glow), 0 0 16px -2px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
  50% { box-shadow: 0 0 0 1px var(--glow-strong), 0 0 40px 2px var(--glow-strong), inset 0 1px 0 rgba(255, 255, 255, .35); }
}
@media (prefers-reduced-motion: no-preference) { .btn-primary { animation: breathe 4s ease-in-out infinite; } }
.btn-primary:hover { background: #4fb09f; }
.btn-glass { color: var(--ink); background: var(--glass-fill); border-color: var(--glass-line); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-glass:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Hero and simulator */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; gap: 40px; align-items: start; }
.hero h1 { margin-bottom: .45em; }
.hero-copy { padding: 28px; margin: -28px; border-radius: var(--radius); background: radial-gradient(120% 120% at 35% 45%, rgba(4, 21, 18, .35), transparent 72%); }
.hero-mark { position: relative; isolation: isolate; display: block; width: 144px; height: 144px; margin: -10px 0 6px -8px; line-height: 0; }
.hero-mark::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -10%; width: 150%; height: 62%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(43, 160, 141, .5), rgba(21, 115, 101, .2) 55%, transparent); filter: blur(6px); }
.hero-mark img { display: block; width: 144px; height: 144px; object-fit: contain; }
.hero-mark-still { display: none !important; }
.hero-meta { margin-top: 20px; font-size: .88rem; color: var(--ink-2); }
.sim-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sim-title { font-size: 1.05rem; margin: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); font: 500 .75rem/1.5 var(--font-mono); color: var(--ink-2); white-space: nowrap; }
.tag-dev { color: var(--ink); border-color: var(--glow); }
.sim-chart { margin: 0 -4px; }
.fan { width: 100%; height: auto; aspect-ratio: 16 / 9; overflow: visible; }
.fan text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.fan .grid-line { stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.fan .axis-title { font-size: 10.5px; letter-spacing: .04em; }
/* Narrow panels: the SVG scales down, so the axis type scales up to stay legible */
@media (max-width: 600px) { .fan text { font-size: 19px; } .fan .axis-title { font-size: 17px; } }

.fan .band-wide { fill: rgba(21, 115, 101, .5); }
.fan .band-mid { fill: rgba(43, 160, 141, .45); }
.fan .band-edge { fill: none; stroke: var(--accent-lt); stroke-width: 1.2; stroke-opacity: .85; }
.fan .band-edge.band-top { stroke: var(--accent); stroke-width: 1.5; stroke-opacity: .8; }
.fan .median { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fan .placeholder-note { font-size: 12px; }
.readouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 14px; }
.readout { padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .22); border: 1px solid var(--line); min-width: 0;
  box-shadow: inset 0 1px 0 rgba(98, 179, 163, .55), inset 0 10px 14px -12px rgba(43, 160, 141, .55); }
.readout dt { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 4px; }
.readout dd { margin: 0; font: 500 1.02rem/1.25 var(--font-mono); font-size: clamp(.82rem, 2.8cqi, 1.02rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; height: auto; }   /* steps down on narrow panels, never clips */
.readout .sub { display: block; font-size: .72rem; color: var(--ink-2); margin-top: 2px; }
.meter { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); min-width: 2px; }
.caption { font-size: .82rem; color: var(--ink-2); margin: 12px 0 0; }
.controls { display: grid; gap: 14px; }
.controls > fieldset, .more { border: 0; margin: 0; padding: 0; min-width: 0; }
.ctl-grid { display: grid; gap: 14px 24px; grid-template-columns: 1fr; }
@container sim (min-width: 720px) { .ctl-grid { grid-template-columns: repeat(2, 1fr); } }
.ctl { min-width: 0; }
.ctl label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 4px; }
.ctl-row { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.ctl input[type="range"] { flex: 1 1 80px; min-width: 60px; height: 44px; margin: 0; accent-color: var(--accent); background: transparent; }
.ctl input[type="number"] { flex: none; width: calc(9.5ch + 20px); min-width: calc(9.5ch + 20px); min-height: 44px; padding: 0 8px; overflow: visible; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .3); color: var(--ink); font: 500 .95rem var(--font-mono); text-align: right; }
.ctl .unit { font: .8rem var(--font-mono); color: var(--ink-2); min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.ctl input[type="number"], .h-row input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.ctl input[type="number"]::-webkit-inner-spin-button, .ctl input[type="number"]::-webkit-outer-spin-button,
.h-row input[type="number"]::-webkit-inner-spin-button, .h-row input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tip { font-size: .78rem; color: var(--ink-2); margin: 2px 0 0; }
.ctl:not(:focus-within):not(:hover) .tip { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ctl.locked { display: flex; align-items: center; gap: 10px; min-height: 36px; color: var(--ink-2); font-size: .85rem; }
.ctl.locked .where { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; }
.lock { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.more > summary, .controls > details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: .9rem; list-style: none; }
.more > summary::-webkit-details-marker, .controls > details > summary::-webkit-details-marker { display: none; }
.more > summary::before, .controls > details > summary::before { content: "+"; font: 500 1.1rem var(--font-mono); width: 1.4em; color: var(--accent-lt); }
details[open] > summary::before { content: "\2212"; }
/* Totals / Holdings toggle (radio buttons drawn as a pill group) */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .25); }
.seg input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
.seg label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 600 .9rem var(--font-body); color: var(--ink-2); cursor: pointer; transition: background .18s, color .18s; }
.seg label:hover { color: var(--ink); }
.seg input:checked + label { color: var(--ink); background: rgba(43, 160, 141, .26); box-shadow: 0 0 0 1px var(--glow); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Holdings table: stacked cards by default, one row per holding in a wide panel */
.holdings { grid-column: 1 / -1; min-width: 0; }
.h-note { font-size: .8rem; color: var(--ink-2); margin: 0 0 10px; }
.h-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: end; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(0, 0, 0, .2); min-width: 0; }
.h-row > div { min-width: 0; }
.h-row label { display: block; font-size: .75rem; line-height: 1.25; color: var(--ink-2); margin-bottom: 3px; overflow-wrap: anywhere; }
.h-row input { display: block; width: 100%; min-width: 0; min-height: 44px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .3); color: var(--ink); font: 500 1rem var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; overflow: visible; }
.h-row input.t { text-align: left; text-transform: uppercase; }
.h-row .rm { grid-column: 1 / -1; }
.h-foot { margin-top: 10px; }
.h-sum { margin: 10px 0 0; font-size: .85rem; color: var(--ink); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.btn-sm { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-fill); color: var(--ink); font: 600 .9rem var(--font-body); cursor: pointer; }
.btn-sm:hover:not(:disabled) { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); }
.btn-sm:disabled { opacity: .5; cursor: not-allowed; }
@container sim (min-width: 640px) {
  .h-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr) auto; }
  .h-row .rm { grid-column: auto; }
}
.pro-foot { margin: 6px 0 0; }
.sim-status { font-size: .82rem; color: var(--ink-2); min-height: 1.3em; margin: 0; }

/* Cards, products, proof, bento */
.grid-2 { display: grid; gap: 16px; }
.card { padding: 24px; display: flex; flex-direction: column; gap: 4px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.card-head > img { width: 56px; height: 56px; border-radius: 13px; }
.tile3d { position: relative; display: inline-block; flex: none; isolation: isolate; line-height: 0; }
.tile3d::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -8%; width: 135%; height: 62%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(43, 160, 141, .6), rgba(21, 115, 101, .22) 55%, transparent); filter: blur(5px); }
.tile3d img { width: 120px; height: auto; }
.tile3d.lg img { width: 220px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: no-preference) { .tile3d img { animation: float 6s ease-in-out infinite; } }
.card-head h3 { margin: 0; font-size: 1.2rem; }
.card .tag { align-self: flex-start; }
.thumbs { display: flex; gap: 10px; margin: 10px 0 14px; }
.thumbs img { width: 31%; border-radius: 10px; border: 1px solid var(--line); }
.mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 13px; border: 1px dashed var(--glass-line); color: var(--ink-2); }
.mark svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.proof { display: grid; gap: 12px; }
.badge { display: block; padding: 18px 20px; text-decoration: none; border-radius: var(--radius-sm); border: 1px solid var(--glass-line); background: color-mix(in srgb, var(--bg-2) 80%, transparent); transition: box-shadow .2s var(--ease); }
.badge:hover { box-shadow: 0 0 0 1px var(--glow), 0 0 26px -6px var(--glow-strong); }
.badge strong { display: block; font: 500 1.35rem/1.2 var(--font-mono); color: var(--accent-lt); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.badge span { font-size: .9rem; color: var(--ink-2); }
[data-guide-list] { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.guide-slot { position: relative; display: grid; place-content: center; justify-items: center; gap: 10px; aspect-ratio: 16 / 9; margin-bottom: .75rem; overflow: hidden;
  border-radius: var(--radius-sm); border: 1px solid var(--glass-line);
  background: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    radial-gradient(ellipse at 50% 55%, rgba(43, 160, 141, .25), transparent 70%), rgba(0, 0, 0, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 40px rgba(0, 0, 0, .35); }
.guide-play { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--accent); background: rgba(43, 160, 141, .1);
  box-shadow: 0 0 18px -2px var(--glow-strong), inset 0 0 14px -4px var(--glow); }
.guide-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%); border-left: 14px solid var(--accent-lt); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.guide-slot-cap { font: 500 .72rem/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.contact-mail { font: 500 1.15rem var(--font-mono); overflow-wrap: anywhere; }

.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile { padding: 22px; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.tile h3 { margin-bottom: .4em; }
.tile p { color: var(--ink-2); font-size: .98rem; margin-bottom: .8em; }
.tile .readout-line { font: 500 .85rem var(--font-mono); color: var(--ink); margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }

.hero-app { display: grid; gap: 28px; align-items: center; }
.app-icon-lg { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.strip { display: flex; gap: 18px; overflow-x: auto; padding: 8px 16px 20px; margin: 0 -16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.strip figure { flex: 0 0 min(62vw, 240px); margin: 0; scroll-snap-align: center; }
.phone { padding: 7px; border-radius: 34px; background: #0a0f0e; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 14px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 603 / 1311; background: #000; }
.strip figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 10px; text-align: center; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.compare caption { text-align: left; padding: 0 0 12px; color: var(--ink-2); font-size: .88rem; }
.compare th, .compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 .8rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.compare tbody th { font-weight: 500; }
.compare td.pro { color: var(--ink); }
.compare .num { font-size: .92rem; }
/* Free and Pro cards */
.tiers { align-items: stretch; }
.tier h3 { font-size: 1.25rem; margin-bottom: .2em; }
.tier-price { font: 500 .95rem var(--font-mono); color: var(--accent-lt); margin: 0 0 12px; overflow-wrap: anywhere; }
.tier-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; font-size: .96rem; }
.tier-list li { position: relative; padding-left: 1.25em; color: var(--ink-2); overflow-wrap: anywhere; }
.tier-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tier .link-arrow { margin-top: auto; }
.cta-band { text-align: center; padding: 40px 20px; }
.cta-band .actions { justify-content: center; }
.disclaimer { font-size: .85rem; color: var(--ink-2); max-width: 70ch; }

/* Prose (legal pages) */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .5em; }
.prose a { text-decoration-thickness: 1px; }

/* Footer */
.site-footer { margin-top: 24px; padding: 32px 0 40px; border-top: 1px solid var(--line); background: rgba(4, 21, 18, .7); }
.footer-grid { display: grid; gap: 12px; }
.footer-line, .footer-note { margin: 0; color: var(--ink-2); font-size: .9rem; }
.footer-links { display: flex; gap: 4px 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Layers behind content, bottom to top: html bg, static smoke (body::before), shader canvas, content.
   The static plume is the fallback for no WebGL and for reduced motion or transparency. */
body::before { content: ""; position: fixed; inset: -8% 0; z-index: -2; pointer-events: none; opacity: 0;
  background: url("/assets/img/smoke-1920.webp") 72% 30% / cover no-repeat; mix-blend-mode: screen; filter: brightness(.72);
  -webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, .2) 6%, #000 60%); mask-image: linear-gradient(100deg, rgba(0, 0, 0, .2) 6%, #000 60%); }
/* Canvas behind everything */
#smoke { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
#smoke.on { opacity: 1; }
/* Fallback only: the static plume shows when WebGL is unavailable or motion is reduced */
html.no-smoke body::before { opacity: .55; }

/* Scroll reveals */
@keyframes reveal-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@supports not (animation-timeline: view()) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .56s var(--ease), transform .56s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Breakpoints */
@media (max-width: 599px) {
  .section { padding: 56px 0; }
  .brand-mark { width: 24px; height: 24px; }
  .hero-mark, .hero-mark img { width: 96px; height: 96px; }
  .hero-mark { margin: -6px 0 4px -4px; }
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand { padding: 0 8px 0 6px; }
  .nav-list a { padding: 0 9px; font-size: .86rem; }
  .actions .btn { width: 100%; }
  .readouts { grid-template-columns: 1fr; }
  .readout { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .readout dt { margin: 0; }
  .readout dd { text-align: right; font-size: 1.02rem; }
}
@media (min-width: 600px) {
  .proof { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr auto; align-items: center; }
  .footer-note { grid-column: 1 / -1; }
  .strip { justify-content: center; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 56px; }
  .hero { padding: 72px 0 48px; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .hero-app { grid-template-columns: auto 1fr; gap: 36px; }
  .panel { padding: 22px; }
}
@media (min-width: 1100px) { .strip { justify-content: center; overflow: visible; flex-wrap: nowrap; } .strip figure { flex-basis: 190px; } }

/* No backdrop-filter support: solid translucent fallback */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .panel, .tile, .nav, .card { background: color-mix(in srgb, var(--bg) 82%, var(--bg-3)); }
}

/* Reduced transparency: solid surfaces, no smoke, no blur, no rim */
@media (prefers-reduced-transparency: reduce) {
  html { background: var(--bg); }
  #smoke { display: none; }
  body::before { opacity: .3; }
  .glass, .panel, .tile, .nav, .card, .btn-glass { background: var(--bg-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .glass::after, .panel::after, .tile::after, .card::after { display: none; }
  .site-footer { background: var(--bg); }
  .nav-list a:hover { background: var(--bg-3); }
}

/* Reduced motion: no animation, no lift, everything visible at rest */
@media (prefers-reduced-motion: reduce) {
  .hero-mark-anim { display: none; }
  .hero-mark .hero-mark-still { display: block !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  body::before { opacity: .5; }
  .btn:hover { transform: none; }
}
@media print { #smoke, body::before { display: none; } html { background: #fff; } body { color: #000; } }

/* Trademark notice: footer and first formal mention only, never in the header lockup */
sup.tm { font-size: .55em; line-height: 0; vertical-align: super; margin-left: 1px; letter-spacing: 0; }

/* One-time handoff pulse when the visitor asks for the simulator */
@keyframes panel-pulse { 0% { box-shadow: 0 0 0 1px var(--glow), 0 0 0 0 rgba(43, 160, 141, .55); } 60% { box-shadow: 0 0 0 1px var(--glow), 0 0 48px 6px rgba(43, 160, 141, .35); } 100% { box-shadow: none; } }
.panel.pulse { animation: panel-pulse 1.1s ease-out 1; }

/* Guides: find a guide, chapter strip */
.guide-card[hidden], [data-guide-tools][hidden], .chapter-strip[hidden], .guide-empty[hidden], .guide-full[hidden] { display: none; }
.guide-tools { display: grid; gap: 8px; margin: 0 0 16px; }
.guide-search { max-width: 520px; }
.guide-search label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; }
.guide-search input { display: block; width: 100%; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--glass-line); background: rgba(0, 0, 0, .3); color: var(--ink); font: 400 1rem var(--font-body); }
.guide-search input::placeholder { color: var(--ink-2); opacity: 1; }
.guide-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 999px; border-color: var(--accent); }
.guide-count { margin: 0; min-height: 1.5em; font-size: .85rem; color: var(--ink-2); }
.guide-full { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.chapter-strip { position: sticky; top: 80px; z-index: 40; display: flex; flex-wrap: wrap; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 8px; padding: 6px; border-radius: 999px; }
nav.chapter-strip.glass { padding: 6px; margin-bottom: 8px; border-radius: 999px; }
.chapter-strip a { text-decoration: none; }
.chapter-strip a:hover { background: rgba(43, 160, 141, .22); border-color: var(--glow); }
.chapter-strip a[aria-disabled="true"] { opacity: .5; cursor: default; }
.guide-empty { margin: 16px 0; color: var(--ink-2); }
[data-chapter] h2 { scroll-margin-top: 150px; }
@media (max-width: 599px) { .chapter-strip { border-radius: var(--radius-sm); } nav.chapter-strip.glass { border-radius: var(--radius-sm); } }
@media (prefers-reduced-transparency: reduce) { .chapter-strip { background: var(--bg-2); } }
