/* Tier Two Labs: site styles. Colours: tools/brand_palette.py (generated block below).
   Type: Clash Display (headlines) + Satoshi (text) from Fontshare (ITF Free Font License, self-hosting allowed),
   JetBrains Mono (OFL) for router output. */
@font-face { font-family: "JBMono"; font-weight: 400; font-display: swap; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); }

/* tokens:start (generated by tools/brand_palette.py: Deep teal + Mist + Mint) */
:root {
    --ink: #04171b; --ink-2: #5e6d6f; --line: #c8d1d0;
    --surface: #edf4f3; --surface-2: #e3eae9; --card: #ffffff;
    --link: #197861; --pop: #2fd9a8; --pop-ink: #04171b; --pop-soft: #cff0e7;
    --term-bg: #04171b; --term-ink: #edf4f3; --term-dim: #849192; --term-ok: #2fd9a8;
    --header-bg: rgba(237, 244, 243, 0.72); --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%2304171b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --night: #04171b; --night2: #052225; --ice: #edf4f3; --glow-a: rgba(14, 143, 138, 0.42); --glow-b: rgba(70, 168, 164, 0.26); --glow-c: rgba(47, 217, 168, 0.14); --grad1: #cdf4e8; --grad2: #9be8d2; --tint: #abead9; --hero-ink2: #a7b2b2; --hero-dim: #788687; --hero-link: #2fd9a8; --pop-hover: #59e1b9;
    --radius: 18px; --radius-s: 10px;
    --wrap: 1080px; --gutter: clamp(16px, 4vw, 32px);
    --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #edf4f3; --ink-2: #94a0a1; --line: #293a3e;
    --surface: #04171b; --surface-2: #102226; --card: #17292c;
    --link: #2fd9a8; --pop: #2fd9a8; --pop-ink: #04171b; --pop-soft: #0d423a;
    --term-bg: #04171b; --term-ink: #edf4f3; --term-dim: #849192; --term-ok: #2fd9a8;
    --header-bg: rgba(4, 23, 27, 0.72); --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23edf4f3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --shadow: 0 0 0 1px #293a3e;
  }
}
/* tokens:end */

