/* ─────────────────────────────────────────────────────────────
   Transcribrr — Marketing site styles.
   Tokens come from tokens.css. This sheet adds web-specific
   layout, navigation, footer, and section primitives.
   ───────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap");

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss03", "cv11";
  line-height: 1.5;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── Layout shell ────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Inner column constraints — used INSIDE a .wrap to keep prose readable
   while preserving the left edge alignment with the nav. */
.col       { max-width: 720px; }
.col-wide  { max-width: 880px; }
.col-prose { max-width: 64ch; }

/* ── Site header / nav ───────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--edge);
}
.site-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  font-weight: 500;
  font-variation-settings: "opsz" 28;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.wordmark .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: 999px;
  letter-spacing: -0.01em;
  transition: color 160ms var(--ease-standard), background 160ms var(--ease-standard);
}
.nav-link:hover { color: var(--ink); background: var(--surface-sunk); }
.nav-link.is-active { color: var(--ink); background: var(--surface-sunk); }
.nav-cta {
  margin-left: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 999px; font-size: 14px; font-weight: 500;
  letter-spacing: -0.01em;
}
.nav-cta:hover { transform: translateY(-1px); }
.menu-btn { display: none; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--edge);
  margin-top: 96px;
  padding: 56px 0 40px;
  background: var(--surface-sunk);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  align-items: start;
}
.footer-brand .wordmark { font-size: 30px; }
.footer-blurb {
  font-size: 13px; color: var(--ink-3); margin-top: 14px;
  max-width: 280px; line-height: 1.5;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.footer-meta {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--edge);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-4);
  letter-spacing: 0.04em;
}
.footer-meta .heart { color: var(--accent); }

/* ── Display type helpers ────────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-variation-settings: "opsz" 48;
  color: var(--ink);
  text-wrap: balance;
}
.display em, .display i { font-style: italic; }
.display-xl { font-size: clamp(56px, 8vw, 104px); font-variation-settings: "opsz" 72; }
.display-l  { font-size: clamp(44px, 6vw, 72px); font-variation-settings: "opsz" 56; }
.display-m  { font-size: clamp(32px, 4.2vw, 48px); font-variation-settings: "opsz" 42; }
.display-s  { font-size: clamp(24px, 3vw, 32px); font-variation-settings: "opsz" 32; }
.lede {
  font-size: 19px; line-height: 1.5; color: var(--ink-2);
  max-width: 56ch; text-wrap: pretty; letter-spacing: -0.01em;
}
.body-l { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.body { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before {
  content: ""; width: 18px; height: 1px; background: var(--ink-4);
}

/* ── Section primitives ──────────────────────────────────── */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.divider { height: 1px; background: var(--edge); margin: 0; border: 0; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  border: none; cursor: pointer;
  transition: transform 160ms var(--ease-spring), background 200ms;
  font-family: var(--font-ui);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--edge-strong); }
.btn-ghost:hover { background: var(--surface-sunk); }
.btn-soft { background: var(--surface-sunk); color: var(--ink); border: 1px solid var(--edge); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ── Store badges ────────────────────────────────────────── */
.store-row { display: inline-flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 20px 0 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px;
  transition: transform 160ms var(--ease-spring), background 200ms;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge .glyph { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1; gap: 3px; text-align: left; }
.store-badge .top { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.store-badge .name { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; font-family: var(--font-display); font-variation-settings: "opsz" 20; }
.store-badge.is-soft { background: var(--surface); color: var(--ink); border: 1px solid var(--edge-strong); }

/* ── Pill / chip ─────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 999px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-1);
  padding: 28px;
}
.card-sunk {
  background: var(--surface-sunk);
  border: 1px solid var(--edge);
  border-radius: var(--r-4);
  padding: 28px;
}

/* Provider-dependent capability note */
.provider-note {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px;
  align-items: start;
  margin: 28px 0 0;
  padding: 18px 22px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  border-radius: 14px;
  font-size: 14px; line-height: 1.55; color: var(--ink);
}
.provider-note strong { color: var(--ink); font-weight: 600; display: block; margin-bottom: 4px; }
.provider-note a { color: var(--accent); font-weight: 600; }
.provider-note-mark {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  margin-top: 1px;
}

/* ── Page header (interior pages) ────────────────────────── */
.page-head { padding: 88px 0 56px; }
.page-head .kicker { margin-bottom: 18px; }
.page-head h1 { max-width: 18ch; margin: 0; }
.page-head .lede { margin-top: 22px; max-width: 56ch; }

/* ── Image placeholder ───────────────────────────────────── */
.placeholder {
  border-radius: var(--r-4);
  border: 1px solid var(--edge-strong);
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-sunk) 0 14px,
      var(--surface) 14px 28px
    );
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
}

/* ── Provider monogram ───────────────────────────────────── */
.mono-mark {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 600; color: #fff;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* ── Waveform util (CSS) ─────────────────────────────────── */
.wave {
  display: inline-flex; align-items: center; gap: 3px; height: 28px;
}
.wave span {
  display: inline-block; width: 3px; border-radius: 2px;
  background: var(--ink-5);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 880px) {
  .wrap, .wrap-tight, .wrap-narrow { padding: 0 20px; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--edge);
    padding: 12px 20px 20px; gap: 4px;
  }
  .nav.is-open .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-cta { display: none; }
  .nav.is-open .nav-cta { display: inline-flex; margin-left: 0; margin-top: 8px; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px;
    background: transparent; border: 1px solid var(--edge-strong);
    color: var(--ink); cursor: pointer;
  }
}
