/* Self-hosted fonts — no third-party origins on the critical path. */
/* @font-face rules live in src/lib/fonts.ts and are inlined in the document head. */

/* page-to-page: a short cross-fade between documents, the nav held in place.
   Real navigations throughout, so hover prerendering still applies. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  body > nav { view-transition-name: site-nav; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
}

/* Targa visual system (V3 bento). Every colour, radius, font, spacing, motion and z-index
   value is a token from tokens.css, generated in targa-design (dist/css/site.css) and copied
   here by its sync script: nothing below defines one of its own. Green accent, light/dark/
   high-contrast themes, rounded corners (--radius / -sm / -xs), bare mono eyebrows, bento
   compositions. Inter display + body, JetBrains Mono for data. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.7 "Inter", var(--fl-sans, ui-sans-serif), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; letter-spacing: -.005em;
  overflow-x: hidden;
  transition: background var(--dur-base), color var(--dur-base);
}
/* fine grain overlay for atmosphere */
body::before {
  content: ""; position: fixed; inset: 0; z-index: var(--z-raised); pointer-events: none; opacity: .02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::before { opacity: .05; filter: invert(1); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* focus: an outline (it survives forced-colors mode; a box-shadow does not), drawn outside
   the element so its neighbour is the page; the sticky nav never covers the focused element */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
html { scroll-padding-top: 80px; }

/* --- type --- */
h1, h2, h3 { letter-spacing: -.02em; font-weight: 600; line-height: 1.14; margin: 0; text-wrap: balance; }
/* display type: medium-bold, not heavy, with room between the lines */
.display { font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.mono { font-family: "JetBrains Mono", var(--fl-mono, ui-monospace), Menlo, monospace; }
.accent { color: var(--accent-text); }
.muted { color: var(--muted); }
.good { color: var(--ok-text); }

/* eyebrows — bare letterspaced accent mono. No pill, no border, no chip. */
.eyebrow {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .22em;
  text-transform: uppercase; color: var(--accent-text); margin: 0 0 18px;
}
h2.eyebrow { font-weight: 400; line-height: inherit; }

/* --- layout --- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 6vw, 40px); position: relative; z-index: var(--z-content); }
section { padding: 112px 0; position: relative; z-index: var(--z-content); }
.lead { font-size: var(--text-lg); line-height: 1.7; color: var(--muted); max-width: 54ch; }
.section-head { max-width: 64ch; margin: 0 0 60px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--muted); margin-top: 18px; font-size: var(--text-lg); line-height: 1.75; max-width: 56ch; }

/* --- reveal machinery (entrance only — never scroll-coupled) --- */
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s var(--ease) forwards; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { opacity: .4; } }

/* --- buttons --- */
 padding: 8px 15px; 
/* --- glass sticky nav --- */
nav {
  position: sticky; top: 0; z-index: var(--z-header); background: var(--nav-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 0;
}
/* the bottom edge is a hairline that fades out toward both sides */
nav::before {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--glass-edge, var(--line-2)) 14%, var(--glass-edge, var(--line-2)) 86%, transparent);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-block; font-weight: 600; font-size: var(--text-lg); letter-spacing: -.03em; }
.brand .sh { display: inline-block; width: 4px; height: 4px; margin-inline-start: 2px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 5px var(--ok); animation: pulse 2s infinite; vertical-align: baseline; }
.navlinks { display: flex; gap: 28px; align-items: center; }
.navlinks a { color: var(--muted); font-size: var(--text-md); transition: color var(--dur-base); }
.navlinks a:hover, .navlinks a.active { color: var(--fg); }
.navlinks a.btn-primary, .navlinks a.btn-primary:hover { color: var(--on-accent); }
.nav-toggle {
  display: none; appearance: none; background: var(--glass); border: 0;
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  box-shadow: inset 0 0 0 1px var(--glass-edge, var(--line-2)), inset 0 1px 0 var(--glass-hi);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform var(--dur-slow) var(--spring), background var(--dur-base);
}
.nav-toggle:active { transform: scale(.94); transition-duration: var(--dur-fast); }
.nav-toggle span { display: block; width: 16px; height: 1.5px; border-radius: var(--radius-xs); background: var(--fg); transition: transform var(--dur-base) var(--ease), opacity var(--dur-base); }
.nav-toggle span:nth-child(2) { display: none; }
nav.open .nav-toggle span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
nav.open .nav-toggle span:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

/* --- ambient aurora — very slow, time-based only --- */
.aurora { position: absolute; inset: 0; pointer-events: none; z-index: var(--z-raised); overflow: hidden; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(10px); will-change: transform; }
.aurora .a1 {
  top: -260px; inset-inline-start: 16%; width: 960px; height: 660px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  animation: drift1 84s ease-in-out infinite alternate;
}
.aurora .a2 {
  top: 520px; inset-inline-end: -320px; width: 760px; height: 760px; opacity: .7;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 68%);
  animation: drift2 104s ease-in-out infinite alternate;
}
.aurora .a3 {
  bottom: -160px; inset-inline-start: -280px; width: 720px; height: 720px; opacity: .55;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 68%);
  animation: drift1 120s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(120px,60px,0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0,0,0) scale(1.05); } to { transform: translate3d(-140px,-40px,0) scale(.94); } }

/* --- two-column hero --- */
.hero { padding: 128px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 4.6vw, 60px); max-width: 15ch; margin: 36px 0 0; }
.hero .lead { margin: 30px 0 0; font-size: var(--text-lg); }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* browser-framed product visual — the live stage */
.hero-visual { position: relative; z-index: var(--z-content); min-width: 0; }
.scene3d { perspective: 1400px; position: relative; --rxn: 0; --ryn: 0; }
.rig {
  position: relative; transform-style: preserve-3d; will-change: transform;
  transform: rotateX(calc(var(--rxn) * 1deg)) rotateY(calc(var(--ryn) * 1deg));
}
.browser {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--ink) 35%, transparent), 0 2px 6px color-mix(in srgb, var(--ink) 6%, transparent);
  transition: box-shadow var(--dur-slow) var(--ease), border-color var(--dur-slow);
}
.browser.raid {
  border-color: color-mix(in srgb, var(--alert) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--alert) 55%, transparent), 0 0 44px -8px color-mix(in srgb, var(--alert) 45%, transparent),
              0 40px 80px -40px color-mix(in srgb, var(--ink) 35%, transparent);
}
[data-theme="dark"] .browser { box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--shade) 80%, transparent), 0 2px 6px color-mix(in srgb, var(--shade) 40%, transparent); }
[data-theme="dark"] .browser.raid {
  border-color: color-mix(in srgb, var(--alert) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--alert) 60%, transparent), 0 0 46px -6px color-mix(in srgb, var(--alert) 40%, transparent), 0 40px 80px -40px color-mix(in srgb, var(--shade) 80%, transparent);
}
.browser .bchrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.browser .bdot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.browser .burl {
  flex: 1; min-width: 0; margin-inline-start: 8px; font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--muted);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 4px 12px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.raidtag {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .16em; color: var(--alert-text);
  flex: none; opacity: 0; transform: translateX(4px); transition: opacity var(--dur-base), transform var(--dur-base);
  white-space: nowrap;
}
.browser.raid .raidtag { opacity: 1; transform: none; animation: raidblink 1s infinite; }
@keyframes raidblink { 50% { opacity: .35; } }
.browser .bbody { padding: 12px; background: var(--bg-2); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hb { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; min-width: 0; }
.hb .k { font-size: var(--text-xs); color: var(--muted); font-family: "JetBrains Mono", var(--fl-mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.hb .v { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-lg); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.hb .v.acc { color: var(--accent-text); }
.hb .v.good { color: var(--ok-text); }
.hb .sub { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--faint); margin-top: 7px; letter-spacing: .04em; }
.hb .v.bump { animation: bump .55s var(--ease); }
@keyframes bump { 30% { transform: translateY(-3px) scale(1.05); } }
.hb .kspark { display: block; width: 100%; height: 16px; margin-top: 7px; color: var(--accent-text); }
.hb-feed {
  grid-column: span 3; background: var(--code-bg); border-color: var(--code-bg); color: var(--code-fg);
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); line-height: 2.05; padding: 10px 16px;
  position: relative;
}
[data-theme="dark"] .hb-feed { border-color: var(--line-2); }
.fwrap { height: 146px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.hb-feed .frow {
  display: flex; gap: 10px; align-items: baseline; min-width: 0; flex: none;
  padding: 0 6px; animation: rowin .45s var(--ease);
}
@keyframes rowin { from { opacity: 0; transform: translateY(9px); } }
.hb-feed .frow .txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity var(--dur-base); }
.hb-feed .vd { color: var(--alert-text); font-weight: 600; min-width: 56px; flex: none; }
.hb-feed .vd.ok { color: var(--ok-text); }
.hb-feed .vd.pend { color: var(--faint); font-weight: 400; }
.hb-feed .sc { color: var(--accent-text); margin-inline-start: auto; flex: none; }
.hb-feed .frow.spam { background: color-mix(in srgb, var(--alert) 9%, transparent); box-shadow: inset 2px 0 0 var(--alert); }
.hb-feed .frow.banned .txt { text-decoration: line-through; opacity: .4; }
.hb-feed .frow.banned .sc { opacity: .4; }
.hb-feed .vd.stampin { animation: stamp .4s var(--pop); }
@keyframes stamp { from { transform: scale(1.9); opacity: 0; } }
.toast {
  position: absolute; inset-inline-start: 50%; bottom: 10px; z-index: var(--z-content);
  transform: translateX(-50%) translateY(8px); opacity: 0;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  display: flex; align-items: center; gap: 9px; white-space: nowrap;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .06em; color: var(--code-fg);
  padding: 7px 13px; border-radius: var(--radius-sm); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--shade) 70%, transparent); pointer-events: none;
}
[data-theme="dark"] .toast { background: var(--surface); }
.toast i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 7px var(--ok); flex: none; }
.toast b { color: var(--ok-text); font-weight: 500; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.hero-cap { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--faint); margin-top: 14px; letter-spacing: .04em; }

