/* =============================================================================
   Smart Voice Flow — Landing Page
   Terminal-grade utility aesthetic. Red left-border as recurring signature.
   Author: Smart Impact Industries · MIT License
   ============================================================================= */

/* ---------- @font-face declarations (self-hosted, GDPR-compliant) ---------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

/* ---------- Design tokens (from design-tokens.md) ---------- */

:root {
  /* Brand accent */
  --red-primary: #E23D5A;
  --red-hover: #EF4D6A;
  --red-active: #C5304B;
  --red-glow: rgba(226, 61, 90, 0.15);

  /* Backgrounds */
  --bg-deepest: #0D0D14;
  --bg-base: #121218;
  --bg-surface: #16161E;
  --bg-surface-2: #1E1E28;

  /* Borders */
  --border-subtle: #26263A;
  --border-default: #2E2E44;
  --border-stronger: #3F3F5F;

  /* Text */
  --text-primary: #F5F5F8;
  --text-on-red: #FFFFFF;
  --text-bright: #E0E0EE;
  --text-muted: #A0A0B5;
  --text-hint: #8A8AA0;
  --text-disabled: #6B6B80;
  --text-quiet: #5A5A7A;

  /* State */
  --warn-text: #FBBF24;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Spacing scale */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 96px;
  --space-3xl: 144px;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, ui-monospace, monospace;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 900px;
  /* Mobile minimum lifted from 16px → 20px so content never hugs rounded-display edges.
     Additional env(safe-area-inset-*) applied on body below. */
  --container-gutter: clamp(20px, 4vw, 32px);

  /* Elevation / effects */
  --ring-focus: 0 0 0 3px var(--red-glow);
  --border-accent: 1px solid var(--red-primary);
  --border-accent-thick: 2px solid var(--red-primary);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 140ms;
  --duration-base: 260ms;
  --duration-slow: 480ms;
}

/* ---------- Reset + base ---------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(226, 61, 90, 0.06) 0%, transparent 55%),
    var(--bg-base);
  overflow-x: hidden;
  /* Respect iOS / Android notch + rounded-display safe areas on top of container gutter */
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* MEISTER REVIEW: Single soft radial tint in the body background — very subtle,
   does not read as a "marketing gradient." Remove this block if it feels like too much. */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: var(--text-bright);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--red-primary); }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-surface);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
}

::selection {
  background: var(--red-primary);
  color: var(--text-on-red);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring-focus);
  border-radius: var(--radius-sm);
}

/* ---------- Accessibility helpers ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--red-primary);
  color: var(--text-on-red);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-mono);
  z-index: 999;
}
.skip-link:focus { left: var(--space-sm); top: var(--space-sm); }

/* ---------- Layout primitives ---------- */

.section__header {
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--container-gutter);
}

.section__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--red-primary);
  text-transform: none;
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: clamp(28px, 4.2vw, 48px);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.section__lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 640px;
}

/* ---------- Tag ---------- */

.tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
}
.tag--mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- Button ---------- */

.btn {
  --btn-padding-y: 12px;
  --btn-padding-x: 20px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--btn-padding-y) var(--btn-padding-x);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--red-primary);
  color: var(--text-on-red);
  border-color: var(--red-primary);
}
.btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  color: var(--text-on-red);
}
.btn--primary:active { background: var(--red-active); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn--ghost:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}

.btn--sm { --btn-padding-y: 8px; --btn-padding-x: 14px; font-size: 13px; }
.btn--lg { --btn-padding-y: 16px; --btn-padding-x: 28px; font-size: 16px; }

.btn__icon { font-size: 0.9em; color: var(--red-primary); }
.btn--primary .btn__icon { color: inherit; }

.btn__label { font-weight: 600; }

.btn__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  padding-left: var(--space-sm);
  border-left: 1px solid currentColor;
  line-height: 1;
}
.btn--ghost .btn__meta { opacity: 0.5; }

/* ---------- Link primitive ---------- */

.link {
  color: var(--text-bright);
  border-bottom: 1px solid var(--border-default);
  padding-bottom: 1px;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}
