/* stkrz landing page. Same tokens as the app (src/theme.ts): cream, ink, tangerine, Fredoka, Fibonacci spacing.
   Everything sits on φ: spacing and radii are Fibonacci (3 5 8 13 21 34 55 89), type steps by √φ, body leading is φ,
   column splits are 1 : φ, widths are Fibonacci (233 610 987), and breakpoints step by √φ: 610, 776, 987. */
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #FFF6E9;
  --bg-alt: #FDECD4;
  --surface: #FFFFFF;
  --ink: #1D1A16;
  --ink-soft: #625849;
  --line: #EADBC4;
  --accent: #FF5B2E;
  --s1: 5px; --s2: 8px; --s3: 13px; --s4: 21px; --s5: 34px; --s6: 55px; --s7: 89px;
  --r: 21px;
  /* Type steps by ~√φ, same scale as the app (theme.ts): 12 16 20 26 34 44, and 44×φ ≈ 71 for the hero. */
  --t1: 12px; --t2: 16px; --t3: 20px; --t4: 26px; --t5: 34px; --t6: 44px; --t7: 71px;
  --max: 987px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t2)/1.618 system-ui, -apple-system, 'Segoe UI', sans-serif;
}
h1, h2, h3, .logo, .store, .num, .row span, summary { font-family: 'Fredoka', system-ui, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.top, main > section, .foot { max-width: var(--max); margin: 0 auto; padding-inline: max(var(--s4), env(safe-area-inset-left)); }

.top { display: flex; align-items: center; justify-content: space-between; padding-block: var(--s4); }
.logo { font-weight: 700; font-size: var(--t5); color: var(--accent); text-decoration: none; letter-spacing: -0.5px; }

/* The app's button: accent fill, ink outline, hard ink shadow. */
.store {
  display: inline-block;
  padding: var(--s3) var(--s5);
  background: var(--accent);
  color: #1D1A16;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 600;
  font-size: var(--t3);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.store:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.store:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.store:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.store-sm { padding: var(--s2) var(--s4); font-size: var(--t2); box-shadow: 0 3px 0 var(--ink); }

/* Hero: copy and the app on a phone split roughly 1 : φ on wide screens. */
.hero-copy { container-type: inline-size; }
.hl { white-space: nowrap; }
h1, h2, h3, summary { text-wrap: balance; }
p, li { text-wrap: pretty; }
.hero { display: grid; gap: var(--s5); align-items: center; padding-block: var(--s5) var(--s6); }
@media (min-width: 987px) { .hero { grid-template-columns: 1fr 1.618fr; } }
h1 { font-size: clamp(var(--t5), 11vw, var(--t7)); font-size: clamp(var(--t5), 13cqi, var(--t7)); line-height: 1; letter-spacing: -1.5px; margin: 0 0 var(--s4); font-weight: 700; }
.hl { color: var(--accent); }
.lede { font-size: var(--t3); color: var(--ink-soft); margin: 0 0 var(--s5); max-width: 34ch; }
.lede strong { color: var(--ink); }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); }
.fine { margin: 0; font-size: var(--t2); color: var(--ink-soft); }


