/* Lola site. Palette mirrors Lola/Views/Shared/Theme.swift. */
:root {
  --night: #171a38;
  --indigo: #29336b;
  --indigo-2: #343f82;
  --sky: #84a9fd;
  --sky-deep: #5a7fe0;
  --coral: #e06255;
  --coral-deep: #a93a31;
  --gold: #feda9f;
  --gold-deep: #d49a4a;
  --cream: #fff5e6;
  --ink: #1c1c33;
  --muted: #b9b6d3;
  --line: rgba(255, 245, 230, 0.12);
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 18px/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }

/* ---------- chunky game buttons ---------- */
.btn {
  --face: var(--coral);
  --edge: var(--coral-deep);
  --text: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px 28px;
  border: 0;
  border-radius: 20px;
  background: var(--face);
  color: var(--text);
  font: 700 20px/1 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 7px 0 var(--edge), 0 16px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(0);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn::after { /* glossy top highlight */
  content: "";
  position: absolute;
  inset: 5px 10px auto 10px;
  height: 38%;
  border-radius: 14px 14px 30px 30px;
  background: linear-gradient(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 9px 0 var(--edge), 0 20px 32px rgba(0, 0, 0, 0.38); }
.btn:active, .btn.is-pressed { transform: translateY(7px); box-shadow: 0 0 0 var(--edge), 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.btn.gold { --face: var(--gold); --edge: var(--gold-deep); --text: var(--ink); }
.btn.sky { --face: var(--sky); --edge: var(--sky-deep); --text: var(--ink); }
.btn.ghost { --face: var(--indigo-2); --edge: #1d2452; --text: var(--cream); }
.btn.small { min-height: 46px; padding: 10px 18px; font-size: 16px; border-radius: 16px; box-shadow: 0 5px 0 var(--edge), 0 10px 18px rgba(0, 0, 0, 0.3); }
.btn.small:active { transform: translateY(5px); }
.btn .apple { width: 22px; height: 22px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  max-width: 1120px; margin: 0 auto; padding: 14px 20px;
}
.nav-wrap { position: sticky; top: 0; z-index: 20; background: rgba(23, 26, 56, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 700 26px var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 0 #0e1030; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 700; }
.nav .links a.plain { color: var(--muted); text-decoration: none; }
.nav .links a.plain:hover, .nav .links a.plain[aria-current] { color: var(--cream); }
@media (max-width: 560px) { .nav .links a.plain { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 75% 20%, rgba(132, 169, 253, 0.28), transparent 60%),
    radial-gradient(900px 500px at 10% 90%, rgba(224, 98, 85, 0.22), transparent 60%),
    linear-gradient(180deg, var(--indigo) 0%, var(--night) 100%);
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i {
  position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--cream);
  opacity: 0.6; animation: twinkle 3s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0.15; transform: scale(0.8); } 50% { opacity: 0.9; transform: scale(1.2); } }

.hero-inner {
  position: relative;
  max-width: 1120px; margin: 0 auto; padding: 56px 20px 96px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(254, 218, 159, 0.14); color: var(--gold);
  font: 600 15px var(--display); letter-spacing: 0.06em; text-transform: uppercase;
  border: 2px solid rgba(254, 218, 159, 0.35);
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: #6be38a; box-shadow: 0 0 0 0 rgba(107, 227, 138, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(107, 227, 138, 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(107, 227, 138, 0); } }
.hero h1 { font-size: clamp(46px, 7.2vw, 88px); font-weight: 700; margin: 18px 0 18px; }
.hero h1 .hl { color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 .hl svg { position: absolute; left: -2%; bottom: -0.18em; width: 104%; height: 0.32em; }
.hero p.lede { font-size: 21px; color: #ddd9f0; max-width: 30em; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px 18px; align-items: center; }
.cta-note { margin-top: 18px; color: var(--muted); font-size: 15px; display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note span::before { content: "✓ "; color: #6be38a; font-weight: 800; }

/* Lola stage */
.stage { position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 1 / 1.08; }
.portrait {
  position: absolute; inset: 6% 6% 0 6%;
  border-radius: 40px; overflow: hidden;
  border: 5px solid var(--gold);
  box-shadow: 0 12px 0 var(--gold-deep), 0 40px 80px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
  animation: bob 5s ease-in-out infinite;
  background: var(--sky);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@keyframes bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-1.5deg) translateY(-12px); } }

.bubble {
  position: absolute; left: -6%; top: -2%; z-index: 3;
  max-width: 270px; padding: 14px 20px;
  background: var(--cream); color: var(--ink);
  border-radius: 24px 24px 24px 6px;
  font: 600 20px/1.3 var(--display);
  box-shadow: 0 6px 0 #d8cbb6, 0 18px 30px rgba(0, 0, 0, 0.35);
  transform-origin: bottom left;
  animation: pop 0.45s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.bubble .who { display: block; font: 700 12px var(--body); color: var(--coral); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
.bubble .typing { display: inline-flex; gap: 5px; padding: 6px 0; }
.bubble .typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); opacity: 0.35; animation: dots 1s infinite; }
.bubble .typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 0%, 100% { opacity: 0.25; transform: translateY(0); } 50% { opacity: 0.9; transform: translateY(-4px); } }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 18px;
  font: 700 17px var(--display);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 14px 24px rgba(0, 0, 0, 0.3);
  animation: float 4s ease-in-out infinite;
}
.chip.streak { right: -4%; top: 22%; background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral-deep), 0 14px 24px rgba(0, 0, 0, 0.3); animation-delay: -1s; }
.chip.xp { left: -8%; bottom: 18%; background: var(--gold); color: var(--ink); box-shadow: 0 6px 0 var(--gold-deep), 0 14px 24px rgba(0, 0, 0, 0.3); animation-delay: -2.2s; }
.chip.level { right: 2%; bottom: 4%; background: var(--sky); color: var(--ink); box-shadow: 0 6px 0 var(--sky-deep), 0 14px 24px rgba(0, 0, 0, 0.3); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }

.call-btn {
  position: absolute; left: 50%; bottom: -34px; z-index: 4;
  width: 84px; height: 84px; margin-left: -42px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: var(--coral); color: #fff;
  box-shadow: 0 7px 0 var(--coral-deep), 0 0 0 0 rgba(224, 98, 85, 0.6), 0 18px 30px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center;
  animation: ring 2.2s infinite;
  transition: transform 0.08s ease;
}
.call-btn:active { transform: translateY(6px); }
.call-btn svg { width: 36px; height: 36px; }
@keyframes ring {
  0% { box-shadow: 0 7px 0 var(--coral-deep), 0 0 0 0 rgba(224, 98, 85, 0.55), 0 18px 30px rgba(0, 0, 0, 0.45); }
  70%, 100% { box-shadow: 0 7px 0 var(--coral-deep), 0 0 0 26px rgba(224, 98, 85, 0), 0 18px 30px rgba(0, 0, 0, 0.45); }
}

.wave-edge { display: block; width: 100%; height: 70px; margin-top: -1px; }

/* ---------- sections ---------- */
section.band { padding: 96px 20px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.kicker { font: 700 15px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); }
.band h2 { font-size: clamp(36px, 5vw, 58px); margin: 10px 0 14px; }
.band .sub { color: var(--muted); font-size: 20px; max-width: 34em; margin: 0; }

/* talk section */
.talk { background: var(--cream); color: var(--ink); }
.talk .sub { color: #5c5a72; }
.talk-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-top: 10px; }
.phone {
  justify-self: center; width: min(320px, 82vw);
  padding: 12px; border-radius: 52px;
  background: #0f1130;
  box-shadow: 0 14px 0 #06071c, 0 40px 70px rgba(28, 28, 51, 0.35);
  transform: rotate(3deg);
}
.phone img { border-radius: 42px; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; }
.steps li {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: center;
  background: #fff; border-radius: 24px; padding: 18px 22px;
  box-shadow: 0 6px 0 #e7dcca, 0 14px 30px rgba(28, 28, 51, 0.08);
}
.steps .num {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  font: 700 30px var(--display); color: #fff;
}
.steps li:nth-child(1) .num { background: var(--coral); box-shadow: 0 5px 0 var(--coral-deep); }
.steps li:nth-child(2) .num { background: var(--sky); box-shadow: 0 5px 0 var(--sky-deep); color: var(--ink); }
.steps li:nth-child(3) .num { background: var(--gold); box-shadow: 0 5px 0 var(--gold-deep); color: var(--ink); }
.steps h3 { font-size: 23px; margin-bottom: 2px; }
.steps p { margin: 0; color: #5c5a72; font-size: 17px; }

/* games section */
.games { background: linear-gradient(180deg, var(--night), #1f2457); }
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.game {
  --c: var(--coral); --d: var(--coral-deep);
  position: relative; border-radius: 28px; padding: 22px 20px 24px;
  background: var(--c); color: var(--ink);
  box-shadow: 0 9px 0 var(--d), 0 22px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  cursor: default;
}
.game:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 15px 0 var(--d), 0 30px 44px rgba(0, 0, 0, 0.4); }
.game:active { transform: translateY(8px); box-shadow: 0 1px 0 var(--d), 0 8px 14px rgba(0, 0, 0, 0.3); }
.game.coral { --c: var(--coral); --d: var(--coral-deep); color: #fff; }
.game.sky { --c: var(--sky); --d: var(--sky-deep); }
.game.gold { --c: var(--gold); --d: var(--gold-deep); }
.game.mint { --c: #7fe0b0; --d: #3fa776; }
.game .icon {
  height: 110px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.28); font-size: 54px; margin-bottom: 16px;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.08);
}
.game h3 { font-size: 24px; }
.game p { margin: 6px 0 0; font-size: 16px; opacity: 0.85; line-height: 1.45; }
.ttt { display: grid; grid-template-columns: repeat(3, 26px); gap: 5px; }
.ttt b { width: 26px; height: 26px; border-radius: 7px; background: rgba(255, 255, 255, 0.35); display: grid; place-items: center; font: 700 18px var(--display); color: #fff; }

.quest {
  margin-top: 44px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.06); border: 2px solid var(--line);
  border-radius: 26px; padding: 20px 24px;
}
.quest .badge {
  width: 68px; height: 68px; border-radius: 22px; display: grid; place-items: center; font-size: 34px;
  background: var(--gold); box-shadow: 0 6px 0 var(--gold-deep);
}
.quest .info { flex: 1; min-width: 220px; }
.quest .info strong { font: 700 22px var(--display); }
.quest .info span { color: var(--muted); font-size: 16px; display: block; }
.bar { height: 22px; border-radius: 999px; background: #10122e; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35); overflow: hidden; margin-top: 10px; }
.bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(180deg, #8ff0b9, #3fc27e);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15), inset 0 4px 0 rgba(255, 255, 255, 0.35);
  transition: width 1.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.bar.go i { width: 67%; }
.quest .xp { font: 700 24px var(--display); color: var(--gold); }

/* honest section */
.honest { background: var(--cream); color: var(--ink); }
.honest .sub { color: #5c5a72; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.card {
  background: #fff; border-radius: 28px; padding: 26px 24px;
  box-shadow: 0 8px 0 #e7dcca, 0 18px 36px rgba(28, 28, 51, 0.08);
}
.card .ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px; margin-bottom: 16px; }
.card h3 { font-size: 25px; margin-bottom: 6px; }
.card p { margin: 0; color: #5c5a72; font-size: 17px; }

/* final cta */
.finale {
  position: relative; overflow: hidden; text-align: center;
  background: radial-gradient(800px 400px at 50% 0%, rgba(254, 218, 159, 0.25), transparent 70%), var(--coral);
  color: #fff; padding: 100px 20px 110px;
}
.finale h2 { font-size: clamp(42px, 6.5vw, 76px); }
.finale p { font-size: 21px; opacity: 0.92; margin: 14px auto 34px; max-width: 28em; }
.finale .avatar {
  width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 36px; overflow: hidden;
  border: 5px solid var(--gold); box-shadow: 0 8px 0 var(--gold-deep); animation: bob 5s ease-in-out infinite;
}
.finale .btn.gold { font-size: 22px; min-height: 66px; padding: 16px 34px; }

footer.site {
  background: var(--night); color: var(--muted); font-size: 16px;
  padding: 34px 20px 44px; border-top: 1px solid var(--line);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; font-weight: 700; }
footer.site a:hover { color: var(--cream); }
footer.site .spacer { flex: 1; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal / support pages ---------- */
.doc-hero { background: linear-gradient(180deg, var(--indigo), var(--night)); padding: 48px 20px 90px; text-align: center; }
.doc-hero h1 { font-size: clamp(38px, 6vw, 60px); }
.doc-hero p { color: var(--muted); margin: 10px 0 0; }
.doc {
  max-width: 820px; margin: -60px auto 80px; padding: 34px 36px 44px;
  background: var(--cream); color: var(--ink); border-radius: 32px;
  box-shadow: 0 10px 0 #d8cbb6, 0 30px 60px rgba(0, 0, 0, 0.35);
  font-size: 17px;
}
.doc a { color: var(--coral-deep); font-weight: 700; }
.doc a.btn { color: var(--text); }
.doc h2 { font-size: 26px; margin: 1.8em 0 0.4em; color: var(--ink); }
.doc .meta { color: #6a6880; }
.doc .card { box-shadow: 0 6px 0 #e7dcca; padding: 6px 22px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-bottom: 1px solid #e7dcca; }
.doc th { color: #6a6880; }
.doc .crisis { background: #fff; border-radius: 22px; padding: 6px 22px; border: 3px solid var(--coral); box-shadow: 0 6px 0 var(--coral-deep); margin: 8px 0 10px; }
.doc .crisis .btn { margin: 4px 10px 14px 0; }
@media (max-width: 560px) {
  .doc { margin: -60px 12px 60px; padding: 24px 20px 32px; border-radius: 26px; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: none; padding: 2px 0; }
  .doc tr { border-bottom: 1px solid #e7dcca; padding: 10px 0; }
  .doc td:first-child { font-weight: 800; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 34px; text-align: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .cta-row, .cta-note { justify-content: center; }
  .stage { width: min(400px, 88vw); margin-top: 10px; }
  .talk-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  section.band { padding: 72px 16px; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .game { padding: 16px 14px 18px; border-radius: 22px; }
  .game .icon { height: 84px; font-size: 42px; }
  .game h3 { font-size: 19px; }
  .game p { font-size: 14px; }
  .bubble { left: -2%; font-size: 17px; max-width: 220px; }
  .chip { font-size: 15px; padding: 8px 12px; }
  .chip.xp { left: -3%; }
  .chip.streak { right: -2%; }
  .btn { font-size: 18px; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
