/* Ayknow — site styles. Colors mirror the app (lib/ theme). */
:root {
  --bg: #07060c;
  --bg-2: #0d0a16;
  --surface: #16121f;
  --surface-2: #1c1830;
  --line: #2e2650;
  --line-soft: rgba(179, 136, 255, 0.14);
  --text: #f4f1fa;
  --muted: #a69fb8;
  --dim: #6f6886;
  --pink: #d45cb6;
  --violet: #7b2ff7;
  --lavender: #b388ff;
  --cyan: #19e3f0;
  --gold: #ffd54f;
  --orange: #ffa940;
  --red: #ff4d5e;
  --green: #4ade80;
  --grad: linear-gradient(100deg, var(--pink) 0%, var(--violet) 100%);
  --grad-text: linear-gradient(100deg, #f08ad6 0%, #b388ff 55%, #8f5bff 100%);
  --radius: 24px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
main, .hero, .section, .page-hero { overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Background: stars + glows ---------- */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; opacity: .55;
}
.glow--pink { background: radial-gradient(circle, rgba(212, 92, 182, .55), transparent 65%); }
.glow--violet { background: radial-gradient(circle, rgba(123, 47, 247, .6), transparent 65%); }
.glow--cyan { background: radial-gradient(circle, rgba(25, 227, 240, .25), transparent 65%); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 8, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(212, 92, 182, .45)); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.nav__links > a:not(.btn) { transition: color .2s; }
.nav__links > a:not(.btn):hover { color: var(--text); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.lang a { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.lang a:hover { color: var(--text); }
.lang a.is-active { background: var(--surface-2); color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav__toggle span + span { margin-top: 6px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .25s, background .25s;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px -8px rgba(160, 60, 230, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(190, 70, 230, .85); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--lavender); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.store-badge { display: inline-block; transition: transform .2s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; }
.hero .glow--violet { width: 720px; height: 720px; top: -200px; right: -220px; }
.hero .glow--pink { width: 560px; height: 560px; top: 160px; left: -260px; opacity: .4; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(123, 47, 247, .12); border: 1px solid rgba(179, 136, 255, .25); color: #d9c9ff; font-size: 14px; font-weight: 500;
}
.pill__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 12px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 92px); font-weight: 800; margin: 22px 0 22px; letter-spacing: -0.035em; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 36px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line-soft); max-width: 520px; }
.fact strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; }
.fact span { font-size: 14px; color: var(--dim); }

.hero__visual { position: relative; height: 640px; display: flex; justify-content: center; align-items: center; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 290px; aspect-ratio: 921 / 2000; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #2b2440, #0f0c17 40%, #1b1629);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 80px -10px rgba(123, 47, 247, .35);
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.hero .phone--front { z-index: 2; animation: bob 7s ease-in-out infinite; }
.hero .phone--back { position: absolute; width: 250px; z-index: 1; transform: translate(150px, 30px) rotate(9deg); opacity: .75; filter: saturate(.9); }

.chip {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; font-size: 14px; font-weight: 600;
  background: rgba(22, 18, 31, .82); border: 1px solid rgba(179, 136, 255, .22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  animation: float 6s ease-in-out infinite;
}
.chip img { width: 28px; height: 28px; object-fit: contain; }
.chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.chip--streak { top: 70px; left: 0; }
.chip--diamonds { top: 250px; right: -6px; animation-delay: -2s; color: var(--cyan); }
.chip--perfect { bottom: 90px; left: 10px; animation-delay: -4s; }
.chip--perfect .star { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 213, 79, .16); color: var(--gold); }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Topic marquee ---------- */
.marquee { position: relative; padding: 26px 0; border-block: 1px solid var(--line-soft); background: rgba(13, 10, 22, .6); overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; font-weight: 500; white-space: nowrap; color: #ddd6ec; }
.tag i { font-style: normal; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); margin-bottom: 16px; }
.section h2 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -0.03em; }
.section__head p { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* ---------- Question types (tabs + phone) ---------- */
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quiz .glow--violet { width: 600px; height: 600px; right: -100px; top: 0; opacity: .35; }
.quiz > *, .hero__grid > *, .split > * { min-width: 0; }
.quiz__tabs { display: flex; flex-direction: column; gap: 12px; }
.qtab {
  position: relative; display: flex; gap: 18px; align-items: flex-start; text-align: left; width: 100%;
  padding: 20px 22px; border-radius: var(--radius-sm); cursor: pointer; overflow: hidden;
  background: transparent; border: 1px solid transparent; transition: background .25s, border-color .25s;
}
.qtab:hover { background: rgba(255, 255, 255, .03); }
.qtab.is-active { background: var(--surface); border-color: var(--line); }
.qtab__icon { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--lavender); transition: background .25s, color .25s; }
.qtab.is-active .qtab__icon { background: var(--grad); color: #fff; }
.qtab__icon svg { width: 22px; height: 22px; }
.qtab h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.qtab p { font-size: 15px; color: var(--muted); margin-top: 4px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .3s; }
.qtab.is-active p { max-height: 120px; opacity: 1; }
.qtab__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--grad); }
.qtab.is-active .qtab__bar { animation: fill var(--cycle, 5s) linear forwards; }
.quiz.is-paused .qtab__bar { animation: none; width: 0; }
@keyframes fill { to { width: 100%; } }
.quiz__caption { display: none; }
.quiz__stage { display: flex; justify-content: center; position: relative; }
.quiz__stage .phone { width: 310px; }
.quiz__stage .phone__screen img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity .5s, transform .6s; }
.quiz__stage .phone__screen img.is-active { opacity: 1; transform: none; }

