/* Geist — the same font the app's UI chrome uses, self-hosted from the
   app's own bundled files so the site and app match exactly. */
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f5;
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.72);
  --on-ink: #ffffff;
  --ink-hover: #2a2a2a;
  --muted: #6f6f6f;
  --line: rgba(17, 17, 17, 0.08);
  --card: #ffffff;
  --shadow: rgba(17, 17, 17, 0.25);
  --rust: #D9714F;
  --green: #5E9271;
  --blue: #4A85A8;
  --gold: #D9A441;
  --gold-dark: #B8862E;
  --plum: #8B5F8C;
  --content-width: 720px;
  --focus-ring: 2px solid var(--ink);
}

/* Dark mode — same tokens, the app's own dark palette. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --ink: #f2f2f2;
    --ink-soft: rgba(242, 242, 242, 0.72);
    --on-ink: #111111;
    --ink-hover: #d6d6d6;
    --muted: #9a9a9a;
    --line: rgba(242, 242, 242, 0.09);
    --card: #1e1e1e;
    --shadow: rgba(0, 0, 0, 0.6);
    --gold-dark: #D9A441;
  }
}

@view-transition { navigation: auto; }

* { box-sizing: border-box; }

/* Keyboard-only skip link — invisible until tabbed to */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--on-ink);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

a:focus-visible, button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
.buy-btn:focus-visible { outline-offset: 3px; }
.maximize-btn:focus-visible, .sound-btn:focus-visible { outline: 2px solid #fff; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: "Geist", -apple-system, "system-ui", "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */

nav.top {
  padding: 24px 0;
}

nav.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}

.brand img { width: 22px; height: 22px; border-radius: 6px; }

.platform-tag {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 30px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  white-space: nowrap;
}

/* Hero */

header.hero { padding: 56px 0 40px; }

h1 {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -1.4px;
  line-height: 1.12;
  margin: 0 0 16px;
  text-wrap: balance;
}

.lede {
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 0 28px;
}

.buy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 6px 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.buy-btn:hover { background: var(--ink-hover); }
.buy-btn:active { transform: scale(0.98); }

.buy-btn .price {
  background: color-mix(in srgb, var(--on-ink) 16%, transparent);
  border-radius: 999px;
  padding: 0 14px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

/* The strike is drawn, not text-decoration, so it can animate in (see Motion). */
.buy-btn .price s {
  opacity: 0.65;
  font-weight: 400;
  margin-right: 5px;
  text-decoration: none;
  position: relative;
}
.buy-btn .price s::after {
  content: "";
  position: absolute;
  left: -1px; right: -1px; top: 52%;
  height: 1.5px;
  background: currentColor;
  transform-origin: left;
}

.buy-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.early-bird {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-dark);
  padding-left: 2px;
}

.buy-note {
  font-size: 13px;
  color: var(--muted);
  max-width: 320px;
}

/* Demo video */

.mockup {
  margin-top: 48px;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 1600 / 1035;
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(17,17,17,0.06), 0 20px 40px -20px var(--shadow);
}

.mockup video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.maximize-btn, .sound-btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
}

.maximize-btn:hover, .sound-btn:hover { background: rgba(17, 17, 17, 0.8); }

/* Sound: the hero autoplays muted (browser rule); this unmutes it. */
.sound-btn { right: 56px; }
.sound-btn .on, .sound-btn[aria-pressed="true"] .off { display: none; }
.sound-btn[aria-pressed="true"] .on { display: block; }

/* Sections */

section { padding: 40px 0 48px; }
section.divider { border-top: 1px solid var(--line); }

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

h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
  text-wrap: balance;
}

.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.privacy-badges span {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink);
}

p { margin: 0 0 12px; }
p.muted { color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  overflow: hidden;
}

.feature-shot {
  display: block;
  width: calc(100% + 36px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  margin: -18px -18px 14px;
  border-radius: 16px 16px 0 0;
  border-bottom: 1px solid var(--line);
}

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.feature-card--wide {
  grid-column: 1 / -1;
}

.feature-card--wide p {
  font-size: 14px;
}

.feature-shot--wide { aspect-ratio: 1440 / 540; }

section[id] { scroll-margin-top: 24px; }

.feature-card p code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.faq-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.faq-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
  max-width: 520px;
}

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

.req-grid .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.req-grid .value {
  font-size: 14px;
  font-weight: 500;
}

/* Footer */

