:root {
  --bg: #fbfaf8; --surface: #ffffff; --soft: #f2f0ec; --fg: #17181a; --muted: #5c6066;
  --line: #e6e3de; --brand: #3d55e0; --brand-fg: #ffffff; --app: var(--brand);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11; --surface: #17181b; --soft: #1d1f23; --fg: #f2f2f3; --muted: #a2a6ad;
    --line: #2a2c31; --brand: #8fa0fa; --brand-fg: #0b1030;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); overflow-wrap: anywhere; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { height: 38px; width: auto; }
header.site nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 22px; }
header.site nav a:hover { color: var(--fg); }

/* Type */
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 16px; }
h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: -0.01em; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--app); margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
section { padding: 72px 0; }
section.alt { background: var(--soft); }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); margin: 0; }

/* Buttons */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none;
  padding: 10px 20px 10px 16px; border-radius: 12px; line-height: 1.15; border: 1px solid #000; }
@media (prefers-color-scheme: dark) { .store { border-color: #555; } }
.store small { display: block; font-size: 11px; opacity: .85; }
.store strong { font-size: 19px; letter-spacing: -0.01em; }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.textlink { font-weight: 600; text-decoration: none; }
.textlink:hover { text-decoration: underline; }

/* Home hero */
.hero { padding: 80px 0 64px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.phones { position: relative; height: 460px; }
.phones img { position: absolute; width: 190px; border-radius: 20px; box-shadow: var(--shadow); }
.phones img:nth-child(1) { left: 6%; top: 40px; transform: rotate(-8deg); }
.phones img:nth-child(2) { left: 34%; top: 0; z-index: 2; }
.phones img:nth-child(3) { left: 62%; top: 40px; transform: rotate(8deg); }

/* App grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.appcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 24px; text-decoration: none; color: var(--fg); box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease; }
.appcard:hover { transform: translateY(-3px); border-color: var(--app); }
.appcard .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.appcard .cat { color: var(--muted); font-size: 14px; }
.appcard p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.appcard .more { color: var(--app); font-weight: 600; font-size: 15px; }
.appcard .url { color: var(--muted); font-size: 14px; }
img.icon { width: 64px; height: 64px; border-radius: 22.5%; flex: none; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* App page */
.apphero { padding: 64px 0 56px; background: linear-gradient(180deg, color-mix(in srgb, var(--app) 9%, var(--bg)) 0%, var(--bg) 100%); }
.apphero .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.apphero img.icon { width: 96px; height: 96px; margin-bottom: 20px; }
.apphero .phone { justify-self: center; width: 260px; border-radius: 24px; box-shadow: var(--shadow); }
.shots { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; flex: none; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-snap-align: start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--app); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p, .feature p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
.feature { border-left: 3px solid var(--app); padding-left: 16px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 10px 0 0; }
.linkrow { display: flex; flex-wrap: wrap; gap: 12px; }
.pill { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--fg); text-decoration: none; font-weight: 600; font-size: 15px; }
.pill:hover { border-color: var(--app); color: var(--app); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about ul { list-style: none; padding: 0; margin: 0; }
.about li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.about li span { display: block; color: var(--muted); font-size: 14px; }

/* Long-form pages (rules, privacy, terms) */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc .meta { color: var(--muted); margin: -6px 0 28px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.crumb { font-size: 15px; margin-bottom: 18px; display: inline-block; text-decoration: none; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 32px 0 48px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap, .apphero .wrap, .about { grid-template-columns: 1fr; }
  .phones { height: 380px; }
  .phones img { width: 150px; }
  .steps, .features { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .apphero .phone { width: 220px; }
}
@media (max-width: 480px) {
  header.site nav a { margin-left: 14px; }
  .phones img { width: 120px; border-radius: 14px; }
  .phones { height: 300px; }
  .shots img { width: 200px; }
}
