/*
 * Stride · Move to Google Play
 * Material 3 Expressive, built by hand: tonal colour from the Stride teal
 * (#00A88E), large rounded shapes that change on press and focus, and spring
 * motion (the M3 Expressive spatial springs, approximated as cubic-béziers).
 */

:root {
  color-scheme: light dark;
  --font: "Roboto Flex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --spring-fast: cubic-bezier(0.42, 1.67, 0.21, 0.9);
  --spring: cubic-bezier(0.38, 1.21, 0.22, 1);
  --spring-slow: cubic-bezier(0.39, 1.29, 0.35, 0.98);
  --effects: cubic-bezier(0.34, 0.8, 0.34, 1);
  --emphasized: cubic-bezier(0.2, 0, 0, 1);

  --primary: #006b5a;
  --on-primary: #ffffff;
  --primary-container: #8ef5dc;
  --on-primary-container: #00201a;
  --secondary-container: #cce8df;
  --on-secondary-container: #06201a;
  --tertiary-container: #c9e6ff;
  --on-tertiary-container: #001e31;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #410002;
  --surface: #f4fbf7;
  --surface-low: #eef5f1;
  --surface-c: #e8efeb;
  --surface-high: #e3eae6;
  --surface-highest: #dde4e0;
  --on-surface: #161d1b;
  --on-surface-var: #3f4945;
  --outline: #6f7975;
  --outline-var: #bfc9c4;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 8px 32px rgb(0 60 50 / 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #71d8bf;
    --on-primary: #00382e;
    --primary-container: #005143;
    --on-primary-container: #8ef5dc;
    --secondary-container: #334b45;
    --on-secondary-container: #cce8df;
    --tertiary-container: #294a61;
    --on-tertiary-container: #c9e6ff;
    --error: #ffb4ab;
    --error-container: #93000a;
    --on-error-container: #ffdad6;
    --surface: #0e1513;
    --surface-low: #161d1b;
    --surface-c: #1a211f;
    --surface-high: #252b29;
    --surface-highest: #2f3634;
    --on-surface: #dde4e0;
    --on-surface-var: #bfc9c4;
    --outline: #899390;
    --outline-var: #3f4945;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 40px rgb(0 0 0 / 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

/* Components set display:flex/grid, which would otherwise beat [hidden]. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }

svg { display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ----------------------------------------------------------- backdrop */

.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.blob {
  position: absolute; width: 70vmax; height: 70vmax; filter: blur(70px); opacity: 0.45;
}
.blob { will-change: transform; }
.blob-a { top: -30vmax; right: -22vmax; fill: var(--primary-container); animation: drift-a 26s ease-in-out infinite alternate; }
.blob-b { bottom: -38vmax; left: -28vmax; fill: var(--tertiary-container); animation: drift-b 32s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate(-8vmax, 10vmax) rotate(40deg); } }
@keyframes drift-b { to { transform: translate(10vmax, -6vmax) rotate(-30deg); } }

.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--outline-var) 1.2px, transparent 1.6px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 70%);
  opacity: 0.7;
  animation: dots-pan 40s linear infinite;
}
@keyframes dots-pan { to { background-position: 24px 48px; } }

/* ------------------------------------------------------------- topbar */

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1120px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 16px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--on-surface); text-decoration: none;
  font-weight: 700; font-size: 20px; font-variation-settings: "wdth" 112;
}
.brand img { border-radius: 12px; transition: transform 0.5s var(--spring-fast), border-radius 0.5s var(--spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); border-radius: 50%; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px; border-radius: 12px;
  border: 1px solid var(--outline-var); color: var(--on-surface-var);
  text-decoration: none; font-weight: 600; font-size: 14px;
  transition: border-radius 0.4s var(--spring-fast), background-color 0.2s, transform 0.4s var(--spring-fast);
}
.chip svg { width: 18px; height: 18px; fill: var(--primary); transition: transform 0.5s var(--spring-fast); }
.chip:hover { border-radius: 20px; background: var(--surface-high); }
.chip:hover svg { transform: translate(2px, -2px) rotate(-14deg); }
.chip:active { transform: scale(0.95); }

/* ---------------------------------------------------------------- layout */

