:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --line: rgba(0, 0, 0, .08);
  --accent: #0071e3;
  --star: #ff9f0a;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.09);
  --glow: rgba(0, 113, 227, .07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000; --surface: #0f0f11; --text: #f5f5f7; --muted: #a1a1a6; --faint: #6e6e73;
    --line: rgba(255, 255, 255, .09); --accent: #2997ff;
    --shadow: none; --shadow-hover: 0 16px 40px rgba(0,0,0,.6);
    --glow: rgba(41, 151, 255, .10);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.center .grid, .center .faq, .center .features { text-align: left; }

/* Nav */
nav.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
nav.top .brand { font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
nav.top .brand img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }
nav.top .brand:hover { text-decoration: none; }
nav.top ul { display: flex; gap: 26px; list-style: none; font-size: 13px; }
nav.top ul a { color: var(--muted); transition: color .15s; }
nav.top ul a:hover { color: var(--text); text-decoration: none; }

/* Type */
h1 { text-wrap: balance; font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -.04em; font-weight: 700; }
h1 .dim { color: var(--faint); }
h2 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -.035em; line-height: 1.1; font-weight: 700; margin: 8px 0 14px; }
.eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 620px; margin: 20px auto 0; }
.sub { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto; }
.meta { color: var(--muted); font-size: 14px; margin-top: 16px; }

/* Buttons */
.btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 500; font-size: 15px;
  background: var(--accent); color: #fff; transition: transform .15s, filter .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }

/* Hero */
.hero { position: relative; padding: 96px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 560px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, var(--glow), transparent 70%);
}
.stats { display: inline-flex; margin-top: 40px; }
.stat { padding: 0 32px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.stat b i { font-style: normal; color: var(--star); font-size: .8em; margin-left: 2px; }
.stat span { font-size: 13px; color: var(--muted); }

/* App grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 64px; }
.card {
  position: relative; background: var(--surface); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); color: var(--text);
  display: flex; flex-direction: column; gap: 14px; transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow-hover), inset 0 0 0 1px var(--line); }
.card-head { display: flex; align-items: center; gap: 14px; }
.card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.card-foot .go { color: var(--accent); font-weight: 500; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.card:hover .go { opacity: 1; transform: none; }
.cat { font-size: 13px; color: var(--muted); }
.icon {
  width: 64px; height: 64px; border-radius: 22.5%; display: block; flex: none;
  box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.14);
}
.icon.lg { width: 128px; height: 128px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08), 0 18px 40px rgba(0,0,0,.22); }
.icon.xs { width: 28px; height: 28px; box-shadow: none; }
.stars { position: relative; display: inline-block; font-size: 12px; letter-spacing: 1px; color: var(--line); margin-right: 6px; vertical-align: 1px; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--r); overflow: hidden; color: var(--star); }

/* Sections */
section { padding: 72px 0; }

/* About */
.about-sec { padding: 56px 0 24px; }
.about-card {
  display: flex; align-items: center; gap: 32px; max-width: 780px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.avatar { width: 112px; height: 112px; border-radius: 50%; flex: none; object-fit: cover; background: #fff; }
.about-card h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 8px; }
.about-card p { color: var(--muted); }
.about-card p + p { margin-top: 10px; }

/* Contact */
.contact { text-align: center; padding: 24px 0 16px; }
.email { display: inline-block; margin-top: 22px; font-size: clamp(22px, 4vw, 34px); font-weight: 600; letter-spacing: -.025em; }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
.faq h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -.015em; margin: 36px 0 4px; }
.faq h3 a { color: var(--text); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--faint); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; max-width: 680px; }

/* App page */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 22px; }
.app-hero { padding: 64px 0 48px; text-align: center; }
.app-hero .icon { margin: 0 auto 28px; }
.rating { color: var(--muted); font-size: 14px; margin-top: 16px; }
.rating b { color: var(--text); }
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 8px 20px 24px; justify-content: safe center; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img { height: 500px; width: auto; border-radius: 26px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); scroll-snap-align: center; flex: none; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 40px; }
.feature {
  display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border-radius: 18px; padding: 20px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-weight: 500; font-size: 15px;
}
.feature::before { content: "✓"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; }

footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 44px; color: var(--faint); font-size: 13px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

@media (max-width: 760px) {
  nav.top ul { gap: 16px; }
  .hero { padding: 64px 0 40px; }
  section { padding: 52px 0; }
  .grid { margin-top: 44px; }
  .stat { padding: 0 18px; }
  .stat b { font-size: 24px; }
  .shots img { height: 400px; }
  .about-card { flex-direction: column; text-align: center; padding: 28px 22px; gap: 18px; }
}
@media (max-width: 480px) {
  nav.top .brand span { display: none; }
}
details summary:focus { outline: none; }
details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.sub, .lead, h2 { text-wrap: balance; }
.nowrap { white-space: nowrap; }

/* Privacy policy */
.policy .wrap { max-width: 760px; }
.policy-head { text-align: center; padding: 48px 0 8px; }
.policy-head .icon { margin: 0 auto 20px; }
.policy-head .eyebrow { margin-bottom: 6px; }
.policy-head h1 { font-size: clamp(36px, 6vw, 52px); }
.policy-head .meta { margin-top: 10px; }
.policy-intro { margin: 40px auto 0; max-width: 600px; text-align: center; color: var(--muted); font-size: 17px; font-style: italic; text-wrap: balance; }
.policy-highlights {
  list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 32px;
}
.policy-highlights li {
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 500; line-height: 1.45;
}
.policy-highlights li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #34c759; color: #fff; font-size: 12px; margin-top: 1px; }
.policy-body { margin-top: 24px; }
.policy-sec { padding: 36px 0 0; }
.policy-sec h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 12px; }
.policy-sec p { color: var(--muted); margin-top: 12px; }
.policy-sec p:first-of-type { margin-top: 0; }
.policy-sec ul { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.policy-sec li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.policy-sec li strong { color: var(--text); font-weight: 600; }
.policy-sec a, .policy-highlights a { white-space: nowrap; }
.policy-list { max-width: 520px; margin: 40px auto 0; text-align: left; border-top: 1px solid var(--line); }
.policy-list a { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 500; }
.policy-list a:hover { text-decoration: none; background: var(--surface); }
.policy-list a span { margin-left: auto; color: var(--faint); }
.policy-sec li strong.label { display: block; margin-bottom: 4px; font-size: 16px; }
.policy-link { display: block; margin-top: 6px; font-size: 14px; }
.policy-link a::after { content: " ↗"; }