/* floating chips at depth — pointer-reactive, never scroll-driven */
.fl {
  position: absolute; z-index: var(--z-content); will-change: transform;
  transform: translate3d(calc(var(--ryn) * var(--pf, 4px)), calc(var(--rxn) * calc(var(--pf, 4px) * -1)), var(--z, 60px));
}
.fl .inner { animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
@keyframes float { 50% { transform: translateY(-5px); } }
.chip-ban { top: -20px; inset-inline-start: -38px; --z: 120px; --pf: 7px; }
.chip-ban .inner {
  display: flex; align-items: center; gap: 9px; padding: 10px 15px;
  background: var(--code-bg); border: 1px solid color-mix(in srgb, var(--code-fg) 12%, var(--code-bg)); border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--code-fg);
  box-shadow: 0 30px 50px -22px color-mix(in srgb, var(--ink) 50%, transparent);
}
.chip-ban .verdict { color: var(--alert-text); font-weight: 600; letter-spacing: .08em; }
.chip-ban .score { color: var(--accent-text); }
.chip-ban .why { color: color-mix(in srgb, var(--code-fg) 55%, var(--code-bg)); }
/* the two right-hand chips hang off the frame's corners so they never sit on
   a tile label or a verdict row */
.chip-cost { bottom: -34px; inset-inline-end: -30px; --z: 88px; --pf: 5px; }
/* …and the caption wraps before the corner the cost chip hangs from */
@media (min-width: 601px) and (prefers-reduced-motion: no-preference) { .hero-cap { padding-inline-end: 180px; } }
.chip-cost .inner {
  display: flex; align-items: baseline; gap: 8px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", var(--fl-mono, monospace); box-shadow: 0 26px 46px -20px color-mix(in srgb, var(--ink) 42%, transparent);
}
.chip-cost .n { font-size: var(--text-lg); color: var(--ok-text); letter-spacing: -.02em; }
.chip-cost .k { font-size: var(--text-xs); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.chip-why { inset-inline-end: -38px; top: -30px; --z: 140px; --pf: 8px; }
.chip-why .inner {
  padding: 10px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--muted);
  box-shadow: 0 32px 54px -22px color-mix(in srgb, var(--ink) 46%, transparent);
}
.chip-why b { color: var(--accent-text); font-weight: 500; }
[data-theme="dark"] .chip-cost .inner, [data-theme="dark"] .chip-why .inner { box-shadow: 0 30px 50px -18px color-mix(in srgb, var(--shade) 80%, transparent); }
@media (max-width: 1120px) { .chip-ban { inset-inline-start: -10px; } .chip-cost { inset-inline-end: -10px; } .chip-why { inset-inline-end: -12px; } }

/* ============================================================
   THE BENTO GRID
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; grid-auto-rows: minmax(150px, auto); }
.bento.bento-2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
.bento.bento-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(120px, auto); }
.card h3 { font-size: var(--text-lg); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: var(--text-base); margin: 0; line-height: 1.7; }
.c2 { grid-column: span 2; }
.r2 { grid-row: span 2; }

/* big mono stat cells — count up once on entry */
/* a figure never outgrows its card: with long local units (US$7,2Mrd.) the type
   steps down to fit the card's width, measured in monospace cells (--ch) */
.b-stat { container-type: inline-size; }
.b-stat .n { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: min(clamp(32px, 3.4vw, 44px), calc(100cqi / (var(--ch, 6) * .62))); color: var(--accent-text); letter-spacing: -.02em; margin-top: auto; line-height: 1; font-variant-numeric: tabular-nums; }
.b-stat .l { color: var(--muted); font-size: var(--text-sm); margin-top: 10px; }
/* the kicker on a figure names its source and links to it */
.b-stat .card-eyebrow a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.b-stat .card-eyebrow a:hover { text-decoration-color: currentColor; }

/* live feed cell — dark terminal, 2x2 */
.b-feed { background: var(--code-bg); border-color: var(--code-bg); padding: 0; color: var(--code-fg); }
.b-feed:hover { box-shadow: 0 30px 70px -38px var(--shade); }
[data-theme="dark"] .b-feed { border-color: var(--line-2); }
.feed-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--code-fg) 8%, transparent); }
.feed-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--code-fg) 18%, var(--code-bg)); }
.feed-bar .t { margin-inline-start: 10px; font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--faint); }
.feed-body { padding: 18px 20px; font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-sm); line-height: 2.05; color: var(--code-fg); flex: 1; }
.feed-body .row { display: flex; gap: 12px; opacity: 0; animation: rise .5s var(--ease) forwards; flex-wrap: wrap; }
.feed-body .verdict { color: var(--alert); font-weight: 600; min-width: 62px; }
.feed-body .pass { color: var(--ok); }
.feed-body .why { color: var(--muted); flex-basis: 100%; font-size: var(--text-xs); line-height: 1.5; margin: -6px 0 6px; margin-inline-start: 74px; }
.feed-body .score { color: var(--accent); margin-inline-start: auto; }
.feed-foot { padding: 10px 20px 16px; font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--faint); border-top: 1px solid color-mix(in srgb, var(--code-fg) 8%, transparent); }

/* /why command cell */
.b-why .term {
  background: var(--code-bg); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px;
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); line-height: 1.85; color: var(--code-fg);
  overflow-x: auto;
}
[data-theme="dark"] .b-why .term { border: 1px solid var(--line-2); }
.b-why .term .p1 { color: var(--faint); }
.b-why .term .cmd { color: var(--hi); }
.b-why .term .p2 { color: var(--accent); }
.b-why .term .rsn { color: var(--muted); }
.b-why .term .bad { color: var(--alert); }

/* spam index sparkline cell */
.b-spark .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.b-spark .live { display: inline-flex; align-items: center; gap: 7px; font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .16em; color: var(--muted); }
/* shown by the page script only while the index data is fresh */
.b-spark .live[hidden], .kicker[hidden] { display: none; }
.b-spark .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
.b-spark .n { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xl); color: var(--accent-text); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.b-spark .l { color: var(--muted); font-size: var(--text-sm); margin-top: 8px; }
.b-spark svg { display: block; width: 100%; height: 64px; margin-top: auto; }
.b-spark .meta { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); color: var(--muted); margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.b-spark .meta a { color: var(--accent-text); }