main {
  max-width: 1120px; margin: 0 auto; padding: 8px 16px 24px;
  display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 980px) {
  main {
    grid-template-columns: minmax(0, 1fr) 500px;
    grid-template-areas: "hero panel" "faq panel";
    column-gap: 56px; align-items: start; padding-top: 32px;
  }
  .hero { grid-area: hero; position: sticky; top: 32px; text-align: left; align-items: flex-start; }
  .panel { grid-area: panel; }
  .faq { grid-area: faq; }
}

/* ------------------------------------------------------------------ hero */

.hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 12px;
}

.hero-art {
  position: relative; width: 168px; height: 168px; margin-bottom: 20px;
  display: grid; place-items: center;
}
.hero-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--primary-container); overflow: visible; }
.runner {
  position: relative; width: 58%; height: 58%; color: var(--on-primary-container);
  animation: bob 0.9s var(--effects) infinite alternate;
}
.runner .leg-front { transform-origin: 53px 60px; animation: leg-f 0.9s ease-in-out infinite alternate; }
.runner .leg-back { transform-origin: 53px 60px; animation: leg-b 0.9s ease-in-out infinite alternate; }
.runner .trail { stroke-dasharray: 24; animation: trail 0.9s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(2px) rotate(-1deg); } to { transform: translateY(-4px) rotate(2deg); } }
@keyframes leg-f { from { transform: rotate(-6deg); } to { transform: rotate(8deg); } }
@keyframes leg-b { from { transform: rotate(6deg); } to { transform: rotate(-6deg); } }
@keyframes trail { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 10; } }

.orbit {
  position: absolute; width: 18px; height: 18px; border-radius: 6px; background: var(--primary);
  top: 50%; left: 50%; margin: -9px;
  animation: orbit 7s linear infinite;
}
.orbit.o2 {
  width: 12px; height: 12px; margin: -6px; border-radius: 50%;
  background: var(--tertiary-container); animation-duration: 11s; animation-direction: reverse;
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(96px) rotate(0deg); }
  50% { border-radius: 50%; }
  to { transform: rotate(360deg) translateX(96px) rotate(-720deg); }
}

.eyebrow {
  margin: 0 0 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--secondary-container); color: var(--on-secondary-container);
  font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
}

h1 {
  margin: 4px 0 14px;
  font-size: clamp(38px, 9vw, 64px); line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 800;
  font-variation-settings: "wght" 800, "wdth" 112, "opsz" 144;
  text-wrap: balance;
}
h1 em {
  position: relative; display: inline-block; font-style: normal; color: var(--primary);
  animation: weight-in 1.4s var(--spring) 0.35s both;
}
@keyframes weight-in {
  from { font-variation-settings: "wght" 300, "wdth" 80, "opsz" 144; letter-spacing: 0.04em; }
  to { font-variation-settings: "wght" 900, "wdth" 120, "opsz" 144; letter-spacing: -0.02em; }
}
.squiggle {
  position: absolute; left: 0; right: 0; bottom: -10px; width: 100%; height: 12px; overflow: visible;
}
.squiggle path {
  fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 240; stroke-dashoffset: 240;
  animation: draw 1.1s var(--emphasized) 1s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lead {
  margin: 6px 0 22px; max-width: 30em; color: var(--on-surface-var);
  font-size: 18px; line-height: 1.55;
}

.steps {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.steps li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface-c); color: var(--on-surface-var);
  font-size: 14px; font-weight: 600;
  transition: background-color 0.4s var(--effects), color 0.4s var(--effects), transform 0.5s var(--spring-fast);
}
.step-dot {
  position: relative; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-highest); color: var(--on-surface-var);
  font-size: 13px;
  transition: background-color 0.3s, border-radius 0.5s var(--spring), transform 0.5s var(--spring-fast);
}
.step-dot b, .step-dot svg { grid-area: 1 / 1; transition: transform 0.45s var(--spring-fast), opacity 0.2s; }
.step-dot svg { width: 16px; height: 16px; fill: currentColor; transform: scale(0) rotate(-90deg); opacity: 0; }
.steps li.is-active { background: var(--primary-container); color: var(--on-primary-container); transform: scale(1.04); }
.steps li.is-active .step-dot { background: var(--primary); color: var(--on-primary); border-radius: 9px; transform: rotate(45deg); }
.steps li.is-active .step-dot b { transform: rotate(-45deg); }
.steps li.is-done .step-dot { background: var(--primary); color: var(--on-primary); }
.steps li.is-done .step-dot b { transform: scale(0); opacity: 0; }
.steps li.is-done .step-dot svg { transform: none; opacity: 1; }

