/* ============================================================
   Open Screenshot Generator marketing site
   Palette from the app logo: deep teal ink, teal, gold.
   Type: Space Grotesk throughout, weight carries the hierarchy.
   ============================================================ */

:root {
  --ink: #0a1214;
  --ink-2: #0e191c;
  --panel: rgba(18, 32, 35, 0.72);
  --panel-line: rgba(111, 179, 181, 0.18);
  --teal: #6fb3b5;
  --teal-deep: #457e80;
  --gold: #d4af37;
  --gold-soft: #e8c95c;
  --paper: #f4f1e8;
  --muted: #9ab3b5;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-text: "Space Grotesk", system-ui, sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 5vw, 64px);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
  /* The grain layer is deliberately wider than the viewport, so the sideways
     scroll it would allow is clipped at the root as well as on the body. */
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-text);
  font-weight: 400;
  color: var(--paper);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(69, 126, 128, 0.28), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(69, 126, 128, 0.14), transparent 55%),
    radial-gradient(rgba(111, 179, 181, 0.10) 1px, transparent 1.5px);
  background-color: var(--ink);
  background-size: auto, auto, 26px 26px;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

/* WebGL canvas sits behind everything */
#gl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Film grain overlay */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  z-index: 30;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer, .marquee { position: relative; z-index: 1; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ============ Header ============ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px var(--pad);
  background: linear-gradient(rgba(10, 18, 20, 0.85), rgba(10, 18, 20, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(111, 179, 181, 0.10);
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1), visibility 0s;
}
/* visibility drops the hidden header's links from the tab order too */
.site-header.is-hidden {
  transform: translateY(-110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.6, 0, 0.2, 1), visibility 0s 0.45s;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.brand img { border-radius: 9px; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
}
.brand-name em {
  font-style: normal;
  font-weight: 400;
  color: var(--teal);
}

/* The name is long, so on phones it stacks onto two lines and the header
   shrinks around it rather than crowding the CTA */
@media (max-width: 560px) {
  .site-header { gap: 12px; }
  .site-header .brand { gap: 9px; }
  .site-header .brand img { width: 30px; height: 30px; }
  .site-header .brand-name { font-size: 0.85rem; }
  .site-header .brand-name em { display: block; }
  .site-header .btn-small { padding: 9px 15px; font-size: 0.82rem; }
}

.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  position: relative;
  transition: color 0.25s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.6, 0, 0.2, 1);
}
.site-nav a:hover { color: var(--paper); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

@media (max-width: 860px) {
  .site-nav { display: none; }
  .site-header { justify-content: space-between; }
}

/* On phones the corridor passes behind the copy, so the scrim goes wall to wall */
@media (max-width: 700px) {
  .hero::before {
    inset: -6% 0;
    background: linear-gradient(
      rgba(10, 18, 20, 0.55),
      rgba(10, 18, 20, 0.88) 30%,
      rgba(10, 18, 20, 0.88) 78%,
      rgba(10, 18, 20, 0.4)
    );
  }
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: var(--gold);
  color: #1c1608;
  box-shadow: 0 0 0 rgba(212, 175, 55, 0);
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(212, 175, 55, 0.25);
}

.btn-ghost {
  color: var(--paper);
  border-color: rgba(111, 179, 181, 0.35);
  background: rgba(111, 179, 181, 0.06);
}
.btn-ghost:hover {
  border-color: var(--teal);
  background: rgba(111, 179, 181, 0.14);
  transform: translateY(-2px);
}

.btn-small { padding: 10px 20px; font-size: 0.9rem; }

.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Shared type ============ */

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  max-width: 18ch;
  text-wrap: balance;
}

h2 em, h1 em {
  font-style: normal;
  color: var(--gold);
}

section { padding: clamp(90px, 12vh, 150px) var(--pad); max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; }
section[id], [id="templates"], [id="how"] { scroll-margin-top: 76px; }

/* ============ Hero ============ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 140px;
  position: relative;
}

/* Readability scrim between the WebGL corridor and the hero copy */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 75% at 32% 48%,
    rgba(10, 18, 20, 0.94),
    rgba(10, 18, 20, 0.55) 55%,
    transparent 78%
  );
}

.hero-title {
  font-size: clamp(2.6rem, 7.2vw, 6.2rem);
  margin: 10px 0 30px;
  max-width: 14ch;
}
.hero-title .line { display: block; }

/* The "selected element" motif from the editor */
.selection {
  position: relative;
  display: inline-block;
  padding: clamp(14px, 2vw, 28px) clamp(18px, 2.6vw, 36px);
  outline: 1.5px dashed rgba(111, 179, 181, 0.55);
  outline-offset: 0;
}
.handle {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--gold);
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(10, 18, 20, 0.9);
}
.handle.tl { top: -7px; left: -7px; }
.handle.tr { top: -7px; right: -7px; }
.handle.bl { bottom: -7px; left: -7px; }
.handle.br { bottom: -7px; right: -7px; }

