/* Vigorix — mobile-first. Palette matches the app (src/styles/theme.ts). */

:root {
  --bg: #0A1014;
  --bg-2: #111A20;
  --bg-3: #06090B;
  --bone: #E7F3F1;
  --text-primary: #FFFFFF;
  --muted: rgba(231, 243, 241, 0.62);
  --accent: #00BFA5;
  --accent-dim: #049682;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.15);
  --glow-color: rgba(0, 191, 165, 0.13);
  --gutter: 1.5rem;

  --live-off: #E5484D;
  --live-off-dim: rgba(229, 72, 77, 0.14);
  --live-off-line: rgba(229, 72, 77, 0.55);

  --r-cooked: #EF5350;
  --r-recovering: #FFB300;
  --r-building: #FFD54F;
  --r-primed: #A5D6A7;
  --r-beast: #76FF03;

  --font-display: 'Space Grotesk', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--hairline-strong) var(--bg);
  scrollbar-width: thin;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 200;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 50% -12%, rgba(0, 191, 165, 0.08), transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 120%, var(--bg-3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cursor-pulse {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.cursor-pulse[data-active='true'] { opacity: 1; }

.cursor-pulse canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.cursor-pulse-bead {
  position: absolute;
  top: 0;
  left: 0;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: rgba(0, 191, 165, 0.85);
  box-shadow:
    0 0 14px 4px rgba(0, 191, 165, 0.35),
    0 0 42px 12px rgba(0, 191, 165, 0.12);
  will-change: transform;
}

.cursor-pulse-bead::after {
  content: '';
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 191, 165, 0.32);
  animation: vigor-pulse 1.7s var(--ease) infinite;
}

@keyframes vigor-pulse {
  0% { transform: scale(0.55); opacity: 0.65; }
  100% { transform: scale(1.85); opacity: 0; }
}

.grain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-frame { display: none; }

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.site-header,
main,
footer {
  min-width: 0;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding-block: 0.7rem;
}

.site-header.scrolled {
  background: rgba(10, 16, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand .mark-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
}

.header-link {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.header-link:hover { color: var(--bone); }

main { flex: 1; position: relative; z-index: 1; }

/* ---------- Hero ---------- */

.hero {
  padding: 1.25rem 0 2.75rem;
}

.hero-grid {
  min-width: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 42rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--live-off);
  background: transparent;
  border: 1px solid var(--live-off);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 12vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 0.7rem;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--bone);
  max-width: 36rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.sub {
  font-size: 1.0625rem;
  color: rgba(231, 243, 241, 0.82);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.facts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline);
}

.facts-row li {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  max-width: 100%;
}

.facts-row li + li::before {
  content: '·';
  margin-right: 0.55rem;
  opacity: 0.5;
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  padding: 0.45rem 0.95rem 0.45rem 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--bone);
  opacity: 0.4;
  filter: grayscale(0.45);
  cursor: not-allowed;
  user-select: none;
  pointer-events: none;
}

.store-mark {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.store-kicker {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.12rem;
}

/* ---------- Section scaffolding ---------- */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.section-label::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.pull {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-primary);
  max-width: 32rem;
  margin-bottom: 0.9rem;
}

.reveal { opacity: 1; transform: none; }

/* ---------- Readiness ---------- */

.readiness-section {
  padding: 0.25rem 0 3.25rem;
  border-top: 1px solid var(--hairline);
}

.readiness-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  padding-top: 1.5rem;
  min-width: 0;
}

.readiness-copy .desc {
  font-size: 1.0625rem;
  color: rgba(231, 243, 241, 0.82);
  line-height: 1.7;
  max-width: 36rem;
  margin-bottom: 1.35rem;
}

.readiness-features {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.readiness-features li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 1rem;
  color: var(--bone);
  line-height: 1.6;
}

.readiness-features li svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent);
}

.readiness-features li span { min-width: 0; }

.scale-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.9rem;
  box-shadow: 0 0 0 1px var(--hairline-strong) inset;
}

.scale-bar span { flex: 1; }
.scale-bar .seg-cooked { background: var(--r-cooked); }
.scale-bar .seg-recovering { background: var(--r-recovering); }
.scale-bar .seg-building { background: var(--r-building); }
.scale-bar .seg-primed { background: var(--r-primed); }
.scale-bar .seg-beast { background: var(--r-beast); }

.scale-labels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}

