/* ===== Nothing Modes — landing styles ===== */

@font-face {
  font-family: "Doto";
  src: url("fonts/doto.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("fonts/geist_sans_light.ttf") format("truetype");
  font-weight: 300; font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("fonts/geist_sans_regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("fonts/geist_sans_medium.ttf") format("truetype");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Geist Sans";
  src: url("fonts/geist_sans_bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist_mono_regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist_mono_bold.ttf") format("truetype");
  font-weight: 700; font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #0D0D0D;
  --surface-2: #111111;
  --border: #1F1F1F;
  --border-hi: #2E2E2E;
  --text: #EDEDED;
  --text-2: rgba(237,237,237,0.55);
  --text-3: rgba(237,237,237,0.30);
  --red: #D71921;
  --dot: #1A1A1A;
  --ease: 120ms ease-out;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist Sans", system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #000; padding: 8px 14px;
  font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: 0.12em;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ===== Mono label ===== */
.mono, .mono-label {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  font-weight: 400;
}
.mono-label { display: inline-flex; align-items: center; gap: 8px; }

.reddot {
  width: 6px; height: 6px; background: var(--red); display: inline-block;
  border-radius: 1px;
}

/* ===== Doto ===== */
.doto {
  font-family: "Doto", monospace;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.02;
  font-variation-settings: "ROND" 0;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(0,0,0,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}
.wordmark {
  font-family: "Geist Mono", monospace;
  font-size: 13px; letter-spacing: 0.14em; font-weight: 700;
  color: var(--text);
}
.nav nav { display: flex; align-items: center; gap: 26px; }
.nav nav a {
  font-family: "Geist Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  transition: color var(--ease);
}
.nav nav a:not(.gh)::after {
  content: ""; position: absolute; left: -10px; top: 50%;
  width: 5px; height: 5px; background: var(--red);
  transform: translateY(-50%) scale(0);
  transition: transform var(--ease);
  border-radius: 1px;
}
.nav nav a:not(.gh):hover { color: var(--text); }
.nav nav a:not(.gh):hover::after { transform: translateY(-50%) scale(1); }
.nav nav .gh { color: var(--text-2); display: inline-flex; }
.nav nav .gh:hover { color: var(--text); }

/* ===== Dot grid texture ===== */
.dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  background-size: 22px 22px;
  background-position: 0 0;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.2) 70%, transparent);
}

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 28px 64px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.hero .mono-label { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(3rem, 10vw, 9rem);
  margin-bottom: 28px;
}
.hero .sub {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 36px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }
.btn {
  font-family: "Geist Mono", monospace;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  display: inline-block;
  font-weight: 700;
}
.btn-primary { background: var(--red); color: #000; }
.btn-primary:hover { background: #000; color: var(--red); border-color: var(--red); }
.btn-outline { border-color: var(--border-hi); color: var(--text); }
.btn-outline:hover { background: var(--text); color: #000; }

/* ===== Shots ===== */
.shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.shot {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background: var(--surface);
  transition: border-color var(--ease);
}
.shot:hover { border-color: var(--border-hi); }
.shot img {
  border-radius: 4px;
  width: 100%; height: auto;
  display: block;
}
.shot figcaption { margin-top: 10px; padding: 0 4px; font-size: 10px; }
.shot-1 { transform: translateY(0); }
.shot-2 { transform: translateY(28px); }
.shot-3 { transform: translateY(8px); }
.shot-4 { transform: translateY(40px); }

/* ===== Strip ===== */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 16px 28px;
  font-size: 12px; letter-spacing: 0.16em;
  color: var(--text-2);
  white-space: nowrap; overflow-x: auto;
  text-align: center;
  scrollbar-width: none;
}
.strip-inner::-webkit-scrollbar { display: none; }
.strip-inner span { color: var(--red); margin: 0 6px; }

/* ===== Section heads ===== */
.section-head {
  max-width: 1280px; margin: 0 auto 48px;
  padding: 0 28px;
}
.h2 {
  font-family: "Geist Sans", sans-serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  margin-top: 16px;
  letter-spacing: -0.01em;
}
.h3 {
  font-family: "Geist Sans", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 14px 0 10px;
}

/* ===== How it works ===== */
.how { padding: 96px 0; border-bottom: 1px solid var(--border); }
.how-grid {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 40px 1fr 40px 1fr;
  align-items: start;
  gap: 0;
}
.how-step {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 8px;
  transition: border-color var(--ease);
  min-height: 180px;
}
.how-step:hover { border-color: var(--border-hi); }
.step-tag { color: var(--text); margin-bottom: 16px; font-weight: 700; }
.how-desc { color: var(--text-2); font-size: 0.95rem; }
.how-arrow {
  align-self: center;
  font-family: "Geist Mono", monospace;
  color: var(--red);
  font-size: 20px;
  text-align: center;
}

/* ===== Features ===== */
.features { padding: 96px 0; border-bottom: 1px solid var(--border); }
.card-grid {
  width: calc(100% - 56px);
  max-width: 1224px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background var(--ease), box-shadow var(--ease);
  min-height: 220px;
}
.card:hover { background: var(--surface); box-shadow: inset 2px 0 0 var(--red); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.card-index { color: var(--text-3); }
.card-body { color: var(--text-2); font-size: 0.95rem; margin-top: 4px; }
.card.span-2, .card-stat.span-2 { grid-column: span 2; }
.card.span-2 .h3 { font-size: 1.35rem; }
.card-stat {
  background: var(--bg);
  padding: 32px 28px;
  min-height: 220px;
  transition: background var(--ease), box-shadow var(--ease);
  display: flex; flex-direction: column; justify-content: center;
}
.card-stat:hover { background: var(--surface); box-shadow: inset 2px 0 0 var(--red); }
.card-stat .stat-num {
  font-family: "Geist Mono", monospace;
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1;
}
.card-stat .stat-label {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 12px;
}

/* ===== Library ===== */
.library { padding: 96px 0; border-bottom: 1px solid var(--border); }
.library-grid {
  width: calc(100% - 56px);
  max-width: 1224px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}
.library-card, .library-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px;
  min-height: 160px;
}
.library-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.library-type { color: var(--accent); text-transform: uppercase; }
.library-title { font-size: 18px; font-weight: 600; }
.library-desc { color: var(--text-2); font-size: 13px; line-height: 1.45; }
.library-meta { color: var(--text-2); font-size: 11px; margin-top: auto; }
.library-cta { text-align: center; margin-top: 32px; }

/* ===== Glyph ===== */
.glyph { padding: 96px 0; border-bottom: 1px solid var(--border); }
.glyph-layout {
  max-width: 1280px; margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.glyph-p { color: var(--text-2); margin-bottom: 28px; font-size: 1.05rem; }
.glyph-list { display: flex; flex-direction: column; gap: 20px; }
.glyph-list > div { border-top: 1px solid var(--border); padding-top: 16px; }
.glyph-list dt { color: var(--text); margin-bottom: 6px; }
.glyph-list dd { color: var(--text-2); font-size: 0.92rem; }
.glyph-note { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--border); border-left: 2px solid var(--red); border-radius: 4px; color: var(--text-2); font-size: 0.88rem; line-height: 1.55; }
.glyph-note strong { color: var(--text); font-weight: 600; }
.glyph-fine { margin-top: 24px; color: var(--text-3); }

.matrix-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 8px;
  background: var(--surface);
}
.matrix {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 3px;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
}
.matrix .cell {
  background: #161616;
  border-radius: 1px;
  aspect-ratio: 1 / 1;
  transition: background 60ms linear;
}
.matrix .cell.on { background: var(--text); }
.matrix .cell.red { background: var(--red); }
.matrix .cell.sig { background: var(--red); }
.matrix .cell.sig.sig-white { background: var(--text); }
.matrix .cell.hover { background: var(--text); }
.matrix-meta { color: var(--text-3); }

/* ===== Compatibility ===== */
.compat { padding: 96px 0; border-bottom: 1px solid var(--border); }
/* Scoreboard panel */
.board-wrap {
  width: calc(100% - 56px);
  max-width: 1224px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.board {
  width: 100%;
  border-collapse: collapse;
  font-family: "Geist Mono", monospace;
}
.board th, .board td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.board thead th {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 400;
  border-bottom: 1px solid var(--border-hi);
}
.board tbody tr:last-child td { border-bottom: none; }
.board tbody tr { transition: background var(--ease); }
.board tbody tr:hover { background: var(--bg); }
.board .idx { color: var(--text-3); font-size: 11px; width: 1%; }
.board .dev {
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 700;
  width: 100%;
}
.board td.cap-cell { text-align: left; }
.cap-dot {
  width: 14px; height: 14px;
  display: inline-block;
  border-radius: 2px;
  background: #161616;
  vertical-align: middle;
}
.cap-dot.on { background: var(--red); }
.board .any-row .dev { color: var(--text-2); }
.board .any-cell {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.compat-note {
  max-width: 1224px; margin: 20px auto 0;
  width: calc(100% - 56px);
  text-align: center;
  color: var(--text-3);
  font-size: 11px;
}

/* ===== Download ===== */
.download { position: relative; padding: 128px 28px; overflow: hidden; }
.download-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.dl-head { font-size: clamp(3rem, 10vw, 8rem); margin: 24px 0 20px; }
.ver { color: var(--text-2); letter-spacing: 0.14em; margin-bottom: 36px; }
.ver span { color: var(--red); }
.dl-note { color: var(--text-3); margin-top: 28px; max-width: 540px; font-size: 0.9rem; }

/* ===== Footer ===== */
.foot { border-top: 1px solid var(--border); padding: 40px 28px; }
.foot-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  text-align: center;
}
.foot .mono { font-size: 11px; color: var(--text-2); letter-spacing: 0.14em; }
.foot .mono a { transition: color var(--ease); }
.foot .mono a:hover { color: var(--red); }
.foot-links a:hover { color: var(--red); }
.foot-disclaim { color: var(--text-3); font-size: 10px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav { padding: 12px 18px; flex-wrap: wrap; row-gap: 10px; }
  /* Nav links move to a second, horizontally scrollable row instead of
     disappearing — on phones the library page was unreachable without them. */
  .nav nav {
    order: 3; flex-basis: 100%;
    gap: 18px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { font-size: 11px; white-space: nowrap; }
  .nav nav .nav-toggles { margin-left: auto; }
  .hero { padding: 64px 18px 48px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 5rem); }
  .cta-row { margin-bottom: 40px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .shot-2, .shot-3, .shot-4 { transform: none; }
  .section-head { padding: 0 18px; margin-bottom: 32px; }
  .how { padding: 64px 0; }
  .how-grid {
    grid-template-columns: 1fr;
    padding: 0 18px;
    gap: 12px;
  }
  .how-arrow { transform: rotate(90deg); padding: 4px 0; }
  .features { padding: 64px 0; }
  .library { padding: 64px 0; }
  .library-grid { grid-template-columns: 1fr; width: calc(100% - 36px); }
  .card-grid {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
  }
  .card.span-2, .card-stat.span-2 { grid-column: auto; }
  .board-wrap, .compat-note { width: calc(100% - 36px); }
  .board .dev { font-size: 11px; letter-spacing: 0.06em; }
  .board th, .board td { padding: 12px 12px; }
  .cap-dot { width: 12px; height: 12px; }
  .glyph { padding: 64px 0; }
  .glyph-layout {
    grid-template-columns: 1fr;
    padding: 0 18px;
    gap: 36px;
  }
  .compat { padding: 64px 0; }
  .download { padding: 80px 18px; }
  .foot { padding: 32px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Theme: light ===== */
:root[data-theme="light"] {
  --bg: #F4F4F2;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --border: #E2E2DE;
  --border-hi: #C9C9C4;
  --text: #1A1A1A;
  --text-2: rgba(26,26,26,0.62);
  --text-3: rgba(26,26,26,0.38);
  --red: #D71921;
  --dot: #DADAD6;
}
:root[data-theme="light"] .nav { background: rgba(244,244,242,0.92); }
:root[data-theme="light"] .btn-primary { color: #fff; }
:root[data-theme="light"] .btn-primary:hover { background: #1A1A1A; color: #fff; border-color: #1A1A1A; }
:root[data-theme="light"] .btn-outline:hover { background: #1A1A1A; color: #fff; }
:root[data-theme="light"] .matrix .cell { background: #E4E4E0; }
:root[data-theme="light"] .matrix .cell.on,
:root[data-theme="light"] .matrix .cell.hover { background: var(--text); }
:root[data-theme="light"] .matrix .cell.sig.sig-white { background: var(--text); }
:root[data-theme="light"] .skip { color: #fff; }
:root[data-theme="light"] .shot { background: var(--surface-2); }

/* ===== Style: normal — premium SaaS look (dark + light) =====
   One restrained accent (indigo, matching the app's classic
   theme), neutral canvases matching the app's classic palette,
   No rainbow, no gradient text, no per-card hues, no colored pills. */

/* --- Palette: normal dark (default) --- */
:root[data-style="normal"] {
  --red: #8E97E8;                       /* accent: app classic indigo */
  --bg: #121316;                        /* app classic dark canvas */
  --surface: #1A1C21;
  --surface-2: #22252B;
  --border: #2D3038;
  --border-hi: #3C414E;
  --text: #E6E6E4;
  --text-2: rgba(230,230,228,0.66);
  --text-3: rgba(230,230,228,0.40);
  --dot: #24272E;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.32);
  --shadow-lg: 0 18px 48px rgba(0,0,0,0.40);
}

/* --- Palette: normal light --- */
:root[data-style="normal"][data-theme="light"] {
  --red: #3F4DBF;                       /* app classic indigo, light variant */
  --bg: #FAFAF8;                        /* app classic light canvas */
  --surface: #FFFFFF;
  --surface-2: #F0F0EE;
  --border: #D8D8D4;
  --border-hi: #C4C4BE;
  --text: #1A1C21;
  --text-2: rgba(26,28,33,0.64);
  --text-3: rgba(26,28,33,0.42);
  --dot: #E8E8E4;
  --shadow-sm: 0 1px 2px rgba(26,23,20,0.06);
  --shadow-md: 0 8px 24px rgba(26,23,20,0.08);
  --shadow-lg: 0 18px 48px rgba(26,23,20,0.12);
}

/* --- Backdrop: drop the dot-grid texture, use plain canvas --- */
:root[data-style="normal"] .dotgrid { display: none; }
:root[data-style="normal"] .nav { background: rgba(18,19,22,0.88); backdrop-filter: blur(10px); }
:root[data-style="normal"][data-theme="light"] .nav { background: rgba(250,250,248,0.88); }

/* --- Typography: Geist Sans everywhere, normal case --- */
:root[data-style="normal"] .doto {
  font-family: "Geist Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
:root[data-style="normal"] .wordmark {
  font-family: "Geist Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
:root[data-style="normal"] .nav nav a,
:root[data-style="normal"] .btn {
  font-family: "Geist Sans", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
:root[data-style="normal"] .nav nav a { font-size: 13.5px; }

/* Mono labels: muted text + hairline divider, not pills */
:root[data-style="normal"] .mono,
:root[data-style="normal"] .mono-label {
  font-family: "Geist Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
:root[data-style="normal"] .mono-label .reddot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red);
}
:root[data-style="normal"] .step-tag { color: var(--text-2); font-weight: 600; }
:root[data-style="normal"] .card-index { color: var(--text-3); font-weight: 500; }

/* --- Headlines: solid ink, no gradient text --- */
:root[data-style="normal"] .hero h1,
:root[data-style="normal"] .dl-head { color: var(--text); }
:root[data-style="normal"] .h2 { font-weight: 600; letter-spacing: -0.02em; }
:root[data-style="normal"] .h3 { font-weight: 600; }

/* --- Buttons: solid accent primary, subtle outline secondary --- */
:root[data-style="normal"] .btn {
  border-radius: 10px;
  padding: 11px 20px;
  font-size: 13.5px;
  font-weight: 600;
}
:root[data-style="normal"] .btn-primary {
  background: var(--red);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-sm);
}
:root[data-style="normal"] .btn-primary:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
:root[data-style="normal"] .btn-outline {
  border: 1px solid var(--border-hi);
  color: var(--text);
  background: transparent;
}
:root[data-style="normal"] .btn-outline:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text-2);
}

/* --- Cards: rounded, soft shadow, single accent on hover --- */
:root[data-style="normal"] .card-grid {
  border-radius: 16px;
  gap: 1px;
  box-shadow: var(--shadow-md);
}
:root[data-style="normal"] .card,
:root[data-style="normal"] .card-stat {
  border-radius: 0;                     /* flush inside the grid frame */
  padding: 30px 28px;
  transition: background var(--ease), box-shadow var(--ease);
}
:root[data-style="normal"] .card:hover,
:root[data-style="normal"] .card-stat:hover {
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--red);
  transform: none;
}

/* --- How-it-works steps --- */
:root[data-style="normal"] .how-step {
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease);
}
:root[data-style="normal"] .how-step:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
  transform: none;
}
:root[data-style="normal"] .how-arrow { color: var(--red); font-size: 18px; }

/* --- Screenshots: clean frame, no gradient border --- */
:root[data-style="normal"] .shot {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--ease), transform var(--ease);
}
:root[data-style="normal"] .shot:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
:root[data-style="normal"] .shot img { border-radius: 8px; }
:root[data-style="normal"] .shot figcaption { color: var(--text-3); margin-top: 12px; }

/* --- Matrix: dots tint to accent, kept subtle --- */
:root[data-style="normal"] .matrix-wrap {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
:root[data-style="normal"] .matrix .cell { background: var(--surface-2); border-radius: 2px; }
:root[data-style="normal"] .matrix .cell.on,
:root[data-style="normal"] .matrix .cell.hover { background: var(--text); }
:root[data-style="normal"] .matrix .cell.red,
:root[data-style="normal"] .matrix .cell.sig { background: var(--red); }
:root[data-style="normal"] .matrix .cell.sig.sig-white { background: var(--text); }
:root[data-style="normal"][data-theme="light"] .matrix .cell { background: var(--surface-2); }

/* --- Compatibility board --- */
:root[data-style="normal"] .board-wrap {
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}
:root[data-style="normal"] .board tbody tr:hover { background: var(--surface); }
:root[data-style="normal"] .cap-dot { border-radius: 3px; background: var(--surface-2); }
:root[data-style="normal"] .cap-dot.on { background: var(--red); }

/* --- Strip + footer: accent stays single-hue --- */
:root[data-style="normal"] .strip-inner span { color: var(--red); }
:root[data-style="normal"] .foot a:hover { color: var(--red); }
:root[data-style="normal"] .ver span { color: var(--red); }

/* --- Nav active marker + toggle accent --- */
:root[data-style="normal"] .nav nav a:not(.gh)::after { background: var(--red); border-radius: 50%; }
:root[data-style="normal"] .tgl[aria-pressed="true"] { border-color: var(--red); }

/* ===== Nav toggles ===== */
.nav-toggles { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; }
.tgl {
  font-family: "Geist Mono", monospace;
  font-size: 11px; letter-spacing: 0.1em;
  padding: 7px 12px;
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.tgl:hover { color: var(--text); border-color: var(--text-2); }
.tgl[aria-pressed="true"] { color: var(--text); border-color: var(--red); }