.hero-sub {
  max-width: 54ch;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-fineprint {
  margin-top: 20px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: rgba(154, 179, 181, 0.75);
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--teal), transparent);
  animation: hint 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Hero fallback strips: visible only without WebGL */
.hero-fallback { display: none; }
html.no-webgl .hero-fallback,
html:not(.js) .hero-fallback {
  display: grid;
  gap: 18px;
  margin-top: 60px;
  width: 100%;
}
.hero-fallback img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
}

/* ============ Marquee ============ */

.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(111, 179, 181, 0.14);
  border-bottom: 1px solid rgba(111, 179, 181, 0.14);
  padding: 16px 0;
  background: rgba(14, 25, 28, 0.6);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 36s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.marquee-track i { color: var(--gold); font-style: normal; font-size: 0.8rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============ Steps ============ */

.steps { max-width: none; padding: 0; }

.steps-pin {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 5fr) 6fr;
  gap: clamp(24px, 4vw, 70px);
  align-items: center;
  padding: 90px var(--pad) 60px;
  max-width: calc(var(--max) + 2 * var(--pad) + 160px);
  margin: 0 auto;
}

.steps-copy h2 { margin-bottom: 44px; }

.steps-list { list-style: none; position: relative; }

/* Inactive steps hide visually with opacity only, so assistive technology
   still reads all three steps in order. */
.step-item {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(26px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.step-item.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition: opacity 0.5s ease 0.12s, transform 0.5s ease 0.12s;
}

/* Static fallback: no WebGL, no JS, or reduced motion shows all steps in flow */
html.no-webgl .step-item,
html:not(.js) .step-item {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  margin-bottom: 40px;
  transition: none;
}
html.no-webgl .steps-progress,
html:not(.js) .steps-progress { display: none; }

.step-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  display: block;
  margin-bottom: 14px;
}
.step-item h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-bottom: 12px; }
.step-item p { color: var(--muted); max-width: 44ch; }

.steps-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 46px;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.steps-counter { color: var(--gold); }
.steps-bar {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: rgba(111, 179, 181, 0.25);
  position: relative;
}
.steps-bar-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
}

/* The stage is empty when WebGL draws the screenshots into it */
.steps-stage { position: relative; min-height: 40vh; }

.step-fallback { display: none; }
html.no-webgl .step-fallback[data-step],
html:not(.js) .step-fallback[data-step] {
  display: block;
  margin-bottom: 22px;
}
.step-fallback img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .steps-pin { grid-template-columns: 1fr; align-content: center; }
  .steps-stage { min-height: 34vh; }
  .steps-copy h2 { margin-bottom: 28px; }
}

/* ============ Templates wall ============ */

.wall { max-width: none; padding: 0; }
.wall-pin {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--pad) 70px;
}
.wall-head { max-width: var(--max); margin: 0 auto; width: 100%; }
.wall-sub { color: var(--muted); max-width: 52ch; margin-top: 18px; }

/* Space the WebGL wall flies through */
html.js.webgl .wall-pin::after {
  content: "";
  display: block;
  height: 46vh;
}

.wall-fallback { display: none; }
html.no-webgl .wall-fallback,
html:not(.js) .wall-fallback {
  display: grid;
  gap: 20px;
  max-width: var(--max);
  margin: 50px auto 0;
  width: 100%;
}
.wall-fallback img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
}

/* ============ Features ============ */

.features h2 { margin-bottom: 60px; }

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(111, 179, 181, 0.16);
  border: 1px solid rgba(111, 179, 181, 0.16);
}

.feature-card {
  background: var(--ink-2);
  padding: clamp(26px, 3vw, 42px);
  position: relative;
  transition: background 0.35s;
}
.feature-card:hover { background: #122124; }
.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.6, 0, 0.2, 1);
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-index {
  font-family: var(--font-display);
  color: var(--teal);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 40px;
}
.feature-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 0.97rem; }

@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============ Agent ============ */

