/* StashMode marketing site. Colours mirror assets/tokens/tokens.json — do not add hex values that are not in tokens. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Fredoka_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("/assets/fonts/Nunito_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/assets/fonts/Nunito_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("/assets/fonts/Nunito_800ExtraBold.ttf") format("truetype"); }

:root {
  --bg: #FBF6EE;
  --surface: #FFFFFF;
  --sunken: #F4ECDF;
  --border: #EADFCF;
  --text: #1E1633;
  --muted: #6B5E52;
  --subtle: #8C7F72;
  --accent: #5A47B8;
  --accent-pressed: #3A2C63;
  --accent-tint: #EEEAFB;
  --reward: #FFB547;
  --reward-pressed: #E0962B;
  --reward-tint: #FFF1D6;
  --success: #2F8F6F;
  --success-tint: #DDF3EA;
  --danger: #C8553D;
  --danger-tint: #FFE6E1;
  --plum: #3A2C63;
  --plum-deep: #2C2150;
  --sky0: #231B45;
  --sky1: #2A2154;
  --sky2: #342966;
  --on-night: #FFF3DF;
  --on-night-muted: #C9BFE8;
  --glow: #FFD98A;
  --lavender: #8A78E0;
  --r-sm: 12px; --r-md: 16px; --r-lg: 20px; --r-xl: 28px;
  --wrap: 1120px;
  --display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 600 17px/1.55 var(--body); overflow-x: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-pressed); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--reward); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font: 600 13px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.night .eyebrow { color: var(--reward); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(35, 27, 69, .92); backdrop-filter: saturate(1.2) blur(8px); -webkit-backdrop-filter: saturate(1.2) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand .wm { height: 24px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--on-night-muted); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--on-night); }
.nav .btn { color: var(--text); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 800 16px/1 var(--body); text-decoration: none; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-reward { background: var(--reward); color: var(--text); box-shadow: 0 4px 0 var(--reward-pressed); }
.btn-reward:hover { color: var(--text); background: var(--glow); }
.btn-accent { background: var(--accent); color: #FFFFFF; box-shadow: 0 4px 0 var(--accent-pressed); }
.btn-accent:hover { color: #FFFFFF; background: var(--accent-pressed); }
.btn-ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 2px rgba(255, 243, 223, .35); }
.btn-ghost:hover { color: var(--on-night); box-shadow: inset 0 0 0 2px var(--on-night); }
.site-header .btn { min-height: 40px; padding: 0 16px; font-size: 14px; box-shadow: 0 3px 0 var(--reward-pressed); }

/* Night sections */
.night { background: var(--sky0); color: var(--on-night); }
.night p { color: var(--on-night-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; background: var(--sky0); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.hero h1 { color: var(--on-night); }
.hero h1 .hl { color: var(--reward); }
.hero .lede { font-size: 20px; max-width: 34ch; color: var(--on-night-muted); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero-note { font-size: 14px; color: var(--on-night-muted); display: flex; gap: 8px; align-items: center; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badges img { height: 52px; width: auto; }
.phone { justify-self: center; width: min(340px, 82vw); border-radius: 44px 44px 0 0; padding: 12px 12px 0; background: var(--plum-deep); box-shadow: 0 0 0 2px rgba(255, 243, 223, .08); }
.phone-screen { border-radius: 34px 34px 0 0; overflow: hidden; aspect-ratio: 390 / 700; position: relative; }
.phone-screen > img { width: 100%; height: auto; }
.phone-top img { width: 18px; height: 18px; }
.phone-card { position: absolute; left: 14px; right: 14px; top: 64px; background: var(--surface); color: var(--text); border-radius: var(--r-md); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; font-size: 14px; box-shadow: 0 6px 0 rgba(30, 22, 51, .25); }
.phone-card b { font: 600 16px/1.2 var(--display); }
.phone-card .pill { grid-row: span 2; background: var(--success-tint); color: var(--success); padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.phone-card .meta { color: var(--muted); font-weight: 700; font-size: 13px; }
.phone-top { position: absolute; left: 16px; right: 16px; top: 18px; display: flex; justify-content: space-between; font: 600 15px/1 var(--display); color: var(--on-night); }
.phone-top span { background: rgba(30, 22, 51, .55); padding: 7px 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--on-night); opacity: .7; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .2; } }
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-note, .store-badges { justify-content: center; }
}

/* Sections */
section { padding: 88px 0; scroll-margin-top: 64px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 19px; }
.night .section-head p { color: var(--on-night-muted); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.card .art { height: 150px; display: flex; align-items: end; justify-content: center; margin-bottom: 18px; background: var(--sunken); border-radius: var(--r-md); overflow: hidden; }
.card .art img { max-height: 140px; width: auto; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }

/* Stages path */
.path { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; counter-reset: stage; }
.path li { background: rgba(255, 243, 223, .05); border: 1px solid rgba(255, 243, 223, .1); border-radius: var(--r-lg); padding: 14px 14px 18px; position: relative; }
.path li img.thumb { border-radius: var(--r-md); width: 100%; margin-bottom: 14px; }
.path .stage { display: flex; align-items: center; gap: 8px; font: 600 18px/1.1 var(--display); color: var(--on-night); }
.path .stage img { width: 26px; height: 26px; }
.path .bld { font-size: 13px; font-weight: 800; color: var(--reward); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 4px; }
.path p { font-size: 14px; margin: 0; line-height: 1.45; }
@media (max-width: 1000px) { .path { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .path { grid-template-columns: repeat(2, 1fr); gap: 10px; } .path li { padding: 10px 10px 14px; } }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 80px; }
.split.flip .split-art { order: -1; }
.split-art { display: flex; justify-content: center; }
.split-art img { border-radius: var(--r-xl); width: min(420px, 100%); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--success-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F8F6F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.ticks b { color: var(--text); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .split-art { order: 0; } }

/* Mascot quotes */
.quotes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.quote { background: var(--accent-tint); color: var(--accent-pressed); padding: 10px 16px; border-radius: 18px 18px 18px 6px; font-weight: 800; font-size: 15px; }

/* Tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 880px; margin: 0 auto; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.tier.pop { border: 2px solid var(--accent); position: relative; }
.tier.pop::before { content: "Great start"; position: absolute; top: -13px; background: var(--accent); color: #FFFFFF; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.tier img { width: 48px; height: 48px; margin-bottom: 10px; }
.tier h3 { margin-bottom: 4px; }
.tier .slots { font: 600 44px/1 var(--display); color: var(--accent); margin: 10px 0 2px; }
.tier .slots-l { font-size: 14px; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.tier .price { font-weight: 800; font-size: 17px; }
.tier .price small { display: block; color: var(--subtle); font-weight: 700; font-size: 13px; margin-top: 4px; }
.tiers-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: 15px; }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; max-width: 360px; } }

/* Beta form */
.beta { background: var(--sky1); }
.beta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.beta-art img { max-width: 360px; margin: 0 auto; }
.form { background: var(--surface); color: var(--text); border-radius: var(--r-xl); padding: 28px; }
.form h3 { margin-bottom: 6px; }
.form p.small { color: var(--muted); font-size: 14px; }
.field { margin-bottom: 16px; }
.field > label, .field legend { display: block; font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; }
.field input[type=email] { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r-sm); border: 2px solid var(--border); background: var(--bg); font: 700 16px var(--body); color: var(--text); }
.field input[type=email]:focus { border-color: var(--accent); outline: none; }
fieldset { border: 0; margin: 0; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 2px solid var(--border); border-radius: var(--r-sm); cursor: pointer; font-weight: 800; background: var(--bg); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg input:checked + span { color: var(--accent); }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--reward); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -5000px; }
.form .btn { width: 100%; }
.form-msg { margin-top: 14px; font-weight: 800; font-size: 15px; min-height: 1.2em; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }
.form.done .form-body { display: none; }
.form-success { display: none; text-align: center; padding: 12px 0; }
.form.done .form-success { display: block; }
.form-success img { width: 140px; margin: 0 auto 10px; }
@media (max-width: 880px) { .beta .wrap { grid-template-columns: 1fr; } .beta-art { display: none; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 22px; font: 600 18px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 22px 18px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--sky0); color: var(--on-night-muted); padding: 48px 0 36px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-footer a { color: var(--on-night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--on-night); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-legal { width: 100%; border-top: 1px solid rgba(255, 243, 223, .1); padding-top: 20px; font-size: 13px; }

/* Document pages (privacy, terms, support, delete) */
.doc-hero { padding: 56px 0 44px; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 50px); color: var(--on-night); margin-bottom: 10px; }
.doc-hero p { margin: 0; }
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 88px; }
.doc h2 { font-size: 26px; margin-top: 44px; }
.doc h3 { margin-top: 28px; }
.doc p, .doc li { color: #3F3450; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { background: var(--sunken); font-weight: 800; }
.doc tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.callout { background: var(--reward-tint); border-radius: var(--r-md); padding: 16px 20px; margin: 20px 0; }
.callout.info { background: var(--accent-tint); }
.callout p:last-child { margin: 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 28px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #FFFFFF; font: 600 17px/34px var(--display); text-align: center; }
.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }

/* Centered utility pages (auth-callback, invite, 404) */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: var(--sky0); color: var(--on-night); }
.center-page .box { max-width: 440px; }
.center-page img.mascot { width: 200px; margin: 0 auto 18px; }
.center-page h1 { font-size: clamp(30px, 6vw, 40px); }
.center-page p { color: var(--on-night-muted); }
.center-page .btn { margin: 8px 6px; }
.code-chip { display: inline-block; font: 600 26px/1 var(--display); letter-spacing: .12em; background: rgba(255, 243, 223, .08); border: 2px dashed rgba(255, 243, 223, .3); padding: 14px 22px; border-radius: var(--r-md); color: var(--reward); margin: 8px 0 18px; }