/* exploded layered-defense diagram — 2x2 cell, auto-cycling */
.b-ld { background: var(--surface); }
.ld-scene { flex: 1; min-height: 236px; perspective: 1100px; position: relative; margin: 6px 0 4px; }
.ld-stack {
  position: absolute; inset-inline-start: 50%; top: 52%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(57deg) rotateZ(-41deg);
}
.ldp {
  position: absolute; inset-inline-start: -112px; top: -76px; width: 224px; height: 152px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px);
  background-size: 16px 16px; cursor: pointer;
  transform: translateZ(var(--z)); opacity: .55;
  transition: transform var(--dur-slow) var(--ease), border-color var(--dur-slow), box-shadow var(--dur-slow), opacity var(--dur-slow);
  box-shadow: 0 26px 36px -28px color-mix(in srgb, var(--ink) 45%, transparent);
}
[data-theme="dark"] .ldp { box-shadow: 0 26px 36px -24px color-mix(in srgb, var(--shade) 80%, transparent); }
.ldp .ltag {
  position: absolute; inset-inline-start: 14px; top: 11px;
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted); transition: color var(--dur-slow);
}
.ldp .lrow { position: absolute; inset-inline-start: 14px; height: 3px; background: var(--line); border-radius: var(--radius-xs); transition: background var(--dur-slow); }
.ldp .lrow.r1 { top: 44px; width: 56%; }
.ldp .lrow.r2 { top: 56px; width: 38%; }
.ldp.on {
  opacity: 1; border-color: var(--accent-line);
  background-color: color-mix(in srgb, var(--accent-soft) 60%, var(--surface));
  transform: translateZ(calc(var(--z) + 36px));
  box-shadow: 0 0 0 1px var(--accent), 0 40px 62px -30px var(--btn-glow);
}
.ldp.on .ltag { color: var(--accent-text); }
.ldp.on .lrow { background: var(--accent-line); }
.ld-caption { position: relative; min-height: 64px; border-top: 1px solid var(--line-2); padding-top: 12px; }
.ld-c { position: absolute; inset: 12px 0 0; opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.ld-c.on { opacity: 1; }
.ld-c .ix { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .18em; color: var(--accent-text); text-transform: uppercase; }
.ld-c p { margin: 5px 0 0; font-size: var(--text-sm); color: var(--muted); line-height: 1.5; }

/* one-product cell (free / paid columns); .tease/.minifrost kept for future locked add-ons */
.b-tiers .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 16px; border-top: 1px solid var(--line); flex: 1; }
.b-tiers .col { padding: 16px 0 0; padding-inline-end: 18px; position: relative; }
.b-tiers .col + .col { border-inline-start: 1px solid var(--line); padding-inline-start: 18px; padding-inline-end: 0; }
.b-tiers .tn { font-weight: 700; font-size: var(--text-base); letter-spacing: -.02em; margin: 8px 0 6px; }
.b-tiers .tag { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .14em; }
.b-tiers .tag.free { color: var(--muted); }
.b-tiers .tag.paid { color: var(--accent-text); }
.b-tiers p { font-size: var(--text-sm); }
.b-tiers .foot { font-size: var(--text-sm); color: var(--muted); margin-top: 16px; }
.b-tiers .foot .mono { color: var(--fg); font-size: var(--text-xs); }
.b-tiers .tease { filter: blur(2.5px); opacity: .55; pointer-events: none; }
.minifrost {
  position: absolute; inset: 10px 0 0; inset-inline: 12px -6px; z-index: var(--z-raised);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  background: var(--accent-glow); border-radius: var(--radius-sm); text-align: center;
}
.lock-circle {
  border-radius: 50%; background: var(--surface); color: var(--accent-text); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--ink) 32%, transparent), 0 0 0 1px color-mix(in srgb, var(--ink) 6%, transparent);
}
[data-theme="dark"] .lock-circle { box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--shade) 60%, transparent), 0 0 0 1px color-mix(in srgb, var(--hi) 8%, transparent); }
.lock-circle svg { display: block; }
.minifrost .lock-circle { width: 38px; height: 38px; }
.minifrost .lock-circle svg { width: 15px; height: 15px; }
.unlock-lbl {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .24em;
  text-transform: uppercase; color: var(--accent-text);
}
.locked-tag {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: var(--z-content);
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .18em;
  color: var(--accent-text); border: 1px solid var(--accent-line); background: var(--accent-soft);
  padding: 2px 8px; border-radius: var(--radius-xs);
}

/* accent cta cell */
.b-cta { background: var(--accent); border-color: var(--accent); color: var(--on-accent); justify-content: center; }
.b-cta:hover { box-shadow: 0 26px 52px -28px var(--cta-glow); }
.b-cta h3 { color: var(--on-accent); font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.025em; max-width: 18ch; }
.b-cta .btn { background: var(--on-accent); color: var(--accent-text); margin-top: 18px; align-self: flex-start; font-weight: 600; }
.b-cta .btn:hover { background: var(--ink); }
[data-theme="dark"] .b-cta .btn { background: var(--fg); color: var(--code-bg); }
.b-cta .note { color: color-mix(in srgb, var(--hi) 85%, transparent); font-size: var(--text-sm); margin-top: 12px; }
.b-cta::after {
  content: ""; position: absolute; inset-inline-end: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hi) 16%, transparent), transparent 70%); pointer-events: none;
}

/* research cell */
.b-research .btn { margin-top: auto; align-self: flex-start; }
.b-research em { color: var(--fg); font-style: italic; }

/* ============================================================
   PRICING — tier cards + matrix
   ============================================================ */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: stretch; max-width: 820px; margin: 0 auto; }
.tier {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease), border-color var(--dur-base), box-shadow var(--dur-base) var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.tier.featured { background: var(--accent-soft); border-color: var(--accent-line); }
.tier .pill {
  display: inline-block; align-self: flex-start;
  font-size: var(--text-xs); font-family: "JetBrains Mono", var(--fl-mono, monospace); letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px;
}
.tier .tname { font-size: var(--text-xl); font-weight: 700; letter-spacing: -.02em; }
.tier .price { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xl); margin: 14px 0 4px; }
.tier .price small { font-size: var(--text-md); color: var(--muted); font-family: "Inter", var(--fl-sans, ui-sans-serif), system-ui, sans-serif; }
.tier .sub { color: var(--muted); font-size: var(--text-md); min-height: 40px; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 26px; }
.tier .inherits {
  margin-top: 22px; padding-bottom: 8px; font-size: var(--text-sm); color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.tier .inherits::after { content: "\21B4"; color: var(--accent-text); font-size: var(--text-base); line-height: 1; }
.tier .inherits + ul { margin-top: 0; }
.tier ul.caponly { margin-bottom: 0; }
.tier .grp-wrap { margin: 0 0 26px; }
.tier .grp-label {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .17em;
  text-transform: uppercase; color: var(--faint); margin: 18px 0 7px;
  display: flex; align-items: center; gap: 10px;
}
.tier .grp-label::after { content: ""; height: 1px; background: var(--line-2); flex: 1; }
.tier.freewide { grid-column: 1 / -1; display: grid; grid-template-columns: 272px 1fr; gap: 48px; align-items: start; }
.freewide .fw-left { display: flex; flex-direction: column; }
.freewide .fw-left .sub { min-height: 0; font-size: var(--text-sm); }
@media (min-width: 1000px) { .freewide .fw-left .sub { white-space: nowrap; } }
.freewide .fw-left ul { margin: 18px 0 0; }
.freewide .fw-left .caponly .capq { white-space: nowrap; }
.freewide .fw-left .btn { margin-top: 22px; }
.freewide .fw-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 48px; padding-top: 6px; }
.freewide .fw-col { display: flex; flex-direction: column; gap: 22px; }
.freewide .fw-grp .grp-label { margin: 0 0 8px; white-space: nowrap; }
.freewide .grp-list li { white-space: nowrap; font-size: var(--text-sm); }
@media (max-width: 1000px) {
  .tier.freewide { grid-template-columns: 1fr; gap: 24px; }
  .freewide .fw-groups { grid-template-columns: 1fr; gap: 18px; }
}
.tier ul.grp-list { list-style: none; margin: 0; padding: 0; }
.tier .grp-list li { padding: 3.5px 0; font-size: var(--text-sm); border-bottom: none; }
.tier .grp-list .capq { text-decoration-color: color-mix(in srgb, var(--faint) 45%, transparent); }
.tier .grp-list .capq:hover, .tier .grp-list .capq:focus-visible { text-decoration-color: var(--accent); }
.tier li { padding: 8px 0; font-size: var(--text-md); color: var(--fg); border-bottom: 1px solid var(--line-2); display: flex; gap: 10px; }
.tier li::before { content: "▸"; color: var(--accent-text); }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
/* frosted "locked" treatment for a future add-on card — real teaser blurred
   behind an accent-tinted veil, lock circle, mono unlock label */
