/* ==========================================================================
   FLINT VIDEO EDITOR - MINIMALIST DARK THEME STYLESHEET
   Zero external dependencies. Ultra-fast load times. Sleek & native aesthetic.
   ========================================================================== */

:root {
  /* Color Palette - Deep sleek darks & Emerald accent */
  --bg-black: #080a0c;
  --bg-primary: #0d1013;
  --bg-secondary: #13171c;
  --bg-tertiary: #1a2026;
  --bg-elevated: #222930;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-active: rgba(16, 185, 129, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #080a0c;

  /* Brand accent comes from /tokens.css */
  --accent-emerald: var(--vl-accent);
  --accent-emerald-hover: var(--vl-accent-hover);
  --accent-emerald-subtle: var(--vl-accent-subtle);

  --accent-blue: #38bdf8;
  --accent-amber: #f59e0b;

  /* Typography */
  --font-sans: var(--vl-font-sans);
  --font-mono: var(--vl-font-mono);

  /* Spacing & Layout */
  --container-width: 1200px;
  --container-narrow: 900px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.65);
  --shadow-window: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-black);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background: var(--accent-emerald);
  color: var(--text-inverse);
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 10, 12, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color var(--transition-smooth);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.25rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--accent-emerald);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.9;
}

.brand-name {
  color: var(--accent-emerald);
  letter-spacing: 0.05em;
}

.brand-logo {
  width: 28px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--accent-emerald);
  color: #041d14;
}

.btn-primary:hover {
  background-color: #22c55e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-secondary:hover {
  background-color: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding-top: 6.25rem;
  padding-bottom: 4rem;
  text-align: center;
  position: relative;
  isolation: isolate;
  overflow: hidden; /* the bloom below is wider than the viewport on purpose */
}

/* Emerald bloom behind the hero clip */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 20%;
  left: 50%;
  width: min(1700px, 135vw);
  height: 900px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 42% 38% at 50% 42%, rgba(16, 185, 129, 0.42) 0%, rgba(16, 185, 129, 0.16) 45%, transparent 72%),
    radial-gradient(ellipse 55% 20% at 50% 80%, rgba(56, 189, 248, 0.22) 0%, transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

/* Faint editor grid over the page ground */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 80%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

/* Headline: Solid, crisp white without tacky letter gradients */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.25rem;
  line-height: 1.55;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}





/* Hero Showcase */
.hero-showcase {
  margin-top: 2.25rem;
}

/* ==========================================================================
   Product Clips (the centrepiece: real footage of the editor running)
   ========================================================================== */
.clip {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-medium);
  box-shadow: 0 24px 60px -14px rgba(0, 0, 0, 0.85);
  transition: box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.clip:hover {
  border-color: var(--border-active);
  box-shadow: 0 28px 70px -14px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(16, 185, 129, 0.16);
}

/* Stage holds the video at a fixed 16:9 box so nothing reflows while it loads */
.clip-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  cursor: pointer;
}

.clip-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

/* Centre play badge: only visible while the clip is paused */
.clip-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: rgba(8, 10, 12, 0.35);
  transition: opacity var(--transition-smooth);
}

.clip-overlay svg {
  width: 34px;
  height: 34px;
  margin-left: 4px;
  color: var(--text-primary);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.clip-overlay::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(13, 16, 19, 0.82);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(6px);
}

.clip.is-paused .clip-overlay {
  opacity: 1;
}

/* Playback controls: float over the clip, out of the way until wanted */
.clip-controls {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  background: rgba(8, 10, 12, 0.72);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.clip:hover .clip-controls,
.clip.is-paused .clip-controls,
.clip-controls:focus-within {
  opacity: 1;
}

.clip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.clip-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.clip-btn:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 2px;
}

.clip-btn svg {
  width: 15px;
  height: 15px;
}

/* Toggle button swaps its glyph with the playback state */
.clip-btn .icon-play { display: none; }
.clip.is-paused .clip-btn .icon-play { display: block; }
.clip.is-paused .clip-btn .icon-pause { display: none; }

/* Fullscreen: let the clip fill the screen instead of keeping its card shape */
.clip:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: #000000;
}

.clip:fullscreen .clip-stage {
  flex: 1;
  min-height: 0;
  aspect-ratio: auto;
  cursor: default;
}

/* Copy above a clip */
.clip-copy {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.clip-copy .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.clip-copy .section-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.clip-wrap {
  margin-bottom: 0;
}

/* ==========================================================================
   Section Headers & Smooth Scroll Anchors
   ========================================================================== */
section[id] {
  scroll-margin-top: 5rem;
}

.section {
  padding-top: 6.5rem;
  padding-bottom: 6.5rem;
  position: relative;
}

.section-tight {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.6;
}

.text-center {
  text-align: center;
}

.text-center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Section Divider
   ========================================================================== */
.divider {
  height: 1px;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 18%,
    rgba(255, 255, 255, 0.32) 50%,
    rgba(255, 255, 255, 0.12) 82%,
    transparent 100%);
}

/* A divider is the beat between sections, so the sections can breathe less */
.divider + .section {
  padding-top: 4.5rem;
}

.section:has(+ .divider) {
  padding-bottom: 5rem;
}

.hero:has(+ .divider) {
  padding-bottom: 3.5rem;
}