.scale-labels li {
  display: grid;
  grid-template-columns: 0.5rem 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}

.scale-labels li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage);
  box-shadow: 0 0 8px var(--stage);
}

.scale-labels li[data-stage='cooked'] { --stage: var(--r-cooked); }
.scale-labels li[data-stage='recovering'] { --stage: var(--r-recovering); }
.scale-labels li[data-stage='building'] { --stage: var(--r-building); }
.scale-labels li[data-stage='primed'] { --stage: var(--r-primed); }
.scale-labels li[data-stage='beast'] { --stage: var(--r-beast); }

.scale-labels b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.scale-labels span {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.scale-note {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 0.95rem;
  line-height: 1.55;
}

/* ---------- Capabilities ---------- */

.capabilities {
  padding: 1.5rem 0 3.25rem;
  border-top: 1px solid var(--hairline);
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 1.35rem;
}

.cap-item {
  padding: 1.1rem 0;
  border-top: 1px solid var(--hairline);
}

.cap-item .num,
.pillars .num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.cap-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.cap-item p {
  font-size: 1rem;
  color: rgba(231, 243, 241, 0.82);
  line-height: 1.65;
}

/* ---------- Pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 1.5rem 0 3.5rem;
  border-top: 1px solid var(--hairline);
}

.pillars article {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hairline);
}

.pillars article:last-child { border-bottom: 0; }

.pillars h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.pillars p {
  font-size: 1rem;
  color: rgba(231, 243, 241, 0.82);
  line-height: 1.65;
}

.close {
  padding: 1.75rem 0 3.5rem;
  border-top: 1px solid var(--hairline);
}

.close .status-pill { margin-bottom: 1.1rem; }

.close-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.close-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  padding: 1.25rem 0 max(1.75rem, env(safe-area-inset-bottom, 0px));
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #888C9E;
}

.footer-lockup .mark {
  width: 14px;
  height: 14px;
  opacity: 0.65;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ---------- Tablet ---------- */

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }

  .hero { padding: 1.75rem 0 3.25rem; }

  .facts-row { gap: 0.65rem; }

  .actions {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
  }

  .scale-labels {
    grid-template-columns: 1fr 1fr;
  }

  .cap-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 1.75rem;
  }

  .footer-row {
    flex-direction: row;
    align-items: center;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 52em) {
  :root { --gutter: 1.75rem; }

  .grain { display: block; }

  .page-frame {
    display: block;
    position: fixed;
    inset: 14px;
    z-index: 40;
    pointer-events: none;
  }

  .page-frame span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: rgba(0, 191, 165, 0.3);
    border-style: solid;
  }

  .page-frame span:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
  .page-frame span:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
  .page-frame span:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
  .page-frame span:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

  body::before {
    background:
      radial-gradient(ellipse 55% 36% at 88% -8%, rgba(0, 191, 165, 0.09), transparent 58%),
      radial-gradient(ellipse 80% 50% at 50% 120%, var(--bg-3), transparent 70%);
  }

  .header-inner {
    min-height: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding 0.35s var(--ease);
  }

  .site-header.scrolled .header-inner {
    padding-block: 0.95rem;
  }

  .hero { padding: 4.5rem 0 4.5rem; }

  h1 {
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: 0.92;
    margin-bottom: 1.1rem;
  }

  .status-pill { margin-bottom: 1.5rem; }

  .tagline { font-size: 0.9375rem; margin-bottom: 1.1rem; }

  .lead { font-size: 1.1rem; margin-bottom: 0.85rem; }

  .sub { margin-bottom: 1.85rem; }

  .facts-row {
    gap: 0.85rem 1.15rem;
    margin-bottom: 2.1rem;
    padding-top: 1.15rem;
    border: 0;
    border-top: 1px solid var(--hairline);
  }

  .facts-row li {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }

  .readiness-section { padding: 1.5rem 0 6rem; }

  .readiness-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    padding-top: 0;
  }

  .scale-labels {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .scale-labels li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .scale-labels li::before { display: none; }

  .scale-labels b { font-size: 0.78rem; }

  .scale-note { margin-top: 1.75rem; font-size: 0.75rem; }

  .capabilities { padding: 1.5rem 0 6.5rem; }

  .cap-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem 2.5rem;
    margin-top: 2.5rem;
  }

  .cap-item { padding-top: 1.15rem; padding-bottom: 0; }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 0 6rem;
  }

  .pillars article {
    padding-top: 1.25rem;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .close { padding: 2.5rem 0 6rem; }

  footer { padding: 1.5rem 0 2rem; }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 52em) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .reveal.in-view { opacity: 1; transform: translateY(0); }

  h1, .tagline, .lead, .sub, .facts-row, .actions {
    opacity: 0;
    animation: rise 0.8s var(--ease) forwards;
  }
  .status-pill {
    opacity: 0;
    animation: rise 0.8s var(--ease) 0.06s forwards;
  }
  h1 { animation-delay: 0.14s; }
  .tagline { animation-delay: 0.2s; }
  .lead { animation-delay: 0.26s; }
  .sub { animation-delay: 0.34s; }
  .facts-row { animation-delay: 0.42s; }
  .actions { animation-delay: 0.5s; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pill-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(229, 72, 77, 0.25), 0 0 18px rgba(229, 72, 77, 0.35); }
  50% { box-shadow: 0 0 0 1px rgba(255, 122, 126, 0.55), 0 0 36px rgba(229, 72, 77, 0.7); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .status-pill { animation: none; }
  .status-pill, h1, .tagline, .lead, .sub, .facts-row, .actions,
  .reveal { opacity: 1; transform: none; }
  .cursor-pulse { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .cursor-pulse { display: none; }
}

/* ---------- 404 ---------- */

.page-404 .header-inner { justify-content: flex-start; }

.not-found {
  min-height: calc(100dvh - 8.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.stage-pill {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--r-cooked);
  border: 1px solid #FF8A86;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 24px rgba(239, 83, 80, 0.4);
}

.not-found .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 22vw, 10.5rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #FF8A86 0%, var(--r-cooked) 52%, rgba(239, 83, 80, 0.32) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(239, 83, 80, 0.35));
  margin-bottom: 1.15rem;
}

.not-found h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 4.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.55rem;
}

