/* ShowCountdown homepage — dual-theme stage-control design system.
   Rollback (one line): remove the sc-theme.js <script> and this <link> from index.html.

   Themes:  html[data-theme="dark"]  = broadcast control room
            html[data-theme="light"] = conference / business
   Signals: lime = on time · amber = warning · red = wrap-up, overtime, LIVE tally · cyan = control, info
   Note:    the base stylesheet uses both --ink and --paper as *text* colors in its final cascade,
            so both map to the primary text color here. Backgrounds come from --sc-bg.
   Order:   1 tokens · 2 base · 3 header · 4 hero · 5 stage gear · 6 sections · 7 footer · 8 responsive */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Radii */
  --sc-radius-xs: 4px;
  --sc-radius-sm: 8px;
  --sc-radius-md: 12px;
  --sc-radius-lg: 18px;

  /* Spacing */
  --sc-space-1: 4px;
  --sc-space-2: 8px;
  --sc-space-3: 12px;
  --sc-space-4: 16px;
  --sc-space-5: 24px;
  --sc-space-6: 32px;
  --sc-space-7: 48px;
  --sc-space-8: 64px;
  --sc-section: clamp(72px, 9vw, 124px);

  /* Layout */
  --sc-container: 1240px;
  --sc-gutter: 48px;
  --sc-header-h: 68px;
  --sc-control-h: 40px;

  /* Type */
  --sc-font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --sc-font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --sc-font-timer: DSEG7, "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;

  /* Stage gear: identical in both themes, like hardware on a desk */
  --sc-stage-chassis: #0e1217;
  --sc-stage-panel: #151a21;
  --sc-stage-screen: #05070a;
  --sc-stage-line: #2a323d;
  --sc-stage-line-strong: #3d4855;
  --sc-stage-text: #eef2f6;
  --sc-stage-text-2: #b4bfcb;
  --sc-stage-text-3: #8f9baa;
  --sc-stage-lime: #b5ff66;
  --sc-stage-amber: #ffc66b;
  --sc-stage-red: #ff6f79;
  --sc-stage-cyan: #56d9ff;
  --sc-stage-tally: #e0202b;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --sc-bg: #0a0d12;
  --sc-bg-alt: #0e1218;
  --sc-surface: #12171e;
  --sc-surface-2: #1a212b;
  --sc-line: #27303c;
  --sc-line-strong: #3d4958;
  --sc-text: #f1f4f7;
  --sc-text-2: #aeb9c6;
  --sc-text-3: #8693a3;
  --sc-accent: #56d9ff;
  --sc-accent-strong: #8fe6ff;
  --sc-accent-soft: rgba(86, 217, 255, .1);
  --sc-action: #56d9ff;
  --sc-action-hover: #8fe6ff;
  --sc-action-ink: #04151c;
  --sc-header-bg: rgba(10, 13, 18, .84);
  --sc-menu-bg: #12171e;
  --sc-grid: rgba(255, 255, 255, .028);
  --sc-glow: rgba(86, 217, 255, .1);
  --sc-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  --sc-shadow-gear: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03);
  --sc-cta-bg: #12171e;
  --sc-cta-text: #f1f4f7;
  --sc-cta-text-2: #aeb9c6;
  --sc-cta-glow: rgba(86, 217, 255, .17);
  --sc-footer-bg: #07090d;
  --sc-mark-bg: #1a212b;
  --sc-mark-track: #3a4553;
  --sc-mark-progress: #b5ff66;
  --sc-mark-core: #f1f4f7;
  --sc-mark-tally: #ff4d57;
  --ink: #f1f4f7;
  --paper: #f1f4f7;
  --surface: #12171e;
  --surface-raised: #1a212b;
  --muted: #aeb9c6;
  --muted-cool: #aeb9c6;
  --line: #27303c;
  --line-cool: #27303c;
  --panel: #12171e;
  --panel-high: #1a212b;
  --green: #b5ff66;
  --blue: #56d9ff;
  --signal-lime: #b5ff66;
  --signal-amber: #ffc66b;
  --signal-red: #ff6f79;
  --signal-cyan: #56d9ff;
}