:root {
  --font-display: "Clash Display", system-ui, sans-serif;
  --font-text: "Satoshi", system-ui, sans-serif;
  --radius: 22px; --wrap: 1160px;
  --on-dark: color-mix(in srgb, var(--ice) 88%, var(--night));
  --hair: color-mix(in srgb, var(--ice) 11%, transparent);
  --hair-2: color-mix(in srgb, var(--ice) 6%, transparent);
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--surface); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--pop); outline-offset: 3px; border-radius: 8px; }
code, pre, .mono { font-family: "JBMono", ui-monospace, monospace; }
code { font-size: .9em; background: var(--pop-soft); padding: .05em .35em; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--card); padding: 8px 12px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; word-spacing: .12em; }
.display { font-size: clamp(2.8rem, 8vw, 6.4rem); line-height: 1; letter-spacing: -0.025em; font-weight: 600; }
h2, .h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.5; color: var(--ink-2); }
.eyebrow { font: 600 .74rem/1 "JBMono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--link); margin: 0 0 18px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pop) 22%, transparent); }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; line-height: 1.5; }
.grad { background: linear-gradient(100deg, var(--ice) 0%, var(--grad1) 45%, var(--grad2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Floating pill navigation (always dark glass) ---------- */
.site-header { position: sticky; top: 14px; z-index: 50; padding: 0 var(--gutter); margin-bottom: -76px; }
.nav {
  max-width: var(--wrap); margin: 0 auto; height: 62px; padding: 0 10px 0 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: color-mix(in srgb, var(--night) 66%, transparent); color: var(--ice);
  border: 1px solid var(--hair); border-radius: 999px;
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
  box-shadow: 0 10px 40px color-mix(in srgb, var(--night) 25%, transparent);
}
.logo img { height: 28px; width: auto; display: none; }
.logo .d.full { display: block; }
@media (max-width: 600px) { .logo .full { display: none !important; } .logo .d.mark { display: block; } }
.nav ul { display: flex; align-items: center; gap: clamp(4px, 1.4vw, 8px); list-style: none; margin: 0; padding: 0; font-size: .95rem; font-weight: 500; }
.nav ul a { color: color-mix(in srgb, var(--ice) 78%, transparent); white-space: nowrap; padding: 9px 14px; border-radius: 999px; transition: background-color .2s, color .2s; display: block; }
.nav ul a:hover { color: var(--ice); background: var(--hair-2); text-decoration: none; }
.nav ul a[aria-current="page"] { color: var(--ice); background: var(--hair); }
.nav ul .nav-cta a { background: var(--pop); color: var(--pop-ink); font-weight: 700; }
.nav ul .nav-cta a:hover { background: var(--pop-hover); color: var(--pop-ink); }
@media (max-width: 600px) { .nav ul a { padding: 8px 10px; font-size: .9rem; } .nav ul .hide-s { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--font-text); letter-spacing: .005em; isolation: isolate; overflow: hidden;
  background: var(--pop); color: var(--pop-ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset, 0 10px 30px -12px var(--pop);
  transition: transform 120ms ease-out, box-shadow .25s ease, background-color .2s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.5) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 4s ease-in-out infinite; }
.btn .arr { transition: transform .2s ease; }
.btn:hover { text-decoration: none; background: var(--pop-hover); box-shadow: 0 0 0 1px rgba(255,255,255,.22) inset, 0 14px 36px -12px var(--pop); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line) inset; }
.btn.secondary::after { display: none; }
.btn.secondary:hover { box-shadow: 0 0 0 1px var(--ink-2) inset; }
.btn.link { background: none; color: var(--link); padding: 0 6px; box-shadow: none; }
.btn.link::after { display: none; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 8.5vw, 112px) 0; position: relative; }
.band { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { margin: 16px 0 0; }
.section-head.center, .center { text-align: center; margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- Dark hero ---------- */
.hero {
  --ink: var(--ice); --ink-2: var(--hero-ink2); --line: var(--hair); --card: color-mix(in srgb, var(--night) 88%, var(--ice));
  --link: var(--hero-link); --pop-soft: var(--hair-2); --surface: var(--night); --surface-2: var(--hair-2);
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background: var(--night); color: var(--ink); overflow: hidden;
  padding-top: clamp(150px, 18vw, 200px); padding-bottom: clamp(64px, 8vw, 96px);
}
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(42% 38% at 70% 14%, var(--glow-a), transparent 70%),
    radial-gradient(38% 34% at 24% 6%, var(--glow-b), transparent 70%),
    radial-gradient(30% 28% at 84% 30%, var(--glow-c), transparent 70%);
  filter: blur(8px); opacity: .95; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--hair-2) 1px, transparent 1px), linear-gradient(90deg, var(--hair-2) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 25%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 55% at 50% 25%, #000 30%, transparent 80%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero .lead { max-width: 640px; margin: 26px 0 0; }
.hero .btn.secondary { color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ice) 24%, transparent) inset; }
.hero .btn.secondary:hover { background: var(--hair-2); }
.net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(#000 0%, #000 45%, transparent 88%); mask-image: linear-gradient(#000 0%, #000 45%, transparent 88%); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; margin-bottom: 28px;
  border-radius: 999px; background: var(--hair-2); border: 1px solid var(--hair); color: var(--ink); font-size: .88rem; font-weight: 500; }
.pill b { background: var(--ice); color: var(--night); border-radius: 999px; padding: 3px 10px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }

/* Home: centred hero */
.hero.home { text-align: center; }
.hero.home .lead { margin-left: auto; margin-right: auto; }
.hero.home .actions { justify-content: center; }

/* Product shot with light beams */
.shot { margin-top: clamp(52px, 7vw, 84px); position: relative; perspective: 1600px; text-align: left; }
.shot::before { content: ""; position: absolute; inset: 6% 6% -8%; background: radial-gradient(closest-side, var(--glow-a), transparent); filter: blur(40px); z-index: -1; }
.beams { position: absolute; left: 50%; top: -120px; width: min(1400px, 140vw); height: 420px; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background:
    conic-gradient(from 200deg at 50% 0%, transparent 0deg, color-mix(in srgb, var(--grad2) 38%, transparent) 12deg, transparent 26deg),
    conic-gradient(from 134deg at 50% 0%, transparent 0deg, color-mix(in srgb, var(--grad2) 30%, transparent) 10deg, transparent 22deg);
  -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); filter: blur(2px); opacity: .8; }