@media (min-width: 980px) { .steps { justify-content: flex-start; } }

/* ----------------------------------------------------------------- panel */

.panel {
  position: relative; overflow: hidden;
  background: var(--surface-low);
  border: 1px solid color-mix(in srgb, var(--outline-var) 50%, transparent);
  border-radius: 36px; padding: 28px 20px 24px;
  box-shadow: var(--shadow);
}
@media (min-width: 480px) { .panel { padding: 32px 28px 28px; } }

.progress {
  position: absolute; top: 0; left: 0; right: 0; height: 0; overflow: hidden;
  transition: height 0.35s var(--emphasized);
}
.panel.is-busy .progress { height: 10px; }
.progress svg { width: 200%; height: 10px; animation: wave 1.1s linear infinite; }
.progress path { fill: none; stroke: var(--primary); stroke-width: 4; stroke-linecap: round; }
@keyframes wave { to { transform: translateX(-4.545%); } }

.form-head h2, .result h2, .faq h2 {
  margin: 0; font-size: 28px; line-height: 1.15; font-weight: 750;
  font-variation-settings: "wght" 750, "wdth" 108, "opsz" 40;
}
.form-head p { margin: 6px 0 22px; color: var(--on-surface-var); }

/* ---------------------------------------------------------------- fields */

.field { position: relative; margin-bottom: 14px; }
.field input {
  width: 100%; height: 60px; padding: 24px 16px 8px;
  border: 0; border-radius: 18px 18px 6px 6px;
  background: var(--surface-highest); color: var(--on-surface);
  font: 500 17px/1.2 var(--font);
  outline: none;
  transition: border-radius 0.45s var(--spring), background-color 0.25s var(--effects);
}
.field input:hover { background: color-mix(in srgb, var(--on-surface) 6%, var(--surface-highest)); }
.field input:focus { border-radius: 24px 24px 4px 4px; }
.field label {
  position: absolute; left: 16px; top: 19px; font-size: 16px; color: var(--on-surface-var);
  transform-origin: left top; pointer-events: none;
  transition: transform 0.4s var(--spring-fast), color 0.2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label { transform: translateY(-11px) scale(0.76); }
.field input:focus + label { color: var(--primary); }
.field .indicator {
  position: absolute; left: 0; right: 0; top: 58px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0);
  transition: transform 0.5s var(--spring);
}
.field::after {
  content: ""; position: absolute; left: 0; right: 0; top: 59px; height: 1px;
  background: var(--on-surface-var); opacity: 0.6;
}
.field input:focus ~ .indicator { transform: scaleX(1); }
.support {
  min-height: 0; margin: 4px 16px 0; font-size: 12.5px; color: var(--on-surface-var);
  transition: color 0.2s;
}
.support:empty { display: none; }

.field.has-error input { background: color-mix(in srgb, var(--error-container) 45%, var(--surface-highest)); }
.field.has-error label, .field.has-error .support { color: var(--error); }
.field.has-error .indicator { background: var(--error); transform: scaleX(1); }
.field.shake { animation: shake 0.5s var(--effects); }
@keyframes shake {
  15% { transform: translateX(-8px); } 35% { transform: translateX(7px); }
  55% { transform: translateX(-5px); } 75% { transform: translateX(3px); }
}

.field-key input {
  padding-right: 56px; font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: 0.02em;
}
.field-key.has-kind input { padding-right: 128px; }
.key-kind {
  position: absolute; right: 52px; top: 16px; height: 28px; padding: 0 10px; border-radius: 8px;
  display: inline-flex; align-items: center;
  background: var(--primary); color: var(--on-primary);
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
  opacity: 0; transform: scale(0.4) translateX(14px); pointer-events: none;
  transition: transform 0.5s var(--spring-fast), opacity 0.2s, border-radius 0.5s var(--spring);
}
.field-key.has-kind .key-kind { opacity: 1; transform: none; border-radius: 14px; }
.field-key:not(.has-paste) .key-kind { right: 12px; }
.field-key:not(.has-paste).has-kind input { padding-right: 92px; }