html[data-theme="light"] {
  color-scheme: light;
  --sc-bg: #f6f8fa;
  --sc-bg-alt: #edf1f5;
  --sc-surface: #ffffff;
  --sc-surface-2: #f1f4f8;
  --sc-line: #dbe1e8;
  --sc-line-strong: #b4bfcb;
  --sc-text: #0f1a26;
  --sc-text-2: #47576a;
  --sc-text-3: #5f6d7d;
  --sc-accent: #0a5cad;
  --sc-accent-strong: #084a8c;
  --sc-accent-soft: rgba(10, 92, 173, .08);
  --sc-action: #0a5cad;
  --sc-action-hover: #084a8c;
  --sc-action-ink: #ffffff;
  --sc-header-bg: rgba(255, 255, 255, .88);
  --sc-menu-bg: #ffffff;
  --sc-grid: rgba(15, 26, 38, .03);
  --sc-glow: rgba(10, 92, 173, .08);
  --sc-shadow: 0 14px 34px rgba(24, 42, 62, .1);
  --sc-shadow-gear: 0 36px 80px rgba(15, 26, 38, .28), 0 4px 14px rgba(15, 26, 38, .12);
  --sc-cta-bg: #0f1a26;
  --sc-cta-text: #ffffff;
  --sc-cta-text-2: #bcc7d3;
  --sc-cta-glow: rgba(86, 217, 255, .2);
  --sc-footer-bg: #edf1f5;
  --sc-mark-bg: #e4eaf0;
  --sc-mark-track: #bfcad6;
  --sc-mark-progress: #15803d;
  --sc-mark-core: #0f1a26;
  --sc-mark-tally: #d92d35;
  --ink: #0f1a26;
  --paper: #0f1a26;
  --surface: #ffffff;
  --surface-raised: #f1f4f8;
  --muted: #47576a;
  --muted-cool: #47576a;
  --line: #dbe1e8;
  --line-cool: #dbe1e8;
  --panel: #ffffff;
  --panel-high: #f1f4f8;
  --green: #15803d;
  --blue: #0a5cad;
  --signal-lime: #15803d;
  --signal-amber: #a65f00;
  --signal-red: #c81e2b;
  --signal-cyan: #0a6a9e;
}

/* FOUC guard: mirrors the two blocks above until sc-theme.js sets data-theme */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --sc-bg: #0a0d12;
    --sc-bg-alt: #0e1218;
    --sc-surface: #12171e;
    --sc-surface-2: #1a212b;
    --sc-line: #27303c;
    --sc-line-strong: #3d4958;
    --sc-text: #f1f4f7;
    --sc-text-2: #aeb9c6;
    --sc-text-3: #8693a3;
    --sc-accent: #56d9ff;
    --sc-accent-strong: #8fe6ff;
    --sc-accent-soft: rgba(86, 217, 255, .1);
    --sc-action: #56d9ff;
    --sc-action-hover: #8fe6ff;
    --sc-action-ink: #04151c;
    --sc-header-bg: rgba(10, 13, 18, .84);
    --sc-menu-bg: #12171e;
    --sc-grid: rgba(255, 255, 255, .028);
    --sc-glow: rgba(86, 217, 255, .1);
    --sc-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    --sc-shadow-gear: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03);
    --sc-cta-bg: #12171e;
    --sc-cta-text: #f1f4f7;
    --sc-cta-text-2: #aeb9c6;
    --sc-cta-glow: rgba(86, 217, 255, .17);
    --sc-footer-bg: #07090d;
    --sc-mark-bg: #1a212b;
    --sc-mark-track: #3a4553;
    --sc-mark-progress: #b5ff66;
    --sc-mark-core: #f1f4f7;
    --sc-mark-tally: #ff4d57;
    --ink: #f1f4f7;
    --paper: #f1f4f7;
    --surface: #12171e;
    --surface-raised: #1a212b;
    --muted: #aeb9c6;
    --muted-cool: #aeb9c6;
    --line: #27303c;
    --line-cool: #27303c;
    --panel: #12171e;
    --panel-high: #1a212b;
    --green: #b5ff66;
    --blue: #56d9ff;
    --signal-lime: #b5ff66;
    --signal-amber: #ffc66b;
    --signal-red: #ff6f79;
    --signal-cyan: #56d9ff;
  }
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) {
    color-scheme: light;
    --sc-bg: #f6f8fa;
    --sc-bg-alt: #edf1f5;
    --sc-surface: #ffffff;
    --sc-surface-2: #f1f4f8;
    --sc-line: #dbe1e8;
    --sc-line-strong: #b4bfcb;
    --sc-text: #0f1a26;
    --sc-text-2: #47576a;
    --sc-text-3: #5f6d7d;
    --sc-accent: #0a5cad;
    --sc-accent-strong: #084a8c;
    --sc-accent-soft: rgba(10, 92, 173, .08);
    --sc-action: #0a5cad;
    --sc-action-hover: #084a8c;
    --sc-action-ink: #ffffff;
    --sc-header-bg: rgba(255, 255, 255, .88);
    --sc-menu-bg: #ffffff;
    --sc-grid: rgba(15, 26, 38, .03);
    --sc-glow: rgba(10, 92, 173, .08);
    --sc-shadow: 0 14px 34px rgba(24, 42, 62, .1);
    --sc-shadow-gear: 0 36px 80px rgba(15, 26, 38, .28), 0 4px 14px rgba(15, 26, 38, .12);
    --sc-cta-bg: #0f1a26;
    --sc-cta-text: #ffffff;
    --sc-cta-text-2: #bcc7d3;
    --sc-cta-glow: rgba(86, 217, 255, .2);
    --sc-footer-bg: #edf1f5;
    --sc-mark-bg: #e4eaf0;
    --sc-mark-track: #bfcad6;
    --sc-mark-progress: #15803d;
    --sc-mark-core: #0f1a26;
    --sc-mark-tally: #d92d35;
    --ink: #0f1a26;
    --paper: #0f1a26;
    --surface: #ffffff;
    --surface-raised: #f1f4f8;
    --muted: #47576a;
    --muted-cool: #47576a;
    --line: #dbe1e8;
    --line-cool: #dbe1e8;
    --panel: #ffffff;
    --panel-high: #f1f4f8;
    --green: #15803d;
    --blue: #0a5cad;
    --signal-lime: #15803d;
    --signal-amber: #a65f00;
    --signal-red: #c81e2b;
    --signal-cyan: #0a6a9e;
  }
}