.window { border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--night2) 86%, transparent);
  border: 1px solid var(--hair); box-shadow: 0 0 0 1px color-mix(in srgb, var(--night) 60%, transparent), 0 40px 120px -30px rgba(0,0,0,.85);
  transform: rotateX(10deg) scale(.97); transform-origin: 50% 0; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.shot.in .window, .window:hover { transform: none; }
.window .bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--hair-2); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--ice) 18%, var(--night)); }
.window .bar span { margin-left: 12px; font: 500 .8rem/1 "JBMono", monospace; color: var(--hero-dim); }
.window .panes { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); }
.window .ticketpane { padding: 26px; border-right: 1px solid var(--hair-2); }
.window .ticketpane .tag { display: inline-block; font: 600 .72rem/1 "JBMono", monospace; color: var(--tint); border: 1px solid color-mix(in srgb, var(--tint) 40%, transparent); padding: 5px 8px; border-radius: 6px; margin-bottom: 14px; }
.window .ticketpane p { margin: 0 0 14px; color: var(--on-dark); font-size: 1.02rem; line-height: 1.5; }
.window .ticketpane ul { margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--hero-dim); }
.window .ticketpane li { padding: 7px 0; border-top: 1px dashed var(--hair); display: flex; justify-content: space-between; gap: 10px; }
.window .ticketpane li b { color: var(--on-dark); font-weight: 500; }
.console { margin: 0; padding: 22px 24px; min-height: 300px; font: 400 .86rem/1.7 "JBMono", monospace; color: var(--on-dark); white-space: pre-wrap; overflow: hidden; }
.console .p { color: var(--hero-dim); } .console .ok { color: var(--pop); } .console .good { color: #7ef0c1; }
.caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--pop); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 760px) { .window .panes { grid-template-columns: 1fr; } .window .ticketpane { border-right: 0; border-bottom: 1px solid var(--hair-2); } .console { min-height: 240px; font-size: .78rem; } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; text-align: left; border-top: 1px solid var(--hair); }
.stats div { padding: 26px 24px 4px; border-left: 1px solid var(--hair); }
.stats div:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; font: 600 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--font-display); letter-spacing: -.02em; color: var(--ice); }
.stats span { font-size: .88rem; color: var(--hero-ink2); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* Topic marquee */
.marquee { margin-top: 56px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee ul { display: flex; gap: 0; width: max-content; list-style: none; margin: 0; padding: 0; animation: slide 46s linear infinite; }
.marquee li { font: 500 clamp(1.1rem, 2vw, 1.5rem)/1 var(--font-display); letter-spacing: -.01em; color: color-mix(in srgb, var(--ice) 42%, transparent); white-space: nowrap; padding: 10px 0; }
.marquee li::after { content: "/"; color: var(--pop); opacity: .7; margin: 0 22px; }
.marquee:hover ul { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.band .card { box-shadow: none; }
.card p { margin: 10px 0 0; color: var(--ink-2); }
/* Spotlight that follows the pointer (set by site.js) */
.spot { overflow: hidden; isolation: isolate; }
.spot::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--pop) 11%, transparent), transparent 60%); }
.spot:hover::before { opacity: 1; }

