/* ============================================================
   Edit-Tools — Alt Style: "The Dark Room"
   A design language native to post-production. Drop-in
   replacement for styles.css — same selectors, new system.

   Principles
   • The grading-suite dark room: cool near-black, flat panels,
     crisp 1px lines. No gradient washes, no perspective tilts.
   • Color = meaning, borrowed from NLE clip roles:
       video blue / audio green / title violet / render orange.
   • Timecode culture: monospace for labels, counters, badges.
   • Timeline motifs: ruler ticks as section dividers, clip-lane
     cards, a render-bar meter, viewer-chrome media frames.
   ============================================================ */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #0a0b0d;
  --panel: #131518;
  --panel-2: #191c21;
  --line: #262b33;
  --line-strong: #333a45;

  /* ink */
  --ink: #e9ebef;
  --muted: #9aa2ae;
  --quiet: #636c79;

  /* clip-role accents */
  --video: #4d9dff;   /* video clip blue  — primary actions, links */
  --audio: #35c48d;   /* audio clip green — success, savings, "trimmed" */
  --title: #a48aff;   /* title violet     — FontAudition surfaces */
  --render: #ff9f45;  /* render orange    — notices, warnings */
  --playhead: #ff5252;/* playhead red     — used only as a hairline */

  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, "JetBrains Mono", Consolas, monospace;

  --radius: 6px;
  --radius-clip: 4px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);

  /* timeline ruler tick pattern (used as section divider) */
  --ruler:
    repeating-linear-gradient(
      90deg,
      var(--line-strong) 0 1px,
      transparent 1px 12px
    );
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  line-height: 1.55;
}

::selection {
  background: rgba(77, 157, 255, 0.32);
}

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

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

/* ------------------------------------------------------------
   Header — the toolbar. Solid, flat, always readable.
   ------------------------------------------------------------ */

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 12px clamp(20px, 4vw, 56px);
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  border-radius: var(--radius-clip);
  color: var(--video);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.nav-links {
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 560;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links > a:hover,
.nav-group:hover > .nav-product {
  color: var(--ink);
  border-bottom-color: var(--video);
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: -12px;
  left: -12px;
  height: 14px;
}

.nav-product::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.72;
}

.nav-menu {
  position: absolute;
  top: 100%;
  left: -12px;
  z-index: 30;
  min-width: 176px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 130ms ease, transform 130ms ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-menu a {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: var(--radius-clip);
  border-bottom: 0;
  color: var(--muted);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: rgba(77, 157, 255, 0.14);
  color: var(--ink);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.language-switcher a {
  padding: 6px 0;
}

.language-switcher a:hover {
  color: var(--muted);
}

.language-switcher a[aria-current="true"] {
  color: var(--video);
  font-weight: 700;
}

.localization-notice {
  position: relative;
  z-index: 12;
  margin: 84px clamp(20px, 5vw, 72px) -60px;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255, 159, 69, 0.35);
  border-left: 3px solid var(--render);
  border-radius: var(--radius-clip);
  background: rgba(255, 159, 69, 0.08);
  color: #f3d7b4;
  font-size: 0.94rem;
}

/* A hard requirement the reader must not miss — "requires Final Cut Pro"
   on the FontAudition WFE pages. Same render-orange language as the
   localization notice (this token means warning and nothing else), but it
   sits inline in a copy column rather than spanning the page. */
.requirement-notice {
  margin: 20px 0 0;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255, 159, 69, 0.35);
  border-left: 3px solid var(--render);
  border-radius: var(--radius-clip);
  background: rgba(255, 159, 69, 0.08);
  color: #f3d7b4;
  font-size: 0.96rem;
}

.requirement-notice strong {
  color: var(--render);
}

.requirement-notice a {
  color: inherit;
  text-decoration-color: rgba(255, 159, 69, 0.5);
}