.agent {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.agent-copy > p { color: var(--muted); max-width: 50ch; }
.agent-copy h2 { margin-bottom: 20px; }

.agent-modes { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.agent-modes li {
  padding: 16px 20px;
  border-left: 2px solid var(--teal-deep);
  background: rgba(18, 32, 35, 0.5);
  color: var(--muted);
  font-size: 0.95rem;
}
.agent-modes strong { color: var(--paper); display: block; margin-bottom: 2px; font-weight: 600; }

.agent-shot { position: relative; }
.agent-shot img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) { .agent { grid-template-columns: 1fr; } }

/* ============ Privacy hero ============ */

.privacy-hero {
  text-align: center;
  padding-top: clamp(120px, 18vh, 220px);
  padding-bottom: clamp(120px, 18vh, 220px);
}
.privacy-line {
  font-size: clamp(2.6rem, 8vw, 7rem);
  max-width: none;
  margin: 0 auto;
}
.privacy-line .line { display: block; overflow: hidden; }
.privacy-sub {
  margin: 30px auto 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* ============ CTA ============ */

.cta { text-align: center; }
.cta h2 { margin: 0 auto 18px; }
.cta > p { color: var(--muted); margin-bottom: 34px; }
.cta .hero-cta { justify-content: center; }

/* ============ FAQ ============ */

.faq h2 { margin-bottom: 46px; }
.faq-list { display: grid; gap: 0; border-top: 1px solid rgba(111, 179, 181, 0.16); }

.faq details { border-bottom: 1px solid rgba(111, 179, 181, 0.16); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 500;
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal); }
.faq details p {
  padding: 0 4px 26px;
  color: var(--muted);
  max-width: 68ch;
}

/* ============ Footer ============ */

.site-footer {
  border-top: 1px solid rgba(111, 179, 181, 0.16);
  padding: 70px var(--pad) 30px;
  background: rgba(10, 18, 20, 0.85);
}
.footer-top {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; margin-top: 16px; }
.footer-col h3 {
  font-family: var(--font-text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--teal);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s;
  width: fit-content;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(111, 179, 181, 0.10);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: rgba(154, 179, 181, 0.82);
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============ Legal pages ============ */

.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 160px var(--pad) 100px;
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 10px;
}
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 50px; }
.legal h2 {
  font-size: 1.5rem;
  margin: 46px 0 14px;
  max-width: none;
}
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; margin: 12px 0; }
.legal a { color: var(--teal); }
.legal a:hover { color: var(--gold); }
.legal strong { color: var(--paper); }

/* ============ Resource pages ============ */

.resource section { padding: clamp(44px, 7vh, 80px) var(--pad); }
.resource .page-hero { padding-top: 170px; padding-bottom: 26px; }
.resource h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  max-width: 22ch;
  text-wrap: balance;
  margin: 10px 0 22px;
}
.resource .lede {
  color: var(--muted);
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
}
.resource .page-hero .hero-cta { margin-top: 30px; }
.resource h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin-bottom: 22px; }
.resource h3 { font-size: 1.3rem; margin: 34px 0 12px; }
.resource section > p, .resource section > ul > li { color: var(--muted); max-width: 68ch; }
.resource section > ul { list-style: none; display: grid; gap: 10px; }
.resource section > ul > li { padding-left: 22px; position: relative; }
.resource section > ul > li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 6px; }
.resource .updated { color: var(--muted); font-size: 0.9rem; }
.resource a { color: var(--teal); }
.resource a:hover { color: var(--gold); }
.resource .hero-cta a { color: inherit; }

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  background: rgba(14, 25, 28, 0.6);
  margin: 22px 0;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.spec-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  padding: 14px 18px;
  border-bottom: 1px solid rgba(111, 179, 181, 0.25);
  white-space: nowrap;
}
.spec-table td { padding: 13px 18px; border-bottom: 1px solid rgba(111, 179, 181, 0.10); color: var(--muted); vertical-align: top; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { color: var(--paper); font-weight: 500; }
.spec-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--paper); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  white-space: nowrap;
}
.badge-req { background: rgba(212, 175, 55, 0.14); color: var(--gold-soft); border: 1px solid rgba(212, 175, 55, 0.4); }
.badge-opt { background: rgba(111, 179, 181, 0.10); color: var(--teal); border: 1px solid rgba(111, 179, 181, 0.3); }

.note-box {
  border-left: 2px solid var(--gold);
  background: rgba(18, 32, 35, 0.5);
  padding: 18px 22px;
  margin: 26px 0;
  color: var(--muted);
  max-width: 68ch;
}
.note-box strong { color: var(--paper); }

.related-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid li { padding: 0; }
.related-grid li::before { content: none; }
.related-grid a {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--panel-line);
  border-radius: 12px;
  color: var(--paper);
  text-decoration: none;
  background: rgba(14, 25, 28, 0.6);
  font-weight: 500;
  transition: border-color 0.25s, background 0.25s;
}
.related-grid a span { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin-top: 6px; }
.related-grid a:hover { border-color: var(--teal); background: rgba(18, 32, 35, 0.8); color: var(--paper); }
@media (max-width: 860px) { .related-grid { grid-template-columns: 1fr; } }

/* ============ Reveal defaults ============ */

/* Without JS everything stays visible; JS sets initial states itself. */
.reveal { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
}
