/* Search. — hyperminimal mobile-first */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: rgba(0, 0, 0, 0.3);
  --line: rgba(0, 0, 0, 0.08);
  --accent: #008BFF;
  --pad: 24px;
  --max: 980px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "SF Pro", system-ui, sans-serif;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ── Header ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.brand-dot {
  color: var(--accent);
}
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ── Layout ── */
main {
  flex: 1;
  width: 100%;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Hero ── */
.hero {
  padding: 56px var(--pad) 48px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: left;
}
.h1 {
  font-size: clamp(40px, 11vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin-bottom: 20px;
  text-wrap: balance;
}
.h1 .accent { color: var(--accent); }
.lede {
  font-size: clamp(17px, 4.4vw, 21px);
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: -0.015em;
  max-width: 28ch;
  text-wrap: pretty;
  margin-bottom: 32px;
}

/* ── Mascot ── */
.mascot-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px var(--pad) 8px;
}
.mascot-wrap img,
.mascot-wrap video {
  width: min(78%, 380px);
  height: auto;
  background: transparent;
  mix-blend-mode: multiply;
}

/* ── Buttons ── */
.cta-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.hero .cta-row {
  align-items: center;
}
@media (min-width: 720px) {
  .hero .cta-row { align-items: flex-start; }
}
.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--fg);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-appstore svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}
.btn-appstore:hover { color: var(--bg); opacity: 0.85; }
.btn-appstore:active { transform: scale(0.98); }

.btn-link {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.01em;
}
.btn-link:hover { color: var(--accent); }

/* ── Numbers ── */
.numbers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.number {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.number-big {
  font-size: clamp(40px, 11vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 8px;
}
.number-label {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.005em;
  max-width: 28ch;
}

/* ── Press ── */
.press {
  list-style: none;
  border-top: 1px solid var(--line);
}
.press-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.press-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.press-line {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: pretty;
}
.press-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: -0.005em;
}

/* ── Section ── */
.section {
  padding: 64px var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}
#how {
  scroll-margin-top: 88px;
}
.section + .section { padding-top: 0; }
.section-title {
  font-size: clamp(28px, 7vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 36ch;
  text-wrap: pretty;
}

/* ── Feature rows ── */
.features {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  align-items: start;
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature-num {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding-top: 4px;
}
.feature h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.feature p {
  font-size: 16px;
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: pretty;
  max-width: 50ch;
}

/* ── How / steps ── */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 28px 24px;
}
.step-n {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.step p {
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

/* ── Quote / closing ── */
.closer {
  padding: 96px var(--pad) 80px;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.closer .h1 { text-align: center; margin-bottom: 28px; }
.closer .cta-row { align-items: center; }
.typewriter {
  min-height: 1em;
}
.typewriter::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.82em;
  margin-left: 0.06em;
  background: currentColor;
  transform: translateY(0.08em);
  animation: typewriter-caret 0.85s steps(1) infinite;
}
.typewriter.is-complete::after {
  opacity: 0;
  animation: none;
}

@keyframes typewriter-caret {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .typewriter::after {
    display: none;
  }
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad) 48px;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a:hover { color: var(--accent); }

/* ── Doc pages (privacy / terms) ── */
.doc {
  padding: 48px var(--pad) 80px;
  max-width: 720px;
  margin: 0 auto;
}
.doc h1 {
  font-size: clamp(36px, 9vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 8px;
  text-wrap: balance;
}
.doc .updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 40px;
}
.doc h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.doc p, .doc li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  margin-bottom: 14px;
  letter-spacing: -0.005em;
}
.doc p.muted, .doc .muted { color: var(--muted); }
.doc ul {
  padding-left: 20px;
  margin-bottom: 18px;
}
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}
.doc-back:hover { color: var(--accent); }

/* ── Larger viewports ── */
@media (min-width: 720px) {
  :root { --pad: 40px; }
  .hero { padding: 96px var(--pad) 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
  .mascot-wrap { padding: 0; }
  .mascot-wrap img,
  .mascot-wrap video { width: 100%; max-width: 420px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .closer { padding: 128px var(--pad) 112px; }
  .numbers { grid-template-columns: repeat(4, 1fr); }
  .number { padding: 48px 40px; border-bottom: none; border-right: 1px solid var(--line); }
  .number:first-child { padding-left: 0; }
  .number:last-child { border-right: none; padding-right: 0; }
  .press-item { grid-template-columns: 160px 1fr 200px; gap: 32px; align-items: baseline; padding: 28px 0; }
  .press-meta { text-align: right; }
}