.tier.locked .lockwrap { position: relative; margin: 22px 0 26px; flex: 1; }
.tier.locked .lockwrap ul { margin: 0; filter: blur(2.5px); opacity: .55; pointer-events: none; user-select: none; }
.tier.locked .frost {
  position: absolute; inset: -6px -10px; z-index: var(--z-raised); border-radius: var(--radius-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 20px;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  background-color: var(--frost-bg);
  background-image: linear-gradient(160deg, var(--accent-soft), transparent 62%);
}
.tier.locked .frost .lock-circle { width: 44px; height: 44px; }
.tier.locked .frost .lock-circle svg { width: 17px; height: 17px; }
.tier.locked .frost .sub2 { font-size: var(--text-xs); color: var(--muted); max-width: 34ch; margin: 0; }

/* feature matrix — scrolls horizontally inside its container on small screens */
.matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--surface); }
table.matrix { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--text-md); }
.matrix th, .matrix td { text-align: start; padding: 13px 16px; border-bottom: 1px solid var(--line-2); }
.matrix thead th { color: var(--muted); font-weight: 500; font-size: var(--text-sm); font-family: "JetBrains Mono", var(--fl-mono, monospace); letter-spacing: .06em; }
.matrix th.c, .matrix td.c { text-align: center; }
.matrix .yes { color: var(--ok-text); }
.matrix .no { color: var(--faint); }
.matrix .cat td { color: var(--accent-text); font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase; padding-top: 26px; border-bottom: 0; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tr.tier-row th:nth-child(3) { color: var(--accent-text); }
.matrix tr.tier-row .th-tag { display: block; font-size: var(--text-xs); letter-spacing: .18em; color: var(--accent-text); margin-top: 3px; text-transform: uppercase; }

/* --- research: spam-index cells + kicker --- */
.kicker { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kicker .blink { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: pulse 2s infinite; }
.si-v { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: clamp(26px, 3vw, 34px); color: var(--fg); letter-spacing: -.02em; margin-top: auto; line-height: 1; font-variant-numeric: tabular-nums; }
.si-v.acc { color: var(--accent-text); }

/* --- misc --- */
.hr-classical { display: flex; align-items: center; gap: 16px; color: var(--accent-text); margin: 0 auto; }
.hr-classical::before, .hr-classical::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line)); }

/* --- theme toggle --- */
.theme-toggle {
  background: transparent; border: 0; color: var(--muted);
  width: 32px; height: 32px; border-radius: var(--radius-sm); cursor: pointer;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--dur-base);
}
.theme-toggle:hover { color: var(--fg); }
.foot-tools .theme-toggle { width: 40px; height: 40px; flex: none; margin-inline-start: -10px; }

/* --- footer --- */
footer { border-top: 1px solid var(--line-2); padding: 56px 0 40px; position: relative; z-index: var(--z-content); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-grid .col h4 { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.foot-grid .col a { display: block; color: var(--muted); font-size: var(--text-md); padding: 4px 0; }
.foot-grid .col a:hover { color: var(--fg); }
.foot-note { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: var(--text-sm); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot-brand { font-weight: 700; font-size: var(--text-lg); letter-spacing: .04em; }
.foot-brand .sh { display: inline-block; width: 5px; height: 5px; margin: 0 5px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 5px var(--ok); animation: pulse 2s infinite; vertical-align: middle; position: relative; bottom: 2px; }

/* ============================================================
   RESPONSIVE — ~1024 / 760 / 480
   ============================================================ */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento.bento-3 { grid-template-columns: repeat(3, 1fr); }
  .c2 { grid-column: span 2; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { max-width: 20ch; }
  .chip-ban { inset-inline-start: -6px; top: -16px; }
  .chip-cost { inset-inline-end: 6px; }
  .chip-why { inset-inline-end: 2px; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .hero { padding: 56px 0 24px; }
  .nav-toggle { display: inline-flex; }
  .navlinks {
    position: absolute; top: 100%; inset-inline-start: 0; inset-inline-end: 0; z-index: var(--z-header);
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 28px 20px; box-shadow: 0 24px 40px -28px color-mix(in srgb, var(--ink) 35%, transparent);
  }
  nav.open .navlinks { display: flex; }
  .navlinks a { padding: 13px 0; min-height: 48px; display: flex; align-items: center; font-size: var(--text-base); }
  .navlinks a:not(.btn) { border-bottom: 1px solid var(--glass-edge, var(--line-2)); }
  .navlinks a.btn-primary { justify-content: center; margin-top: 16px; padding: 12px 20px; }
  .tiers { grid-template-columns: 1fr; }
  .foot-grid { gap: 28px; }
}

@media (max-width: 600px) {
  .bento, .bento.bento-2, .bento.bento-3 { grid-template-columns: 1fr; }
  .c2, .r2 { grid-column: auto; grid-row: auto; }
  .b-tiers .cols { grid-template-columns: 1fr; }
  .b-tiers .col + .col { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline-start: 0; padding-top: 16px; margin-top: 8px; }
  .minifrost { inset: 16px 0 0 0; }
  .feed-body .why { margin-inline-start: 0; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  section { padding: 52px 0; }
  .hero { padding: 44px 0 20px; }
  .hero .lead { font-size: var(--text-base); }
  .browser .bbody { padding: 10px; gap: 8px; }
  .hb { padding: 10px 11px; }
  .hb .v { font-size: var(--text-base); }
  .hb-feed { font-size: var(--text-xs); padding: 8px 10px; }
  .hb-feed .vd { min-width: 46px; }
  .fwrap { height: 132px; }
  .chip-cost { display: none; }
  .chip-ban { inset-inline-start: 0; }
  .chip-why { inset-inline-end: 0; }
  .navlinks { padding: 8px 20px 20px; }
  .card { padding: 20px; }
  .tier { padding: 24px 20px; }
  .tier.locked .frost { margin-inline-start: -8px; margin-inline-end: -8px; }
}

/* ---------- reduced motion: live data keeps flowing, flourishes stop ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, [data-reveal] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  .aurora i, .fl .inner, .brand .sh, .foot-brand .sh, .b-spark .live i, .kicker .blink, .raidtag { animation: none !important; }
  .rig { transform: none !important; }
  .fl { transform: none !important; display: none; }
  .hb-feed .frow { animation: none; }
  .hb .v.bump { animation: none; }
  .hb-feed .vd.stampin { animation: none; }
  .browser, .browser.raid { transition: none; }
  .card:hover, .tier:hover { transform: none; }
  .btn:hover { transform: none; }
  .ldp { transition: border-color var(--dur-base), opacity var(--dur-base); }
  .toast { transition: opacity var(--dur-base); }
}

/* ============================================================
   motion experience — the screening intro, stamps, ignition,
   newborn verdicts, heartbeat, screening ticker
   ============================================================ */

/* pre-JS cover: while the gate attribute is set, an opaque plate hides the
   page; any failure path removes the attribute (JS cleanup + failsafe) */
html[data-intro]::before {
  content: ""; position: fixed; inset: 0; z-index: var(--z-screen); background: var(--code-bg);
}
html[data-intro] .reveal { animation-play-state: paused; }

#targa-intro {
  position: fixed; inset: 0; z-index: calc(var(--z-screen) + 10); background: var(--code-bg);
  display: grid; place-items: center; overflow: hidden;
  transition: transform 1s cubic-bezier(.7, 0, .2, 1), opacity .9s;
}
#targa-intro.lift { transform: translateY(-100%); opacity: .4; }
#targa-intro .ti-in { text-align: center; }
#targa-intro .ti-word {
  color: var(--hi); font-weight: 700; font-size: clamp(44px, 8vw, 92px);
  letter-spacing: -.04em; line-height: 1;
}
#targa-intro .ti-dot {
  display: inline-block; width: .13em; height: .13em; border-radius: 50%;
  background: var(--accent); margin-inline-start: .07em;
  animation: ti-pulse 1.2s infinite;
}
@keyframes ti-pulse { 50% { opacity: .35; } }
#targa-intro .ti-meta {
  margin-top: 20px; font-size: var(--text-xs); letter-spacing: .3em;
  text-transform: uppercase; color: color-mix(in srgb, var(--code-fg) 60%, transparent);
}
#targa-intro .ti-meta .ok { color: var(--accent); font-weight: 700; }
#targa-intro .ti-meta.stamp { animation: ti-stamp .4s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ti-stamp { 0% { transform: scale(1.35); opacity: 0; } }
#targa-intro .ti-scan {
  position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: -3px; height: 2px;
  background: var(--accent); opacity: 0; will-change: transform;
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 90%, transparent), 0 0 60px color-mix(in srgb, var(--accent) 40%, transparent);
}
/* the line travels by transform: animating `top` re-laid it out on every
   frame, which the browser scores as layout shift */