/* ------------------------------------------------------------
   Hero — the viewer. Full-bleed program monitor with a
   timeline strip riding the bottom edge.
   ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 72px) 88px;
  border-bottom: 1px solid var(--line);
}

/* timeline strip: three clip-role bars + ruler across the hero base */
.hero::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 34px;
  background:
    linear-gradient(90deg,
      rgba(77, 157, 255, 0.75) 0 34%, transparent 34% 35%,
      rgba(77, 157, 255, 0.55) 35% 58%, transparent 58% 59%,
      rgba(164, 138, 255, 0.6) 59% 73%, transparent 73% 74%,
      rgba(77, 157, 255, 0.5) 74% 100%) 0 0 / 100% 12px no-repeat,
    linear-gradient(90deg,
      rgba(53, 196, 141, 0.65) 0 22%, transparent 22% 23%,
      rgba(53, 196, 141, 0.5) 23% 61%, transparent 61% 62%,
      rgba(53, 196, 141, 0.6) 62% 88%, transparent 88% 89%,
      rgba(53, 196, 141, 0.4) 89% 100%) 0 14px / 100% 8px no-repeat,
    var(--ruler) 0 bottom / 100% 6px no-repeat,
    rgba(8, 9, 10, 0.85);
  border-top: 1px solid var(--line);
  pointer-events: none;
}

/* the playhead */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62%;
  z-index: 3;
  width: 1px;
  background: linear-gradient(180deg, transparent 0 12%, rgba(255, 82, 82, 0.7) 30%, rgba(255, 82, 82, 0.9));
  pointer-events: none;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  z-index: 0;
  opacity: 0.6;
}

.hero-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 92px clamp(20px, 6vw, 96px) 140px;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(77, 157, 255, 0.1), transparent 46%),
    var(--bg);
}

/* readability scrim over the video, under the copy */
.hero-video + .hero-fallback::after,
.hero > .hero-copy::before {
  content: none;
}

.hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 11, 13, 0.78);
  backdrop-filter: blur(10px);
}

/* window mock (fallback panel) — flat, no perspective */
.mock-desktop {
  width: min(880px, 82vw);
  margin-left: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: none;
}

.window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d434c;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 440px;
}

.font-stage,
.core-stage {
  padding: clamp(24px, 3vw, 44px);
}

.font-stage {
  background: linear-gradient(180deg, rgba(164, 138, 255, 0.1), transparent 60%), var(--panel);
  border-right: 1px solid var(--line);
}

.core-stage {
  background: var(--panel);
}

/* eyebrow — a slate label: mono, uppercase, clip chip */
.stage-label,
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-label::before,
.eyebrow::before {
  content: "";
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--video);
  flex: none;
}

.type-sample {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  /* Sample strings are display-size, so a single word longer than the
     max-width cannot wrap and shoots out of the card ("IN DEVELOPMENT"
     rendered as "IN DEVELOPMEN" until this was added). Break rather than
     overflow — a clipped sample is always a bug, never a design. */
  overflow-wrap: anywhere;
}

.type-sample.large {
  max-width: 480px;
  font-size: clamp(2.8rem, 6.4vw, 5.2rem);
}

.type-sample.medium {
  margin-top: 22px;
  color: var(--title);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
}

.font-list {
  display: grid;
  gap: 8px;
  margin-top: 44px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.font-list span,
.source-row {
  border: 1px solid var(--line);
  border-left: 3px solid var(--title);
  background: var(--panel-2);
  padding: 11px 14px;
  border-radius: var(--radius-clip);
}

.source-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  border-left-color: var(--video);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.source-row strong {
  color: var(--audio);
  font-weight: 700;
}

/* the render bar */
.meter {
  height: 12px;
  margin: 40px 0 14px;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.meter span {
  display: block;
  width: 76%;
  height: 100%;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.14) 0 6px,
      transparent 6px 12px
    ),
    linear-gradient(90deg, var(--video), var(--audio));
}