/* How it works: three hops joined by a link with a packet */
.hops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; position: relative; }
.hops::before { content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.hops::after { content: ""; position: absolute; top: 54px; left: 16%; width: 10px; height: 10px; border-radius: 50%; background: var(--pop); z-index: 1;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--pop) 22%, transparent); animation: hop 5s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes hop { 0% { left: 16%; } 45%, 50% { left: calc(50% - 5px); } 95%, 100% { left: calc(84% - 10px); } }
.hops .hop { padding-top: 26px; z-index: 2; position: relative; text-align: center; }
.hops .hop p { margin: 10px auto 0; color: var(--ink-2); }
.hops .node { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--surface); font: 600 1.25rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--surface), 0 14px 30px -12px color-mix(in srgb, var(--pop) 50%, transparent); }
.band .hops .node { box-shadow: 0 0 0 6px var(--surface-2); }
.hops .hop p { max-width: 300px; }
@media (max-width: 760px) { .hops { grid-template-columns: 1fr; } .hops::before, .hops::after { display: none; } }
.steps .card { transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
.step-n { font: 600 3.2rem/1 var(--font-display); letter-spacing: -.04em; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1.5px var(--ink); opacity: .9; }

/* Bento */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bento .card { overflow: hidden; }
.bento .b-wide { grid-column: span 4; } .bento .b-tall { grid-column: span 2; grid-row: span 2; }
.bento .b-third { grid-column: span 2; } .bento .b-half { grid-column: span 3; }
.bento .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--night); display: grid; place-items: center; margin-bottom: 18px; }
.bento .ico svg { width: 22px; height: 22px; stroke: var(--tint); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bento .mini { margin-top: 20px; border-radius: 14px; background: var(--night); color: var(--on-dark); padding: 16px 18px; font: .8rem/1.65 "JBMono", monospace; white-space: pre; overflow-x: auto; }
.bento .mini .ok { color: var(--pop); } .bento .mini .p { color: var(--hero-dim); }
.bento .dark { background: var(--night); color: var(--ice); border-color: var(--hair-2); }
.bento .dark::after { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 70%; background: radial-gradient(closest-side, var(--glow-a), transparent); pointer-events: none; }
.bento .dark p { color: var(--hero-ink2); }
.bento .dark .bigtxt { font: 600 clamp(3rem, 6vw, 4.8rem)/1 var(--font-display); letter-spacing: -.04em; margin: 8px 0 6px; }
.bento .dark .bigtxt span { color: var(--pop); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .bento .b-wide, .bento .b-tall, .bento .b-third, .bento .b-half { grid-column: span 2; grid-row: auto; } }

/* Inside every lab: open layout, numbered rows */
.inside { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.inside-aside { position: sticky; top: 110px; }
.tested { display: flex; align-items: center; gap: 20px; margin: 36px 0 28px; }
.tested strong { font: 600 clamp(3.4rem, 6vw, 5rem)/1 var(--font-display); letter-spacing: -.045em; }
.tested strong span { color: var(--pop); }
.tested p { margin: 0; color: var(--ink-2); max-width: 230px; font-size: .95rem; line-height: 1.45; }
.inside .mini { margin: 0; border-radius: 14px; background: var(--night); color: var(--on-dark); padding: 16px 18px; font: .8rem/1.65 "JBMono", monospace; white-space: pre; overflow-x: auto; }
.inside .mini .ok { color: var(--pop); } .inside .mini .p { color: var(--hero-dim); }
.rows { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.rows li { display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 26px 0; border-top: 1px solid var(--line); transition: padding-left .3s cubic-bezier(.2,.8,.2,1); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li:hover { padding-left: 8px; }
.rows .idx { font: 500 .8rem/1.9 "JBMono", monospace; color: var(--link); }
.rows h3 { font-size: 1.35rem; }
.rows p { margin: 8px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .inside { grid-template-columns: 1fr; } .inside-aside { position: static; } }

/* Product row (home) */
.product { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 36px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: inherit; position: relative; }
.product::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--pop); transition: width .6s cubic-bezier(.2,.8,.2,1); }
.product:hover { text-decoration: none; }
.product:hover::before { width: 100%; }
.product h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.018em; margin: 16px 0 0; }
.product p { margin: 12px 0 0; color: var(--ink-2); max-width: 620px; }
.product-side { display: grid; justify-items: end; gap: 6px; text-align: right; }
.product-side strong { font: 600 clamp(2.4rem, 4vw, 3.4rem)/1 var(--font-display); letter-spacing: -.04em; }
.product-side span { font-size: .9rem; color: var(--ink-2); }
.product-side .go { font-size: 1.6rem; color: var(--ink); transition: transform .3s; }
.product:hover .go { transform: translateX(6px); }
.soon-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: baseline; padding: 24px 0; }
.soon-h { margin: 0; font-weight: 700; }
.soon-list { margin: 0; color: var(--ink-2); }
.soon-list i { font-style: normal; color: var(--pop); margin: 0 12px; }
.soon-list span { font: 500 .72rem/1 "JBMono", monospace; text-transform: uppercase; letter-spacing: .08em; margin-left: 12px; white-space: nowrap; color: var(--ink-2); opacity: .8; }
@media (max-width: 760px) { .product { grid-template-columns: 1fr; } .product-side { justify-items: start; text-align: left; } .soon-row { grid-template-columns: 1fr; gap: 12px; } }