/* Stage gear keeps its bright signals on the dark screen in both themes */
.product-preview,
.link-card,
.confidence-monitor {
  color-scheme: dark;
  --signal-lime: var(--sc-stage-lime);
  --signal-amber: var(--sc-stage-amber);
  --signal-red: var(--sc-stage-red);
  --signal-cyan: var(--sc-stage-cyan);
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html,
body {
  background: var(--sc-bg);
  color: var(--sc-text);
}

body {
  font-family: var(--sc-font-sans);
}

::selection {
  background: var(--sc-accent);
  color: var(--sc-action-ink);
}

.marketing-page {
  background:
    radial-gradient(ellipse 70rem 34rem at 78% -6rem, var(--sc-glow), transparent 70%),
    var(--sc-bg);
  color: var(--sc-text);
}

/* Faint alignment grid, like a monitor wall layout, fading out under the hero */
.marketing-page::before {
  height: 860px;
  bottom: auto;
  position: absolute;
  opacity: 1;
  background-image:
    linear-gradient(var(--sc-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sc-grid) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(#000 35%, transparent);
  mask-image: linear-gradient(#000 35%, transparent);
}

.marketing-page section[id] {
  scroll-margin-top: var(--sc-header-h);
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sc-space-2);
  color: var(--sc-accent);
  font: 600 12px/1.3 var(--sc-font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  flex: none;
  background: currentColor;
}

.marketing-section > h2,
.steps-section > h2,
.split-copy h2,
.use-cases-section h2,
.comparison-section > h2,
.faq-section > h2 {
  max-width: 760px;
  margin: var(--sc-space-4) 0 var(--sc-space-4);
  color: var(--sc-text);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}

.marketing-section > p,
.split-copy p,
.use-cases-section p {
  max-width: 640px;
  margin: 0;
  color: var(--sc-text-2);
  font-size: 17px;
  line-height: 1.65;
}

.marketing-section,
.split-section,
.use-cases-section,
.comparison-section,
.faq-section,
.hero-section {
  width: min(var(--sc-container), calc(100% - var(--sc-gutter)));
  margin-inline: auto;
}

.marketing-section {
  padding: var(--sc-section) 0;
  text-align: left;
}

/* The base stylesheet lays this section out as a grid, which would squeeze the feature rack */
.intro-section {
  display: block;
}

/* ==========================================================================
   3. Header
   ========================================================================== */

.marketing-page > .marketing-header {
  position: sticky;
  top: 0;
  z-index: 120;
  width: 100%;
  height: var(--sc-header-h);
  padding: 0 max(24px, calc((100% - var(--sc-container)) / 2));
  gap: var(--sc-space-5);
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-header-bg);
}

.marketing-brand,
.marketing-header .marketing-brand,
.marketing-footer .marketing-brand {
  gap: 10px;
  flex: none;
  color: var(--sc-text);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.marketing-header .marketing-brand span {
  color: var(--sc-text);
}

/* Logo mark */
.sc-brand-mark-wrap {
  display: inline-flex;
  flex: none;
  line-height: 0;
}

.sc-brand-mark {
  display: block;
  width: 32px;
  height: 32px;
}

.marketing-footer .sc-brand-mark {
  width: 26px;
  height: 26px;
}

.sc-mark-bg { fill: var(--sc-mark-bg); }
.sc-mark-track { stroke: var(--sc-mark-track); }
.sc-mark-progress { stroke: var(--sc-mark-progress); }
.sc-mark-core { fill: var(--sc-mark-core); }
.sc-mark-tally { fill: var(--sc-mark-tally); }

/* Navigation */
.marketing-header nav {
  gap: 2px;
}

.marketing-header nav a {
  min-height: var(--sc-control-h);
  padding: 0 10px;
  border-radius: var(--sc-radius-sm);
  color: var(--sc-text-2);
  font-size: 13px;
  font-weight: 600;
}

.marketing-header nav a:hover {
  background: var(--sc-accent-soft);
  color: var(--sc-text);
}

.marketing-header nav .feedback-nav-link {
  margin-left: var(--sc-space-1);
  border: 1px solid var(--sc-line);
  background: transparent;
  color: var(--sc-text-2);
  font-weight: 600;
}

.marketing-header nav .feedback-nav-link:hover {
  border-color: var(--sc-accent);
  background: var(--sc-accent-soft);
  color: var(--sc-text);
}

/* Actions */
.marketing-actions {
  gap: var(--sc-space-2);
}

.language-link,
.sc-theme-toggle,
.mobile-nav-toggle {
  height: var(--sc-control-h);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  background: transparent;
  color: var(--sc-text-2);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.language-link {
  min-width: var(--sc-control-h);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.language-link:hover,
.sc-theme-toggle:hover,
.mobile-nav-toggle:hover {
  border-color: var(--sc-accent);
  background: var(--sc-accent-soft);
  color: var(--sc-text);
}

.text-link,
.account-link {
  padding: 0 var(--sc-space-2);
  color: var(--sc-text-2);
  font-size: 13px;
  font-weight: 600;
}

.text-link:hover {
  color: var(--sc-text);
}

/* Theme toggle */
.sc-theme-toggle {
  width: var(--sc-control-h);
  padding: 0;
  display: inline-grid;
  flex: none;
  place-items: center;
  cursor: pointer;
}

.sc-theme-toggle:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}

.sc-theme-icon {
  display: none;
  line-height: 0;
}

html[data-theme="dark"] .sc-theme-icon-sun,
html[data-theme="light"] .sc-theme-icon-moon {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .sc-theme-icon-sun { display: inline-flex; }
}

@media (prefers-color-scheme: light) {
  html:not([data-theme]) .sc-theme-icon-moon { display: inline-flex; }
}

.sc-theme-toggle--fixed {
  position: fixed;
  top: var(--sc-space-3);
  right: var(--sc-space-3);
  z-index: 200;
  background: var(--sc-surface);
  box-shadow: var(--sc-shadow);
}

/* Primary action */
.primary-link,
.hero-primary {
  border-radius: var(--sc-radius-sm);
  background: var(--sc-action);
  color: var(--sc-action-ink);
  font-weight: 700;
  box-shadow: none;
}

.primary-link:hover,
.hero-primary:hover {
  background: var(--sc-action-hover);
  color: var(--sc-action-ink);
  box-shadow: 0 10px 26px var(--sc-glow);
}

.primary-link {
  height: var(--sc-control-h);
  padding: 0 14px;
  flex: none;
  font-size: 13px;
}

.mobile-nav-toggle {
  width: var(--sc-control-h);
}

/* ==========================================================================
   4. Hero
   ========================================================================== */

.hero-section {
  min-height: 0;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(40px, 5vw, 72px);
}

.hero-kicker svg {
  flex: none;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 18px 0 var(--sc-space-5);
  color: var(--sc-text);
  font-size: clamp(42px, 4.7vw, 68px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.hero-copy h1 em {
  color: var(--sc-accent);
  font-style: normal;
}

.hero-copy > p {
  max-width: 540px;
  color: var(--sc-text-2);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: var(--sc-space-3);
  margin: var(--sc-space-6) 0 var(--sc-space-3);
}

.hero-primary {
  min-height: 50px;
  padding: 0 22px;
  font-size: 15px;
}

.hero-secondary {
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--sc-line-strong);
  border-radius: var(--sc-radius-sm);
  background: transparent;
  color: var(--sc-text);
  font-size: 15px;
  font-weight: 650;
}

.hero-secondary:hover {
  border-color: var(--sc-accent);
  background: var(--sc-accent-soft);
  color: var(--sc-text);
}

.hero-copy > small {
  color: var(--sc-text-3);
  font-size: 13px;
}

/* Trust strip */
.trust-strip {
  min-height: 76px;
  padding: var(--sc-space-4) max(24px, calc((100% - var(--sc-container)) / 2));
  gap: var(--sc-space-5);
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-bg-alt);
  color: var(--sc-text-2);
}

.trust-strip span {
  color: var(--sc-text-3);
  font: 600 11px/1.3 var(--sc-font-mono);
  letter-spacing: .1em;
}

.trust-strip strong,
.trust-strip a {
  color: var(--sc-text-2);
  font-size: 15px;
  font-weight: 650;
}

.trust-strip a:hover {
  color: var(--sc-accent);
}

/* ==========================================================================
   5. Stage gear: preview and link card stay dark in both themes
   ========================================================================== */

.product-preview {
  border: 1px solid var(--sc-stage-line-strong);
  border-radius: var(--sc-radius-lg);
  background: linear-gradient(180deg, #171c23, var(--sc-stage-chassis) 90px);
  color: var(--sc-stage-text);
  box-shadow: var(--sc-shadow-gear);
}

.product-preview::after {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

@media (hover: hover) and (pointer: fine) {
  .product-preview:hover {
    transform: none;
    box-shadow: var(--sc-shadow-gear);
  }
}

.preview-bar {
  height: 50px;
  padding: 0 var(--sc-space-4);
  border-bottom: 1px solid var(--sc-stage-line);
  color: var(--sc-stage-text);
  font-size: 13px;
  font-weight: 650;
}

.preview-bar svg {
  color: var(--sc-stage-cyan);
}

/* LIVE tally */
.preview-live {
  padding: 5px 10px 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: var(--sc-radius-xs);
  background: var(--sc-stage-tally);
  color: #ffffff;
  font: 700 11px/1 var(--sc-font-mono);
  letter-spacing: .12em;
  animation: sc-tally 2.4s ease-in-out infinite;
}

.preview-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
}

@keyframes sc-tally {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 32, 43, 0), 0 0 16px rgba(224, 32, 43, .55); }
  50% { box-shadow: 0 0 0 4px rgba(224, 32, 43, .2), 0 0 24px rgba(224, 32, 43, .75); }
}

.preview-body {
  min-height: 390px;
  padding: var(--sc-space-3);
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: var(--sc-space-3);
}

/* Confidence monitor */
.preview-display,
.preview-list {
  border: 1px solid var(--sc-stage-line);
  border-radius: var(--sc-radius-md);
}

.preview-display {
  padding: 44px var(--sc-space-3) 48px;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(181, 255, 102, .08), transparent 68%),
    var(--sc-stage-screen);
  box-shadow: inset 0 0 44px rgba(0, 0, 0, .75);
  container-type: inline-size;
}

.preview-display small,
.preview-list > small {
  color: var(--sc-stage-text-3);
  font: 600 11px/1.3 var(--sc-font-mono);
  letter-spacing: .12em;
}

.preview-display small {
  top: var(--sc-space-4);
  left: var(--sc-space-4);
}

.preview-display strong {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--sc-stage-lime);
  font-family: var(--sc-font-timer);
  font-size: clamp(44px, 9vw, 84px);
  font-size: clamp(44px, 26cqi, 124px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(181, 255, 102, .34);
}

/* Unlit seven-segment ghost behind the lit digits */
.preview-display strong::before {
  content: "88:88";
  position: absolute;
  inset: 0;
  z-index: -1;
  color: rgba(181, 255, 102, .055);
  text-shadow: none;
}

.preview-display > span {
  margin-top: var(--sc-space-4);
  padding: 5px 10px;
  border: 1px solid rgba(181, 255, 102, .32);
  border-radius: var(--sc-radius-xs);
  background: rgba(181, 255, 102, .1);
  color: var(--sc-stage-lime);
  font: 600 11px/1.3 var(--sc-font-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Remaining-time scale: on time, warning, wrap-up */
.preview-display::after {
  inset: auto var(--sc-space-4) var(--sc-space-4);
  height: 4px;
  border: 0;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--sc-stage-lime) 0 70%,
    var(--sc-stage-amber) 70% 88%,
    var(--sc-stage-red) 88% 100%);
}

/* Rundown */
.preview-list {
  padding: var(--sc-space-3) 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--sc-stage-panel);
  counter-reset: sc-cue;
}

.preview-list > small {
  margin: 0;
  padding: 0 var(--sc-space-3) var(--sc-space-3);
  border-bottom: 1px solid var(--sc-stage-line);
}

.preview-cue {
  flex: 1;
  min-height: 64px;
  padding: 0 var(--sc-space-3) 0 0;
  grid-template-columns: 3px 22px minmax(0, 1fr) auto;
  gap: var(--sc-space-2);
  border-bottom: 1px solid var(--sc-stage-line);
  color: var(--sc-stage-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

.preview-cue:last-child {
  border-bottom: 0;
}

/* Cue number sits after the status bar */
.preview-cue i {
  grid-column: 1;
  grid-row: 1;
  width: 3px;
  height: 100%;
  border-radius: 0;
  background: transparent;
}

.preview-cue::before {
  counter-increment: sc-cue;
  content: counter(sc-cue, decimal-leading-zero);
  grid-column: 2;
  grid-row: 1;
  color: var(--sc-stage-text-3);
  font: 500 11px/1 var(--sc-font-mono);
}

.preview-cue span {
  color: var(--sc-stage-text-2);
  font: 500 12px/1 var(--sc-font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  text-transform: none;
}

.preview-cue.active {
  background: rgba(224, 32, 43, .13);
  color: #ffffff;
}

.preview-cue.active i {
  background: var(--sc-stage-tally);
}

.preview-cue.active span {
  color: var(--sc-stage-red);
  font-weight: 700;
  text-transform: uppercase;
}

.preview-cue.done {
  opacity: 1;
  color: var(--sc-stage-text-3);
}

.preview-cue.done span {
  color: var(--sc-stage-text-3);
}

/* Link card */
.link-card {
  padding: var(--sc-space-6);
  border: 1px solid var(--sc-stage-line-strong);
  border-radius: var(--sc-radius-lg);
  background: linear-gradient(180deg, #171c23, var(--sc-stage-chassis) 120px);
  color: var(--sc-stage-text);
  box-shadow: var(--sc-shadow-gear);
}

.link-role {
  display: inline-flex;
  align-items: center;
  gap: var(--sc-space-2);
  color: var(--sc-stage-cyan);
  font: 600 12px/1.3 var(--sc-font-mono);
  letter-spacing: .1em;
}

.link-role::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-stage-lime);
  box-shadow: 0 0 10px rgba(181, 255, 102, .6);
}

.link-card h3 {
  margin: var(--sc-space-3) 0 var(--sc-space-5);
  color: var(--sc-stage-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.link-card code {
  padding: 14px var(--sc-space-4);
  overflow-wrap: anywhere;
  border: 1px solid var(--sc-stage-line);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-stage-screen);
  color: var(--sc-stage-text-2);
  font: 500 13px/1.4 var(--sc-font-mono);
}

.link-settings {
  margin: var(--sc-space-4) 0 var(--sc-space-5);
  gap: 0;
}

.link-settings span {
  padding: 11px 0;
  border-bottom: 1px solid var(--sc-stage-line);
  color: var(--sc-stage-text-2);
  font-size: 14px;
}

.link-settings svg {
  flex: none;
  color: var(--sc-stage-cyan);
}

.link-card-cta {
  height: 46px;
  border-radius: var(--sc-radius-sm);
  background: var(--sc-stage-cyan);
  color: #04151c;
  font-size: 14px;
  font-weight: 700;
}

.link-card-cta:hover {
  background: #8fe6ff;
  color: #04151c;
}

/* ==========================================================================
   6. Sections
   ========================================================================== */

/* Feature rack: modules separated by hairlines, like a channel strip */
.feature-grid {
  margin-top: var(--sc-space-7);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-lg);
  background: var(--sc-line);
}

.feature-grid article {
  position: relative;
  min-height: 250px;
  padding: var(--sc-space-5);
  border: 0;
  border-radius: 0;
  background: var(--sc-surface);
  box-shadow: none;
  transition: background .18s ease;
}

.feature-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--sc-accent);
  opacity: 0;
  transition: opacity .18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-grid article:hover {
    transform: none;
    border-color: transparent;
    background: var(--sc-surface-2);
    box-shadow: none;
  }

  .feature-grid article:hover::before {
    opacity: 1;
  }
}

.feature-grid article svg {
  box-sizing: content-box;
  padding: 9px;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-accent-soft);
  color: var(--sc-accent);
}

.feature-grid h3 {
  margin: var(--sc-space-6) 0 10px;
  color: var(--sc-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.012em;
}

.feature-grid p {
  margin: 0;
  color: var(--sc-text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Role-based links */
.split-section {
  padding: var(--sc-section) 0;
  gap: clamp(40px, 7vw, 96px);
  border-top: 1px solid var(--sc-line);
}

.split-copy ul {
  margin: var(--sc-space-5) 0;
}

.split-copy li {
  margin: var(--sc-space-3) 0;
  color: var(--sc-text);
  font-size: 15px;
  font-weight: 550;
}

.split-copy li svg {
  flex: none;
  color: var(--sc-accent);
}

.inline-link {
  color: var(--sc-accent);
  font-size: 15px;
  font-weight: 700;
}

.inline-link:hover {
  color: var(--sc-accent-strong);
}

/* Steps */
.steps-section {
  padding: var(--sc-section) max(24px, calc((100% - var(--sc-container)) / 2));
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-bg-alt);
  color: var(--sc-text);
  text-align: left;
}

.steps-grid {
  margin-top: var(--sc-space-7);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-lg);
  background: var(--sc-line);
}

.steps-grid article {
  min-height: 240px;
  padding: var(--sc-space-5);
  background: var(--sc-surface);
}

.steps-grid b {
  color: var(--sc-accent);
  font: 700 28px/1 var(--sc-font-timer);
}

.steps-grid h3 {
  margin: var(--sc-space-7) 0 10px;
  color: var(--sc-text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.012em;
}

.steps-grid p {
  margin: 0;
  color: var(--sc-text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Use cases */
.use-cases-section {
  padding: var(--sc-section) 0;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
}

.case-links {
  border-top: 1px solid var(--sc-line-strong);
}

.case-links a {
  min-height: 68px;
  padding: 0 var(--sc-space-3);
  gap: var(--sc-space-4);
  border-bottom: 1px solid var(--sc-line);
  color: var(--sc-text);
  font-size: 17px;
  font-weight: 650;
  transition: background .16s ease, color .16s ease;
}

.case-links a svg {
  flex: none;
  color: var(--sc-text-3);
}

.case-links a:hover {
  background: var(--sc-accent-soft);
  color: var(--sc-accent);
}

.case-links a:hover svg {
  color: var(--sc-accent);
}

/* Comparison */
.comparison-section {
  padding: var(--sc-section) 0;
  border-top: 1px solid var(--sc-line);
}

.comparison-section > h2 {
  margin-bottom: var(--sc-space-6);
}

.comparison-table {
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-lg);
  background: var(--sc-surface);
}

.comparison-table > div {
  min-height: 56px;
  border-bottom: 1px solid var(--sc-line);
}

.comparison-table span,
.comparison-table strong {
  padding: 17px var(--sc-space-5);
  font-size: 15px;
}

.comparison-table span {
  color: var(--sc-text);
  font-weight: 600;
}

.comparison-table span:last-child {
  background: var(--sc-accent-soft);
}

.comparison-table span:last-child::before {
  content: "\2713" / "";
  margin-right: 10px;
  color: var(--sc-accent);
  font-weight: 800;
}

.comparison-table span:first-child,
.comparison-table strong:first-child {
  border-right: 1px solid var(--sc-line);
  background: transparent;
  color: var(--sc-text-2);
  font-weight: 450;
}

.comparison-table strong {
  background: var(--sc-accent-soft);
  color: var(--sc-accent);
  font: 600 12px/1.5 var(--sc-font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.comparison-table strong:first-child {
  background: var(--sc-surface-2);
  font-weight: 600;
}

/* FAQ */
.faq-section {
  padding: var(--sc-section) 0;
  border-top: 1px solid var(--sc-line);
}

.faq-section > h2 {
  margin-bottom: var(--sc-space-6);
}

.faq-section > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--sc-space-7);
  border-top: 1px solid var(--sc-line-strong);
}

.faq-section article {
  padding: var(--sc-space-5) 0;
  border-bottom: 1px solid var(--sc-line);
}

.faq-section h3 {
  margin: 0 0 var(--sc-space-2);
  color: var(--sc-text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.faq-section p {
  margin: 0;
  color: var(--sc-text-2);
  font-size: 15px;
  line-height: 1.6;
}

/* Closing call to action */
.cta-section {
  padding: var(--sc-section) 24px;
  border-top: 1px solid var(--sc-line);
  border-bottom: 1px solid var(--sc-line);
  background: var(--sc-cta-bg);
  color: var(--sc-cta-text);
}

.cta-section::before {
  background: radial-gradient(ellipse 46rem 20rem at 50% 0, var(--sc-cta-glow), transparent 72%);
}

.cta-section > svg {
  color: var(--sc-stage-cyan);
}

.cta-section h2 {
  max-width: 760px;
  margin: var(--sc-space-4) auto;
  color: var(--sc-cta-text);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -.035em;
}

.cta-section p {
  margin: 0 0 var(--sc-space-6);
  color: var(--sc-cta-text-2);
  font-size: 17px;
}

.cta-section .hero-primary,
.cta-section .hero-primary:hover {
  color: #04151c;
}

.cta-section .hero-primary {
  background: var(--sc-stage-cyan);
}

.cta-section .hero-primary:hover {
  background: #8fe6ff;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */

.marketing-footer {
  padding: var(--sc-space-6) max(24px, calc((100% - var(--sc-container)) / 2));
  background: var(--sc-footer-bg);
  color: var(--sc-text);
}

.marketing-footer > span {
  color: var(--sc-text-3);
  font-size: 13px;
}

.marketing-footer > div {
  color: var(--sc-text-2);
  font-size: 13px;
}

.marketing-footer > div a:hover {
  color: var(--sc-accent);
}

/* ==========================================================================
   8. Responsive
   ========================================================================== */

/* Full desktop nav is tightest just above the point where it collapses */
@media (min-width: 1081px) and (max-width: 1240px) {
  .marketing-page > .marketing-header {
    padding-inline: var(--sc-space-4);
    gap: var(--sc-space-3);
  }

  .marketing-header nav a {
    padding: 0 7px;
  }

  .marketing-actions {
    gap: 6px;
  }

  .text-link,
  .account-link {
    padding: 0 var(--sc-space-1);
  }
}

@media (max-width: 1080px) {
  .marketing-header nav.open {
    border: 1px solid var(--sc-line-strong);
    border-radius: var(--sc-radius-md);
    background: var(--sc-menu-bg);
    box-shadow: var(--sc-shadow);
  }

  .marketing-header nav.open .mobile-account-link {
    border-top: 1px solid var(--sc-line);
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy h1,
  .hero-copy > p {
    margin-inline: auto;
  }

  .use-cases-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-section > div {
    column-gap: var(--sc-space-6);
  }
}

@media (max-width: 760px) {
  :root {
    --sc-gutter: 32px;
    --sc-header-h: 64px;
  }

  .marketing-page > .marketing-header {
    padding: 0 var(--sc-space-4);
    gap: var(--sc-space-2);
  }

  .marketing-brand span.sc-brand-mark-wrap {
    font-size: inherit;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .trust-strip {
    gap: var(--sc-space-3) var(--sc-space-5);
  }

  .trust-strip > span {
    width: 100%;
    text-align: center;
  }

  .preview-body {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-display {
    min-height: 240px;
  }

  .preview-display strong {
    font-size: clamp(44px, 26cqi, 108px);
  }

  .preview-cue {
    min-height: 54px;
  }

  .feature-grid article {
    min-height: 0;
    border: 0;
  }

  .feature-grid article:last-child {
    border: 0;
  }

  .feature-grid h3 {
    margin-top: var(--sc-space-5);
  }

  .split-section {
    gap: var(--sc-space-7);
  }

  .link-card {
    padding: var(--sc-space-5);
  }

  .steps-grid article {
    min-height: 0;
  }

  .steps-grid h3 {
    margin-top: var(--sc-space-5);
  }

  .comparison-table span,
  .comparison-table strong {
    padding: 14px var(--sc-space-4);
  }

  .faq-section > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .marketing-footer {
    padding-inline: var(--sc-space-4);
  }

  .marketing-footer > div a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 420px) {
  .marketing-page > .marketing-header {
    padding: 0 10px;
  }

  /* The base stylesheet hides every span in the brand here, which would take the mark with it */
  .marketing-header .marketing-brand .sc-brand-mark-wrap {
    display: inline-flex;
  }

  .marketing-actions {
    gap: 6px;
  }

  .language-link {
    min-width: var(--sc-control-h);
    padding-inline: 4px;
  }

  .primary-link {
    height: var(--sc-control-h);
    padding-inline: 10px;
    gap: 5px;
    font-size: 12px;
  }

  .hero-primary,
  .hero-secondary {
    width: 100%;
  }

  .comparison-table span,
  .comparison-table strong {
    padding: 12px;
    font-size: 14px;
  }

  .comparison-table strong {
    font-size: 11px;
  }

  .comparison-table span:last-child::before {
    margin-right: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-live {
    animation: none;
    box-shadow: 0 0 14px rgba(224, 32, 43, .55);
  }

  .primary-link,
  .hero-primary,
  .hero-secondary,
  .inline-link,
  .link-card-cta,
  .feature-grid article,
  .feature-grid article::before {
    transition: none;
  }

  .primary-link:hover,
  .hero-primary:hover,
  .link-card-cta:hover {
    transform: none;
  }
}
