:root {
  --ink: #0f0c22;
  --ink-2: #17123a;
  --panel: #1d1748;
  --line: #2e2763;
  --text: #f1edff;
  --muted: #bdb4e6;
  --violet: #8b5cf6;
  --violet-hi: #a78bfa;
  --gold: #fcd34d;
  --on-gold: #1a0b3d;
  --danger: #f87171;
  --glow: 0 0 18px color-mix(in srgb, var(--gold) 35%, transparent);
  --radius: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--ink); color: var(--text); font: 500 17px/1.55 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h3 { font-size: 1.08rem; font-weight: 900; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.display, .head, .brand, .foot-name, .price-big { font-family: "Luckiest Guy", "Nunito", system-ui, sans-serif; font-weight: 400; letter-spacing: .02em; }
.display { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.02; text-wrap: balance; }
.display em, .display .hi { font-style: normal; color: var(--gold); }
.head { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--gold); line-height: 1.08; }
.eyebrow { font-weight: 900; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-hi); margin: 0 0 .6em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.small { font-size: .92rem; color: var(--muted); max-width: 68ch; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--violet-hi); outline-offset: 3px; }
section { padding-block: 28px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top .wrap { display: flex; align-items: center; gap: 12px 22px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font-size: 1.4rem; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.nav { display: flex; gap: 20px; flex: 1; }
.nav a { color: var(--text); text-decoration: none; font-weight: 800; font-size: .95rem; }
.nav a[aria-current] { color: var(--gold); }
.stores { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; font-weight: 900; font-size: .95rem; text-decoration: none; background: var(--gold); color: var(--on-gold); box-shadow: var(--glow); border: 0; cursor: pointer; font-family: inherit; }
.btn--bar, .btn--small { padding: 8px 14px; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn--danger { background: var(--danger); color: #2a0606; box-shadow: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 760px) {
  .nav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; }
  .top .stores { margin-left: auto; }
}
@media (max-width: 420px) { .top .stores { display: none; } }

/* Scene hero: the picture on the right, the words over the calm left side */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > img { width: 100%; height: clamp(320px, 46vw, min(780px, 82vh)); object-fit: cover; object-position: 70% 0%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,12,34,.95) 0%, rgba(15,12,34,.72) 34%, rgba(15,12,34,0) 62%); }
.hero .copy { position: absolute; inset: 0; display: flex; align-items: center; z-index: 1; }
.hero .copy .wrap { width: 100%; }
.hero .inner { max-width: 480px; }
.hero .inner p { color: var(--muted); font-size: 1.12rem; max-width: 42ch; }
@media (max-width: 640px) {
  .hero > img { height: 540px; object-position: 72% center; }
  .hero::after { background: linear-gradient(180deg, rgba(15,12,34,.94) 0%, rgba(15,12,34,.62) 46%, rgba(15,12,34,.08) 76%); }
  .hero .copy { align-items: flex-start; padding-top: 26px; }
}
.page-head { padding-block: 44px 8px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 85% 0%, color-mix(in srgb, var(--violet) 26%, transparent), transparent 60%); }
.page-head .display { font-size: clamp(2rem, 4.4vw, 3rem); }
.doc-date { font-size: .9rem; color: var(--muted); }

/* Chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; padding-block: 22px 6px; }
.chip { appearance: none; border: 1.5px solid var(--line); background: var(--ink-2); color: var(--text); font: 800 15px "Nunito", system-ui, sans-serif; padding: 10px 18px; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; gap: 8px; align-items: baseline; }
.chip:hover { border-color: var(--violet); }
.chip[aria-selected="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); box-shadow: var(--glow); }
.chip .who { font-weight: 600; opacity: .75; font-size: 13px; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .chip { flex: 0 0 auto; }
}

/* Scenes, devices, cards */
.moments { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.moment { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.moment img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.moment figcaption { color: var(--muted); font-size: .95rem; }
.moment figcaption b { color: var(--text); }
a.moment { text-decoration: none; color: inherit; }
a.moment:hover img { border-color: var(--violet); }
.screens { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.device { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; align-items: center; margin: 0; }
.phone { width: 210px; padding: 9px; border-radius: 36px; background: #05040c; box-shadow: 0 0 0 2px #3a3170, 0 18px 40px rgba(0,0,0,.45); }
.phone img { width: 100%; border-radius: 28px; }
.watch { width: 170px; padding: 12px; border-radius: 40px; background: #05040c; box-shadow: 0 0 0 2px #3a3170, 0 18px 40px rgba(0,0,0,.45); margin-top: 90px; }
.watch img { width: 100%; border-radius: 26px; }
.device figcaption { font-weight: 800; font-size: .88rem; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card h3 { margin-bottom: 4px; }
.gname { margin: 24px 0 10px; font-family: "Luckiest Guy", system-ui, sans-serif; font-weight: 400; font-size: 1.35rem; color: var(--violet-hi); }
.note { margin-top: 14px; padding: 14px 18px; border-radius: 14px; border: 1px dashed var(--gold); font-size: .95rem; }
.band { background: var(--ink-2); border-block: 1px solid var(--line); }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); }
.ticks li::before { content: "\25C6  "; color: var(--gold); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: center; }
.split > * { min-width: 0; }
.split--flip > :first-child { order: 2; }
.device-pair { display: flex; gap: 16px; justify-content: center; }
.device-pair .phone { width: 190px; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > :first-child { order: 0; }
  .device-pair { gap: 12px; }
  .device-pair .phone { width: calc((100vw - 44px) / 2); max-width: 190px; }
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* Leaderboard */
.proof { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.proof-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 900; margin-bottom: 10px; }
.proof-when { color: var(--muted); font-weight: 700; font-size: .9rem; }
.board { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.board li { display: grid; grid-template-columns: 2.4em 1fr auto; gap: 10px; align-items: baseline; padding: 9px 4px; border-top: 1px solid var(--line); }
.board .rank { font-weight: 900; color: var(--muted); }
.board li:nth-child(-n+3) .rank { color: var(--gold); }
.board .who b { display: block; font-weight: 800; }
.board .who span { font-size: .85rem; color: var(--muted); }
.board .score { font-weight: 900; font-variant-numeric: tabular-nums; }

/* Price and questions */
.price-big { font-size: clamp(3rem, 8vw, 5rem); color: var(--gold); line-height: 1; }
.badges { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.badges img { height: 50px; width: auto; }
.badges .badge-play { height: 74px; margin: -12px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 900; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }

/* Documents: privacy, terms, support, delete-account, help */
.doc { padding-block: 28px 56px; }
.doc > *, .help-sec > * { max-width: 780px; }
.doc > .chips { max-width: none; }
.doc h2 { font-size: 1.45rem; font-weight: 900; margin-top: 1.6em; color: var(--gold); }
.doc h3 { margin-top: 1.3em; }
.doc li { margin-bottom: .4em; }
.doc a { overflow-wrap: anywhere; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: 8px; border-top: 1px solid var(--line); vertical-align: top; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 18px 0; }
.panel--warn { border-color: var(--gold); }
.form { display: grid; gap: 14px; max-width: 420px; margin: 18px 0; }
.field { display: grid; gap: 6px; font-weight: 800; }
.field input { font: inherit; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--ink-2); color: var(--text); }
.steps li.done { color: var(--muted); text-decoration: line-through; }
.page-head .search, .hero .search { margin: 18px 0 0; }
.hero--page > img { height: clamp(340px, 40vw, 600px); object-position: 70% 0%; }
.hero .badges { margin-top: 14px; }
.hero .inner .price-big { margin: 0 0 .1em; font-size: clamp(3rem, 8vw, 5rem); color: var(--gold); }
@media (max-width: 640px) { .hero--page > img { height: 620px; } }
.help-sec h2 { margin-top: 1em; }
.search { display: flex; align-items: center; gap: 10px; background: var(--ink-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 18px; max-width: 520px; }
.search input { flex: 1; background: none; border: 0; color: var(--text); font: inherit; outline: none; }
.topic { border-top: 1px solid var(--line); padding: 14px 0; }
.topic p { color: var(--muted); margin: 6px 0 0; }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--ink-2); padding-block: 36px 20px; margin-top: 40px; color: var(--muted); font-size: .95rem; }
footer > .wrap:first-child { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-hi); margin-bottom: .8em; }
footer nav a { display: block; color: var(--text); text-decoration: none; padding: 3px 0; }
.foot-brand { display: flex; gap: 16px; align-items: flex-start; }
.foot-brand img { width: 100px; }
.foot-name { font-size: 1.5rem; color: var(--gold); margin: 0 0 .2em; }
.foot-legal { margin-top: 26px; font-size: .85rem; }
@media (max-width: 800px) { footer > .wrap:first-child { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
