:root {
  --brand: #059669;
  --brand-dark: #047857;
  --brand-soft: #D1FAE5;
  --accent: #ff8a3d;
  --ink: #14201c;
  --muted: #5b6b66;
  --line: #e3ebe8;
  --bg: #ffffff;
  --bg-alt: #f6faf8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 32, 28, 0.08);
  --max: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-dark); }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand svg { width: 34px; height: 34px; }
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  padding: 0.7rem 1.2rem; border-radius: 999px; border: 0; cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--brand-dark); border: 1.5px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }

.store-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #000; color: #fff; text-decoration: none; border-radius: 12px;
  padding: 0.55rem 1rem; min-width: 170px;
}
.store-badge:hover { color: #fff; opacity: 0.88; }
.store-badge svg { width: 24px; height: 24px; fill: #fff; }
.store-badge small { display: block; font-size: 0.68rem; opacity: 0.85; line-height: 1.1; }
.store-badge strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-badge[aria-disabled="true"] { cursor: default; }
.soon { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* Hero */
.hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(180deg, #ecfdf5, #fff 85%); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--brand-dark); background: #fff; border: 1px solid var(--line); padding: 0.25rem 0.75rem; border-radius: 999px; margin-bottom: 1rem; }
@media (max-width: 860px) {
  .hero { padding-top: 3rem; }
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin-inline: auto; }
}

/* Phone mockup */
.phone {
  width: 290px; border-radius: 40px; background: #121a17; padding: 12px;
  box-shadow: 0 30px 60px rgba(20, 32, 28, 0.22);
}
.screen { background: #fff; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; min-height: 540px; }
.screen-top { background: linear-gradient(135deg, #10B981, #047857); color: #fff; padding: 1.1rem 1.1rem 0.9rem; }
.screen-top small { opacity: 0.85; font-size: 0.75rem; }
.screen-top b { display: block; font-size: 1.05rem; }
.screen-body { padding: 0.8rem 1rem; flex: 1; font-size: 0.82rem; }
.line-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid var(--line); gap: 0.5rem; }
.line-item .who { display: flex; gap: 3px; }
.dot { width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 0.6rem; font-weight: 700; display: grid; place-items: center; }
.d1 { background: #10B981; } .d2 { background: #ff8a3d; } .d3 { background: #5b7cfa; } .d4 { background: #c05bd6; }
.line-item.tip { color: var(--muted); font-style: italic; }
.owe { margin-top: 0.8rem; background: var(--brand-soft); border-radius: 12px; padding: 0.7rem 0.8rem; }
.owe div { display: flex; justify-content: space-between; }
.ad-slot { border-top: 1px dashed var(--line); background: var(--bg-alt); color: var(--muted); font-size: 0.65rem; text-align: center; padding: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* Sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); margin-bottom: 1rem; }
.card .icon svg { width: 26px; height: 26px; stroke: var(--brand-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); }
.card ul { padding-left: 1.1rem; margin: 0; color: var(--muted); }
.card li { margin-bottom: 0.35rem; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.4rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 3.2rem; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center;
}
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.feature { display: flex; gap: 1rem; }
.feature .icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--brand-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 46rem; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0.75rem 0 0; }

/* CTA */
.cta { background: linear-gradient(135deg, #10B981, #047857); color: #fff; border-radius: 28px; padding: 3rem 2rem; text-align: center; }
.cta p { opacity: 0.9; font-size: 1.1rem; }
.cta .store-badges { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal / plain pages */
.page { padding: 3.5rem 0 4.5rem; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 2rem; }
.page .updated { color: var(--muted); }
.page table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.page th, .page td { text-align: left; border-bottom: 1px solid var(--line); padding: 0.6rem 0.5rem; vertical-align: top; }
.page th { background: var(--bg-alt); }
.notice { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 1rem 1.2rem; border-radius: 8px; margin: 1.5rem 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
