:root {
  --bg: #F6F6F4; --surface: #EDEDEA; --ink: #111111; --soft: #4A4A47; --muted: #8C8C88;
  --line: #E0E0DC; --on-ink: #FFFFFF; --gold: #C3A04F; --gold-soft: #EFE5CB;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0F0F0E; --surface: #1B1B1A; --ink: #F2F2EF; --soft: #C2C2BD; --muted: #86867F;
    --line: #2A2A28; --on-ink: #0F0F0E; --gold: #D2B06A; --gold-soft: #3A321F; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
main, header, footer { max-width: 960px; margin: 0 auto; padding: 0 20px; }
header { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; background: var(--ink); color: var(--on-ink); font-weight: 700; text-decoration: none; border: 0; font-size: 16px; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.btn small { display: block; font-weight: 500; font-size: 11px; opacity: .75; line-height: 1; }
.btn span { line-height: 1.15; text-align: left; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.hero { display: grid; gap: 32px; align-items: center; padding: 40px 0 64px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.1fr 1fr; padding-top: 64px; } }
h1 { font-size: clamp(38px, 7vw, 60px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 18px; }
h2 { font-size: clamp(28px, 4.5vw, 38px); letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.15; }
.lead { font-size: 20px; color: var(--soft); margin: 0; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }

/* Interactive demo */
.demo { background: var(--surface); border-radius: 28px; padding: 22px; }
.demo svg { width: 100%; height: auto; display: block; }
.climber { transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.flag { opacity: 0; transform-origin: 608px 320px; transform: scaleY(0); transition: .5s .5s; }
.demo.done .flag { opacity: 1; transform: none; }
.habits { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.habits label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg); border-radius: 14px; cursor: pointer; font-weight: 600; }
.habits input { appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); margin: 0; flex: none; display: grid; place-content: center; cursor: pointer; transition: .2s; }
.habits input:checked { background: var(--ink); }
.habits input:checked::after { content: ""; width: 11px; height: 6px; border: solid var(--on-ink); border-width: 0 0 3px 3px; transform: translateY(-2px) rotate(-45deg); }
.habits input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.habits input:checked + span { text-decoration: line-through; color: var(--muted); }
.status { min-height: 1.6em; margin: 14px 4px 0; font-weight: 700; text-align: center; }

.steps { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border-radius: 22px; padding: 24px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--soft); }
.cta { text-align: center; }
.cta .stores { justify-content: center; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { color: var(--soft); margin: 10px 0 0; }

/* Sticky mobile CTA */
.sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; display: none; z-index: 10; justify-content: center; box-shadow: 0 8px 30px rgba(0,0,0,.25); }
@media (max-width: 819px) { .sticky.show { display: flex; } body { padding-bottom: 80px; } }

footer { padding-top: 32px; padding-bottom: 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Legal pages */
.legal { max-width: 720px; padding-top: 16px; padding-bottom: 64px; }
.legal h1 { font-size: 38px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--soft); }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.todo { background: var(--gold-soft); color: var(--ink); padding: 0 4px; border-radius: 4px; }
.center { text-align: center; padding: 80px 20px; max-width: 520px; }

/* Keep language selection readable on small phones and with long labels. */
header { flex-wrap: wrap; gap: 12px; }
.language-picker { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.language-picker select { max-width: 190px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.language-picker select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main.center > .language-picker { justify-content: center; margin-top: 28px; }
@media (max-width: 520px) { header .language-picker { width: 100%; justify-content: flex-end; } }

.translation-notice { padding: 16px 20px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--soft); font-size: 14px; }
.translation-notice p { margin: 0 0 8px; }
.legal { overflow-wrap: anywhere; }
.legal table { display: block; max-width: 100%; overflow-x: auto; }

/* Support follows the site's compact, mobile-first layout. */
.support { max-width: 720px; padding-top: 36px; padding-bottom: 48px; }
.support-intro { padding-bottom: 36px; }
.support-intro .btn { margin: 24px 0 8px; }
.support-intro > p:last-child { max-width: 580px; color: var(--soft); }
.support .faq { padding: 32px 0; }
.support-contact { padding-top: 12px; }
.support-contact h2 { font-size: 22px; }
.faq details:last-child { border-bottom: 0; }