h2 { font-size: clamp(var(--t4), 5vw, var(--t6)); line-height: 1.272; letter-spacing: -0.8px; margin: 0 0 var(--s4); font-weight: 700; }
.sub { color: var(--ink-soft); margin: 0 0 var(--s5); max-width: 55ch; }
main > section + section { padding-block: var(--s6); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
@media (min-width: 776px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.steps h3 { margin: var(--s3) 0 var(--s1); font-size: var(--t4); }
.steps p { margin: 0; color: var(--ink-soft); }
.num { display: inline-grid; place-items: center; width: var(--s5); height: var(--s5); border-radius: 50%; background: var(--accent); color: #1D1A16; border: 2px solid var(--ink); font-weight: 700; }

.band { background: var(--bg-alt); border-radius: var(--s5); }
.band.band { padding: var(--s5) var(--s4); margin-block: var(--s5); }
.row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.row li { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
@media (min-width: 776px) { .row { grid-template-columns: repeat(3, 1fr); } }
.pair { display: flex; width: 100%; background: var(--surface); border-radius: var(--r); padding: var(--s2); }
.pair img { width: 50%; height: auto; }
.row span { font-weight: 500; font-size: var(--t2); text-align: center; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 610px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid img { background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s2); }

.faq details { border-bottom: 2px solid var(--line); padding-block: var(--s3); }
.faq summary { cursor: pointer; font-size: var(--t3); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-soft); margin: var(--s2) 0 0; max-width: 55ch; }

.foot { display: flex; gap: var(--s4); flex-wrap: wrap; padding-block: var(--s5) var(--s6); color: var(--ink-soft); font-size: var(--t2); }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Legal and support pages: one readable column on the same scale. */
.prose { max-width: 610px; margin: 0 auto; padding: var(--s4) max(var(--s4), env(safe-area-inset-left)) var(--s6); font-size: var(--t2); line-height: 1.618; }
.prose h1 { font-size: clamp(var(--t5), 6vw, var(--t6)); margin-bottom: var(--s4); }
.prose h2 { font-size: var(--t4); margin: var(--s5) 0 var(--s2); }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: var(--s4); }
.prose li + li { margin-top: var(--s2); }
.prose a { color: var(--ink); }

/* Real app screens in a simple phone frame (no device branding). */
/* The frame keeps the real screen's aspect ratio; width, bezel and corners are on the scale (233, 8, 34 outside / 26 inside). */
.phone { position: relative; width: min(100%, 233px); aspect-ratio: 1206 / 2622; border-radius: var(--s5); border: var(--s2) solid #1D1A16; background: #1D1A16; box-shadow: 0 var(--s4) var(--s6) rgba(0, 0, 0, .2); overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--t4); }

/* Hero: the finished pack on a phone, next to a sheet of other stickers people get: different faces, styles and outfits. */
/* Phone : stickers = 1 : φ, which also makes the two about the same height. */
.stage { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 610px) { .stage { grid-template-columns: 1fr 1.618fr; } }
.stage .phone { justify-self: center; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
@media (min-width: 987px) { .sheet ul { grid-template-columns: repeat(3, 1fr); } }
.sheet img { display: block; width: 100%; height: auto; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s1); }
.sheet p { margin: var(--s3) 0 0; color: var(--ink-soft); font-size: var(--t2); text-align: center; }

/* How it works: each step shows its real screen. */
.steps .shot { margin: var(--s4) auto 0; box-shadow: 0 var(--s3) var(--s5) rgba(0, 0, 0, .14); }
.steps li { display: flex; flex-direction: column; }

/* Before and after: one selfie in, her own stickers out, split 1 : φ. */
.ba-pair { display: grid; gap: var(--s4); align-items: stretch; }
@media (min-width: 610px) { .ba-pair { grid-template-columns: 1fr auto 1.618fr; } }
.ba figure { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.ba figcaption { margin-top: var(--s3); font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: var(--t3); text-align: center; }
.ba .before img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 2px solid var(--line); }
.ba-arrow { justify-self: center; align-self: center; font-family: 'Fredoka', system-ui, sans-serif; font-weight: 700; font-size: var(--t5); color: var(--accent); }
@media (max-width: 609px) { .ba-arrow { rotate: 90deg; } }
.ba .after ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.ba .after img { width: 100%; height: auto; background: var(--surface); border: 2px solid var(--line); border-radius: var(--r); padding: var(--s1); }
.ba .note { margin: var(--s4) 0 0; font-size: var(--t1); color: var(--ink-soft); text-align: center; }
@media (max-width: 609px) { .ba .before { width: min(100%, 233px); justify-self: center; } }