/* Ticket + terminal sample (course page) */
.sample { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.ticket { background: var(--card); border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ticket .from { font-size: .82rem; color: var(--ink-2); margin-bottom: 10px; }
.ticket blockquote { margin: 0; font: 500 1.2rem/1.45 var(--font-text); }
.terminal { background: var(--night); color: var(--on-dark); border-radius: var(--radius); overflow: hidden; font: 400 .84rem/1.6 "JBMono", monospace; box-shadow: 0 30px 80px -30px var(--night); border: 1px solid var(--hair-2); }
.terminal .bar { display: flex; gap: 7px; padding: 14px 16px; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--ice) 18%, var(--night)); }
.terminal pre { margin: 0; padding: 4px 20px 22px; overflow-x: auto; white-space: pre; }
.terminal .p { color: var(--hero-dim); } .terminal .ok { color: var(--pop); }
.caption { font-size: .84rem; color: var(--ink-2); margin-top: 10px; }

/* ---------- Catalogue and course cards ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .88rem/1 var(--font-text); cursor: pointer; transition: transform 100ms ease-out, background-color .15s, border-color .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.hero .chip[aria-pressed="true"] { background: var(--ice); color: var(--night); border-color: var(--ice); }
.course { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s; }
a.course:hover { text-decoration: none; transform: translateY(-4px); border-color: var(--ink-2); }
a.course:active { transform: scale(0.985); }
/* Featured: a slowly rotating light runs around the border */
.course.feature { border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
              conic-gradient(from var(--ang), var(--line) 0deg, var(--pop) 40deg, var(--grad2) 80deg, var(--line) 130deg, var(--line) 360deg) border-box;
  animation: spin 7s linear infinite; box-shadow: 0 24px 60px -32px var(--glow-a); }
a.course.feature:hover { border-color: transparent; }
@keyframes spin { to { --ang: 360deg; } }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.hero .badge { background: var(--hair-2); color: var(--hero-ink2); }
.badge.live { background: var(--surface-2); color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.badge.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pop); }
.hero .badge.live { background: var(--hair); color: var(--ice); }
.course .meta { margin-top: auto; padding-top: 14px; font-size: .9rem; color: var(--ink-2); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.course .meta strong { color: var(--ink); font: 600 1.5rem/1 var(--font-display); }
.course[hidden] { display: none; }
.course.planned { opacity: .72; }
.soon { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.soon li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.soon li span { color: var(--ink-2); font-size: .85rem; }

/* ---------- Lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%; background: var(--pop-soft) var(--check) center/20px no-repeat; }

/* Trust: big statement + checks */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.trust .quote { font: 500 clamp(1.3rem, 2.2vw, 1.7rem)/1.4 var(--font-display); letter-spacing: -.01em; margin: 26px 0 0; padding-left: 22px; border-left: 2px solid var(--pop); color: var(--ink); }
@media (max-width: 820px) { .trust { grid-template-columns: 1fr; gap: 32px; } }

/* Modules on the course page */
.modules { display: grid; gap: 14px; }
details.module { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s; }
details.module[open] { border-color: var(--ink-2); }
details.module summary { list-style: none; cursor: pointer; padding: 24px 28px; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; }
details.module summary::-webkit-details-marker { display: none; }
details.module summary .w { font: 600 1.4rem/1 var(--font-display); color: var(--link); }
details.module summary .n { grid-column: 1 / -1; font-size: .9rem; color: var(--ink-2); }
details.module ol { margin: 0; padding: 0 28px 24px; list-style: none; color: var(--ink-2); columns: 2 320px; column-gap: 28px; }
details.module ol li { padding: 4px 0; break-inside: avoid; }
details.module ol li span { font-family: "JBMono", monospace; font-size: .8rem; color: var(--link); margin-right: 8px; }

/* Price */
.price-card { max-width: 560px; margin: 0 auto; }
.price { font: 600 4rem/1 var(--font-display); letter-spacing: -0.04em; margin: 14px 0 8px; }
.price s { font-size: 1.6rem; color: var(--ink-2); margin-left: 10px; letter-spacing: 0; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq.center { margin: 0 auto; text-align: left; }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0 18px; }
.faq summary { cursor: pointer; font: 600 1.15rem/1.4 var(--font-text); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--link); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 4px 0 0; color: var(--ink-2); }

/* Sign-up */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 540px; }
.signup input { flex: 1 1 240px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 400 1rem/1 var(--font-text); }
.signup input::placeholder { color: var(--ink-2); }
.signup input:focus { outline: 2px solid var(--pop); outline-offset: 1px; border-color: transparent; }
.fineprint { font-size: .84rem; color: var(--ink-2); margin-top: 12px; max-width: 540px; }