footer {
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

footer .links {
  display: flex;
  gap: 18px;
}

footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Legal pages */

.legal h1 { font-size: 28px; letter-spacing: -0.8px; margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 13px; margin-bottom: 32px; }
.legal h2 { font-size: 17px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 14.5px; }

@media (max-width: 560px) {
  h1 { font-size: 32px; letter-spacing: -1px; }
  .feature-grid { grid-template-columns: 1fr; }
  .req-grid { grid-template-columns: 1fr; gap: 16px; }
  nav.top .wrap { flex-wrap: wrap; }
  .platform-tag { display: none; }
  /* 34px is under Apple's 44pt touch-target minimum — only matters once a
     real finger, not a mouse, is what's tapping it. */
  .maximize-btn, .sound-btn { width: 44px; height: 44px; right: 10px; bottom: 10px; }
  .sound-btn { right: 62px; }
  .buy-row { gap: 14px; }
}

/* Edge deck — the page does what the app does. A pill docked to the right
   edge of the window; hover it (or tab into it) and the section cards
   shingle out, 45ms apart, like the app's deck. Pointer + wide windows only:
   on phones the hero video already shows the gesture. */

.edge, .edge-hint { display: none; }

@media (hover: hover) and (min-width: 1000px) {
  .edge-hint { display: block; font-size: 13px; color: var(--muted); margin: 14px 0 0; }

  .edge {
    display: block;
    position: fixed;
    right: 0;
    top: 50%;
    translate: 0 -50%;
    z-index: 50;
    width: 300px;
    height: 300px;
    pointer-events: none;
  }
  .edge-pill {
    position: absolute;
    right: 0;
    top: 50%;
    translate: 0 -50%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 4px 10px 26px; /* the transparent left padding is the hover target */
    pointer-events: auto;
    transition: opacity 0.12s ease;
  }
  .edge-pill::before {
    content: "";
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 13px;
    border-radius: 8px 0 0 8px;
    background: var(--card);
    box-shadow: -1px 0 4px rgba(0, 0, 0, 0.12);
  }
  .edge-pill i { position: relative; width: 5px; height: 20px; border-radius: 999px; background: var(--c); }

  .edge ul { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
  .edge li { position: absolute; right: 0; top: calc(32px + var(--i) * 46px); z-index: var(--i); }
  .edge a {
    display: flex;
    width: 262px;
    height: 72px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line), -1px 3px 10px rgba(0, 0, 0, 0.14);
    text-decoration: none;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    translate: 110% 0;
    transition: translate 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), opacity 0.2s ease;
    transition-delay: calc(var(--i) * 45ms);
  }
  .edge a::before { content: ""; width: 22px; flex: none; background: var(--c); }
  .edge a span { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
  .edge a b { font-size: 13.5px; font-weight: 600; }
  .edge a small { font-size: 12px; color: var(--muted); line-height: 1.35; }
  .edge a:hover, .edge a:focus-visible { translate: -10px 0; transition-delay: 0s; }

  .edge:hover a, .edge:focus-within a { opacity: 1; translate: 0 0; }
  .edge:hover .edge-pill, .edge:focus-within .edge-pill { opacity: 0; }
  .edge a:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
}

/* Motion — only for people who haven't asked for less of it. Without
   scroll-driven animation support everything simply shows, static. */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  .hero h1, .hero .lede, .hero .buy-row, .hero .edge-hint {
    animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero .lede { animation-delay: 0.08s; }
  .hero .buy-row { animation-delay: 0.16s; }
  .hero .edge-hint { animation-delay: 0.6s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }

  .buy-btn .price s::after { animation: strike 0.45s 0.75s cubic-bezier(0.6, 0, 0.2, 1) both; }
  @keyframes strike { from { transform: scaleX(0); } }

  /* The pill nudges once, like the cursor brushing the edge. */
  .edge-pill { animation: nudge 0.7s 1.6s ease-in-out both; }
  @keyframes nudge { 40% { translate: -7px -50%; } }

  @supports (animation-timeline: view()) {
    .mockup {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }
    @keyframes settle { from { scale: 0.94; } }

    .feature-card, .privacy-badges span, .req-grid > div {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 85%;
    }
    .feature-card:nth-child(even) { animation-range: entry 15% entry 95%; }
    .privacy-badges span:nth-child(2) { animation-range: entry 15% entry 95%; }
    .privacy-badges span:nth-child(3) { animation-range: entry 25% entry 105%; }
    .privacy-badges span:nth-child(4) { animation-range: entry 35% entry 115%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(24px); } }
  }
}