.link:hover { color: var(--red-primary); border-color: var(--red-primary); }

.link--arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 13px;
  border-bottom: none;
}
.link--arrow span { transition: transform var(--duration-fast) var(--ease-out); }
.link--arrow:hover span { transform: translateX(3px); }

/* ==========================================================================
   NAV
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 20, 0.85);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-gutter);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-weight: 600;
  flex-shrink: 0;
}
.site-nav__brand:hover { color: var(--red-primary); }
.site-nav__brand-mark { color: var(--red-primary); display: inline-flex; }
.site-nav__brand-text { font-family: var(--font-mono); font-size: 14px; letter-spacing: -0.01em; }

.site-nav__links {
  display: none;
  gap: var(--space-lg);
  margin-left: var(--space-lg);
  flex: 1;
}
@media (min-width: 768px) {
  .site-nav__links { display: flex; }
}
.site-nav__link {
  font-size: 14px;
  color: var(--text-muted);
  padding: var(--space-xs) 0;
  position: relative;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1px;
  background: var(--red-primary);
  transition: right var(--duration-fast) var(--ease-out);
}
.site-nav__link:hover { color: var(--text-primary); }
.site-nav__link:hover::after { right: 0; }

.site-nav__ctas {
  margin-left: auto;
  display: flex;
  gap: var(--space-sm);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 var(--space-2xl);
  overflow: hidden;
}

/* The left-side red rule that visually anchors the hero — brand signature */
.hero::before {
  content: "";
  position: absolute;
  left: var(--container-gutter);
  top: clamp(48px, 8vw, 96px);
  width: 2px;
  height: 120px;
  background: var(--red-primary);
  box-shadow: 0 0 24px var(--red-glow);
}
@media (max-width: 767px) {
  .hero::before { display: none; }
}

.hero__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.hero__eyebrow-separator { color: var(--border-stronger); }
.hero__eyebrow-platforms { display: inline-flex; gap: var(--space-sm); }
.hero__platform {
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}
.hero__platform--muted { color: var(--text-hint); border-color: var(--border-subtle); border-style: dashed; }

.hero__headline {
  font-size: clamp(40px, 7.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: var(--space-lg);
  max-width: 14ch;
}
.hero__headline-line { display: block; }
.hero__headline-line--accent {
  color: var(--red-primary);
  position: relative;
}

.hero__subhead {
  font-size: clamp(17px, 1.8vw, 21px);
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero__media {
  margin: 0;
  max-width: var(--container-max);
}

.hero__media-frame {
  border: 1px solid var(--border-default);
  border-top: 1px solid var(--border-stronger);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  position: relative;
  box-shadow:
    0 0 0 1px rgba(226, 61, 90, 0.08),
    0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.hero__media-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  background: var(--bg-surface-2);
  border-bottom: 1px solid var(--border-subtle);
}
.hero__media-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-stronger);
}
.hero__media-dot:nth-child(1) { background: var(--red-primary); }
.hero__media-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-hint);
  margin-left: auto;
  margin-right: auto;
}

.hero__media-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-deepest);
}

.hero__media-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-hint);
  margin-top: var(--space-md);
  padding-left: var(--space-sm);
  border-left: 2px solid var(--red-primary);
}

/* ==========================================================================
   FEATURES
   ========================================================================== */

.features {
  padding: var(--space-2xl) 0;
}

.features__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}

.feature-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--red-primary); /* signature red accent */
  border-radius: var(--radius-md);
  transition:
    border-color var(--duration-base) var(--ease-out),
    background-color var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
}
.feature-card:hover {
  border-color: var(--border-default);
  border-left-color: var(--red-hover);
  background: var(--bg-surface-2);
  transform: translateY(-2px);
}

.feature-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--red-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}

