/* VideokePH website. "Fiesta Night" palette and Nunito (PLAN §17). */

@font-face { font-family: "Nunito"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/nunito-regular.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/nunito-bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-extrabold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/nunito-black.woff2") format("woff2"); }

:root {
  --orange: #F26A00; --orange-edge: #C25200;
  --purple: #7C4DFF; --purple-edge: #5A2FD6;
  --mango: #FFC800; --mango-edge: #DDA200;
  --green: #2FCB7A; --green-edge: #1F9E5C;
  --red: #FF4B5C; --pink: #FF4FA3;
  --cyan: #1ECBE1; --cyan-edge: #0EA0B5;

  --cream: #FFF8F0; --cream-alt: #FFF1E0; --white: #FFFFFF; --line: #ECE4DA;
  --ink: #1F1B2E; --muted: #6B6880;
  --night: #15122B; --night-surface: #221D3F; --night-alt: #2C2650; --night-line: #3A335E;
  --moon: #F5F3FF; --moon-muted: #A7A1C9;

  /* Theme-aware tokens (used by the legal pages, which follow dark mode). */
  --bg: var(--cream); --surface: var(--white); --surface-alt: var(--cream-alt);
  --border: var(--line); --text: var(--ink); --text-muted: var(--muted);
  --link: #5A2FD6;

  --radius: 16px; --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --font: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .follows-scheme {
    --bg: var(--night); --surface: var(--night-surface); --surface-alt: var(--night-alt);
    --border: var(--night-line); --text: var(--moon); --text-muted: var(--moon-muted);
    --link: #B39CFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] .follows-scheme {
  --bg: var(--night); --surface: var(--night-surface); --surface-alt: var(--night-alt);
  --border: var(--night-line); --text: var(--moon); --text-muted: var(--moon-muted);
  --link: #B39CFF;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-weight: 700; font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--mango); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 900; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons: tactile flat, 4px edge that disappears on press ---------- */
.btn {
  --fill: var(--orange); --edge: var(--orange-edge); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: var(--radius);
  background: var(--fill); color: var(--fg); box-shadow: 0 4px 0 var(--edge);
  font-weight: 900; font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform 80ms ease, box-shadow 80ms ease, filter 160ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--edge); }
.btn.purple { --fill: var(--purple); --edge: var(--purple-edge); }
.btn.mango { --fill: var(--mango); --edge: var(--mango-edge); --fg: var(--ink); }
.btn.ghost { --fill: transparent; --edge: transparent; --fg: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:active { transform: none; }
.btn svg { width: 22px; height: 22px; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(124, 77, 255, 0.16); color: #C9B8FF; border: 2px solid rgba(124, 77, 255, 0.35);
}
.chip.light { background: #EFE8FF; color: var(--purple-edge); border-color: #DCCFFF; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47, 203, 122, 0.25); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.site-header.scrolled { background: rgba(21, 18, 43, 0.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,0.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--moon); font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.brand .mark { width: 40px; height: 40px; border-radius: 12px; background: var(--orange); box-shadow: 0 3px 0 var(--orange-edge); display: grid; place-items: center; }
.brand .mark svg { width: 26px; height: 26px; }
.brand b { color: var(--orange); font-weight: 900; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--moon-muted); text-decoration: none; font-weight: 800; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color 160ms ease, background 160ms ease; }
.nav a:not(.btn):hover { color: var(--moon); background: rgba(255,255,255,0.06); }
.nav .btn { min-height: 42px; padding: 8px 18px; font-size: 14px; margin-left: 8px; }
@media (max-width: 860px) { .nav a:not(.btn) { display: none; } }

/* ---------- Night sections ---------- */
.night { background: var(--night); color: var(--moon); position: relative; isolation: isolate; }
.night p { color: var(--moon-muted); }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; padding: 120px 0 80px; overflow: hidden; display: flex; align-items: center; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none; }
.hero::before { width: 620px; height: 620px; left: -180px; top: -120px; background: radial-gradient(circle, var(--purple), transparent 70%); }
.hero::after { width: 560px; height: 560px; right: -160px; bottom: -200px; background: radial-gradient(circle, var(--pink), transparent 70%); opacity: 0.35; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(24px, 5vw, 64px); }
.hero h1 { font-size: clamp(44px, 7.2vw, 92px); margin: 22px 0 22px; color: var(--moon); }
.hero h1 .glow { background: linear-gradient(100deg, var(--mango) 10%, var(--orange) 55%, var(--pink) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(18px, 1.8vw, 21px); max-width: 34ch; color: var(--moon-muted); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: #8C86B4; }
.hero .fine strong { color: var(--moon); }

.bunting { position: absolute; top: 0; left: 0; right: 0; height: 120px; z-index: -1; pointer-events: none; }
.bunting svg { width: 100%; height: 100%; overflow: visible; }
.bunting .flag { transform-box: fill-box; transform-origin: 50% 0%; }

.stage-art { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #3A335E, #1A1636); box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7), inset 0 0 0 2px rgba(255,255,255,0.08);
}
.phone .screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--cream); color: var(--ink); display: flex; flex-direction: column; padding: 34px 14px 14px; gap: 10px; position: relative; }
.phone .notch { position: absolute; top: 10px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: #0d0b1c; border-radius: 999px; z-index: 2; }
.ui-search { display: flex; align-items: center; gap: 8px; border: 2px solid var(--orange); border-radius: 14px; padding: 9px 12px; background: #fff; font-size: 13px; font-weight: 800; color: var(--muted); }
.ui-search i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--orange); flex: none; position: relative; }
.ui-search i::after { content: ""; position: absolute; width: 6px; height: 2.5px; background: var(--orange); right: -6px; bottom: -3px; transform: rotate(45deg); border-radius: 2px; }
.ui-search .caret { width: 2px; height: 15px; background: var(--orange); margin-left: -4px; }
.ui-bibi { display: flex; align-items: center; gap: 6px; }
.ui-bibi svg { width: 52px; height: 52px; flex: none; }
.ui-bubble { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 6px 10px; font-size: 12px; font-weight: 900; line-height: 1.3; position: relative; }
.ui-label { font-size: 11px; font-weight: 900; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; margin-top: 2px; }
.ui-song { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 8px; }
.ui-song .thumb { width: 46px; height: 34px; border-radius: 8px; flex: none; position: relative; overflow: hidden; }
.ui-song .thumb::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -6px 0 0 -4px; border-left: 10px solid rgba(255,255,255,0.95); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.ui-song .meta { flex: 1; min-width: 0; }
.ui-song .t, .ui-song .a { display: block; }
.ui-song .t { font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-song .a { font-size: 11px; color: var(--muted); font-weight: 700; }
.ui-song .add { width: 28px; height: 28px; border-radius: 9px; background: var(--orange); box-shadow: 0 3px 0 var(--orange-edge); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 18px; line-height: 1; flex: none; }
.ui-song .add.done { background: var(--green); box-shadow: 0 3px 0 var(--green-edge); font-size: 14px; }
.ui-queue { margin-top: auto; background: var(--purple); color: #fff; border-radius: 16px; box-shadow: 0 4px 0 var(--purple-edge); padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 900; }
.ui-queue span:last-child { background: var(--mango); color: var(--ink); border-radius: 10px; padding: 4px 9px; letter-spacing: 0.06em; }

.score-card {
  position: absolute; right: max(-10px, 2%); bottom: 64px; width: 190px; padding: 16px 18px 18px; border-radius: 24px;
  background: var(--night-surface); border: 2px solid var(--night-line); box-shadow: 0 24px 60px -16px rgba(0,0,0,0.7), 0 0 60px -10px rgba(124,77,255,0.6);
  text-align: center;
}
.score-card .k { font-size: 11px; font-weight: 900; letter-spacing: 0.14em; color: var(--moon-muted); text-transform: uppercase; }
.score-card .num { font-size: 68px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, var(--mango), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 4px 0 6px; }
.score-card .stars { display: flex; justify-content: center; gap: 4px; }
.score-card .stars svg { width: 22px; height: 22px; }
.score-card .xp { margin-top: 10px; font-size: 12px; font-weight: 900; color: var(--green); }
.bibi-hero { position: absolute; left: max(-30px, -2%); bottom: 20px; width: clamp(150px, 17vw, 210px); filter: drop-shadow(0 24px 30px rgba(0,0,0,0.45)); }
.note { position: absolute; color: var(--mango); opacity: 0; pointer-events: none; }
.note svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .lede { max-width: 46ch; }
  .stage-art { min-height: 520px; margin-top: 12px; }
}
@media (max-width: 520px) {
  .score-card { width: 150px; right: -4px; bottom: 40px; padding: 12px; }
  .score-card .num { font-size: 52px; }
  .bibi-hero { width: 130px; left: -8px; bottom: 0; }
  .hero .ctas .btn { flex: 1 1 100%; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--mango); color: var(--ink); overflow: hidden; border-block: 4px solid var(--mango-edge); transform: rotate(-1.5deg); margin: -18px -20px 0; position: relative; z-index: 3; }
.marquee .track { display: flex; width: max-content; gap: 0; padding: 14px 0; }
.marquee span { font-size: clamp(20px, 2.6vw, 30px); font-weight: 900; text-transform: uppercase; letter-spacing: 0.02em; white-space: nowrap; padding: 0 22px; display: inline-flex; align-items: center; gap: 44px; }
.marquee span::after { content: "★"; color: var(--orange); font-size: 0.8em; }

/* ---------- Generic sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.light { background: var(--cream); color: var(--ink); }
.light p { color: var(--muted); }
.eyebrow { font-size: 14px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.night .eyebrow { color: var(--mango); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(36px, 5.2vw, 64px); margin: 14px 0 18px; }
.section-head p { font-size: clamp(17px, 1.6vw, 20px); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 44px; height: 40px; z-index: 0; pointer-events: none; }
.step { position: relative; z-index: 1; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px 28px; box-shadow: 0 6px 0 var(--line); }
.step .ico { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 20px; color: #fff; }
.step .ico svg { width: 34px; height: 34px; }
.step .n { position: absolute; top: 22px; right: 22px; font-size: 13px; font-weight: 900; color: #C9BFB2; letter-spacing: 0.1em; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps-line { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.bg-orange { background: var(--orange); box-shadow: 0 4px 0 var(--orange-edge); }
.bg-purple { background: var(--purple); box-shadow: 0 4px 0 var(--purple-edge); }
.bg-mango { background: var(--mango); box-shadow: 0 4px 0 var(--mango-edge); color: var(--ink) !important; }
.bg-green { background: var(--green); box-shadow: 0 4px 0 var(--green-edge); }
.bg-cyan { background: var(--cyan); box-shadow: 0 4px 0 var(--cyan-edge); }
.bg-red { background: var(--red); box-shadow: 0 4px 0 #D6283A; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  grid-column: span 2; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: 0 6px 0 var(--line); position: relative; overflow: hidden;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--line); }
.card.wide { grid-column: span 3; }
.card.hero-card { grid-column: span 4; background: var(--purple); border-color: var(--purple-edge); box-shadow: 0 6px 0 var(--purple-edge); color: #fff; }
.card.hero-card p { color: #E4DBFF; }
.card.hero-card:hover { box-shadow: 0 10px 0 var(--purple-edge); }
.card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.card .ico svg { width: 30px; height: 30px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { font-size: 16px; }
.card .devices { display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.card .dev { background: rgba(255,255,255,0.14); border: 2px solid rgba(255,255,255,0.3); border-radius: 12px; display: grid; place-items: center; font-size: 11px; font-weight: 900; letter-spacing: 0.1em; color: #fff; }
.card .dev.tv { width: 150px; height: 88px; }
.card .dev.tab { width: 92px; height: 68px; }
.card .dev.ph { width: 40px; height: 72px; border-radius: 10px; }
.meter { display: flex; align-items: flex-end; gap: 5px; height: 48px; margin-top: 22px; }
.meter i { flex: 1; background: var(--green); border-radius: 6px; height: 30%; transform-origin: bottom; }
@media (max-width: 960px) { .card, .card.wide, .card.hero-card { grid-column: span 3; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } .card, .card.wide, .card.hero-card { grid-column: auto; } }

/* ---------- Party ---------- */
.party { overflow: hidden; }
.party-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.party ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.party li { display: flex; gap: 14px; align-items: flex-start; color: var(--moon-muted); }
.party li b { color: var(--moon); }
.party li .tick { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; color: var(--ink); margin-top: 1px; }
.party li .tick svg { width: 16px; height: 16px; }
.tv-scene { position: relative; padding: 20px 0 70px; }
.tv { position: relative; aspect-ratio: 16 / 9.4; border-radius: 22px; background: #0B0919; padding: 12px; box-shadow: 0 0 0 2px var(--night-line), 0 40px 80px -30px rgba(0,0,0,0.8), 0 0 120px -30px rgba(124,77,255,0.6); }
.tv::after { content: ""; position: absolute; bottom: -34px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 0 0 14px 14px; background: linear-gradient(#2C2650, #1A1636); }
.tv .scr { height: 100%; border-radius: 12px; background: radial-gradient(120% 120% at 80% 0%, #2C2650, var(--night) 60%); display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; padding: clamp(12px, 2vw, 22px); overflow: hidden; }
.tv h4 { margin: 0 0 8px; font-size: clamp(11px, 1.1vw, 14px); font-weight: 900; letter-spacing: 0.12em; color: var(--moon-muted); text-transform: uppercase; }
.tv .row { display: flex; align-items: center; gap: 8px; background: var(--night-surface); border: 2px solid var(--night-line); border-radius: 12px; padding: 6px 8px; margin-bottom: 7px; font-size: clamp(10px, 1.1vw, 13px); font-weight: 900; color: var(--moon); }
.tv .row .av { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.tv .row .who { margin-left: auto; color: var(--moon-muted); font-weight: 800; font-size: 0.9em; }
.tv .row.now { border-color: var(--mango); box-shadow: 0 0 0 3px rgba(255,200,0,0.18); }
.tv .pair { display: grid; place-items: center; text-align: center; background: var(--night-surface); border: 2px solid var(--night-line); border-radius: 16px; padding: 10px; }
.tv .qr { width: min(120px, 60%); aspect-ratio: 1; background: #fff; border-radius: 10px; padding: 8px; }
.tv .pin { font-size: clamp(20px, 2.8vw, 34px); font-weight: 900; letter-spacing: 0.2em; color: var(--mango); font-variant-numeric: tabular-nums; }
.tv .pin-k { font-size: clamp(9px, 0.9vw, 11px); color: var(--moon-muted); font-weight: 900; letter-spacing: 0.12em; }
.mini-phone { position: absolute; width: clamp(70px, 10vw, 104px); aspect-ratio: 9 / 18; border-radius: 18px; background: #2C2650; padding: 5px; box-shadow: 0 20px 40px -12px rgba(0,0,0,0.8); }
.mini-phone .s { height: 100%; border-radius: 14px; display: grid; place-items: center; font-size: 26px; }
.mini-phone.p1 { left: -3%; bottom: 0; transform: rotate(-10deg); }
.mini-phone.p2 { left: 30%; bottom: -14px; }
.mini-phone.p3 { right: -2%; bottom: 6px; transform: rotate(9deg); }
.reaction { position: absolute; font-size: 30px; pointer-events: none; opacity: 0; will-change: transform; }
@media (max-width: 960px) { .party-grid { grid-template-columns: 1fr; } }

/* ---------- Score & progression ---------- */
.progress-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: 0 6px 0 var(--line); }
.stat .big { font-size: clamp(48px, 6vw, 72px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; margin: 10px 0 6px; }
.stat .big.grad { background: linear-gradient(180deg, var(--mango), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat h3 { font-size: 22px; margin-bottom: 6px; }
.stat p { font-size: 15px; }
.bar { height: 18px; border-radius: 999px; background: var(--cream-alt); border: 2px solid var(--line); overflow: hidden; margin: 18px 0 8px; }
.bar i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--mango), var(--orange)); border-radius: 999px; }
.week { display: flex; gap: 6px; margin: 18px 0 10px; }
.week span { flex: 1; aspect-ratio: 1; border-radius: 10px; background: var(--cream-alt); border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 900; color: var(--muted); }
.week span.on { background: var(--orange); border-color: var(--orange-edge); color: #fff; }
@media (max-width: 860px) { .progress-grid { grid-template-columns: 1fr; } }

/* ---------- Promises ---------- */
.promises { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.promise { display: flex; gap: 18px; align-items: flex-start; padding: 26px; border-radius: var(--radius-lg); background: var(--night-surface); border: 2px solid var(--night-line); }
.promise .ico { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.promise .ico svg { width: 28px; height: 28px; }
.promise h3 { font-size: 21px; color: var(--moon); margin-bottom: 6px; }
.promise p { font-size: 15.5px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 4px 0 var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; font-size: 19px; font-weight: 900; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 10px; background: var(--cream-alt); color: var(--orange); display: grid; place-items: center; font-size: 22px; transition: transform 200ms ease, background 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq .a { padding: 0 24px 24px; color: var(--muted); font-size: 16.5px; }
.faq .a p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta h2 { font-size: clamp(40px, 6.4vw, 84px); margin: 16px auto 20px; max-width: 14ch; }
.cta .stores { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; min-height: 64px; border-radius: 18px; background: var(--night-surface); border: 2px solid var(--night-line); color: var(--moon); text-align: left; }
.store svg { width: 28px; height: 28px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 900; letter-spacing: 0.12em; color: var(--mango); text-transform: uppercase; }
.store span { font-size: 18px; font-weight: 900; }
.cta .bibi-cta { width: 170px; height: 170px; margin: 0 auto 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0E0B20; color: var(--moon-muted); padding: 56px 0 40px; font-size: 15px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--moon-muted); text-decoration: none; font-weight: 800; }
.site-footer a:hover { color: var(--moon); text-decoration: underline; }
.site-footer .legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 13px; line-height: 1.7; color: #7D77A6; font-weight: 700; }
.site-footer .legal p + p { margin-top: 6px; }

/* ---------- Legal pages ---------- */
.doc-page { background: var(--bg); color: var(--text); }
.doc-hero { background: var(--night); color: var(--moon); padding: 128px 0 56px; position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,0.55), transparent 70%); filter: blur(40px); z-index: 0; }
.doc-hero .wrap { position: relative; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 14px 0 14px; }
.doc-hero p { color: var(--moon-muted); max-width: 60ch; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-block: 56px 96px; align-items: start; }
.toc { position: sticky; top: 96px; font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--text-muted); font-weight: 800; }
.toc a:hover, .toc a.active { background: var(--surface-alt); color: var(--text); }
.doc { max-width: 74ch; font-weight: 400; font-size: 17px; line-height: 1.75; }
.doc strong, .doc b { font-weight: 800; }
.doc h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 52px 0 14px; scroll-margin-top: 96px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; font-weight: 900; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--link); font-weight: 700; text-underline-offset: 3px; }
.doc .summary { background: var(--surface); border: 2px solid var(--border); border-radius: 20px; padding: 22px 24px; margin-bottom: 36px; box-shadow: 0 4px 0 var(--border); }
.doc .summary h2 { margin: 0 0 10px; font-size: 20px; }
.doc .summary ul { margin: 0; }
.doc table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 20px; font-size: 15px; border: 2px solid var(--border); border-radius: 16px; overflow: hidden; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.doc th { background: var(--surface-alt); font-weight: 900; }
.doc tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.doc .meta { color: var(--text-muted); font-size: 15px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .toc ol { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .toc ol { grid-template-columns: 1fr; } }

/* ---------- Motion setup ---------- */
/* Elements start hidden only when JS runs and motion is allowed (main.js adds .anim). */
.anim [data-reveal] { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim [data-reveal] { opacity: 1; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Late tweaks */
.site-header:not(.scrolled) { background: linear-gradient(rgba(21, 18, 43, 0.75), rgba(21, 18, 43, 0)); }
@media (max-width: 640px) { .bunting { height: 90px; } .chip { font-size: 11px; } }

/* Contrast (WCAG AA): white on Fiesta Orange is 3.07:1, enough only for large
   text (19px bold and up), so buttons use 19px; smaller orange text darkens. */
.btn { font-size: 19px; letter-spacing: 0.04em; }
.nav .btn { --fill: var(--mango); --edge: var(--mango-edge); --fg: var(--ink); font-size: 14px; }
.light .eyebrow, .doc-page .doc .eyebrow { color: #B04A00; }
.step .n { color: var(--muted); }
.site-footer .legal { color: #9690BF; }
.tv .h4 { margin: 0 0 8px; font-size: clamp(11px, 1.1vw, 14px); font-weight: 900; letter-spacing: 0.12em; color: var(--moon-muted); text-transform: uppercase; }
.card.hero-card p { color: #fff; }
.card .dev { background: rgba(21, 18, 43, 0.22); }
