:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b53;
  --line: #e3ded3;
  --brand: #6a4cff;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111110;
    --surface: #1b1a18;
    --text: #f2efe8;
    --muted: #a8a397;
    --line: #2c2a26;
    --brand: #a493ff;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(20px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--text); }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 96px 20px 72px; text-align: center;
}
.eyebrow { color: var(--brand); font-weight: 600; font-size: 15px; margin: 0 0 14px; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.035em;
  margin: 0 0 22px; font-weight: 800;
}
.lede { color: var(--muted); font-size: clamp(18px, 2.2vw, 21px); max-width: 620px; margin: 0 auto; }
.hero-icons { display: flex; justify-content: center; gap: 22px; margin-top: 44px; }
.hero-icons img {
  width: 92px; height: 92px; border-radius: 22%;
  box-shadow: 0 10px 30px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .2s ease;
}
.hero-icons a:hover img { transform: translateY(-4px) rotate(-2deg); }

.app {
  max-width: 1120px; margin: 0 auto 28px; padding: 48px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  scroll-margin-top: 80px;
  background-image: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.app-head .icon { width: 72px; height: 72px; border-radius: 22%; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.app-head h2 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.platforms { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

.app-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.copy h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px; color: var(--accent); }
.copy p { margin: 0 0 16px; }
.copy ul { padding: 0; margin: 0 0 20px; list-style: none; }
.copy li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--muted); }
.copy li b { color: var(--text); }
.copy li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.price {
  font-size: 15px; color: var(--muted);
  padding: 14px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.price b { color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px !important; }
.links a {
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
}
.links a:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.links a:hover { border-color: var(--accent); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.shots img {
  width: 100%; border-radius: 18px; background: var(--tint);
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
}
.shots img:nth-child(2) { transform: translateY(24px); }
.wide { margin-top: 56px; border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.16); }

footer { text-align: center; padding: 56px 20px 72px; color: var(--muted); }
footer a { color: var(--brand); }
.fine { font-size: 14px; }

@media (max-width: 860px) {
  .app { padding: 28px 20px; border-radius: 22px; margin: 0 12px 20px; }
  .app-body { grid-template-columns: 1fr; gap: 28px; }
  .shots img:nth-child(2) { transform: none; }
  .top nav { display: none; }
  .hero { padding: 64px 20px 48px; }
  .hero-icons img { width: 72px; height: 72px; }
}
@media (max-width: 480px) {
  .shots { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .shots img { scroll-snap-align: start; }
}

/* ---------- Home: "learn more" ---------- */
.more { margin-top: 8px; }
.more a { font-weight: 700; color: var(--accent); text-decoration: none; }
.more a:hover { text-decoration: underline; }

/* ---------- App pages ---------- */
.page { --accent: var(--brand); }
.app-hero { max-width: 1120px; margin: 0 auto; padding: 72px 20px 40px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.app-hero .icon { width: 128px; height: 128px; border-radius: 22%; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.app-hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 8px; }
.app-hero .tagline { font-size: clamp(19px, 2.4vw, 24px); color: var(--accent); font-weight: 700; margin: 0 0 10px; letter-spacing: -0.01em; }
.app-hero p { margin: 0; color: var(--muted); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px !important; }
.chips span { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.band { max-width: 1120px; margin: 0 auto; padding: 40px 20px; }
.band > h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.025em; margin: 0 0 8px; }
.band > .sub { color: var(--muted); margin: 0 0 28px; max-width: 680px; }

.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; scrollbar-width: thin; }
.gallery img { flex: 0 0 auto; height: 520px; width: auto; border-radius: 20px; scroll-snap-align: start; box-shadow: 0 8px 24px rgba(0,0,0,.14); background: var(--tint); cursor: zoom-in; }
.gallery.wide img { height: 400px; border-radius: 12px; }
.hint { font-size: 14px; color: var(--muted); margin-top: 4px; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.feature h3 { margin: 0 0 10px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.feature ul { margin: 0; padding-left: 18px; color: var(--muted); }
.feature li { margin-bottom: 6px; }
.feature li b { color: var(--text); }

.guide { display: grid; gap: 16px; }
.guide section { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; }
.guide h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.01em; }
.guide .why { color: var(--muted); margin: 0 0 16px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 2px 0 14px 46px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--accent);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line); }
.tip { margin: 6px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 15px; color: var(--muted); background: color-mix(in srgb, var(--accent) 9%, transparent); }
.tip b { color: var(--text); }
kbd { font: 600 14px/1 inherit; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta { max-width: 1120px; margin: 24px auto 0; padding: 36px 20px; text-align: center; }
.cta .links { justify-content: center; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.86); display: none; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 14px; }

.prose { max-width: 760px; margin: 0 auto; padding: 64px 20px; }
.prose h1 { font-size: 40px; letter-spacing: -0.03em; margin: 0 0 16px; }
.prose h2 { margin-top: 32px; }
.prose p, .prose li { color: var(--muted); }

@media (max-width: 860px) {
  .app-hero { grid-template-columns: 1fr; padding-top: 48px; }
  .app-hero .icon { width: 96px; height: 96px; }
  .gallery img { height: 420px; }
  .gallery.wide img { height: 220px; }
  .guide section { padding: 22px 18px; }
}

/* ---------- App Store button ---------- */
.appstore {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 14px; border-radius: 12px; text-decoration: none;
  background: #000; color: #fff !important; border: 1px solid #555;
  line-height: 1.05; transition: transform .15s ease;
}
.appstore:hover { transform: translateY(-1px); }
.appstore svg { width: 22px; height: 26px; fill: #fff; flex: none; }
.appstore small { display: block; font-size: 11px; font-weight: 500; }
.appstore strong { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.app-hero .appstore { margin-top: 20px; }
.links .appstore { padding: 7px 16px 7px 12px; border-radius: 10px; }
.links .appstore strong { font-size: 16px; }
.prose .eyebrow { color: var(--brand); }
.prose h1 { line-height: 1.08; }