.feature-card__title {
  font-size: 22px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.feature-card__body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

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

.feature-card__micro {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-hint);
  padding-top: var(--space-md);
  border-top: 1px dashed var(--border-subtle);
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how {
  padding: var(--space-2xl) 0;
  background: var(--bg-deepest);
  border-block: 1px solid var(--border-subtle);
}

.how__steps {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .how__steps { grid-template-columns: repeat(3, 1fr); }
}

.how-step {
  position: relative;
  padding-left: var(--space-xl);
}
.how-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border-subtle);
}
.how-step:hover::before { background: var(--red-primary); }

.how-step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--red-primary);
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
}

.how-step__title {
  font-size: 22px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.how-step__body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.how-step__visual {
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
}
.how-step__visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* ==========================================================================
   API
   ========================================================================== */

.api {
  padding: var(--space-2xl) 0;
}

.api__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 1024px) {
  .api__inner { grid-template-columns: 1fr 1.2fr; gap: var(--space-2xl); }
}

.api__lede {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.api__bullets {
  margin-bottom: var(--space-lg);
}
.api__bullets li {
  color: var(--text-muted);
  font-size: 15px;
  padding-left: var(--space-lg);
  position: relative;
  margin-bottom: var(--space-sm);
}
.api__bullets li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--red-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Code block */

.code-block {
  background: var(--bg-deepest);
  border: 1px solid var(--border-default);
  border-left: 2px solid var(--red-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
}

.code-block__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.code-block__lang {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  text-transform: uppercase;
}

.code-block__copy {
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-hint);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}
.code-block__copy:hover { color: var(--red-primary); border-color: var(--red-primary); }
.code-block__copy[data-copied="true"] { color: var(--warn-text); border-color: var(--warn-text); }

.code-block__body {
  margin: 0;
  padding: var(--space-md);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-bright);
  overflow-x: auto;
}

.code-dim { color: var(--text-hint); }
.code-str { color: #B5E6A4; }
.code-key { color: #7AB8E6; }
.code-num { color: var(--warn-text); }

/* ==========================================================================
   REVIEWS
   ========================================================================== */

.reviews {
  padding: var(--space-2xl) 0;
  background: var(--bg-deepest);
  border-top: 1px solid var(--border-subtle);
}

.reviews__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .reviews__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews__grid { grid-template-columns: repeat(4, 1fr); } }

.review-card {
  margin: 0;
  padding: var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  position: relative;
  transition: border-color var(--duration-base) var(--ease-out);
}
.review-card:hover { border-color: var(--red-primary); }

.review-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: var(--space-md);
  font-family: var(--font-mono);
  font-size: 48px;
  line-height: 1;
  color: var(--red-primary);
  background: var(--bg-deepest);
  padding: 0 6px;
}

.review-card__quote {
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 14.5px;
  color: var(--text-bright);
  line-height: 1.6;
  font-weight: 400;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-md);
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-mono);
}
.review-card__name { color: var(--text-primary); font-size: 13px; }
.review-card__role { color: var(--text-hint); font-size: 12px; }

/* Visual marker so Meister can spot the placeholders at a glance during QA */
.review-card[data-review-status="placeholder"]::after {
  content: "PLACEHOLDER";
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--warn-text);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.reviews__submit {
  max-width: var(--container-max);
  margin: var(--space-xl) auto 0;
  padding: 0 var(--container-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.reviews__submit-text { color: var(--text-muted); font-size: 14px; max-width: 50ch; }

/* ==========================================================================
   DOWNLOAD
   ========================================================================== */

.download {
  padding: var(--space-2xl) 0;
}

.download__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .download__grid { grid-template-columns: repeat(3, 1fr); } }

.download-card {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: border-color var(--duration-base) var(--ease-out);
}
.download-card--available:hover { border-color: var(--red-primary); }
.download-card--soon { opacity: 0.65; }

.download-card__os {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--red-primary);
  text-transform: uppercase;
}

.download-card__options {
  display: grid;
  gap: var(--space-sm);
  flex: 1;
}

.download-card__btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-md);
  background: var(--bg-deepest);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
}
.download-card__btn:hover {
  border-color: var(--red-primary);
  color: var(--red-primary);
}
.download-card__btn--disabled {
  cursor: not-allowed;
  color: var(--text-hint);
}
.download-card__btn--disabled:hover {
  border-color: var(--border-default);
  color: var(--text-hint);
}