#targa-intro.scanning .ti-scan { animation: ti-scan 1.1s cubic-bezier(.5, 0, .5, 1) forwards; }
@keyframes ti-scan {
  0% { opacity: .95; transform: translateY(0); }
  100% { opacity: .95; transform: translateY(calc(100vh + 3px)); }
}

/* the existing reveals condense into focus (blur upgrade) */
html:not(.mx-reduce) [data-reveal] {
  filter: blur(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease);
}
html:not(.mx-reduce) [data-reveal].in { filter: none; }

/* press stamp for eyebrows */
.mx-pr { position: relative; display: inline-block; overflow: hidden; }
.mx-pr > .mx-txt { display: inline-block; opacity: 0; transition: opacity var(--dur-fast) var(--dur-base); }
.mx-pr::after {
  content: ""; position: absolute; inset: 0; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}
.mx-pr.mx-in > .mx-txt { opacity: 1; }
.mx-pr.mx-in::after { animation: mx-press .6s cubic-bezier(.65, 0, .35, 1); }
@keyframes mx-press {
  0% { transform: scaleX(0); transform-origin: left; }
  45% { transform: scaleX(1); transform-origin: left; }
  55% { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ignition: nav underline draw + CTA shine (hover devices only) */
@media (hover: hover) {
  .navlinks a:not(.btn) { position: relative; }
  .navlinks a:not(.btn)::after {
    content: ""; position: absolute; inset-inline-start: 0; bottom: -4px; height: 1.5px; width: 100%;
    background: var(--accent); transform: scaleX(0); transform-origin: left;
    transition: transform var(--dur-base) var(--ease);
  }
  .navlinks a:not(.btn):hover::after { transform: scaleX(1); }
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::before {
    content: ""; position: absolute; top: 0; bottom: 0; width: 40%; inset-inline-start: -60%; z-index: var(--z-raised);
    background: linear-gradient(105deg, transparent, color-mix(in srgb, var(--hi) 35%, transparent), transparent);
    transform: skewX(-18deg);
  }
  .btn-primary:hover::before { animation: mx-shine .6s var(--ease); }
  @keyframes mx-shine { to { inset-inline-start: 130%; } }
}

/* newborn verdict rows slide into the hero feed */
html:not(.mx-reduce) #heroFeed .row { animation: mx-vborn .4s var(--ease); }
@keyframes mx-vborn { from { opacity: 0; transform: translateY(-8px); } }

/* one faint heartbeat on the CTA when the feed first speaks */
.mx-ring {
  position: fixed; border: 1px solid var(--accent); opacity: 0;
  pointer-events: none; z-index: var(--z-dialog);
}
.mx-ring.go { animation: mx-ring 1.4s var(--ease) forwards; }
@keyframes mx-ring { 0% { opacity: .3; transform: scale(1); } 100% { opacity: 0; transform: scale(1.22); } }
.btn-primary.mx-beat { animation: mx-beat .55s cubic-bezier(.22, .61, .36, 1); }
@keyframes mx-beat { 30% { transform: scale(1.015); } }

/* screening ticker at the very bottom */
.mx-tick {
  border-top: 1px solid var(--line-2); background: var(--surface-2);
  overflow: hidden; position: relative; z-index: var(--z-content);
}
.mx-tick .in {
  display: flex; white-space: nowrap; width: max-content;
  will-change: transform; animation: mx-tickmove 80s linear infinite;
}
.mx-tick:hover .in { animation-play-state: paused; }
.mx-tick .it {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 0; padding-inline-end: 26px;
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs);
  letter-spacing: .06em; color: var(--muted);
}
.mx-tick .it b.ok { color: var(--accent-text); font-weight: 600; }
.mx-tick .it b.bad { color: var(--alert-text); font-weight: 600; }
.mx-tick .it::after { content: "·"; margin-inline-start: 26px; color: var(--faint); }
@keyframes mx-tickmove { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html[data-intro]::before { display: none; }
  #targa-intro { display: none; }
  html[data-intro] .reveal { animation-play-state: running; }
  [data-reveal] { filter: none !important; }
  .mx-pr > .mx-txt { opacity: 1; transition: none; }
  .mx-pr.mx-in::after { animation: none; }
  #heroFeed .row { animation: none; }
  .mx-tick .in { animation: none; }
}

/* ---------- mobile polish: hero chips, verdict rows, layered-defense caption ---------- */
@media (max-width: 600px) {
  /* the floating chips are desktop garnish — on a phone they collide with
     the CTAs and the stat tiles, so the hero calms down without them */
  .fl { display: none; }

  /* verdict rows: strict grid so verdict · text · score stay on one line
     (text truncates instead of wrapping) and reasons sit beneath */
  .feed-body .row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 10px;
  }
  .feed-body .row > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .feed-body .score { margin-inline-start: 0; }
  .feed-body .why { grid-column: 1 / -1; margin: -4px 0 8px; }

  /* layered-defense caption: the rotating captions are absolutely positioned,
     so the container must reserve room for three wrapped lines — otherwise
     the last line clips at the card edge */
  .ld-caption { min-height: 122px; }
}
@media (max-width: 380px) {
  .ld-caption { min-height: 140px; }
}

/* /why terminal: "reasons:" hangs under the verdict column on desktop and
   goes flush-left on phones — no &nbsp; indentation, so wrapped lines align */
.b-why .term .rsn-line { padding-inline-start: 8ch; }
@media (max-width: 600px) {
  .b-why .term .rsn-line { padding-inline-start: 0; }
}