/* ---------- Modes ---------- */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mode {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.mode:hover { transform: translateY(-6px); border-color: rgba(212, 92, 182, .6); box-shadow: 0 30px 60px -30px rgba(212, 92, 182, .5); }
.mode__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.mode__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mode:hover .mode__art img { transform: scale(1.06); }
.mode__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--surface)); }
.mode__badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(7, 6, 12, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mode__body { padding: 6px 22px 26px; }
.mode h3 { font-size: 24px; font-weight: 700; }
.mode p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__text h2 { margin-bottom: 20px; }
.split__text > p { font-size: 18px; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: #d8d2e6; }
.ticks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; color: var(--pink); }
.split__media { position: relative; display: flex; justify-content: center; }
.duo { position: relative; height: 660px; width: 100%; max-width: 520px; }
.duo .phone { position: absolute; width: 260px; }
.duo .phone:first-child { left: 0; top: 0; transform: rotate(-6deg); }
.duo .phone:nth-child(2) { right: 0; bottom: 0; transform: rotate(5deg); }
.vs-badge {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3;
  width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 30px; font-style: italic;
  background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 0 50px rgba(212, 92, 182, .7);
}
.title-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.title-tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--gold); background: rgba(255, 213, 79, .08); border: 1px solid rgba(255, 213, 79, .35); box-shadow: 0 0 24px -8px rgba(255, 213, 79, .4); }

.paths-media .phone { width: 300px; }
.paths-media .glow--pink { width: 420px; height: 420px; opacity: .45; top: 10%; }

