:root {
  color-scheme: light dark;
  --paper: #FAF9F5;
  --surface: #FFFFFF;
  --ink: #141414;
  --muted: #5E5A53;
  --line: #E4E1D8;
  --accent: #F5A800;
  --accent-strong: #7A5300;
  --on-accent: #141414;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151514;
    --surface: #1E1E1C;
    --ink: #F2F0EA;
    --muted: #A9A59B;
    --line: #2F2E2A;
    --accent: #F5A800;
    --accent-strong: #FFD36B;
    --on-accent: #141414;
  }
}

:root {
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.15rem;
  --step-2: 1.6rem;
  --step-3: 2.25rem;
  --step-4: 3rem;
}

@font-face { font-family: "Outfit"; src: url("fonts/Outfit[wght].woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.5; }
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: var(--step-3); line-height: 1.15; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 720px; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); text-decoration: none; }
.brand img { width: 40px; height: 40px; display: block; }
.site-header nav { display: flex; gap: 20px; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); }

.hero { padding: 48px 0 24px; }
.eyebrow { color: var(--muted); font-size: var(--step--1); margin-bottom: 12px; }
.hero h1 { margin-bottom: 16px; max-width: 14em; }
.hero .lead { font-size: var(--step-1); max-width: 36em; color: var(--muted); margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.who { color: var(--muted); max-width: 36em; margin: 0 0 8px; }

.btn { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); padding: 10px 20px; border-radius: 8px; border: 1px solid var(--ink); text-decoration: none; cursor: pointer; line-height: 1.4; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); filter: brightness(.94); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--line); color: var(--ink); }

section.block { padding: 32px 0; }
section.block h2 { font-size: var(--step-2); margin-bottom: 16px; }
.cards, .stats { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--surface); border-radius: 12px; padding: 20px; }
.card h3 { font-size: var(--step-1); margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--muted); }
.stats-intro { margin: 24px 0 0; max-width: 36em; }
.stats { margin-top: 8px; }
.stat { text-align: center; padding: 16px; }
.stat strong { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.2; border-bottom: 3px solid var(--accent); display: inline-block; margin-bottom: 4px; }
.stat span { display: block; color: var(--muted); }

.icon-strip { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.app-icon-link { display: block; border-radius: 16px; line-height: 0; }
.app-icon-link img { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
@media (max-width: 479px) {
  .icon-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .app-icon-link img { width: 100%; height: auto; }
}

#contact .panel { background: var(--surface); border-radius: 12px; padding: 20px; }
#contact .panel p { margin-bottom: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.app { background: var(--surface); border-radius: 12px; padding: 16px; text-align: center; }
.app-icon { border-radius: 22%; }
.app h2 { font-size: var(--step-1); margin: 8px 0; }
.app-desc { color: var(--muted); margin: 0 0 12px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; }
.links a { font-family: var(--font-display); font-weight: 500; padding: 6px 12px; border: 1px solid var(--ink); border-radius: 6px; background: transparent; color: var(--ink); text-decoration: none; }
.links a:hover { background: var(--line); color: var(--ink); }
.stores { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.stores a { flex: none; line-height: 0; }
.stores img { height: 52px; width: auto; display: block; }
.stores a:hover img { filter: brightness(1.12); }
@media (max-width: 400px) { .stores img { height: 44px; } }

.narrow h2 { font-size: var(--step-1); margin: 32px 0 8px; }

footer { margin: 48px 0; text-align: center; color: var(--muted); font-size: var(--step--1); }
footer a { color: var(--ink); }

@media (min-width: 720px) {
  .cards, .stats { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: var(--step-4); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