/* --- pricing: 3-column tier grid (the product switcher is gone; .prodswitch kept for the dashboard's reuse) --- */
.prodswitch {
  display: flex; justify-content: center; gap: 4px; width: max-content;
  margin: 34px auto 0; padding: 5px;
  border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--radius-sm);
}
.prodswitch button {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  background: transparent; border: 0; border-radius: var(--radius-xs); padding: 9px 16px;
  cursor: pointer; display: inline-flex; align-items: center; gap: 9px;
  transition: color var(--dur-base), background var(--dur-base);
}
.prodswitch button:hover { color: var(--fg); }
.prodswitch button .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.prodswitch button .st { font-size: var(--text-xs); letter-spacing: .14em; color: var(--faint); }
.prodswitch button.active { background: var(--accent-soft); color: var(--fg); }
.prodswitch button.active .dot { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.prodpanel[hidden] { display: none; }
.tiers.three { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
.tier .pill.dim { color: var(--muted); }
@media (max-width: 960px) { .tiers.three { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 600px) {
  .prodswitch { width: 100%; max-width: 100%; overflow-x: auto; justify-content: flex-start; }
}

/* ============================================================
   LAYOUT CLASSES — html[data-script] scopes (targa/i18n/SPEC.md §3)
   latin / cyrillic are the baseline above. The locale font family
   is slotted into every stack through --fl-sans / --fl-mono (set per
   locale by the layout); English output is unchanged.
   ============================================================ */

/* The Latin wordmark keeps its tracking in every script. */
html[data-script="rtl"] *:not(.brand):not(.foot-brand):not(.ti-word):not(.wordmark),
html[data-script="cjk"] *:not(.brand):not(.foot-brand):not(.ti-word):not(.wordmark),
html[data-script="indic"] *:not(.brand):not(.foot-brand):not(.ti-word):not(.wordmark),
html[data-script="complex"] *:not(.brand):not(.foot-brand):not(.ti-word):not(.wordmark) {
  letter-spacing: 0 !important;
}

/* uppercase eyebrows only make sense in Latin-derived scripts */
html[data-script="rtl"] *, html[data-script="cjk"] *,
html[data-script="indic"] *, html[data-script="complex"] * {
  text-transform: none !important;
}

/* --- rtl: mirrored directional glyphs --- */
html[dir="rtl"] .tier .inherits::after,
html[dir="rtl"] .vg-morph .arr,
html[dir="rtl"] .vg-radar .feedline::after { transform: scaleX(-1); }
html[dir="rtl"] .vg-radar .feedline::after { transform: rotate(225deg); }
html[dir="rtl"] .hb-feed .frow.spam { box-shadow: inset -2px 0 0 var(--alert); }
html[dir="rtl"] .raidtag { transform: translateX(-4px); }
html[dir="rtl"] .mx-pr::after,
html[dir="rtl"] .navlinks a:not(.btn)::after,
html[dir="rtl"] .vg-age .agebar,
html[dir="rtl"] .vg-probation .prog,
html[dir="rtl"] .vg-bayes .meter b s,
html[dir="rtl"] .vg-scorebar .sbar i,
html[dir="rtl"] .vg-meter .mtr i,
html[dir="rtl"] .vg-meter2 .mtr i,
html[dir="rtl"] .vg-extra .mtr > i,
html[dir="rtl"] .vg-owner .linkb,
html[dir="rtl"] .vg-team .mline { transform-origin: right; }
html[dir="rtl"] .btn-primary::before { transform: skewX(18deg); }
html[dir="rtl"] .hr-classical::before, html[dir="rtl"] .hr-classical::after {
  background: linear-gradient(270deg, transparent, var(--line));
}

/* --- cjk: no italics, strict line breaking, taller lines, one scale step up --- */
html[data-script="cjk"] body { line-height: 1.75; line-break: strict; word-break: normal; }
html[data-script="cjk"] em, html[data-script="cjk"] i,
html[data-script="cjk"] .b-research em { font-style: normal; }
html[data-script="cjk"] h1, html[data-script="cjk"] h2, html[data-script="cjk"] h3 { line-height: 1.3; }
html[data-script="cjk"] .card p, html[data-script="cjk"] .ld-c p, html[data-script="cjk"] .b-stat .l,
html[data-script="cjk"] .tier li, html[data-script="cjk"] .tier .sub { line-height: 1.7; }
html[data-script="cjk"] .hero h1 { font-size: clamp(42px, 5vw, 68px); }
html[data-script="cjk"] .hero .lead, html[data-script="cjk"] .lead { font-size: var(--text-lg); }
html[data-script="cjk"] .card h3 { font-size: var(--text-lg); }
html[data-script="cjk"] .card p { font-size: var(--text-base); }
html[data-script="cjk"] .card .ic, html[data-script="cjk"] .eyebrow { font-size: var(--text-sm); }
html[data-script="cjk"] .section-head p { font-size: var(--text-lg); }

/* --- indic: taller lines and no clipped line boxes on headings --- */
html[data-script="indic"] body { line-height: 1.75; }
html[data-script="indic"] h1, html[data-script="indic"] h2, html[data-script="indic"] h3 { line-height: 1.35; overflow: visible; }
html[data-script="indic"] .display { overflow: visible; }
html[data-script="indic"] .card p, html[data-script="indic"] .ld-c p, html[data-script="indic"] .b-stat .l,
html[data-script="indic"] .tier li, html[data-script="indic"] .tier .sub { line-height: 1.7; }

/* --- complex (th, ka, hy): dictionary breaking, taller lines --- */
html[data-script="complex"] body { line-height: 1.75; word-break: normal; overflow-wrap: normal; }
html[data-script="complex"] h1, html[data-script="complex"] h2, html[data-script="complex"] h3 { line-height: 1.35; }
html[data-script="complex"] .card p, html[data-script="complex"] .ld-c p, html[data-script="complex"] .b-stat .l,
html[data-script="complex"] .tier li, html[data-script="complex"] .tier .sub { line-height: 1.7; }

/* --- rtl: taller lines suit Arabic/Hebrew faces too --- */
html[data-script="rtl"] body { line-height: 1.75; }
html[data-script="rtl"] .card p, html[data-script="rtl"] .ld-c p, html[data-script="rtl"] .tier li { line-height: 1.7; }

/* the Latin wordmark reads left-to-right in every direction */
html[dir="rtl"] .brand, html[dir="rtl"] .foot-brand, html[dir="rtl"] #targa-intro .ti-word { direction: ltr; unicode-bidi: isolate; }

/* usernames, ids, URLs and code stay left-to-right inside translated sentences */
html[dir="rtl"] .mono, html[dir="rtl"] code, html[dir="rtl"] .term, html[dir="rtl"] .burl,
html[dir="rtl"] .feed-body, html[dir="rtl"] .hb-feed, html[dir="rtl"] .hero-cap,
html[dir="rtl"] .fl .inner, html[dir="rtl"] .foot-note .mono { direction: ltr; unicode-bidi: isolate; }
/* mono is forced left-to-right for code and data; these Spam Index lines are
   sentences, so they read in the page direction */
html[dir="rtl"] .si-note { direction: rtl; }

/* --- language menu (footer) --- */
.foot-lang { position: relative; font-size: var(--text-sm); color: var(--faint); }
.foot-lang summary {
  cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .06em;
  min-height: 44px;
}
.foot-lang summary::-webkit-details-marker { display: none; }
.foot-lang summary::after { content: "▾"; color: var(--faint); }
.foot-lang[open] summary::after { content: "▴"; }
.foot-lang summary:hover { color: var(--fg); }
/* the language list is a glass popover that opens upward from its summary */
.foot-lang-groups {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: -8px; z-index: var(--z-menu);
  width: min(640px, calc(100vw - 40px)); max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 20px; border: 1px solid var(--glass-edge); border-radius: var(--radius);
  background-color: var(--glass-strong);
  background-image: linear-gradient(180deg, var(--glass-sheen), transparent 38%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
          backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 80px -30px color-mix(in srgb, var(--shade) 55%, transparent);
}
.foot-lang[open] .foot-lang-groups { animation: glass-rise .45s var(--spring); }
.foot-lang-group + .foot-lang-group { margin-top: 16px; }
.foot-lang-label {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.foot-lang ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 18px;
}
.foot-lang li a { display: block; padding: 6px 0; color: var(--muted); font-size: var(--text-md); }
.foot-lang li a:hover { color: var(--fg); }
.foot-lang li a[aria-current="true"] { color: var(--accent-text); }

/* --- non-English legal pages: the English text governs --- */
.legal-governs {
  margin: 0 0 22px; padding: 10px 14px; font-size: var(--text-sm); color: var(--muted);
  border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--radius-sm);
}
.legal-governs a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }

/* --- legal body (rendered from markdown) --- */
.legal h2 { margin-top: 48px; }
.legal > h2:first-child { margin-top: 0; }
.legal p { color: var(--muted); margin: 16px 0; }
.legal ul { color: var(--muted); margin: 8px 0 16px; padding-inline-start: 20px; line-height: 1.8; }
.legal ul li { margin: 0; }
.legal a { text-decoration: underline; }
.legal strong { color: var(--muted); }

/* --- markets Stripe does not serve: paid CTAs become a plain sentence --- */
/* --- optional per-locale note under the tier CTAs (card acceptance, USD billing) --- */

/* --- Korean: never break inside a word (spaces are the only break points) --- */
html[lang="ko"] body, html[lang="ko"] body * { word-break: keep-all; }
.legal a.plain { text-decoration: none; }

/* The Free tier card's single-line rules are fitted to English copy. Translations run
   longer (Tamil, German, Russian), so every other language may wrap inside its column. */
html:not([lang="en"]) .freewide .fw-left .sub,
html:not([lang="en"]) .freewide .fw-left .caponly .capq,
html:not([lang="en"]) .freewide .grp-list li,
html:not([lang="en"]) .freewide .fw-grp .grp-label { white-space: normal; }
html:not([lang="en"]) .freewide .fw-col { min-width: 0; }
html:not([lang="en"]) .freewide .caponly .capq { text-align: start; }

/* --- language suggestion (assets/lang.js): a corner card, never a redirect --- */
.lang-suggest {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: var(--z-dialog);
  display: flex; align-items: center; gap: 14px; max-width: min(460px, calc(100vw - 24px));
  padding: 14px 16px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--card-shadow); font-size: var(--text-md);
}
.lang-suggest p { margin: 0; line-height: 1.45; }
.lang-suggest .btn { flex: none; }
.lang-suggest-x {
  flex: none; width: 32px; height: 32px; background: none; border: 1px solid var(--glass-edge); border-radius: var(--radius-sm);
  color: var(--muted); cursor: pointer; font-size: var(--text-xs);
}
.lang-suggest-x:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg); }
@media (max-width: 560px) {
  .lang-suggest { inset-inline: 12px; inset-block-end: 12px; flex-wrap: wrap; max-width: none; }
  .lang-suggest p { flex: 1 1 100%; }
  .lang-suggest .btn { flex: 1; justify-content: center; }
}
@media print { .lang-suggest { display: none; } }

