:root {
  --bg: #ffffff;
  --bg-tint: #f2f7f3;
  --card: #ffffff;
  --text: #0f1a13;
  --muted: #536257;
  --line: #dfe8e1;
  --brand: #15803d;
  --brand-strong: #14532d;
  --brand-soft: #dcfce7;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --radius: 18px;
  --shadow: 0 1px 2px rgb(15 26 19 / 6%), 0 8px 24px rgb(15 26 19 / 6%);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b120d;
    --bg-tint: #101b13;
    --card: #142019;
    --text: #e8f1ea;
    --muted: #9db0a2;
    --line: #22332a;
    --brand: #22c55e;
    --brand-strong: #86efac;
    --brand-soft: #14361f;
    --danger: #f87171;
    --danger-soft: #3b1414;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font-size: 0.9em; background: var(--bg-tint); padding: 0.1em 0.35em; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.lead { font-size: 1.2rem; color: var(--muted); }

/* Header and footer */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand.small { font-size: 0.95rem; }
.nav nav, .footer-row nav { display: flex; gap: 20px; }
.nav nav a, .footer-row nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav nav a:hover, .footer-row nav a:hover { color: var(--text); }
@media (max-width: 520px) { .nav nav a:not(:last-child) { display: none; } }
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-row p { margin: 0; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--brand); color: #fff; font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: transform 0.15s, background 0.15s;
}
@media (prefers-color-scheme: dark) { .button { color: #052e14; } }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.button.ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-soft); }
.store-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 0.95rem;
}

/* Hero */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(60% 60% at 85% 20%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    linear-gradient(var(--bg), var(--bg-tint));
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.badges li::before { content: "✓"; color: var(--brand); margin-right: 6px; }
.hero-shot { display: flex; justify-content: center; }
.phone {
  width: min(330px, 78vw); border-radius: 44px;
  border: 10px solid #0d0d0d; background: #0d0d0d;
  box-shadow: 0 30px 60px -20px rgb(20 83 45 / 45%), 0 0 0 1px rgb(255 255 255 / 6%);
  transform: rotate(2deg);
}
@media (max-width: 860px) {
  .hero { padding-top: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { transform: none; }
}

/* Sections */
.section { padding: 80px 0; }
.section.tinted { background: var(--bg-tint); }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 1.6rem; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--brand-soft); margin-bottom: 14px; }

/* Screenshot gallery: horizontal scroll with snap, centered on wide screens */
.gallery {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(16px, calc((100% - 1120px) / 2)) 24px;
  scrollbar-width: thin;
}
.gallery figure { flex: 0 0 auto; width: min(204px, 62vw); margin: 0; scroll-snap-align: center; }
.gallery img { border-radius: 30px; border: 7px solid #0d0d0d; background: #0d0d0d; box-shadow: var(--shadow); }
.gallery figcaption { text-align: center; font-weight: 600; color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); }

.cta-band {
  text-align: center; padding: 56px 24px; border-radius: 28px; color: #fff;
  background: radial-gradient(80% 120% at 50% 0%, #22a447, #14532d);
}
.cta-band p { opacity: 0.85; font-size: 1.1rem; }
.cta-band .button { background: #fff; color: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .cta-band .button { color: #14532d; } }

/* Prose pages */
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose li { margin-bottom: 0.6em; }

/* Support form */
.form-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin: 28px 0 8px; }
form label { display: block; margin-bottom: 18px; }
form label span { display: block; font-weight: 700; margin-bottom: 6px; }
form label em { font-weight: 400; color: var(--muted); font-style: normal; }
input, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 16px; }
.notice.error { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.notice.success h2 { font-size: 1.4rem; }
.notice.success p:last-child { margin: 0; }
.spaced { margin-top: 56px; font-size: 1.5rem; }
.busy {
  position: absolute; inset: 0; border-radius: inherit; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: color-mix(in srgb, var(--card) 82%, transparent); font-weight: 700;
}
.busy[hidden] { display: none; }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .spinner { animation-duration: 2s; } .button:hover { transform: none; } }