.icon-btn {
  position: absolute; right: 6px; top: 8px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--on-surface-var); cursor: pointer; overflow: hidden;
  transition: border-radius 0.4s var(--spring-fast), background-color 0.2s, transform 0.4s var(--spring-fast);
}
.icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
.icon-btn:hover { background: color-mix(in srgb, var(--on-surface) 8%, transparent); }
.icon-btn:active { border-radius: 12px; transform: scale(0.9); }
.icon-btn:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fine {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 18px 4px 18px; font-size: 13.5px; color: var(--on-surface-var);
}
.fine svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: var(--primary); }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 18px; padding: 14px 16px; border-radius: 24px;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
  animation: pop-in 0.6s var(--spring-fast) both;
}
.notice svg { flex: none; width: 22px; height: 22px; fill: currentColor; margin-top: 1px; }
.notice strong { display: block; }
.notice p { margin: 2px 0 0; font-size: 14px; }
.notice a { color: inherit; font-weight: 700; }

/* ---------------------------------------------------------------- alert */

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 16px; padding: 14px 16px; border-radius: 24px;
  background: var(--error-container); color: var(--on-error-container);
  transform-origin: top center;
  animation: pop-in 0.55s var(--spring-fast) both;
}
.alert.again { animation: pop-in 0.55s var(--spring-fast) both, shake 0.5s var(--effects) 0.15s; }
.alert > svg { flex: none; width: 22px; height: 22px; fill: currentColor; margin-top: 1px; }
.alert strong { display: block; }
.alert p { margin: 2px 0 0; font-size: 14px; }
.alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.alert .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.alert .btn-filled { background: var(--on-error-container); color: var(--error-container); }
.alert .btn-outline { border: 1px solid currentColor; color: inherit; background: transparent; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------- buttons */

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  font: 650 16px/1 var(--font); font-variation-settings: "wght" 650, "wdth" 106;
  letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    border-radius 0.4s var(--spring-fast),
    transform 0.4s var(--spring-fast),
    width 0.6s var(--spring),
    padding 0.6s var(--spring),
    background-color 0.25s var(--effects),
    color 0.25s var(--effects);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: currentColor; opacity: 0; transition: opacity 0.2s;
}
.btn:hover::before { opacity: 0.08; }
.btn:active { border-radius: 16px; transform: scale(0.96); }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn[disabled] { cursor: not-allowed; }

.btn-filled { background: var(--primary); color: var(--on-primary); }
.btn-tonal { background: var(--secondary-container); color: var(--on-secondary-container); }

.btn-xl {
  width: 100%; min-height: 68px; font-size: 19px;
  font-variation-settings: "wght" 700, "wdth" 112;
  border-radius: 34px;
}
.btn-xl:active { border-radius: 20px; }
.btn-xl[disabled]:not(.is-loading) {
  background: color-mix(in srgb, var(--on-surface) 12%, transparent);
  color: color-mix(in srgb, var(--on-surface) 45%, transparent);
}

.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: 0.2; transform: scale(0);
  animation: ripple 0.65s var(--emphasized) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.submit-row { display: flex; justify-content: center; }

.btn-label { transition: opacity 0.2s, transform 0.45s var(--spring-fast); }
.btn-loader {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; transform: scale(0.3); pointer-events: none;
  transition: opacity 0.2s, transform 0.5s var(--spring-fast);
}
.btn-loader svg { width: 38px; height: 38px; fill: var(--on-primary); overflow: visible; }

.btn-xl.is-loading { width: 68px; padding: 0; border-radius: 24px; }
.btn-xl.is-loading .btn-label { opacity: 0; transform: scale(0.6); }
.btn-xl.is-loading .btn-loader { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- result */

.result { text-align: center; }
.result > * { animation: rise 0.7s var(--spring) both; }
.result > :nth-child(2) { animation-delay: 0.08s; }
.result > :nth-child(3) { animation-delay: 0.14s; }
.result > :nth-child(4) { animation-delay: 0.2s; }
.result > :nth-child(5) { animation-delay: 0.6s; }
.result > :nth-child(6) { animation-delay: 0.7s; }
.result > :nth-child(7) { animation-delay: 0.8s; }

.badge { position: relative; width: 104px; height: 104px; margin: 4px auto 16px; display: grid; place-items: center; }
.badge-shape { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--primary); overflow: visible; }
.badge-check { position: relative; width: 52px; height: 52px; }
.badge-check path {
  fill: none; stroke: var(--on-primary); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24;
  animation: draw 0.55s var(--emphasized) 0.45s forwards;
}
.result h2 { outline: none; }
.result-sub { margin: 6px 0 20px; color: var(--on-surface-var); }

