@font-face {
  font-family: "Figtree";
  src: url("/assets/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #0b1220;
  --soft: #5b6578;
  --line: #0b122024;
  --faint: #0b12200d;
  --link: #1763f0;
  --mark: #ffe45c;
  --shadow: 0 50px 60px -30px #1b3a8a45;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05070b;
    --ink: #eef1f8;
    --soft: #98a2b6;
    --line: #ffffff2e;
    --faint: #ffffff12;
    --link: #78a9ff;
    --mark: #ffe45c55;
    --shadow: 0 40px 80px -20px #2f6bff40;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.6 "Figtree", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0 0 0.9em; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: currentColor; transition: text-decoration-color 0.2s; }
a:hover { text-decoration-color: transparent; }
::selection { background: var(--mark); }

/* Top-right links */
.top { position: absolute; top: 18px; right: 22px; z-index: 5; display: flex; gap: 22px; font-size: 1rem; }

/* App name lockup */
.lockup { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.lockup img { width: 62px; height: 62px; border-radius: 15px; }
.lockup span { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }

/* ---------- Landing ---------- */
.landing { min-height: 100vh; display: flex; align-items: center; padding: 90px 6vw 60px; position: relative; }
.landing-in { width: 100%; max-width: 1500px; margin: 0 auto; display: flex; align-items: center; gap: 4vw; }
.pitch { flex: 1 1 52%; min-width: 0; }
.headline { font-size: clamp(2.3rem, 4.7vw, 4.6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; margin: 42px 0 0; min-height: 3.2em; }
.headline .fixed { white-space: nowrap; }
.headline .typed { display: inline; }
.headline .caret { display: inline-block; width: 4px; height: 0.82em; margin-left: 6px; border-radius: 4px; background: var(--ink); vertical-align: -0.04em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.links { list-style: none; padding: 0; margin: 26px 0 0 -12px; display: grid; gap: 2px; justify-items: start; }
.links a, .links span.soon { display: flex; align-items: center; gap: 16px; padding: 10px 16px 10px 12px; border-radius: 14px; font-size: 1.45rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.links a:hover { background: var(--faint); }
.links img, .links svg { width: 40px; height: 40px; flex: none; }
.links span.soon { color: var(--soft); }
.links small { font-size: 0.85rem; color: var(--soft); margin-left: -6px; }

.phones { flex: 1 1 48%; position: relative; height: min(78vh, 760px); min-height: 480px; }
.phone { position: absolute; border-radius: 34px; border: 7px solid #0c0d12; background: #0c0d12; overflow: hidden; box-shadow: var(--shadow); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone.back { height: 82%; aspect-ratio: 554 / 1184; left: 4%; top: 12%; transform: rotate(-5deg); }
.phone.front { height: 96%; aspect-ratio: 554 / 1184; left: 34%; top: 0; transform: rotate(2deg); }

/* Promo carousel */
.reel { overflow: hidden; padding: 30px 0 70px; }
.reel-track { display: flex; gap: 36px; width: max-content; animation: slide 60s linear infinite; }
.reel:hover .reel-track { animation-play-state: paused; }
.reel img { width: min(300px, 58vw); height: auto; aspect-ratio: 540 / 1200; border-radius: 30px; border: 6px solid #0c0d12; background: #0c0d12; box-sizing: border-box; }
@keyframes slide { to { transform: translateX(calc(-50% - 18px)); } }

.foot { text-align: center; padding: 10px 20px 46px; color: var(--soft); font-size: 0.95rem; }
.foot p { margin: 0 0 6px; }

/* ---------- Document pages (guides, privacy) ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: 84px 24px 80px; }
.page .lockup span { font-size: 2.9rem; }
.page .lockup img { width: 68px; height: 68px; }
.intro { font-size: 1.15rem; color: var(--soft); max-width: 44em; margin: 22px 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 26px 0 16px; }
.chips a { border: 1.5px solid var(--ink); color: var(--ink); border-radius: 12px; padding: 5px 16px; text-decoration: none; font-size: 0.98rem; font-weight: 500; }
.chips a:hover { background: var(--ink); color: var(--bg); }

.search { width: 100%; font: inherit; color: var(--ink); background: var(--faint); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; outline: none; }
.search:focus { border-color: var(--link); }
.search::placeholder { color: var(--soft); }
.none { color: var(--soft); padding: 26px 0; display: none; }

.group { margin-top: 46px; }
.group > h2 { font-size: 2rem; font-weight: 800; padding-bottom: 20px; border-bottom: 1.5px solid var(--line); }

details { border-bottom: 1.5px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 4px 20px 34px; font-size: 1.3rem; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; position: absolute; left: 12px; top: 50%; border: 6px solid transparent; border-left: 8px solid var(--ink); border-right: 0; transform: translateY(-50%); transition: transform 0.2s; }
details[open] > summary::before { transform: translateY(-50%) rotate(90deg); }
summary:hover { background: var(--faint); }
.body { padding: 4px 4px 34px 34px; max-width: 100%; }
.body > p, .body > ul, .body > ol { max-width: 43em; }
.body h4 { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--soft); margin: 22px 0 6px; }
.body h4:first-child { margin-top: 0; }
.body ul, .body ol { padding-left: 1.2em; margin: 0 0 0.9em; }
.body li { margin: 0.3em 0; }
.path { font-weight: 700; white-space: nowrap; }
mark { background: var(--mark); color: inherit; border-radius: 3px; }

/* Tutorial strip: numbered screenshots */
.strip { display: flex; flex-wrap: wrap; gap: 30px 22px; padding: 14px 0 22px; margin: 6px 0 4px; counter-reset: step; }
.strip figure { flex: 0 0 216px; margin: 0; counter-increment: step; }
.strip img { border-radius: 20px; border: 5px solid #0c0d12; background: #0c0d12; width: 100%; height: auto; }
.strip figure { min-width: 0; }
.strip figcaption .path { white-space: normal; }
.strip figcaption { font-size: 0.95rem; line-height: 1.4; margin-top: 12px; padding-left: 30px; position: relative; }
.strip figcaption::before { content: counter(step); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 0.78rem; font-weight: 800; display: grid; place-items: center; }
.strip.plain figcaption { padding-left: 0; color: var(--soft); }
.strip.plain figcaption::before { display: none; }

/* Privacy prose */
.prose { max-width: 44em; margin-top: 30px; }
.prose h2 { font-size: 1.45rem; font-weight: 800; margin: 2em 0 0.5em; }
.prose .date { color: var(--soft); }
.prose ul { padding-left: 1.2em; }
.prose .short { border-left: 3px solid var(--ink); padding: 2px 0 2px 18px; margin: 24px 0; }
.prose .short ul { margin: 6px 0 0; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .top { right: 16px; gap: 16px; }
  .landing { padding: 80px 22px 30px; }
  .landing-in { flex-direction: column; align-items: stretch; gap: 40px; }
  .lockup span { font-size: 2rem; }
  .lockup img { width: 50px; height: 50px; }
  .headline { margin-top: 30px; min-height: 3.3em; }
  .links a, .links span.soon { font-size: 1.2rem; }
  .links img, .links svg { width: 32px; height: 32px; }
  .phones { height: 520px; min-height: 0; flex: none; }
  .phone.back { left: 0; }
  .phone.front { left: 38%; }
  .page { padding: 70px 18px 60px; }
  .page .lockup span { font-size: 2rem; }
  .page .lockup img { width: 50px; height: 50px; }
  .chips { justify-content: flex-start; }
  summary { font-size: 1.12rem; padding-left: 30px; }
  .body { padding-left: 4px; }
  .strip { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; margin: 6px -18px 4px; padding: 14px 18px 18px; }
  .strip figure { flex-basis: 190px; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reel-track { animation: none; }
  .reel { overflow-x: auto; scrollbar-width: none; }
  .headline .caret { animation: none; }
}

.footnote { display: block; font-size: 0.88rem; line-height: 1.5; color: var(--soft); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.footnote sup, .body sup a { font-weight: 700; }