.saving {
  color: var(--audio);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8.5vw, 6.8rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  margin: 20px 0 0;
  color: #cfd4db;
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* buttons — clips. Primary = a selected video clip. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-clip);
  font-weight: 660;
  font-size: 0.98rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button.primary {
  background: var(--video);
  color: #08111d;
  border: 1px solid transparent;
}

.button.primary:hover {
  box-shadow: 0 0 0 2px rgba(77, 157, 255, 0.45), 0 10px 26px rgba(77, 157, 255, 0.22);
  transform: translateY(-1px);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--video);
  box-shadow: 0 0 0 1px var(--video) inset;
}

/* ------------------------------------------------------------
   Bands & sections — panels split by ruler ticks.
   ------------------------------------------------------------ */

.demo-band,
.updates {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

/* timeline-ruler divider under each major band */
.demo-band::after,
.updates::after,
.product::after,
.mode-band::after,
.workflow::after,
.safety-band::after,
.diagnostics-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--ruler) 0 bottom / 100% 8px no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.demo-band,
.updates,
.product,
.mode-band,
.workflow,
.safety-band,
.diagnostics-section {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.section-copy h2,
.product-copy h2,
.updates h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 760;
}

.section-copy p:not(.eyebrow),
.product-copy p,
.updates p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* media panels — the viewer frame with safe-area corner ticks */
.video-panel {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d0f11;
  box-shadow: var(--shadow);
}

.video-panel::after,
.product-media::after,
.guide-screenshot::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  border-radius: 2px;
  background:
    linear-gradient(var(--quiet), var(--quiet)) 0 0 / 14px 1px,
    linear-gradient(var(--quiet), var(--quiet)) 0 0 / 1px 14px,
    linear-gradient(var(--quiet), var(--quiet)) 100% 0 / 14px 1px,
    linear-gradient(var(--quiet), var(--quiet)) 100% 0 / 1px 14px,
    linear-gradient(var(--quiet), var(--quiet)) 0 100% / 14px 1px,
    linear-gradient(var(--quiet), var(--quiet)) 0 100% / 1px 14px,
    linear-gradient(var(--quiet), var(--quiet)) 100% 100% / 14px 1px,
    linear-gradient(var(--quiet), var(--quiet)) 100% 100% / 1px 14px;
  background-repeat: no-repeat;
  opacity: 0.55;
  pointer-events: none;
}

.video-panel video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 380px;
  padding: 28px;
  text-align: center;
}

.video-placeholder span {
  color: var(--render);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.video-placeholder strong {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.video-placeholder p {
  margin: 0;
  color: var(--muted);
}

/* ------------------------------------------------------------
   Products — alternating lanes.
   ------------------------------------------------------------ */

.products {
  display: grid;
}

.product {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
  background: var(--bg);
}

.product.reverse .product-media {
  order: 2;
}

.product-media {
  min-height: 420px;
  min-width: 0;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #0d0f11;
}

.screenshot-card,
.real-screenshot,
.wide-screenshot {
  margin: 0;
}

.product-media img {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.screenshot-card {
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: #0d0f11;
  box-shadow: var(--shadow);
}

.screenshot-card img,
.real-screenshot img,
.wide-screenshot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-card img {
  position: static;
  border-radius: 0;
  box-shadow: none;
}

.fontaudition-media {
  background: linear-gradient(180deg, rgba(164, 138, 255, 0.12), transparent 55%), #101014;
}

.coretrim-media {
  background: linear-gradient(180deg, rgba(53, 196, 141, 0.1), transparent 55%), #0e1210;
}

.font-preview,
.export-preview {
  width: min(520px, 78%);
  border: 1px solid var(--line-strong);
  background: rgba(8, 9, 10, 0.55);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 42px);
}

.font-preview span,
.export-preview span {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.font-preview strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.font-preview p {
  max-width: 320px;
  margin: 22px 0 0;
  color: var(--muted);
}

.export-preview {
  display: grid;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.export-preview div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.export-preview div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.export-preview strong {
  color: var(--audio);
  text-align: right;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #ccd1d9;
}

/* in-point bracket marker */
.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.34em;
  left: 0;
  width: 7px;
  height: 0.9em;
  border: 2px solid var(--audio);
  border-right: 0;
  border-radius: 1px;
}

.version-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.version-card {
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--video);
  border-radius: var(--radius-clip);
  background: var(--panel);
}

.version-card span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.version-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.version-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.bundle-card {
  border-top-color: var(--title);
  background: linear-gradient(180deg, rgba(164, 138, 255, 0.08), transparent 60%), var(--panel);
}

.buyer-note {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 3px solid var(--render);
  border-radius: 0 var(--radius-clip) var(--radius-clip) 0;
  background: rgba(255, 159, 69, 0.07);
  color: #ead9c2;
}

.compatibility-note {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--video);
  border-radius: var(--radius-clip);
  background: var(--panel);
}

.compatibility-note h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.compatibility-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-link {
  margin-top: 28px;
}

.product-link a {
  color: var(--video);
  font-weight: 660;
  border-bottom: 1px solid transparent;
}

.product-link a:hover {
  border-bottom-color: var(--video);
}

.updates {
  background: var(--panel);
}

/* ------------------------------------------------------------
   Guide pages.
   ------------------------------------------------------------ */

.guide-page {
  background: var(--bg);
}

.guide-hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  padding: 128px clamp(20px, 5vw, 72px) 72px;
  border-bottom: 1px solid var(--line);
}