/* ---------- Rewards bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--surface), #110e19); border: 1px solid var(--line);
}
.card h3 { font-size: 24px; font-weight: 700; }
.card > p, .card__lead { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 420px; }
.card--streak { grid-column: span 4; }
.card--season { grid-column: span 2; display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; }
.card--weekly { grid-column: span 3; }
.card--shop { grid-column: span 3; }

.streak__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.streak__top img { width: 110px; height: auto; margin: -10px -6px 0 0; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 24px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.day small { font-size: 11px; color: var(--muted); font-weight: 600; }
.day svg { width: 18px; height: 18px; color: var(--cyan); }
.day.is-done { background: var(--grad); border-color: rgba(255, 255, 255, .8); }
.day.is-done small, .day.is-done svg { color: #fff; }
.day.is-gift { border-color: var(--gold); background: rgba(255, 213, 79, .08); color: var(--gold); }
.day.is-gift svg { color: var(--gold); }

.ring { position: relative; width: 150px; height: 150px; margin: 4px 0 18px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; }
.ring .ring__track { stroke: var(--surface-2); }
.ring .ring__value { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 377; stroke-dashoffset: 377; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .8, .2, 1); }
.is-visible .ring .ring__value { stroke-dashoffset: 113; }
.ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 44px; font-weight: 800; }

.challenges { display: grid; gap: 12px; margin-top: 24px; }
.challenge { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(28, 24, 48, .7); border: 1px solid var(--line); }
.challenge__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(212, 92, 182, .15); color: var(--pink); }
.challenge__icon svg { width: 20px; height: 20px; }
.challenge__icon--gold { color: var(--gold); background: rgba(255, 213, 79, .14); }
.challenge__icon--green { color: var(--green); background: rgba(74, 222, 128, .12); }
.challenge b { display: block; font-size: 15px; font-weight: 600; }
.bar { height: 6px; border-radius: 6px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--pink), #e040fb); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.is-visible .bar span { width: var(--w); }
.reward { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.reward span { padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.reward .xp { color: var(--gold); border: 1px solid rgba(255, 213, 79, .4); background: rgba(255, 213, 79, .06); }
.reward .gem { color: var(--cyan); border: 1px solid rgba(25, 227, 240, .4); background: rgba(25, 227, 240, .06); }

.shop { display: flex; gap: 14px; margin-top: 24px; }
.shop__item { flex: 1; padding: 18px 12px; border-radius: 16px; background: rgba(28, 24, 48, .7); border: 1px solid var(--line); text-align: center; }
.shop__item img { width: 52px; height: 52px; object-fit: contain; margin: 0 auto 10px; }
.shop__item b { display: block; font-family: var(--font-display); font-size: 22px; }
.shop__item small { color: var(--muted); font-size: 13px; }
.ultimate { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(110deg, #4a1590, #7a1a8a 60%, #9a2070); border: 1px solid rgba(239, 176, 230, .45); }
.ultimate b { font-family: var(--font-display); letter-spacing: .18em; font-size: 16px; }
.ultimate small { display: block; color: #ead7f5; font-size: 13px; }
.ultimate .spark { color: var(--gold); font-size: 20px; }
.ultimate__tag { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.cta .store-badge img { margin: 0 auto; }
.store-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }

/* ---------- Final CTA ---------- */
.cta { position: relative; text-align: center; padding: 100px 0 90px; overflow: hidden; }
.cta__box {
  position: relative; padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: 36px; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(123, 47, 247, .35), transparent 60%), linear-gradient(180deg, #1a1030, #0e0a18);
  border: 1px solid rgba(179, 136, 255, .25);
}
.cta__box .glow--pink { width: 500px; height: 500px; left: 50%; bottom: -300px; transform: translateX(-50%); opacity: .6; }
.cta__logo { width: 96px; height: 96px; margin: 0 auto 26px; filter: drop-shadow(0 0 28px rgba(212, 92, 182, .7)); animation: bob 6s ease-in-out infinite; }
.cta h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.cta p { color: var(--muted); font-size: 19px; max-width: 520px; margin: 18px auto 34px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 48px 0 40px; color: var(--muted); font-size: 15px; background: rgba(7, 6, 12, .8); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer__links a:hover, .footer__social a:hover { color: var(--text); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: color .2s, border-color .2s; }
.footer__social a:hover { border-color: var(--lavender); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--dim); }