/* Final call to action band */
.cta-band { background: var(--night); color: var(--ice); overflow: hidden; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: auto -10% -60%; height: 120%; background: radial-gradient(40% 50% at 50% 50%, var(--glow-a), transparent 70%); filter: blur(10px); }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--hair-2) 1px, transparent 1px), linear-gradient(90deg, var(--hair-2) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(50% 70% at 50% 100%, #000, transparent); mask-image: radial-gradient(50% 70% at 50% 100%, #000, transparent); }
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band .lead { color: var(--hero-ink2); max-width: 560px; margin: 18px auto 0; }
.cta-band .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--night); color: var(--hero-dim); padding: 56px 0 64px; font-size: .86rem; border-top: 1px solid var(--hair-2); }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--hero-ink2); }
.site-footer p { margin: 24px 0 0; max-width: 760px; }
.site-footer .flogo img { height: 26px; }

/* Entrance: content materialises in place, once */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms ease, transform 800ms cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; }
  .window { transform: none; }
  .net { display: none; }
  .marquee ul { flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee ul li[aria-hidden] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --ink-2: var(--ink); } .card, .ticket, details.module { border-color: var(--ink); } }

/* Legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 10px; letter-spacing: -.015em; }
.legal p { color: var(--ink-2); margin: 0 0 14px; }
.legal p strong { color: var(--ink); }

/* ---------- Troubleshooting notes ---------- */
.note-title { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.08; }
.note-head .eyebrow a { color: inherit; }
.note { max-width: 780px; }
.note h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 44px 0 12px; }
.note p, .note li { color: var(--ink-2); line-height: 1.65; }
.note p { margin: 0 0 14px; }
.note strong { color: var(--ink); }
.note ol, .note ul { margin: 0 0 16px; padding-left: 1.3em; }
.note pre { background: var(--night); color: var(--on-dark); border: 1px solid var(--hair-2); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 18px; overflow-x: auto; font: 400 .84rem/1.6 "JBMono", monospace; white-space: pre; }
.note pre code { background: none; padding: 0; font-size: inherit; color: inherit; }
.note-cta { margin-top: 48px; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--hair); }
.note-cta p { margin-bottom: 18px; }
.note .note-list { list-style: none; padding: 0; margin: 0 0 8px; }
.note-list li { padding: 14px 0; border-top: 1px solid var(--hair); }
.note-list a { display: block; color: var(--ink); }
.note-list span { display: block; font-size: .95rem; margin-top: 4px; }

/* Workbook pages (course page "See inside") */
.pages { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pages figure { margin: 0; }
.pages a { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4 / 5; background: #fff; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.pages a:hover, .pages a:focus-visible { transform: translateY(-4px); }
.pages img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pages figcaption { margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .pages a { transition: none; } .pages a:hover { transform: none; } }