.guide-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--ruler) 0 bottom / 100% 8px no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

.guide-copy h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 780;
}

.guide-copy,
.guide-screenshot {
  min-width: 0;
}

.guide-copy p:not(.eyebrow) {
  max-width: 650px;
  color: #c9ced6;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
}

.guide-screenshot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d0f11;
  box-shadow: var(--shadow);
}

.real-screenshot {
  aspect-ratio: 16 / 9;
  width: 100%;
  min-width: 0;
}

.wide-screenshot {
  overflow: hidden;
  max-width: min(1380px, calc(100% - clamp(40px, 10vw, 144px)));
  margin: clamp(44px, 6vw, 76px) auto 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0d0f11;
  box-shadow: var(--shadow);
}

.workflow-screenshot {
  aspect-ratio: 3798 / 894;
}

.guide-window-bar {
  display: flex;
  gap: 8px;
  height: 32px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
}

.guide-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3d434c;
}

.guide-toolbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #08090b;
}

.guide-toolbar div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.guide-toolbar span,
.guide-footer span {
  color: var(--quiet);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-toolbar strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-table {
  display: grid;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.guide-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) 0.55fr 0.8fr minmax(120px, 0.8fr);
  gap: 16px;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  color: #c6ccd5;
}

.guide-row:hover {
  background: rgba(77, 157, 255, 0.05);
}

.guide-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-row strong {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  border-radius: 3px;
  border-left: 3px solid var(--audio);
  background: rgba(53, 196, 141, 0.12);
  color: var(--audio);
  padding: 5px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-head {
  color: var(--quiet);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.guide-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: rgba(53, 196, 141, 0.06);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.guide-footer strong {
  color: var(--audio);
}

.fontaudition-guide-hero {
  background:
    radial-gradient(ellipse at 76% 18%, rgba(164, 138, 255, 0.12), transparent 40%),
    var(--bg);
}

.fontaudition-guide-card {
  background: linear-gradient(180deg, rgba(164, 138, 255, 0.14), transparent 60%), #101014;
}

.fontaudition-demo {
  min-height: 520px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 4vw, 52px);
}

.fontaudition-demo img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.fontaudition-demo .type-sample.large {
  max-width: 520px;
}

/* ------------------------------------------------------------
   Mode / workflow / safety bands.
   ------------------------------------------------------------ */

.mode-band,
.workflow,
.safety-band {
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.mode-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--panel);
}

