:root {
  --bg: #ffffff;
  --bg-tint: #fff6f0;
  --surface: #ffffff;
  --text: #1d1d1f;
  --muted: #5f6368;
  --line: #ece6e1;
  --brand: #f95a00;
  --brand-2: #ff9a3c;
  --brand-ink: #b84200;
  --on-brand: #ffffff;
  --store-bg: #111111;
  --store-text: #ffffff;
  --shadow: 0 20px 50px -20px rgba(120, 50, 0, 0.35);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0d0c;
    --bg-tint: #171311;
    --surface: #1c1816;
    --text: #f4efec;
    --muted: #b4aaa4;
    --line: #2d2724;
    --brand-ink: #ff9a5c;
    --store-bg: #f4efec;
    --store-text: #111111;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --bg: #0f0d0c;
  --bg-tint: #171311;
  --surface: #1c1816;
  --text: #f4efec;
  --muted: #b4aaa4;
  --line: #2d2724;
  --brand-ink: #ff9a5c;
  --store-bg: #f4efec;
  --store-text: #111111;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 20;
  background: var(--brand); color: var(--on-brand);
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  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);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; align-items: center; gap: 24px; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 9px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--on-brand); text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 8px 20px -10px var(--brand);
}
.btn-small { padding: 8px 16px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 64px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  padding: 6px 18px 6px 6px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em; color: var(--text);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--brand-2), var(--brand)) border-box;
  box-shadow: 0 8px 22px -12px var(--brand);
}
.badge-icon {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.badge-icon svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-plus { color: var(--brand); font-weight: 800; }
.badge-alt { color: var(--brand-ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-top: 20px; }

/* Hero art: two screenshots, overlapping, on soft brand shapes */
.hero-art {
  position: relative; height: 430px; max-width: 420px; margin-inline: auto; width: 100%;
  background:
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--brand-2) 55%, transparent) 0 120px, transparent 121px),
    radial-gradient(circle at 80% 78%, color-mix(in srgb, #7aa7ff 45%, transparent) 0 110px, transparent 111px);
}
.hero-art img {
  position: absolute; width: 195px; border-radius: 22px; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-art .shot-a { left: 0; top: 40px; transform: rotate(-5deg); }
.hero-art .shot-b { right: 0; top: 0; transform: rotate(3deg); z-index: 1; }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores.center-row { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--store-bg); color: var(--store-text);
  text-decoration: none; padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 170px;
  transition: transform 0.15s ease;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store span { display: flex; flex-direction: column; font-size: 1.05rem; font-weight: 600; line-height: 1.15; }
.store small { font-size: 0.7rem; font-weight: 500; opacity: 0.8; }

/* Sections */
.section { padding: 88px 0; }
.section.tint { background: var(--bg-tint); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px;
}
.card p { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Feature rows: one screenshot beside its copy, alternating sides */
.feature {
  display: grid; grid-template-columns: 220px minmax(0, 480px); align-items: center; gap: 64px;
  margin-top: 56px; justify-content: center;
}
.feature.flip { grid-template-columns: minmax(0, 480px) 220px; }
.feature.flip .feature-shot { order: 2; }
.feature-shot { width: 220px; border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature-copy { max-width: 520px; }
.feature-copy h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.feature-copy p { color: var(--muted); margin-top: 12px; }
.ticks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.700 5.700-4.500 4.500a.8.8 0 0 1-1.100 0L4.300 8.400a.8.8 0 1 1 1.100-1.100l1.200 1.200 3.900-3.900a.8.8 0 1 1 1.200 1.100Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.700 5.700-4.500 4.500a.8.8 0 0 1-1.100 0L4.300 8.400a.8.8 0 1 1 1.100-1.100l1.200 1.200 3.900-3.900a.8.8 0 1 1 1.200 1.100Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.step { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; }
.step .num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--on-brand);
  font-weight: 700; margin-bottom: 14px;
}
.step p { color: var(--muted); margin-top: 8px; font-size: 0.97rem; }

/* CTA */
.cta {
  padding: 96px 0; color: #fff; text-align: center;
  background: linear-gradient(135deg, #ff9a3c 0%, #f95a00 55%, #d94400 100%);
}
.cta .lead { color: rgba(255, 255, 255, 0.9); }
.cta-logo { margin: 0 auto 20px; border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4); }
.cta .store { --store-bg: #111; --store-text: #fff; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-brand { max-width: 380px; }
.footer-brand p { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: flex-start; }
.footer nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.footer nav a:hover { color: var(--text); }
.copy { margin-top: 36px; color: var(--muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-copy { text-align: center; }
  .stores { justify-content: center; }
  .hero-art { order: -1; height: 390px; }
  .hero-art img { width: 175px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; justify-items: center; text-align: center; }
  .feature.flip .feature-shot { order: 0; }
  .feature-shot { width: min(210px, 60vw); }
  .ticks { text-align: left; max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  .nav nav a:not(.btn) { display: none; }
  .cards, .steps { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero-art { height: 340px; }
  .hero-art img { width: 150px; }
  .ticks { grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .store { transition: none; }
}