.code {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  margin: 0 0 22px; padding: 18px 12px; border-radius: 28px;
  background: var(--surface-high);
  perspective: 600px;
}
.code-group { display: inline-flex; gap: 4px; }
.code-char {
  display: inline-grid; place-items: center;
  width: 1.15em; height: 1.6em; border-radius: 10px;
  background: var(--primary-container); color: var(--on-primary-container);
  font: 700 clamp(18px, 5.4vw, 24px)/1 var(--mono);
  animation: flip-in 0.65s var(--spring-fast) both;
  animation-delay: calc(var(--k, 0) * 40ms + 300ms);
}
@keyframes flip-in {
  from { opacity: 0; transform: rotateX(-100deg) translateY(12px); }
  to { opacity: 1; transform: none; }
}

.actions { display: grid; gap: 10px; margin-bottom: 18px; }
.actions .btn-filled { min-height: 60px; font-size: 17px; }
.actions-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#copyBtn .i-done { display: none; }
#copyBtn.copied { background: var(--primary); color: var(--on-primary); border-radius: 18px; }
#copyBtn.copied .i-copy { display: none; }
#copyBtn.copied .i-done { display: block; animation: pop-in 0.45s var(--spring-fast); }

.callout {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 24px; margin-bottom: 18px;
  background: var(--tertiary-container); color: var(--on-tertiary-container);
}
.callout svg { flex: none; width: 22px; height: 22px; fill: currentColor; margin-top: 1px; }
.callout p { margin: 0; font-size: 14.5px; }

.howto { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 4px; }
.howto li {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px;
  background: var(--surface-c); border-radius: 8px;
}
.howto li:first-child { border-radius: 24px 24px 8px 8px; }
.howto li:last-child { border-radius: 8px 8px 24px 24px; }
.howto span {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 10px;
  background: var(--secondary-container); color: var(--on-secondary-container); font-weight: 700; font-size: 14px;
}
.howto p { margin: 2px 0 0; font-size: 14.5px; color: var(--on-surface-var); }
.howto b { color: var(--on-surface); }

/* ------------------------------------------------------------------- FAQ */

.faq h2 { margin: 8px 4px 14px; }
.faq-list { display: grid; gap: 4px; }
.faq details {
  background: var(--surface-c); border-radius: 8px; overflow: hidden;
  transition: border-radius 0.5s var(--spring), background-color 0.3s var(--effects), margin 0.5s var(--spring);
}
.faq details:first-child { border-radius: 28px 28px 8px 8px; }
.faq details:last-child { border-radius: 8px 8px 28px 28px; }
.faq details[open] { border-radius: 28px; background: var(--surface-high); margin: 6px 0; }
.faq details:first-child[open] { margin-top: 0; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 16.5px;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; border-radius: 28px; }
.faq summary svg {
  flex: none; width: 36px; height: 36px; padding: 6px; border-radius: 50%;
  fill: var(--on-surface-var); background: var(--surface-highest);
  transition: transform 0.55s var(--spring-fast), border-radius 0.5s var(--spring), background-color 0.3s;
}
.faq details[open] summary svg { transform: rotate(180deg); border-radius: 12px; background: var(--primary-container); fill: var(--on-primary-container); }
.faq-body { padding: 0 20px 18px; color: var(--on-surface-var); }
.faq-body p { margin: 0; }
.faq code {
  font-family: var(--mono); font-size: 0.86em; padding: 1px 6px; border-radius: 6px;
  background: var(--surface-highest); color: var(--on-surface); word-break: break-all;
}

/* ---------------------------------------------------------------- footer */

footer {
  max-width: 1120px; margin: 0 auto; padding: 8px 16px max(28px, env(safe-area-inset-bottom));
  color: var(--on-surface-var); font-size: 13.5px; text-align: center;
}
footer a { font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ----------------------------------------------------------- entrances */

.reveal { animation: rise 0.85s var(--spring) both; }
.r0 { animation-delay: 0.05s; }
.r1 { animation-delay: 0.12s; }
.r2 { animation-delay: 0.19s; }
.r3 { animation-delay: 0.26s; }
.r4 { animation-delay: 0.33s; }
.r5 { animation-delay: 0.4s; }
.r6 { animation-delay: 0.5s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.hero-art.reveal { animation-name: spin-in; animation-duration: 1.1s; }
@keyframes spin-in {
  from { opacity: 0; transform: scale(0.3) rotate(-120deg); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .squiggle path, .badge-check path { stroke-dashoffset: 0; }
}