/* ==========================================================================
   Shorts Band (9:16) & shared showcase copy styles
   ========================================================================== */
.shorts-band {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.shorts-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shorts-diagram svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}

.feature-badge-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-emerald {
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.showcase-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  line-height: 1.25;
}

.showcase-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ==========================================================================
   Roadmap / In Development
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 2.5rem auto 0;
}

.roadmap-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  transition: border-color var(--transition-smooth), background-color var(--transition-smooth);
}

.roadmap-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-medium);
}

.roadmap-status {
  display: inline-block;
  margin-bottom: 0.55rem;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-active {
  color: var(--accent-emerald);
  background: var(--accent-emerald-subtle);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-planned {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
}

.roadmap-item:has(.status-active) {
  border-left-color: var(--accent-emerald);
}

.roadmap-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.roadmap-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Download / Install Banner
   ========================================================================== */
.download-card {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #0a0e12 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-emerald), transparent);
}

.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 800px;
  margin: 2.5rem auto 2rem;
}

.download-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--transition-fast);
}

.download-item:hover {
  border-color: var(--border-medium);
  background: var(--bg-elevated);
}

.download-item.is-soon {
  opacity: 0.72;
}

.download-item.is-soon:hover {
  opacity: 1;
}

.download-soon-tag {
  margin-top: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.9rem;
  text-align: center;
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}


.download-item.active-os {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.download-os-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--text-primary);
}

.download-os-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.download-os-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.license-banner {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.license-banner-price {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-emerald);
}

.license-banner-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.license-banner-text strong {
  color: var(--text-primary);
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent-emerald);
}

/* ==========================================================================
   Legal Pages (privacy, terms, licence agreement)
   ========================================================================== */
.legal {
  padding-top: 7.5rem;
  padding-bottom: 5rem;
}

.legal-inner {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.legal-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  scroll-margin-top: 6rem;
}

.legal h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.1rem;
}

.legal strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal a {
  color: var(--accent-emerald);
  text-decoration: none;
  border-bottom: 1px solid rgba(16, 185, 129, 0.35);
  transition: border-color var(--transition-fast);
}

.legal a:hover {
  border-bottom-color: var(--accent-emerald);
}

.legal ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
}

.legal ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-emerald);
  opacity: 0.7;
}

.legal-mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  word-break: break-word;
}

/* Summary card at the top of the privacy notice */
.legal-summary {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem 1.1rem;
  margin-bottom: 2rem;
}

.legal-summary-title {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 0.95rem !important;
  margin-bottom: 0.85rem !important;
}

.legal-summary ul {
  margin-bottom: 0.4rem;
}

/* The all-caps notice at the head of the agreement */
.legal-callout {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem !important;
  color: var(--text-primary) !important;
}

/* Contents list on the agreement */
.legal-toc {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.legal-toc-title {
  color: var(--text-primary) !important;
  font-weight: 700;
  font-size: 0.8125rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem !important;
}

.legal-toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legal-toc li {
  margin-bottom: 0.45rem;
  break-inside: avoid;
}

/* Numbered clauses keep their number in the margin */
.legal-clause {
  padding-left: 3.25rem;
  text-indent: -3.25rem;
}

.legal-subclause {
  padding-left: 4.75rem;
  text-indent: -1.5rem;
}

.legal-num {
  display: inline-block;
  min-width: 2.75rem;
  text-indent: 0;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-muted);
}

.legal h2 .legal-subclause {
  padding-left: 4.75rem;
  text-indent: -1.5rem;
}

.legal-num {
  min-width: 2rem;
  color: var(--accent-emerald);
}

.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-table th {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

/* Footer legal links */
.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .legal-toc ol {
    columns: 1;
  }

  .legal-clause,
  .legal-subclause {
    padding-left: 0;
    text-indent: 0;
  }

  .legal-subclause {
  padding-left: 4.75rem;
  text-indent: -1.5rem;
}

.legal-num {
    min-width: 0;
    margin-right: 0.5rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 3rem;
  background: var(--bg-primary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-vatt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  transition: opacity var(--transition-fast);
}

.footer-vatt-brand:hover {
  opacity: 0.8;
}

.footer-vatt-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.footer-vatt-name {
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-social-links a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-links a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

/* Platform hover colours: see /tokens.css */

.footer-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .shorts-band {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .shorts-diagram {
    order: -1;
  }

  .roadmap-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-platforms-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .site-header .nav-links {
    display: none;
  }

  .section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    margin-top: 2.5rem;
  }

  .clip-copy {
    margin-bottom: 2rem;
  }

  .shorts-band {
    padding: 1.5rem;
  }


  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header .btn-secondary {
    display: none;
  }
}

@media (max-width: 480px) {
  .vatt-name {
    display: none;
  }
}


/* ==========================================================================
   Reduced Motion: clips hold on their poster frame until played by hand
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .clip,
  .clip-overlay,
  .clip-btn {
    transition: none;
  }
}

/* ==========================================================================
   Short viewports: keep the hero clip in the first screenful
   ========================================================================== */
@media (max-height: 820px) and (min-width: 769px) {
  .hero {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .hero-title {
    font-size: clamp(2.25rem, 3.6vw, 3.25rem);
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
    margin-bottom: 1.75rem;
  }

  .hero-showcase {
    margin-top: 1.75rem;
  }
}