/* analytics consent: a tile in the grid, present only while the question is open */
.consent, .consent-row { display: none; }
html[data-consent] .consent { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
html[data-consent] .consent-row { display: block; padding: 0 0 56px; }
.consent-row .bento { grid-auto-rows: auto; }
.guide-consent { grid-auto-rows: auto; margin-bottom: 14px; }   /* same gap below the card as above it */
.consent:hover { transform: none; }
.consent:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent-copy { flex: 1 1 340px; min-width: 0; }
.consent-copy .ic { margin-bottom: 8px; }
.consent-copy a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 0 1 auto; }
.consent-actions .btn { justify-content: center; text-align: center; }
@media (max-width: 420px) { .consent-actions { grid-template-columns: 1fr; flex: 1 1 100%; } }
@media print { .consent, .consent-row { display: none !important; } }

/* --- guides (rendered from markdown, on top of the .legal body styles) --- */
.guide-by { color: var(--faint); font-size: var(--text-sm); margin-top: 14px; }
.guide-answer, .guide-facts, .guide-cta { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.guide-answer { border-color: var(--accent-line); background: var(--accent-soft); }
.guide-answer h2, .guide-facts h2 {
  font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px;
}
.guide-answer p { font-size: var(--text-lg); line-height: 1.6; margin: 0; }
.guide-facts ul { margin: 0; padding-inline-start: 20px; line-height: 1.7; color: var(--muted); }
.guide { margin-top: 44px; }
.guide h2 { font-size: clamp(21px, 2.6vw, 26px); }
.guide h3 { font-size: var(--text-lg); margin-top: 28px; }
.guide ol { color: var(--muted); margin: 8px 0 16px; padding-inline-start: 22px; line-height: 1.8; }
.guide strong { color: var(--fg); }
.guide table { border-collapse: collapse; width: 100%; font-size: var(--text-md); margin: 16px 0; display: block; overflow-x: auto; }
.guide th, .guide td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.guide th { color: var(--fg); font-weight: 600; }
.guide blockquote { margin: 16px 0; padding: 12px 16px; border-inline-start: 3px solid var(--line); background: var(--bg-2); border-radius: var(--radius-xs); }
.guide blockquote p { margin: 0; }
.guide-faq > h2:first-child { margin-top: 0; }
.guide-cta { margin-top: 44px; }
.guide-cta h2 { font-size: var(--text-lg); margin: 0 0 6px; }
.guide-change { color: var(--faint); font-size: var(--text-sm); margin-top: 22px; }
.guide-change strong { color: var(--muted); font-weight: 600; }
.guide-related { margin-top: 36px; }
.guide-related h2, .guide-list h2 { font-size: var(--text-lg); margin: 0 0 10px; }
.guide-related ul { margin: 0; padding-inline-start: 20px; line-height: 1.9; }
.guide-related a { text-decoration: underline; text-underline-offset: 3px; }
.guide-list { margin-bottom: 40px; }
.guide-list ul { list-style: none; margin: 0; padding: 0; }
.guide-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.guide-list li > a { font-size: var(--text-lg); font-weight: 600; }
.guide-list li > a:hover { color: var(--accent-text); }
.guide-list li p.muted { margin: 6px 0 0; }
.guide-list .guide-by { margin-top: 6px; }
/* The mono face has no Arabic, CJK or Indic glyphs: box labels use the page face there. */
html[data-script="rtl"] .guide-answer h2, html[data-script="rtl"] .guide-facts h2,
html[data-script="cjk"] .guide-answer h2, html[data-script="cjk"] .guide-facts h2,
html[data-script="indic"] .guide-answer h2, html[data-script="indic"] .guide-facts h2,
html[data-script="complex"] .guide-answer h2, html[data-script="complex"] .guide-facts h2 {
  font-family: inherit; font-size: var(--text-sm); font-weight: 600;
}

/* --- numbered steps on product pages (telegram-anti-spam-bot) --- */
.page-steps { margin: 18px 0 0; padding-inline-start: 22px; line-height: 1.7; }
.page-steps li { margin: 0 0 12px; }
.page-steps strong { color: var(--fg); }
/* --- /compare: the per-product comparison guides --- */
.compare-guides { list-style: none; margin: 18px 0 0; padding: 0; max-width: 64ch; display: grid; gap: 14px; }
.compare-guides a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --- /lookalike-checker --- */
.la-tool { margin-top: 28px; display: grid; gap: 16px; max-width: 64ch; }
.la-tool label { display: grid; gap: 6px; font-size: var(--text-md); color: var(--muted); }
.la-tool input { font: inherit; font-size: var(--text-lg); padding: 12px 14px; border: 1px solid var(--line); background: var(--bg-elev, transparent); color: var(--fg); border-radius: var(--radius-sm); width: 100%; min-width: 0; }
.la-tool input:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; }
.la-out { display: grid; gap: 10px; }
.la-out p { margin: 0; line-height: 1.5; }
.la-out .ok { color: var(--accent-text); }
.la-out .warn { color: var(--fg); }
.la-out .bad { color: var(--fg); font-weight: 600; }
.la-table { border-collapse: collapse; width: 100%; font-size: var(--text-md); margin-top: 6px; }
.la-table th, .la-table td { text-align: start; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.la-table th { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.la-table td.mono { font-family: "JetBrains Mono", var(--fl-mono, monospace); font-size: var(--text-base); }

/* ============================================================
   LIQUID GLASS — translucent surfaces + fluid motion
   The same recipe and tokens as the dashboard (targa-dashboard
   static/styles.css): a translucent fill, a backdrop blur with a little
   extra saturation, a hairline edge and a specular highlight along the top.
   The glass blurs the page's own background (grain + aurora). Motion uses two curves: --ease-out
   for things that settle, --spring for things that respond to the hand.
   ============================================================ */
/* (fill, edge, blur, curves and halo are tokens in tokens.css) */

/* --- the glass recipe --- */
.card:not(.b-feed):not(.b-cta), .tier, .matrix-scroll, .faq-item, .limits-steps li,
.guide-answer, .guide-facts, .guide-cta,
.browser, .chip-cost .inner, .chip-why .inner, .lang-suggest, #capdialog {
  background-color: var(--glass);
  background-image: linear-gradient(180deg, var(--glass-sheen), transparent 38%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
          backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--card-halo);
}
/* a tinted card is flat green glass with a green edge: no sheen under it */
:is(.card-tint, .tier.featured, .guide-answer) { background-color: color-mix(in srgb, var(--accent-soft) 70%, var(--glass)); background-image: none; border-color: var(--accent-line); }
.lang-suggest, #capdialog { background-color: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 80px -30px color-mix(in srgb, var(--shade) 55%, transparent); }
#capdialog::backdrop { background: color-mix(in srgb, var(--shade) 45%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* the nav bar is glass */
nav {
  background-color: var(--glass-strong);
  background-image: linear-gradient(180deg, var(--glass-sheen), transparent 60%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
          backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border-bottom-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
/* the phone menu is glass too. A blurred element blinds the blur of anything
   inside it (a view-transition name does the same), so while the menu is open
   the nav hands its glass to a layer behind the bar and drops the name; the
   menu and the scrim under it then blur the page itself */
@media (max-width: 760px) {
  nav::before, nav::after { content: ""; pointer-events: none; }
  nav.open {
    background: transparent; box-shadow: none; view-transition-name: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  nav.open::before {
    position: absolute; inset: 0; z-index: var(--z-field);
    background-color: var(--glass-strong);
    background-image: linear-gradient(180deg, var(--glass-sheen), transparent 60%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
            backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    box-shadow: inset 0 1px 0 var(--glass-hi);
  }
  /* the scrim: fades in under the menu, below the bar; a tap on it closes the menu */
  nav::after {
    position: fixed; inset: 64px 0 0; z-index: calc(var(--z-field) - 1);
    background: color-mix(in srgb, var(--ink) 22%, transparent);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-fast) var(--dur-slow);
  }
  nav.open::after { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity var(--dur-slow) var(--ease-out); }
  .navlinks {
    background-color: var(--glass-strong);
    background-image: linear-gradient(180deg, var(--glass-sheen), transparent 38%);
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
            backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
    border-bottom-color: var(--glass-edge);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 60px -30px color-mix(in srgb, var(--shade) 45%, transparent);
  }
  nav.open .navlinks { animation: glass-glide .5s var(--ease-out); }
  .navlinks a { transition: transform var(--dur-slow) var(--spring), color var(--dur-base); }
  .navlinks a:active { transform: scale(.97); transition-duration: var(--dur-fast); }
}

/* the product mock: a glass frame, its tiles a lighter pane inside it */
.browser .bchrome { background: transparent; border-bottom-color: var(--glass-edge); }
.browser .burl { background: var(--glass); border-color: var(--glass-edge); }
.browser .bbody { background: transparent; }
.hb:not(.hb-feed) { background: var(--glass); border-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }

/* FAQ: each question a glass panel */
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--glass-edge); border-radius: var(--radius); padding: 0; transition: background-color var(--dur-base), box-shadow var(--dur-slow) var(--ease-out); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 20px; list-style-position: inside; border-radius: inherit; }
.faq-item summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.faq-item p { margin: 0; padding: 0 20px 18px; max-width: 64ch; }
.faq-item summary:hover, .faq-item[open] summary { background: color-mix(in srgb, var(--fg) 3%, transparent); }
.faq-item[open] p { animation: glass-in .4s var(--ease-out); }

/* --- fluid motion --- */
/* buttons: components.css */
/* cells clip what they hold (chips, the aurora, the 3D scene sit at their edges) */
.card { position: relative; overflow: hidden; }
[data-theme="dark"] .btn-primary { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hi) 20%, transparent), 0 1px 2px color-mix(in srgb, var(--shade) 35%, transparent), 0 12px 28px -12px var(--btn-glow); }