.lead-404 {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.not-found-scale {
  width: 100%;
  max-width: 28rem;
  text-align: left;
  margin-bottom: 2.1rem;
}

.not-found-scale .scale-bar span {
  opacity: 0.16;
  filter: grayscale(0.35);
}

.not-found-scale .scale-bar .seg-cooked {
  opacity: 1;
  filter: none;
  box-shadow: 0 0 14px var(--r-cooked);
}

.not-found-scale .scale-labels {
  grid-template-columns: repeat(5, 1fr);
  gap: 0.35rem;
}

.not-found-scale .scale-labels li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  opacity: 0.28;
}

.not-found-scale .scale-labels li::before { display: none; }

.not-found-scale .scale-labels li[data-stage='cooked'] { opacity: 1; }

.not-found-scale .scale-labels b { font-size: 0.68rem; }
.not-found-scale .scale-labels span { font-size: 0.58rem; }

@media (max-width: 22.5em) {
  .not-found-scale .scale-labels {
    grid-template-columns: 1fr;
  }

  .not-found-scale .scale-labels li:not([data-stage='cooked']) {
    display: none;
  }
}

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.7rem 1.15rem;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Legal pages (privacy/terms) ---------- */

.page-hero { padding: 2.25rem 0 1.5rem; border-bottom: 1px solid var(--hairline); }
.page-hero .lead { color: var(--muted); max-width: none; }

.legal-section { padding: 2rem 0 3.5rem; }

.prose { max-width: 42rem; }

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 2.25rem 0 0.75rem;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin: 1.35rem 0 0.5rem;
}

.prose p { color: var(--bone); line-height: 1.65; margin-bottom: 0.85rem; }
.prose ul { margin: 0 0 0.85rem 0; }
.prose li { color: var(--bone); line-height: 1.6; padding-left: 1.1rem; position: relative; margin-bottom: 0.35rem; }
.prose li::before { content: '\2013'; position: absolute; left: 0; color: var(--muted); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.legal-meta strong { color: var(--bone); }

.callout {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.callout a { color: var(--accent); }

.toc {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}
.toc strong { display: block; margin-bottom: 0.5rem; color: var(--text-primary); }
.toc ol { list-style: decimal; padding-left: 1.1rem; display: grid; gap: 0.3rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--accent); }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.prose th { color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.prose td { color: var(--bone); }

.disclaimer { font-size: 0.8rem; color: var(--muted); margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--hairline); }

.btn-home:hover { background: var(--accent-dim); }