/* ---------- Legal / doc pages ---------- */
.page-hero { position: relative; padding: 150px 0 56px; text-align: center; }
.page-hero .glow--violet { width: 640px; height: 640px; top: -320px; left: 50%; transform: translateX(-50%); }
.page-hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -0.035em; }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 18px auto 0; }
.page-hero .btn { margin-top: 30px; }
.doc { max-width: 800px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); background: rgba(22, 18, 31, .75); border: 1px solid var(--line); margin-bottom: 100px; }
.doc h2 { font-size: 26px; font-weight: 700; margin: 44px 0 14px; letter-spacing: -0.01em; }
.doc h2:first-of-type { margin-top: 32px; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 26px 0 10px; color: #e8ddff; }
.doc p, .doc li { color: #cfc8de; font-size: 16px; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; display: grid; gap: 8px; }
.doc li::marker { color: var(--pink); }
.doc a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(179, 136, 255, .4); }
.doc a:hover { color: #fff; }
.doc strong { color: var(--text); }
.doc code { font-size: 14px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.doc hr { border: 0; height: 1px; background: var(--line); margin: 28px 0 0; }
.doc .updated { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.steps { display: grid; gap: 16px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding: 24px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; background: var(--grad); }
.step h3 { margin: 4px 0 6px; }
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px 20px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pink); font-size: 22px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 16px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .card--streak, .card--season, .card--weekly, .card--shop { grid-column: span 6; }
  .card--season { flex-direction: row; text-align: left; gap: 28px; justify-content: flex-start; }
  .card--season .ring { margin: 0; flex: none; }
}

/* Collapse the nav into a menu early: FR/ES labels need the room */
@media (max-width: 1100px) {
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: rgba(10, 8, 18, .97); border-bottom: 1px solid var(--line-soft);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav__links > a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line-soft); font-size: 17px; color: var(--text); }
  .nav__links .btn { margin-top: 18px; height: 50px; }
  .nav__links .lang { align-self: flex-start; margin-top: 18px; }
  .lang a { padding: 8px 16px; font-size: 15px; }
  .nav.is-open { background: rgba(10, 8, 18, .97); }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__toggle { display: block; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }

  .hero { padding: 112px 0 40px; text-align: center; }
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .hero__lead { margin: 0 auto; }
  .hero__cta, .hero__facts { justify-content: center; margin-left: auto; margin-right: auto; }
  .hero__visual { height: 560px; }
  .hero .phone--front { width: 250px; }
  .hero .phone--back { width: 210px; transform: translate(110px, 30px) rotate(9deg); }
  .chip--streak { left: 50%; margin-left: -190px; top: 50px; }
  .chip--diamonds { right: 50%; margin-right: -190px; top: 220px; }
  .chip--perfect { left: 50%; margin-left: -175px; bottom: 60px; }

  .section { padding: 84px 0; }
  .section__head { margin-bottom: 40px; }

  .quiz { grid-template-columns: 1fr; gap: 32px; }
  .quiz__tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; scrollbar-width: none; }
  .quiz__tabs::-webkit-scrollbar { display: none; }
  .qtab { flex: none; width: auto; padding: 10px 16px 10px 10px; align-items: center; gap: 10px; border-radius: 999px; border-color: var(--line); scroll-snap-align: start; }
  .qtab__icon { width: 34px; height: 34px; border-radius: 50%; }
  .qtab__icon svg { width: 18px; height: 18px; }
  .qtab h3 { font-size: 15px; white-space: nowrap; }
  .qtab p { display: none; }
  .quiz__caption { display: block !important; text-align: center; color: var(--muted); min-height: 3.2em; max-width: 420px; margin: 0 auto; }
  .quiz__stage .phone { width: 260px; }

  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse .split__media { order: 0; }
  .duo { height: 500px; max-width: 400px; }
  .duo .phone { width: 210px; }
  .vs-badge { width: 72px; height: 72px; font-size: 24px; }
}

@media (max-width: 600px) {
  .modes { grid-template-columns: 1fr; }
  .mode__art { aspect-ratio: 2 / 1; }
  .hero__facts { gap: 12px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
  .fact span { font-size: 13px; line-height: 1.35; display: block; }
  .fact strong { font-size: 24px; }
  .hero__visual { height: 500px; }
  .hero .phone--front { width: 220px; border-radius: 38px; padding: 7px; }
  .hero .phone--front .phone__screen { border-radius: 32px; }
  .hero .phone--back { width: 180px; transform: translate(90px, 30px) rotate(9deg); }
  .chip { font-size: 13px; padding: 8px 11px; }
  .chip img, .chip--perfect .star { width: 24px; height: 24px; }
  .chip--streak { margin-left: -170px; }
  .chip--diamonds { margin-right: -170px; top: 200px; }
  .chip--perfect { margin-left: -160px; }
  .card { padding: 22px; }
  .card--season { flex-direction: column; text-align: center; }
  .streak__top img { width: 80px; }
  .days { gap: 5px; }
  .day { padding: 9px 2px; font-size: 13px; border-radius: 11px; }
  .day svg { width: 15px; height: 15px; }
  .shop { gap: 8px; }
  .shop__item { padding: 14px 6px; }
  .shop__item img { width: 40px; height: 40px; }
  .shop__item b { font-size: 18px; }
  .duo { height: 430px; }
  .duo .phone { width: 180px; border-radius: 34px; padding: 7px; }
  .duo .phone .phone__screen { border-radius: 28px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .doc { padding: 24px 18px; }
  .step { grid-template-columns: 40px 1fr; gap: 14px; padding: 18px 16px; }
  .step::before { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; }
  .store-badge img { height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Examples note under the question tabs, "and many more" tag */
.quiz__more { margin-top: 20px; padding: 0 22px; font-size: 15px; color: var(--dim); }
.quiz__more a { color: var(--lavender); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(179, 136, 255, .4); }
.tag--more { background: transparent; border-style: dashed; color: var(--lavender); }
@media (max-width: 900px) {
  .quiz__more { padding: 0; text-align: center; }
}

/* French and Spanish headlines run longer */
html[lang="fr"] .hero h1, html[lang="es"] .hero h1 { font-size: clamp(42px, 5.6vw, 72px); }
html[lang="es"] .hero h1 { font-size: clamp(40px, 4.8vw, 62px); }
