/* Milestone Awards (5 Dec 2026). Ahmet: "it needs to look really sleek ... like a Tesla website ... or take
   inspiration from Shopify milestones". One award per screen, the product in the middle, the words above it
   and two buttons under it. Light studio greys, black, and gold for anything unlocked. */
:root {
  --ink: #171a20;
  --ink-2: #393c41;
  --muted: #5c5e62;
  --line: #e2e3e3;
  --soft: #f4f4f4;
  --field: #eeeeee;
  --gold: #c9a045;
  --gold-hi: #e6c372;
  --top: 56px;
  --pv: 0px;
  --unit: min(760px, 88vw, calc((100svh - 330px) * 1.5));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; scroll-padding-top: 0; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
body.has-pv { --pv: 32px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ preview bar and header */
.pv { position: fixed; top: 0; left: 0; right: 0; height: 32px; z-index: 70; background: var(--ink); color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.pv a { color: #fff; font-weight: 600; }
.top { position: fixed; top: var(--pv); left: 0; right: 0; height: var(--top); z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 24px; transition: background 0.35s, color 0.35s, box-shadow 0.35s; }
.top.solid { background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); }
body.on-dark .top { color: #fff; }
body.on-dark .top.solid { background: rgba(10, 10, 12, 0.55); }
.wordmark { font-weight: 700; font-size: 13px; letter-spacing: 0.3em; text-decoration: none; white-space: nowrap; justify-self: start; }
.top-mid { display: flex; gap: 2px; }
.top-mid a, .top-link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 14px; border-radius: 4px; background: none; border: 0; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.top-mid a:hover, .top-link:hover { background: rgba(0, 0, 0, 0.05); }
body.on-dark .top-mid a:hover, body.on-dark .top-link:hover { background: rgba(255, 255, 255, 0.1); }
.top-end { justify-self: end; display: flex; align-items: center; gap: 2px; }
.top-menu { display: none; font-size: 14px; font-weight: 500; padding: 6px 14px; border-radius: 4px; border: 0; background: rgba(0, 0, 0, 0.05); cursor: pointer; }
body.on-dark .top-menu { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 1100px) {
  .top { grid-template-columns: 1fr auto; }
  .top-mid { display: none; }
  .top-link { display: none; }
  .top-menu { display: inline-block; }
}

/* The menu on phones (and narrow laptops): a panel from the right, like Tesla's. */
.menu { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.3); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 100vw); background: #fff; padding: 72px 24px 24px; overflow: auto; animation: inR 0.32s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu nav { display: flex; flex-direction: column; gap: 2px; }
.menu nav a, .menu nav button { font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 6px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; }
.menu nav a:hover, .menu nav button:hover { background: var(--soft); }
.x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.x:hover { background: var(--soft); }
@keyframes inR { from { transform: translateX(100%); } }
@keyframes inUp { from { transform: translateY(100%); } }

/* ------------------------------------------------------------ the slides */
.slide { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(var(--pv) + var(--top) + 5.5vh) 24px calc(5.5vh + env(safe-area-inset-bottom)); scroll-snap-align: start; overflow: hidden; background: radial-gradient(120% 85% at 50% 64%, #ffffff 0%, #f2f2f2 52%, #e3e3e4 100%); }
.copy { text-align: center; max-width: 720px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; }
h1, h2 { font-weight: 500; letter-spacing: -0.01em; margin: 8px 0 4px; }
.slide h1, .slide h2 { font-size: 40px; line-height: 1.15; }
.sub { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.sub b { font-weight: 600; color: var(--ink); }
.art { flex: 1; width: 100%; margin: 0; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 2vh 0; }
.art img { width: calc(var(--scale, 1) * var(--unit)); height: auto; max-width: 100%; }
.hero .art img { width: min(1120px, 94vw); height: auto; }
.foot { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.status { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 560px; text-align: center; }
.status b { color: var(--ink); font-weight: 600; }
.ctas { display: flex; gap: 16px 20px; flex-wrap: wrap; justify-content: center; width: 100%; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-width: 264px; padding: 0 24px; border-radius: 4px; font-size: 14px; font-weight: 500; border: 0; cursor: pointer; text-decoration: none; transition: background 0.25s, box-shadow 0.25s, opacity 0.2s; white-space: nowrap; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover:not(:disabled) { background: #393c41; }
.btn.light { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.btn.light:hover:not(:disabled) { background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.16); }
.btn.gold { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); color: #1d1507; box-shadow: 0 6px 22px rgba(201, 160, 69, 0.35); }
.btn.gold:hover:not(:disabled) { box-shadow: 0 8px 28px rgba(201, 160, 69, 0.5); }
.btn.block { width: 100%; min-width: 0; }
.cue { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: var(--muted); padding: 6px; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translate(-50%, 5px); } }
.hero .foot { margin-bottom: 30px; }

/* The little state tags next to "Award 01". */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); color: var(--ink-2); }
.pill svg { width: 12px; height: 12px; }
.pill.gold { background: linear-gradient(135deg, #f6e7bd, #dcb965); color: #3a2a08; }
.pill.now { background: var(--ink); color: #fff; }
.pill.warn { background: #fff1d6; color: #7a4a00; }

/* Progress on the first screen once they're signed in. */
.segs { display: flex; gap: 6px; width: min(300px, 76vw); margin: 18px auto 0; }
.segs i { flex: 1; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, 0.12); }
.segs i.on { background: linear-gradient(90deg, var(--gold-hi), var(--gold)); }

/* Locked: you can see what it is, but it's greyed out until the one before is hit. */
.slide.is-locked .art img { filter: grayscale(1); opacity: 0.5; }
.lockmark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08); color: var(--ink-2); }
.dark .lockmark { background: rgba(255, 255, 255, 0.12); color: #fff; }
/* Unlocked: a gold glow behind it. */
.slide.is-hit .art::before { content: ""; position: absolute; left: 50%; top: 52%; width: calc(var(--scale, 1) * var(--unit) * 1.25); aspect-ratio: 2 / 1; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(230, 195, 114, 0.34), rgba(230, 195, 114, 0) 75%); pointer-events: none; }
.slide.is-hit .art img { position: relative; }

/* The last one: the plaque, on black. */
.slide.dark { background: radial-gradient(110% 80% at 50% 52%, #2b2b30 0%, #131316 52%, #070708 100%); color: #fff; }
.dark .eyebrow { color: #a3a5aa; }
.dark .sub, .dark .status { color: #c9cacd; }
.dark .sub b, .dark .status b { color: #fff; }
.dark .pill { background: rgba(255, 255, 255, 0.12); color: #e7e7e9; }
.dark .pill.gold { background: linear-gradient(135deg, #f6e7bd, #dcb965); color: #3a2a08; }
.dark .pill.now { background: #fff; color: var(--ink); }
.dark .btn.dark { background: #fff; color: var(--ink); }
.dark .btn.dark:hover:not(:disabled) { background: #e9e9ea; }
.dark .btn.light { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: none; }
.dark .btn.light:hover:not(:disabled) { background: rgba(255, 255, 255, 0.2); }
.plaque { position: relative; height: min(56svh, 640px); aspect-ratio: 861 / 1100; container-type: inline-size; max-width: 88vw; }
.plaque img { width: 100%; height: 100%; object-fit: contain; }
.slide.is-hit .plaque::before { content: ""; position: absolute; inset: -4% -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 195, 114, 0.2), rgba(230, 195, 114, 0) 100%); filter: blur(18px); pointer-events: none; }
/* Their name, engraved on the plaque's nameplate (the studio render only). */
.plate-name { position: absolute; left: 25.33%; width: 44.57%; top: 76.4%; height: 4.4%; display: flex; align-items: center; justify-content: center; font-size: 2.05cqw; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #2a2114; white-space: nowrap; overflow: hidden; opacity: 0.88; }

/* The dots down the right: where you are, gold once unlocked. */
.rail { position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 14px; }
.rail a { position: relative; width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 0, 0, 0.18); transition: transform 0.25s, background 0.25s; }
.rail a.on { background: var(--gold); }
.rail a.cur { transform: scale(1.5); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06); }
.rail a span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--ink); color: #fff; padding: 4px 9px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.rail a:hover span { opacity: 1; }
body.on-dark .rail a { background: rgba(255, 255, 255, 0.28); }
body.on-dark .rail a.on { background: var(--gold); }
@media (max-width: 900px) { .rail { display: none; } }

/* ------------------------------------------------------------ how it works, questions, footer */
.how, .faq { padding: 120px 24px; max-width: 1120px; margin: 0 auto; scroll-snap-align: start; }
.how h2, .faq h2 { font-size: 40px; text-align: center; margin-bottom: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps b { font-size: 12px; letter-spacing: 0.16em; color: var(--gold); }
.steps h3 { font-size: 20px; font-weight: 500; margin: 10px 0 8px; }
.steps p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.faq { max-width: 760px; padding-top: 40px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-size: 17px; font-weight: 500; padding: 22px 36px 22px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.foot-page { padding: 40px 24px calc(56px + env(safe-area-inset-bottom)); text-align: center; border-top: 1px solid var(--line); }
.foot-page .small { margin: 0 auto 10px; max-width: 760px; font-size: 12px; line-height: 1.6; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; }
.foot-page a { color: var(--muted); }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .how { padding: 88px 24px 56px; }
  .how h2, .faq h2 { font-size: 32px; margin-bottom: 36px; }
}

/* ------------------------------------------------------------ the side sheet (sign in, claim, screenshot) */
.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade 0.25s; }
.sheet-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #fff; padding: 64px 32px calc(32px + env(safe-area-inset-bottom)); overflow: auto; animation: inR 0.36s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { font-size: 26px; margin: 0 0 6px; }
.sheet .lede { margin: 0 0 24px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sheet .thumb { background: radial-gradient(110% 90% at 50% 60%, #fff 0%, #efefef 60%, #e4e4e4 100%); border-radius: 8px; height: 170px; display: grid; place-items: center; margin: 0 0 22px; overflow: hidden; }
.sheet .thumb img { max-height: 140px; max-width: 80%; width: auto; }
.sheet .thumb.dark { background: radial-gradient(110% 90% at 50% 55%, #2b2b30 0%, #101012 100%); }
.field { margin: 0 0 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin: 0 0 8px; }
.field label em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select { width: 100%; height: 44px; border: 0; border-radius: 4px; background: var(--field); padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: box-shadow 0.15s, background 0.15s; }
.field input:focus, .field select:focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.field.bad input { box-shadow: inset 0 0 0 1.5px #c62828; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.msg { min-height: 20px; font-size: 13px; color: #c62828; margin: 0 0 12px; }
.fine { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 18px 0 0; }
.fine a { color: var(--ink); }
.done-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f6e7bd, #dcb965); color: #3a2a08; margin: 8px 0 20px; }
.pick { display: block; border: 1.5px dashed #c9cacd; border-radius: 8px; padding: 26px 16px; text-align: center; cursor: pointer; font-size: 14px; color: var(--ink-2); margin: 0 0 16px; transition: border-color 0.2s, background 0.2s; }
.pick:hover { border-color: var(--ink); background: var(--soft); }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick img { max-height: 220px; max-width: 100%; margin: 0 auto; border-radius: 6px; }
.addr-card { background: var(--soft); border-radius: 8px; padding: 16px 18px; font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.addr-card b { display: block; font-weight: 600; margin-bottom: 2px; }
.linkbtn { background: none; border: 0; padding: 0; font-size: 14px; font-weight: 500; text-decoration: underline; cursor: pointer; color: var(--ink); }
@media (max-width: 640px) {
  .sheet-panel { top: auto; left: 0; width: 100%; max-height: 92svh; border-radius: 14px 14px 0 0; padding: 52px 22px calc(24px + env(safe-area-inset-bottom)); animation: inUp 0.36s cubic-bezier(0.2, 0.8, 0.2, 1); }
}

/* ------------------------------------------------------------ phones */
@media (max-width: 640px) {
  :root { --unit: min(92vw, calc((100svh - 360px) * 1.5)); }
  .top { padding: 0 16px; }
  .slide { padding-left: 20px; padding-right: 20px; }
  .slide h1, .slide h2 { font-size: 32px; }
  .ctas { flex-direction: column; align-items: center; gap: 12px; }
  .btn { width: 100%; max-width: 420px; min-width: 0; }
  .hero .art img { width: min(100%, 440px); }
  .row2 { grid-template-columns: 1fr; }
}

/* A soft rise as each award comes into view. */
.slide .copy, .slide .art > *, .slide .foot { transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .slide:not(.in) .copy, .js .slide:not(.in) .foot { opacity: 0; transform: translateY(16px); }
.js .slide:not(.in) .art > * { opacity: 0; transform: translateY(26px) scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide .copy, .slide .art > *, .slide .foot { transition: none; }
  .js .slide:not(.in) .copy, .js .slide:not(.in) .foot, .js .slide:not(.in) .art > * { opacity: 1; transform: none; }
  .cue { animation: none; }
}

/* The toast from app.js. */
.toast { position: fixed; left: 50%; top: calc(var(--pv) + var(--top) + 10px); transform: translate(-50%, -12px); z-index: 120; background: var(--ink); color: #fff; font-size: 14px; padding: 12px 18px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #b3261e; }
