/* ---------- Self-hosted SIL OFL fonts + metric-matched fallbacks (CLS = 0) ---------- */
@font-face {
  font-family: Nunito;
  src: url(../assets/fonts/nunito-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url(../assets/fonts/nunito-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url(../assets/fonts/nunito-800.woff2) format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Quicksand;
  src: url(../assets/fonts/quicksand-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica Neue"), local("Roboto");
  font-weight: 400;
  size-adjust: 101.48%;
  ascent-override: 99.62%;
  descent-override: 34.78%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Fallback";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("Liberation Sans"), local("Roboto");
  font-weight: 600 700;
  size-adjust: 98.4%;
  ascent-override: 99.62%;
  descent-override: 34.78%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Nunito Display Fallback";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("Liberation Sans"), local("Roboto");
  font-weight: 800;
  size-adjust: 107.56%;
  ascent-override: 93.99%;
  descent-override: 32.82%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Quicksand Fallback";
  src: local("Arial Bold"), local("Arial"), local("Liberation Sans Bold"), local("Roboto");
  font-weight: 700;
  size-adjust: 103.2%;
  ascent-override: 96.5%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}

:root {
  --sun-1: #FFBA1E;
  --sun-2: #FF8E16;
  --sun-3: #F76418;
  --ink: #2A0A33;
  --ink-2: #462B50;
  --ink-muted: #6C5277;
  --night: #170A26;
  --night-2: #24103A;
  --surface: #FFF8FB;
  --surface-2: #F7ECF4;
  --card: #FFFFFF;
  --line: #EBDCE7;
  --plum-soft: #F2E3F9;
  --plum-deep: #5C396C;
  --amber-soft: #FFEAD0;
  --solar-deep: #7A2B00;
  --hdr: 72px;
  --max: 1220px;
  --gutter: clamp(20px, 4vw, 40px);
  --body: Nunito, "Nunito Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Nunito, "Nunito Display Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --label: Quicksand, "Quicksand Fallback", Nunito, system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 1.02rem/1.66 var(--body);
  color: var(--ink);
  background: var(--surface);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
a { color: var(--plum-deep); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible { outline-color: #FFE08C; }
.skip {
  position: fixed; left: 16px; top: -64px; z-index: 200; padding: 11px 18px;
  border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Google Play Buttons ---------- */
.play {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 9px 22px 9px 16px; border-radius: 15px; background: #12071C; color: #fff;
  text-decoration: none; box-shadow: 0 0 0 1px rgba(255,255,255,.20) inset, 0 14px 28px -10px rgba(32,8,0,.55);
  transition: transform .18s ease, background-color .18s ease; white-space: nowrap;
}
.play:hover { transform: translateY(-2px); background: #1E0D2E; }
.play svg { width: 28px; height: 30px; flex: none; }
.play .pt { display: grid; line-height: 1; text-align: left; }
.play .pt small { font: 700 .66rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: #EAE0F5; }
.play .pt b { font: 800 1.32rem/1.06 var(--display); letter-spacing: -.01em; margin-top: 3px; }
.play.sm { min-height: 42px; padding: 6px 14px 6px 11px; border-radius: 12px; gap: 9px; }
.play.sm svg { width: 19px; height: 21px; }
.play.sm .pt small { font-size: .54rem; }
.play.sm .pt b { font-size: .98rem; margin-top: 2px; }

.play-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: #160922; color: #FFFFFF; text-decoration: none;
  font: 800 0.94rem/1.1 var(--display); padding: 12px 20px 12px 15px; border-radius: 999px;
  box-shadow: 0 10px 22px rgba(24, 8, 36, 0.18); transition: transform .18s ease, background-color .18s ease; white-space: nowrap;
}
.play-pill:hover { transform: translateY(-2px); background: #27113B; }
.play-pill svg { width: 18px; height: 20px; flex: none; }

/* ---------- Shared Sticky Header & Mobile Menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80; height: var(--hdr);
  transition: background-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 248, 251, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(42, 10, 51, 0.08);
}
.hdr { height: 100%; display: flex; align-items: center; gap: 14px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font: 800 1.42rem/1 var(--display); letter-spacing: -.02em;
  color: #FFFDF9;
  text-shadow: 0 1.5px 3.5px rgba(145, 46, 0, 0.36), 0 5px 14px rgba(172, 56, 0, 0.22);
  transition: color .2s ease, text-shadow .2s ease;
}
.site-header.is-scrolled .brand { color: var(--ink); text-shadow: none; }
.brand img {
  width: 40px; height: 40px; border-radius: 11px;
  box-shadow: 0 6px 14px -4px rgba(95, 24, 0, .46), 0 0 0 1px rgba(255, 255, 255, .24);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 13px; border-radius: 999px; text-decoration: none;
  font: 700 .9rem/1 var(--label); color: #381304;
  transition: background-color .16s, color .2s;
}
.nav a:hover { background: rgba(56, 19, 4, 0.09); }
.nav a[aria-current="page"] { background: rgba(255, 250, 238, 0.84); border: 1px solid rgba(74, 24, 4, 0.14); }
.site-header.is-scrolled .nav a { color: var(--ink); }
.site-header.is-scrolled .nav a:hover { background: rgba(42, 10, 51, 0.06); }
.site-header.is-scrolled .nav a[aria-current="page"] { background: var(--plum-soft); color: var(--plum-deep); border-color: transparent; }

.m-menu { display: none; }
.m-menu summary {
  list-style: none; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  color: #381304; background: rgba(255,255,255,.32);
}
.site-header.is-scrolled .m-menu summary { color: var(--ink); background: rgba(42,14,53,.06); }
.m-menu summary::-webkit-details-marker { display: none; }
.m-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: 214px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 8px; box-shadow: 0 22px 44px -12px rgba(24,6,34,.32); display: grid; gap: 2px;
}
.m-panel a {
  padding: 11px 14px; border-radius: 12px; text-decoration: none;
  font: 700 .94rem/1.2 var(--label); color: var(--ink);
}
.m-panel a[aria-current="page"] { background: var(--plum-soft); color: var(--plum-deep); }
.m-panel a:hover { background: var(--surface-2); }

/* ---------- Shared Site Footer ---------- */
.site-footer { background: var(--night); color: #E8DCF5; padding: 44px 0 40px; }
.foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; }
.foot .brand { color: #FFFFFF; text-shadow: none; }
.foot .tag { margin-top: 10px; font-size: .94rem; color: #CBB9E0; max-width: 430px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-links a { color: #F1E7FB; text-decoration: none; font: 700 .94rem/1 var(--label); }
.foot-links a:hover { color: #FFD978; }
.legal,
.legal-bar {
  grid-column: 1 / -1; padding-top: 20px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.11);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .82rem; color: #B9A5D0;
}
.legal a,
.legal-bar a { color: #E8DCF5; }

/* ---------- Shared Responsive & Motion ---------- */
@media (max-width: 980px) {
  .foot { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --hdr: 62px; }
  .hdr { gap: 10px; }
  .brand { font-size: 1.2rem; gap: 9px; }
  .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .site-header .play.sm { padding: 6px 12px 6px 10px; min-height: 38px; gap: 8px; }
  .site-header .play.sm .pt b { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
