/* Colours, radii, and breakpoints come from design/tokens.json (see scripts/build-website.mjs). Only layout lives here. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 22px;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
img, svg { max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--margin); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 12px 16px; border-radius: var(--control-radius); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; line-height: 26px; color: var(--text); text-decoration: none; min-height: 44px; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--control-radius); color: var(--text); text-decoration: none; opacity: .8; }
.nav a:hover, .nav a:focus-visible { background: var(--surface); opacity: 1; }
.nav a[aria-current="page"] { opacity: 1; font-weight: 600; }
.lang { display: inline-flex; background: var(--surface); border-radius: var(--control-radius); padding: 3px; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.lang a[aria-current="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 719px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
}

/* Buttons and badges */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--control-radius); font-weight: 600; text-decoration: none; transition: transform .15s ease; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); }
.btn:hover { transform: translateY(-2px); }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 8px 20px; border-radius: var(--control-radius); background: var(--surface); color: var(--text); border: 1.5px dashed var(--text-secondary); line-height: 18px; }
.store small { font-size: 13px; color: var(--text-secondary); }
.store strong { font-size: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero::before { width: 420px; height: 420px; background: var(--tint-1); top: -120px; right: -80px; }
.hero::after { width: 360px; height: 360px; background: var(--tint-3); bottom: -140px; left: -100px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--surface); color: var(--accent-text); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 20px; }
.hero h1 span { color: var(--accent-text); }
.lead { font-size: 18px; line-height: 28px; color: var(--text-secondary); margin: 0 0 28px; max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 840px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } .hero { padding: 72px 0 96px; } }

/* Phone illustration */
.hero-art { position: relative; display: flex; justify-content: center; padding: 16px 0; }
.phone { width: min(300px, 100%); background: var(--background); border: 8px solid var(--text); border-radius: 40px; padding: 20px 14px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.18); transform: rotate(3deg); }
.phone-bar { display: flex; flex-direction: column; margin: 4px 6px 14px; }
.phone-title { font-weight: 700; font-size: 20px; line-height: 26px; }
.phone-event { color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.wish { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--card-radius); padding: 12px; margin-bottom: 10px; }
.wish-thumb { width: 52px; height: 52px; border-radius: var(--control-radius); display: flex; align-items: center; justify-content: center; font-size: 26px; flex: none; }
.wish:nth-child(2) .wish-thumb { background: var(--tint-1); }
.wish:nth-child(3) .wish-thumb { background: var(--tint-2); }
.wish:nth-child(4) .wish-thumb { background: var(--tint-3); }
.wish-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 15px; line-height: 20px; font-weight: 600; }
.pill { font-size: 13px; line-height: 18px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.pill.open { background: var(--accent); color: var(--on-accent); }
.pill.done { color: var(--success-text); border: 1.5px solid var(--success); }
.chip { position: absolute; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.14); white-space: nowrap; }
.chip-a { top: 0; left: 4%; }
.chip-b { bottom: 10%; right: 0; }
@media (prefers-reduced-motion: no-preference) {
  .chip-a { animation: float 5s ease-in-out infinite; }
  .chip-b { animation: float 6s ease-in-out -2s infinite; }
  .phone { animation: sway 8s ease-in-out infinite; }
  @keyframes float { 50% { transform: translateY(-10px); } }
  @keyframes sway { 50% { transform: rotate(1deg) translateY(-6px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* Sections */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2, h1.page { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; margin: 0 0 12px; }
.section-head p { color: var(--text-secondary); font-size: 18px; line-height: 26px; margin: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 840px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.two { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--surface); border-radius: var(--card-radius); padding: 24px; }
.card h3 { font-size: 20px; line-height: 26px; font-weight: 700; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--text-secondary); }
.tile { width: 56px; height: 56px; border-radius: var(--control-radius); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.t1 { background: var(--tint-1); } .t2 { background: var(--tint-2); } .t3 { background: var(--tint-3); }
.t4 { background: var(--tint-4); } .t5 { background: var(--tint-5); } .t6 { background: var(--tint-6); }
.steps { counter-reset: step; }
.step { position: relative; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; }

@media (max-width: 839px) {
  .feat { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; align-items: start; padding: 20px; }
  .feat .tile { grid-row: 1 / span 2; }
  .feat h3 { margin: 0 0 4px; }
}

/* Secret band */
.band { background: var(--tint-1); border-radius: var(--sheet-radius); padding: 48px var(--margin); }
.band .card { background: var(--surface); }
.band .section-head { margin-bottom: 32px; }

/* Occasions */
.occasions { text-align: center; }
.occasions p { max-width: 640px; margin: 0 auto; color: var(--text-secondary); font-size: 18px; line-height: 28px; }
.emoji-row { font-size: 36px; letter-spacing: 12px; margin-bottom: 16px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--surface); border-radius: var(--card-radius); padding: 0 24px; }
summary { cursor: pointer; font-weight: 600; min-height: 56px; display: flex; align-items: center; list-style: none; padding: 12px 0; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; padding-left: 16px; font-size: 24px; color: var(--accent-text); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 20px; color: var(--text-secondary); }

/* Call to action */
.cta { background: var(--accent); color: var(--on-accent); border-radius: var(--sheet-radius); padding: 56px var(--margin); text-align: center; }
.cta h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; font-weight: 800; margin: 0 0 12px; }
.cta p { margin: 0 0 28px; font-size: 18px; }
.cta .stores { justify-content: center; }
.cta .store { border-color: var(--on-accent); }

/* Document pages (help, privacy, not found) */
main.doc { max-width: 760px; margin: 0 auto; padding: 32px var(--margin) 72px; }
main.doc h1.page { margin-bottom: 8px; }
.doc .lead { margin-bottom: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.toc a:hover { background: var(--accent); color: var(--on-accent); }
.doc h2 { font-size: 24px; line-height: 30px; font-weight: 700; margin: 40px 0 12px; }
.panel { background: var(--surface); border-radius: var(--card-radius); padding: 8px 24px; }
.panel p { margin: 16px 0; }
.note { border-left: 4px solid var(--accent); padding: 4px 16px; border-radius: var(--control-radius); background: var(--surface); color: var(--text-secondary); }
.todo { color: var(--accent-text); font-style: italic; }
.center { text-align: center; padding: 48px 0; }
.center .big { font-size: 64px; }

/* Footer */
.site-footer { padding: 40px 0 56px; color: var(--text-secondary); font-size: 14px; line-height: 20px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-footer a { color: var(--text-secondary); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-left: auto; }
