:root {
  /* Same tokens as the app (lib/core/design_system/app_colors.dart): graphite, anthracite, porcelain, bone, Ignition. */
  --bg: #101214;
  --surface: #17191d;
  --surface-2: #1d2024;
  --line: #2a2d32;
  --text: #f4f2ed;
  --muted: #9c9893;
  --accent: #32dbb8;
  --accent-soft: rgba(50, 219, 184, 0.14);
  --on-accent: #121417;
  --bone: #e9e7e2;
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; z-index: 20; font-weight: 700; }
.skip:focus { top: 12px; text-decoration: none; }

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

header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 18, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.wordmark { font-weight: 800; letter-spacing: 0.22em; font-size: 15px; color: var(--text); }
.wordmark:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }
nav a.cta-small { color: var(--accent); font-weight: 700; }
nav a.lang { color: var(--text); font-weight: 600; }

section, #beta { scroll-margin-top: 70px; }

.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; margin: 14px 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 19px; max-width: 36em; }
.byline { color: var(--text); font-weight: 600; font-size: 15px; margin: -4px 0 14px; letter-spacing: 0.01em; }

.btn {
  display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700;
  padding: 15px 26px; border-radius: 14px; font-size: 17px;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; align-items: center; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

.phone {
  border-radius: 34px; overflow: hidden; border: 1px solid var(--line);
  background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
.phone img { display: block; width: 100%; height: auto; }
.hero .phone { max-width: 340px; margin-left: auto; }

section { padding: 64px 0; border-top: 1px solid var(--line); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card .tag { display: inline-block; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 32px; }
.shots figure { margin: 0; }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; text-align: center; }

.evidence .card cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.evidence .big { font-size: 30px; font-weight: 800; color: var(--text); margin: 4px 0 8px; }

.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.socials a { border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; color: var(--text); font-size: 15px; }
.socials a span { color: var(--muted); font-weight: 400; margin-left: 4px; }
.socials a:hover { text-decoration: none; border-color: var(--accent); }

.roadmap { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.roadmap li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: flex; gap: 16px; align-items: baseline; }
.roadmap .when { min-width: 72px; font-weight: 800; color: var(--accent); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.roadmap span:last-child { color: var(--muted); }

.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 760px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 700; line-height: 1; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.signup { text-align: center; }
.signup .lead { margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px auto 0; max-width: 820px; text-align: left; }
.steps .card { display: flex; flex-direction: column; }
.steps .card ol { color: var(--muted); margin: 0 0 18px; padding-left: 20px; }
.steps .card ol li { margin: 6px 0; }
.steps .card p { margin-bottom: 18px; }
.steps .card .btn { margin-top: auto; align-self: flex-start; }
.steps .card .tag { align-self: flex-start; }
#android { scroll-margin-top: 80px; }

footer.site { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site a { color: var(--muted); margin-right: 18px; }
footer.site .wrap > div { display: flex; flex-wrap: wrap; row-gap: 6px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.plan li { margin: 6px 0; }
.plan .price { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 4px 0 6px; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.plan.featured { border-color: var(--accent); }

/* Text pages (privacy, support, terms, 404) */
.doc { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc p, .doc li { color: var(--bone); }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.doc .updated { color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .hero, .founder { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .hero .phone { margin: 8px auto 0; max-width: 300px; }
  .grid, .plans, .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
  nav a:not(.cta-small):not(.lang) { display: none; }
  nav a.lang { margin-left: 0; }
  footer.site .wrap { flex-direction: column; }
}