.mode-grid,
.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.mode-card,
.safety-grid article {
  min-height: 230px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--video);
  border-radius: var(--radius-clip);
  background: var(--panel-2);
  transition: border-color 130ms ease, transform 130ms ease;
}

.mode-card:hover,
.safety-grid article:hover {
  border-color: var(--line-strong);
  border-top-color: var(--video);
  transform: translateY(-2px);
}

.mode-card:nth-child(2) {
  border-top-color: var(--audio);
}

.mode-card span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mode-card h3,
.step-list h3,
.safety-grid h3 {
  margin: 12px 0 0;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.mode-card p,
.step-list p,
.safety-grid p {
  color: var(--muted);
}

.workflow {
  display: grid;
  gap: 40px;
}

.workflow .section-copy {
  max-width: 860px;
}

.step-list {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(24px, 4vw, 36px);
  background: var(--panel);
}

.step-list > li > span {
  color: var(--video);
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
}

/* timecode-style suffix on step numbers */
.step-list > li > span::after {
  content: ":00";
  color: var(--quiet);
  font-size: 0.6em;
}

.step-list h3 {
  margin-top: 0;
}

.step-list p {
  max-width: 820px;
  margin-bottom: 0;
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  background: var(--panel);
}

.safety-grid article {
  min-height: 190px;
  border-top-color: var(--audio);
}

.secondary-link {
  margin-top: 10px;
}

.secondary-link a {
  color: var(--muted);
}

.secondary-link a:hover {
  color: var(--video);
}

/* ------------------------------------------------------------
   FAQ.
   ------------------------------------------------------------ */

.faq-hero {
  position: relative;
  padding: 132px clamp(20px, 5vw, 72px) 72px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.faq-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--ruler) 0 bottom / 100% 8px no-repeat;
  opacity: 0.85;
}

.faq-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 780;
}

.faq-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #c9ced6;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.faq-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 72px);
}

.faq-nav {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.faq-nav a {
  border-radius: var(--radius-clip);
  border-left: 3px solid transparent;
  color: var(--muted);
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.94rem;
}

.faq-nav a:hover {
  border-left-color: var(--video);
  background: rgba(77, 157, 255, 0.08);
  color: var(--ink);
}

.faq-content {
  display: grid;
  gap: 44px;
}

.faq-section {
  display: grid;
  gap: 10px;
  scroll-margin-top: 90px;
}

.faq-section h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  letter-spacing: -0.02em;
}

.faq-section h2::before {
  content: "//";
  color: var(--video);
  font-family: var(--font-mono);
  font-size: 0.72em;
  font-weight: 700;
}

.comparison-chart {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.comparison-intro {
  display: grid;
  gap: 6px;
  padding: 22px 22px 0;
}

.comparison-intro h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.015em;
}

.comparison-intro p {
  margin: 0;
  color: var(--muted);
}

.comparison-scroll {
  overflow-x: auto;
}

.comparison-chart table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.comparison-chart th,
.comparison-chart td {
  border-top: 1px solid var(--line);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.comparison-chart thead th {
  color: var(--video);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.comparison-chart tbody th {
  width: 25%;
  color: var(--ink);
  font-weight: 700;
}

.comparison-chart td {
  color: var(--muted);
}

.comparison-chart td:nth-child(3),
.comparison-chart td:nth-child(4) {
  color: #ccd1d9;
}

.faq-section details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: var(--radius-clip);
  background: var(--panel);
  transition: border-color 130ms ease;
}

.faq-section details[open] {
  border-left-color: var(--video);
}

.faq-section summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 660;
}

.faq-section summary:hover {
  background: rgba(77, 157, 255, 0.05);
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  float: right;
  color: var(--video);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-section details[open] summary::after {
  content: "–";
}

.faq-section details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  max-width: 880px;
}

/* ------------------------------------------------------------
   Support.
   ------------------------------------------------------------ */