.card, .tier { transition: transform var(--dur-slow) var(--spring), box-shadow var(--dur-slow) var(--ease-out), background-color var(--dur-base); }
.card:not(.b-feed):not(.b-cta):hover, .tier:hover { box-shadow: inset 0 1px 0 var(--glass-hi), var(--card-shadow); }

#capdialog[open] { animation: glass-rise .45s var(--spring); }
#capdialog[open]::backdrop { animation: glass-in .3s var(--ease-out); }
.lang-suggest { animation: glass-rise .45s var(--spring); }
@keyframes glass-in { from { opacity: 0; } }
@keyframes glass-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes glass-glide { from { opacity: 0; transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .tier, .faq-item { transition: none; }
  .btn:hover, .btn:active { transform: none; }
  #capdialog[open], #capdialog[open]::backdrop, .lang-suggest, nav.open .navlinks, .faq-item[open] p { animation: none; }
  nav::after, nav.open::after, .navlinks a { transition: none; }
  .navlinks a:active { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card:not(.b-feed):not(.b-cta), .tier, .matrix-scroll, .faq-item, .limits-steps li,
  .guide-answer, .guide-facts, .guide-cta, .browser, .chip-cost .inner, .chip-why .inner,
  .lang-suggest, #capdialog, .btn-secondary, .hb:not(.hb-feed) { background-color: var(--surface); }
  :is(.card-tint, .tier.featured, .guide-answer) { background-color: color-mix(in srgb, var(--accent-soft) 70%, var(--surface)); }
  nav, nav.open::before { background-color: var(--nav-bg); }
  .navlinks { background-color: var(--bg); }
}

/* ============================================================
   FOOTER — brand block (wordmark, tagline, theme + language),
   link groups, bottom bar. Glass hairline dividers.
   ============================================================ */
footer { border-top-color: var(--glass-edge); box-shadow: inset 0 1px 0 var(--glass-hi); }
.foot-note { border-top-color: var(--glass-edge); }
.foot-id { max-width: 280px; }
.foot-top { display: flex; flex-direction: column; align-items: flex-start; }
.foot-tag { font-size: var(--text-sm); margin: 12px 0 0; }
.foot-tools { order: 2; display: flex; align-items: center; gap: 10px; margin-top: 12px; }
/* desktop keeps the old order: wordmark, tagline, then the tools */
@media (min-width: 761px) {
  .foot-id { display: flex; flex-direction: column; }
  .foot-top { display: contents; }
  .foot-brand { order: 0; }
  .foot-tag { order: 1; }
}

@media (max-width: 760px) {
  .foot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  /* brand row: wordmark on the left, theme + language together on the right */
  .foot-id { grid-column: 1 / -1; max-width: none; }
  .foot-top { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
  .foot-tools { margin: 0; margin-inline-start: auto; gap: 4px; }
  .foot-brand { font-size: var(--text-base); }
  .foot-lang summary span:last-child { max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .foot-tools .theme-toggle { margin: 0; }
  .foot-lang summary { padding: 0 10px; border-radius: var(--radius-sm); }
  .foot-lang summary:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
  .foot-lang-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* on a phone the list is a glass sheet over the bottom of the screen */
  .foot-lang-groups {
    position: fixed; top: auto; bottom: 12px; inset-inline: 12px; width: auto;
    max-height: 72vh; box-shadow: inset 0 1px 0 var(--glass-hi), 0 -20px 80px -30px color-mix(in srgb, var(--shade) 60%, transparent);
  }
  footer:has(.foot-lang[open]) { z-index: var(--z-header); }   /* over the ticker, under the nav */
  .foot-lang ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-tag { max-width: 46ch; }
  /* balanced groups: Product beside Company, then Research and Resources full
     width with their links in two columns */
  .foot-product { order: 1; }
  .foot-company { order: 2; }
  .foot-research { order: 3; }
  .foot-resources { order: 4; }
  .foot-research, .foot-resources { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .foot-research h4, .foot-resources h4 { grid-column: 1 / -1; }
  .foot-grid .col a { padding: 7px 0; }
  /* bottom bar: the copyright on one line, the legal links and the domain on the next */
  .foot-note { display: block; margin-top: 36px; line-height: 1.9; }
  .foot-note > span:first-child { display: block; }
  .foot-domain::before { content: "·"; margin: 0 .45em; color: var(--faint); }
}
@media (prefers-reduced-motion: reduce) { .foot-lang[open] .foot-lang-groups { animation: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .foot-lang-groups { background-color: var(--surface); } }

/* air: a short rule under the hero eyebrow, more room before the buttons, roomier cards */
.hero .eyebrow::after { content: ""; display: block; width: 56px; height: 1px; background: var(--line); margin-top: 20px; }
.hero .lead + * { margin-top: 40px; }
.card { padding: calc(var(--space-6) + var(--space-1)); }
@media (max-width: 760px) { section { padding: 80px 0; } .hero { padding: 104px 0 40px; } .card { padding: 24px; } }
/* the live index: label and value stay together on one line */
.b-spark .meta .cas { display: flex; flex-direction: column; gap: 2px; flex-basis: 100%; }
.b-spark .meta .cas b { color: var(--fg); font-size: var(--text-base); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* research page: the tinted header above the publications list */
.research-head { background: linear-gradient(135deg, var(--accent-soft), transparent 70%); padding: var(--space-7); border-bottom: 1px solid var(--line-2); }