.download-card__btn-label { font-size: 16px; font-weight: 600; }
.download-card__btn-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-hint); }

.download-card__note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.download__source {
  max-width: var(--container-max);
  margin: var(--space-xl) auto 0;
  padding: 0 var(--container-gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-hint);
}
.download__source-sep { color: var(--border-stronger); }

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

.faq {
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: var(--bg-deepest);
  border-top: 1px solid var(--border-subtle);
}

.faq__list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0 var(--space-lg);
  transition: border-color var(--duration-fast) var(--ease-out);
}
.faq-item[open] { border-color: var(--red-primary); border-left-width: 2px; }

.faq-item__q {
  list-style: none;
  cursor: pointer;
  padding: var(--space-md) 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--red-primary);
  font-size: 20px;
  transition: transform var(--duration-fast) var(--ease-out);
}
.faq-item[open] .faq-item__q::after { content: "−"; transform: rotate(180deg); }

.faq-item__a {
  padding: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 65ch;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1fr 2fr; gap: var(--space-2xl); }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.site-footer__mark { color: var(--red-primary); display: inline-flex; }
.site-footer__name { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); }
.site-footer__license { font-family: var(--font-mono); font-size: 11px; color: var(--text-hint); margin-left: var(--space-sm); }

.site-footer__nav {
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.site-footer__col-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red-primary);
  margin-bottom: var(--space-md);
}
.site-footer__col ul { display: flex; flex-direction: column; gap: var(--space-sm); }
.site-footer__link { font-size: 14px; color: var(--text-muted); }
.site-footer__link:hover { color: var(--red-primary); }
.site-footer__link--accent { color: var(--text-bright); border-bottom: 1px dashed var(--border-stronger); padding-bottom: 1px; }
.site-footer__link--accent:hover { border-bottom-color: var(--red-primary); }

.site-footer__built {
  grid-column: 1 / -1;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-hint);
  text-align: center;
}

/* ==========================================================================
   PREVIEW BANNER (remove at real launch)
   ========================================================================== */

.preview-banner {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(251, 191, 36, 0.02));
  border-bottom: 1px solid rgba(251, 191, 36, 0.3);
}
.preview-banner__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-md) var(--container-gutter);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.preview-banner__icon { font-size: 18px; flex-shrink: 0; }
.preview-banner__text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
}
.preview-banner__text strong { color: var(--warn-text); font-weight: 600; }
.preview-banner__link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--warn-text);
  border-bottom: 1px solid transparent;
  margin-left: var(--space-sm);
  white-space: nowrap;
}
.preview-banner__link:hover { border-bottom-color: var(--warn-text); color: var(--warn-text); }

/* ==========================================================================
   LEGAL PAGES (imprint.html, privacy.html)
   ========================================================================== */

.legal-page {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.legal-page__inner {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--container-gutter);
}

.legal-page__title {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin: var(--space-md) 0 var(--space-lg);
  color: var(--text-primary);
}

.legal-page__note {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--red-primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.legal-content h2 {
  font-size: 22px;
  margin: var(--space-xl) 0 var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
}
.legal-content h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.legal-content h3 {
  font-size: 16px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--red-primary);
  margin: var(--space-lg) 0 var(--space-sm);
}

.legal-content p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin: 0 0 var(--space-md) var(--space-lg);
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  list-style: none;
}
.legal-content ul li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-sm);
}
.legal-content ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--red-primary);
  font-family: var(--font-mono);
}

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

.legal-page__footer-links {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px dashed var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-hint);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATION
   Triggered by IntersectionObserver (see main.js). Default state = invisible.
   ========================================================================== */

/* Progressive enhancement: hidden only when JS is active and motion is allowed.
   Without JS, or with prefers-reduced-motion, elements stay visible — no blank sections. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  body { background: #fff; color: #000; }
  .site-nav, .hero__media, .site-footer, [data-reveal] { page-break-inside: avoid; }
  a { color: #000; text-decoration: underline; }
}
