@font-face { font-family: Nunito; src: url('/assets/nunito_regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Nunito; src: url('/assets/nunito_bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Nunito; src: url('/assets/nunito_extrabold.ttf') format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --purple: #4c3bce;
  --purple-hover: #3d2db0;
  --lavender: #eef2ff;
  --gold: #f5b400;
  --gold-ink: #7a5300;
  --canvas: #f8f9ff;
  --surface: #ffffff;
  --ink: #1a1a2e;
  --muted: #586274;
  --border: #e5e7f0;
  --shadow: 0 14px 40px rgba(55, 38, 138, .09);
  --radius: 24px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --purple: #a99bff;
    --purple-hover: #c2b8ff;
    --lavender: #1f1b44;
    --gold-ink: #ffd166;
    --canvas: #0f1020;
    --surface: #17182c;
    --ink: #eef0fa;
    --muted: #a6adc2;
    --border: #2a2c46;
    --shadow: 0 14px 40px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-underline-offset: 3px; }
a:hover { color: var(--purple-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--purple); background: var(--lavender); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 800; color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 18%, transparent); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); max-width: 34em; }
.hero-art { justify-self: center; width: min(360px, 80%); filter: drop-shadow(0 24px 40px rgba(76, 59, 206, .22)); }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; padding: 10px 20px; border-radius: 14px; background: var(--ink); color: var(--canvas); text-decoration: none; line-height: 1.25; transition: transform .16s ease, box-shadow .16s ease; }
.store small { font-size: 12px; opacity: .8; }
.store strong { font-size: 18px; font-weight: 800; }
.store:hover { color: var(--canvas); transform: translateY(-2px); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: reduce) { .store { transition: none; } .store:hover { transform: none; } }

/* Sections */
.section { padding: 48px 0; }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat strong { display: block; font-size: 34px; font-weight: 800; color: var(--purple); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender); color: var(--purple); margin-bottom: 14px; }
.card .icon svg { width: 24px; height: 24px; }

.cta { background: linear-gradient(135deg, #4c3bce, #2f2391); color: #fff; border-radius: 32px; padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta h2 { margin: 0 0 .25em; }
.cta p { margin: 0; opacity: .88; }
.cta .store { background: #fff; color: #1a1a2e; }
.cta .store:hover { color: #1a1a2e; }

/* Document pages */
.doc { padding: 40px 0 56px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 24px; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: 15px; }
.lang-switch { display: inline-flex; gap: 8px; margin: 8px 0 24px; }
.lang-switch a { font-weight: 700; font-size: 14px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; }
.note { background: var(--lavender); border-radius: 16px; padding: 16px 20px; margin: 1em 0 1.4em; }
.note p:last-child { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
details > :last-child { margin-bottom: 14px; }

.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 28px; }
.contact p { margin: 0; color: var(--muted); }
.btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 14px; background: var(--purple); color: #fff; font-weight: 800; text-decoration: none; }
.btn:hover { background: var(--purple-hover); color: #fff; }
@media (prefers-color-scheme: dark) { .btn, .btn:hover { color: #15123a; } }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 36px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--muted); }

.center { text-align: center; }
.not-found { padding: 80px 0; }
.not-found img { width: 180px; margin: 0 auto 24px; }

@media (max-width: 820px) {
  .hero { padding-top: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(220px, 60%); }
  .grid { grid-template-columns: 1fr; }
  .cta { padding: 28px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .stats { grid-template-columns: 1fr; }
  .nav a { padding: 6px 8px; font-size: 14px; }
  .brand span { display: none; }
  .store { flex: 1 1 100%; }
}
