/* ============================================================
   LineThru — base.css
   Tokens, reset, layout, hero, signal-chain shell, features, footer.
   Owns: :root tokens, .page, .hero, .logotype, .tagline,
         .signal-chain layout, .chain-sources, .chain-node,
         .chain-device, .chain-device-caption, .chain-label,
         .chain-illustration, .features, .section-title-row,
         .section-title, .feature-grid, .feature-card,
         .feature-name, .feature-copy, .site-footer, .footer-panel,
         .footer-row, .footer-label, .footer-value, .footer-mark,
         .accent, .panel-divider.
   Does NOT style anything inside .app-replica or inside .chain-link
   (owned by replica.css / chain.css).
   ============================================================ */

:root {
  --bg: #111112;
  --panel: #161618;
  --hairline: #2A2A2C;
  --text: #EDEDED;
  --text-dim: #6B6B6E;
  --dot-off: #252527;
  --accent: #D71921;
  --knob-face: #1C1C1E;
  --knob-rim: #333336;
}

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

html,
body,
h1, h2, h3, h4, h5, h6,
p,
figure,
figcaption {
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
}

.accent {
  color: var(--accent);
}

.panel-divider {
  height: 1px;
  background: var(--hairline);
  border: none;
}

/* ---------- page shell ---------- */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 64px;
  text-align: center;
}

.logotype {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.tagline {
  margin-top: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- signal chain (shell layout only) ---------- */
.signal-chain {
  margin-top: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(320px, 440px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
}

.chain-sources {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.chain-link {
  width: 100%;
  min-width: 60px;
  height: 100%;
}

.chain-device {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chain-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.chain-label {
  margin-top: 10px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.chain-illustration {
  display: block;
  width: 150px;
  height: auto;
}

#node-speakers .chain-illustration {
  width: 180px;
}

.chain-device-caption {
  margin-top: 12px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
}

@media (max-width: 900px) {
  .signal-chain {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .chain-sources {
    flex-direction: row;
    align-items: flex-end;
    gap: 36px;
  }

  /* Side by side, the sources read best at a shared height: cap height and
     let each keep its own aspect ratio instead of sharing a 150px width
     (which made the tall handheld tower over the synth). */
  .chain-sources .chain-illustration {
    width: auto;
    height: 96px;
  }

  #node-speakers .chain-illustration {
    width: 150px;
  }

  .chain-link {
    width: 100%;
    height: 72px;
  }
}

/* ---------- features ---------- */
.features {
  margin-top: 112px;
}

.section-title-row {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.feature-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 16px;
}

.feature-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text);
}

.feature-name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  flex: none;
}

.feature-copy {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
  text-transform: none;
  font-variant-numeric: normal;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 112px;
}

.footer-panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.footer-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer-value {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.footer-mark {
  margin-top: 40px;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- hero CTA / Mac App Store button ---------- */
.hero-cta {
  margin-top: 48px;
  text-align: center;
}

.mas-badge {
  display: inline-block;
  line-height: 0;
}

.mas-badge img {
  display: block;
  height: 48px;
  width: auto;
}

.mas-badge:hover {
  filter: brightness(1.15);
}

/* ---------- footer links ---------- */
.footer-link {
  color: var(--accent);
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* ---------- legal pages (privacy.html) ---------- */
.legal {
  max-width: 640px;
}

.legal-header {
  padding-top: 64px;
  margin-bottom: 56px;
  text-align: center;
}

.legal-home {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  text-decoration: none;
}

.legal-title {
  margin: 28px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text);
}

.legal-meta {
  margin-top: 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-dim);
}

.legal-section {
  margin-top: 36px;
}

.legal-panel {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 4px 16px;
}

.legal-panel p {
  margin: 14px 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(237, 237, 237, 0.85);
}

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