.support-hero {
  position: relative;
  padding: 132px clamp(20px, 5vw, 72px) 72px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.support-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: var(--ruler) 0 bottom / 100% 8px no-repeat;
  opacity: 0.85;
}

.support-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 780;
}

.support-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #c9ced6;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
}

.support-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.support-card {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 24px;
  align-items: start;
  min-height: 340px;
  padding: clamp(34px, 5vw, 60px);
  background: var(--bg);
}

.support-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.support-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.support-card p:not(.eyebrow),
.diagnostics-section p,
.support-note p {
  color: var(--muted);
}

.text-button {
  display: inline-flex;
  margin-top: 16px;
  color: var(--video);
  font-weight: 660;
  border-bottom: 1px solid transparent;
}

.text-button:hover {
  border-bottom-color: var(--video);
}

.diagnostics-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(64px, 8vw, 108px) clamp(20px, 5vw, 72px);
}

.diagnostic-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diagnostic-steps li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--video);
  border-radius: var(--radius-clip);
  background: var(--panel);
}

.diagnostic-steps > li > span {
  color: var(--video);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.diagnostic-steps h3 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.diagnostic-steps p {
  margin-bottom: 0;
}

.support-note {
  padding: clamp(54px, 7vw, 86px) clamp(20px, 5vw, 72px);
  background: var(--panel);
}

.support-note h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.support-note p {
  max-width: 780px;
  font-size: 1.06rem;
}

/* ------------------------------------------------------------
   Motion restraint.
   ------------------------------------------------------------ */

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

  .button,
  .mode-card,
  .safety-grid article,
  .nav-menu {
    transition: none;
  }
}

/* ------------------------------------------------------------
   Mobile.
   ------------------------------------------------------------ */

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    gap: 12px;
  }

  .brand {
    order: 1;
  }

  .nav-links {
    order: 2;
    width: 100%;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.88rem;
  }

  .language-switcher {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
    padding-left: 2px;
  }

  .localization-notice {
    margin-top: 118px;
    margin-bottom: -76px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 172px;
    padding-bottom: 96px;
  }

  .hero::after {
    left: 78%;
  }

  .hero .hero-copy {
    width: calc(100vw - 48px);
    max-width: 400px;
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 3.4rem);
    overflow-wrap: anywhere;
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1.02rem;
  }

  .hero-fallback {
    padding: 130px 18px 180px;
  }

  .mock-desktop {
    width: 108vw;
    opacity: 0.5;
    transform: translateX(14vw);
  }

  .demo-grid,
  .demo-band,
  .updates,
  .product,
  .guide-hero,
  .mode-band,
  .safety-band {
    grid-template-columns: 1fr;
  }

  .demo-grid {
    min-height: 560px;
  }

  .font-stage {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product.reverse .product-media {
    order: 0;
  }

  .product-media,
  .video-panel {
    min-height: 0;
  }

  .guide-hero {
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-top: 128px;
    overflow: hidden;
  }

  .guide-copy h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 9vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  .guide-copy,
  .guide-screenshot {
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .guide-copy {
    max-width: 340px;
  }

  .guide-copy p:not(.eyebrow) {
    max-width: 100%;
    font-size: 1rem;
    overflow-wrap: break-word;
  }

  .guide-toolbar,
  .guide-row {
    grid-template-columns: 1fr;
  }

  .guide-row {
    gap: 6px;
  }

  .guide-head {
    display: none;
  }

  .guide-footer {
    display: grid;
  }

  .mode-grid,
  .safety-grid,
  .version-grid {
    grid-template-columns: 1fr;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .faq-hero {
    padding-top: 128px;
  }

  .faq-hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq-nav a {
    font-size: 0.92rem;
  }

  .support-hero {
    padding-top: 128px;
  }

  .support-hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  .support-options,
  .diagnostics-section {
    grid-template-columns: 1fr;
  }

  .support-card,
  .diagnostic-steps li {
    grid-template-columns: 1fr;
  }
}
