/* ---------------------------------------------------------------------------
   Overtone's landing page.

   The app's design system, narrowed to the handful of things one page needs:
   the same tokens (soft off-white canvas, white card, layered shadow, the three
   macOS status colours), the same type rules — Geist Sans for language, Geist
   Mono for values only — the same 8pt rhythm, radii, and 32px control height.
   Where the page needs something the app has no equivalent for, it extends the
   scale rather than inventing beside it: the headline is 44px, which is the
   app's largest step (22) doubled.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Geist';
  src: url('/fonts/geist-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 6px;
  --r-md: 8px;

  --bg: #f4f4f2;
  --surface: #ffffff;
  --surface-2: #ececea;
  --hover: #e6e6e3;
  --text: #1a1a1a;
  --text-dim: #74746f;
  --border: rgba(20, 20, 15, 0.08);
  --border-strong: rgba(20, 20, 15, 0.18);
  --invert-bg: #1a1a1a;
  --invert-hover: #3a3a3a;
  --invert-text: #ffffff;
  --focus: #1a1a1a;
  --yellow: #febc2e;
  --green: #28c840;
  --shadow-card: 0 1px 2px rgba(24, 24, 16, 0.04), 0 8px 24px rgba(24, 24, 16, 0.05);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --surface: #1c1c1b;
    --surface-2: #282827;
    --hover: #30302f;
    --text: #ececea;
    --text-dim: #97978f;
    --border: rgba(255, 255, 250, 0.09);
    --border-strong: rgba(255, 255, 250, 0.2);
    --invert-bg: #ececea;
    --invert-hover: #cfcfcb;
    --invert-text: #121211;
    --focus: #ececea;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 28px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

svg {
  flex: 0 0 auto;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Values, not language: versions, byte counts, file names. */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

/* -- the app's own header, as the page's ----------------------------------- */

.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
}

.mark {
  border-radius: var(--r-sm);
}

.wordmark {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

/* The wordmark is a link on every page but the home page; laying the anchor out
   as the flex row keeps the mark and the word spaced as they are there. */
.topbar a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.foot a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.foot a:hover {
  text-decoration-color: currentColor;
}

/* -- page ------------------------------------------------------------------ */

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 88px 24px 0;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: 44px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-dim);
}

.lede em {
  font-style: normal;
  color: var(--text);
}

/* The three things worth knowing before the button, on one line. */
.facts {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.facts em {
  font-style: normal;
  color: var(--text);
}

.facts span {
  padding: 0 8px;
  color: var(--border-strong);
}

.download {
  margin: 72px 0 0;
}

/* -- the download card ----------------------------------------------------- */

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.card-platform {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.glyph {
  width: 26px;
  height: 26px;
  fill: var(--text);
}

.card-text p {
  margin: 0;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
}

.card-sub {
  font-size: 13px;
  color: var(--text-dim);
}

.card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
  flex: 0 0 auto;
}

/* State, in the app's vocabulary: a coloured dot and a plain sentence. */
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--text-dim);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--text-dim);
}

.dot-warn {
  background: var(--yellow);
  box-shadow: 0 0 8px color-mix(in srgb, var(--yellow) 50%, transparent);
}

.dot-ok {
  background: var(--green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 50%, transparent);
}

/* Version, size, date — all values. */
.meta {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--text-dim);
}

.note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.note em {
  font-style: normal;
  color: var(--text);
}

/* -- buttons --------------------------------------------------------------- */

.btn {
  appearance: none;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-md);
  height: 32px;
  padding: 0 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    transform 0.08s ease;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

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

.btn-primary:hover:not(:disabled) {
  background: var(--invert-hover);
  border-color: var(--invert-hover);
}

/* A colourless CTA when there is nothing to press, rather than a washed-out one. */
.btn-primary:disabled {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-dim);
  cursor: default;
}

.btn .glyph {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* -- footer ---------------------------------------------------------------- */

.foot {
  flex: 0 0 auto;
  max-width: 680px;
  width: 100%;
  margin: 96px auto 0;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.foot p {
  margin: 0;
}

@media (max-width: 600px) {
  .page {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .lede {
    font-size: 15px;
  }

  .card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .card-action {
    align-items: flex-start;
    width: 100%;
  }

  .foot {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* -- prose ------------------------------------------------------------------
   The privacy page. The landing page needs no running text, so these are the
   few rules a page of it does need — the same scale and rhythm, extended
   rather than restated. */

.prose {
  margin: 44px 0 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.prose section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
}

.prose ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.prose li::marker {
  color: var(--text-dim);
}

.prose .dim {
  color: var(--text-dim);
}

.prose a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-strong);
}

.prose a:hover {
  text-decoration-color: currentColor;
}
