/* ---------- Tokens ---------- */
:root {
  --bg: #FDF8F5;
  --bg-2: #F8EFE6;
  --ink: #1E293B;
  --ink-2: #334155;
  --ink-3: #475569;
  --muted: #64748B;
  --mute-2: #94A3B8;
  --line: #EDE3D7;
  --card: #FFFFFF;

  --o-50: #FFF7ED;
  --o-100: #FFEDD5;
  --o-200: #FED7AA;
  --o-300: #FDBA74;
  --o-400: #FB923C;
  --o-500: #F97316;
  --o-600: #EA580C;
  --o-700: #C2410C;
  --o-900: #7C2D12;

  --g-100: #DCFCE7;
  --g-300: #86EFAC;
  --g-400: #4ADE80;
  --g-500: #22C55E;
  --g-700: #15803D;

  --b-100: #DBEAFE;
  --b-400: #60A5FA;
  --b-500: #3B82F6;
  --y-300: #FDE68A;
  --y-400: #FACC15;
  --r-500: #EF4444;

  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --night-bg: #0B1020;
  --night-card: #11172A;
  --night-line: #1E2540;

  --radius-pill: 9999px;
  --radius-xl: 16px;
  --radius-2xl: 22px;
  --radius-3xl: 32px;
  --radius-4xl: 48px;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}


* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* selection */
::selection { background: var(--o-200); color: var(--ink); }

/* utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
}

.mono { font-family: var(--font-mono); letter-spacing: -0.01em; }

/* ---------- BLOB / decor ---------- */
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,30px) scale(0.94); }
}
.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  mix-blend-mode: multiply;
  opacity: .55;
  animation: blob 14s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 120px 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero { padding: 120px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; color: var(--o-600);
  box-shadow: 0 2px 0 rgba(0,0,0,0.02);
  transform: rotate(-1.5deg);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--o-500);
  box-shadow: 0 0 0 4px var(--o-100);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--o-100); }
  50% { box-shadow: 0 0 0 8px rgba(249,115,22,0.05); }
}

.h-display {
  font-size: clamp(48px, 7.2vw, 92px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 18px 0 22px;
  color: var(--ink);
}
.h-display .accent {
  background: linear-gradient(135deg, var(--o-500), var(--o-400) 60%, var(--y-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}
.h-display .accent::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 6%;
  height: 12%;
  background: var(--o-200);
  opacity: 0.45;
  border-radius: 9999px;
  z-index: -1;
}
.h-lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 520px;
  font-weight: 500;
}

.cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 16px;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -10px rgba(15,23,42,0.4);
}
.btn-orange {
  background: var(--o-500);
  color: #fff;
}
.btn-orange:hover {
  transform: translateY(-3px);
  background: var(--o-600);
  box-shadow: 0 16px 30px -10px rgba(249,115,22,0.55);
}
.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { transform: translateY(-3px); }

.hero-meta {
  margin-top: 28px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
  font-weight: 600;
}
.hero-meta b { color: var(--ink); font-weight: 800; }

/* ---------- Section skeleton ---------- */
section { position: relative; }
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 40px 0; }
@media (max-width: 720px) { .section-pad { padding: 48px 0; } }

/* floating hero chips */
@keyframes floatA {
  0%,100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%     { transform: rotate(var(--rot, 0deg)) translateY(-8px); }
}
@keyframes floatB {
  0%,100% { transform: rotate(var(--rot, 0deg)) translateY(0) translateX(0); }
  50%     { transform: rotate(var(--rot, 0deg)) translateY(-6px) translateX(4px); }
}
@keyframes floatC {
  0%,100% { transform: rotate(var(--rot, 0deg)) translateY(0); }
  50%     { transform: rotate(var(--rot, 0deg)) translateY(-10px); }
}
.float-chip {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px 13px;
  box-shadow: 0 18px 28px -18px rgba(15,23,42,0.22), 0 2px 6px rgba(15,23,42,0.04);
  display: flex; align-items: center; gap: 10px;
  transform: rotate(var(--rot, 0deg));
  transition: transform 250ms ease, box-shadow 250ms ease, scale 250ms ease;
  z-index: 3;
  cursor: default;
}
.float-chip:hover {
  animation-play-state: paused !important;
  transform: rotate(0deg) scale(1.08) translateY(-4px);
  box-shadow: 0 28px 36px -18px rgba(249,115,22,0.35);
}
.float-chip .chip-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.float-chip .chip-label {
  font-size: 10px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.float-chip .chip-value {
  font-size: 14px; font-weight: 900; color: var(--ink);
  letter-spacing: -0.01em;
}

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--o-600);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--o-500); border-radius: 2px;
}
.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 900;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  color: var(--ink-3);
  max-width: 56ch;
  line-height: 1.55;
  font-weight: 500;
}

/* ---------- Generic Card ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-3xl);
  padding: 28px;
  transition: transform 300ms ease, box-shadow 300ms ease, border-color 300ms ease;
}

/* phone */
.phone-frame {
  width: 320px;
  background: #0B1020;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(15,23,42,0.35),
    0 12px 24px -12px rgba(15,23,42,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
}
.phone-screen {
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  position: relative;
  height: 620px;
}
.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0B1020;
  border-radius: 9999px;
  z-index: 5;
}
.phone-status {
  position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px 6px;
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.phone-status .right { display: flex; align-items: center; gap: 6px; }

/* nav (in app) */
.app-row { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 9999px;
  background: var(--o-100);
  color: var(--o-700);
  display: grid; place-items: center;
  font-weight: 900; font-size: 18px;
}

.app-card {
  background: var(--card);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 8px 16px -10px rgba(15,23,42,0.06);
}

.streak-bar {
  height: 8px; border-radius: 9999px; background: #F1ECE5;
  position: relative; overflow: hidden;
}
.streak-bar > i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--o-400), var(--o-500), var(--y-400));
  border-radius: 9999px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 28px 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(15,23,42,0.2); }
.step .num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--o-600);
  letter-spacing: 0.1em;
}
.step h3 {
  font-size: 22px; font-weight: 800; margin: 14px 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 0; font-weight: 500; }
.step .glyph {
  margin-top: 18px;
  height: 110px;
  border-radius: 18px;
  display: grid; place-items: center;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
  margin-top: 56px;
}
.bento .b-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.bento .b-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -22px rgba(15,23,42,0.18); }
.b-card h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em; }
.b-card p { font-size: 14.5px; color: var(--muted); margin: 0; font-weight: 500; line-height: 1.55; }

.bento .b-card.b-orange { background: #FFEDD5; border-color: rgba(254,215,170,0.8); }
.bento .b-card.b-orange h3 { color: var(--o-900); }
.bento .b-card.b-orange p { color: rgba(124,45,18,0.78); }

.bento .b-card.b-green { background: #DCFCE7; border-color: rgba(187,247,208,0.8); }
.bento .b-card.b-green h3 { color: #14532D; }
.bento .b-card.b-green p { color: rgba(20,83,45,0.72); }

.bento .b-card.b-dark { background: var(--slate-800); border-color: var(--slate-700); color: #fff; }
.bento .b-card.b-dark h3 { color: #fff; }
.bento .b-card.b-dark p { color: rgba(226,232,240,0.7); }

@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-card { grid-column: span 1 !important; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

/* ---------- Quiz block ---------- */
.quiz-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .quiz-shell { grid-template-columns: 1fr; }
}
.quiz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 30px 60px -28px rgba(15,23,42,0.18);
}
.q-progress { height: 8px; border-radius: 9999px; background: #E2E8F0; position: relative; overflow: hidden; }
.q-progress > i {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--o-400), var(--o-500));
  width: 0%;
  border-radius: 9999px;
  transition: width 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.q-option {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: all 200ms ease;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-2);
  text-align: left;
  width: 100%;
}
.q-option .letter {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: #F1F5F9;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  color: var(--ink-3);
  flex-shrink: 0;
}
.q-option:hover { border-color: var(--o-300); }
.q-option.selected { border-color: var(--b-500); background: rgba(59,130,246,0.07); color: var(--ink); }
.q-option.selected .letter { background: var(--b-500); color: #fff; }
.q-option.correct { border-color: var(--g-500); background: rgba(34,197,94,0.08); color: var(--g-700); }
.q-option.correct .letter { background: var(--g-500); color: #fff; }
.q-option.wrong { border-color: var(--r-500); background: rgba(239,68,68,0.07); }
.q-option.wrong .letter { background: var(--r-500); color: #fff; }

/* ---------- Night gamification section ---------- */
.night {
  background: var(--night-bg);
  color: #fff;
  border-radius: 48px;
  margin: 0 16px;
  padding: 110px 64px;
  position: relative;
  overflow: hidden;
  transition: background 600ms ease;
}
@media (max-width: 720px) { .night { margin: 0 12px; padding: 72px 24px; border-radius: 36px; } }
.night .section-title { color: #fff; }
.night .section-sub { color: rgba(226,232,240,0.7); }
.night .section-eyebrow { color: var(--o-400); }
.night .section-eyebrow::before { background: var(--o-400); }

.night-glow-1, .night-glow-2 {
  position: absolute; pointer-events: none; border-radius: 9999px;
  filter: blur(110px); opacity: 0.45;
}
.night-glow-1 { top: -120px; left: -80px; width: 380px; height: 380px; background: var(--o-500); }
.night-glow-2 { bottom: -160px; right: -100px; width: 460px; height: 460px; background: #6366F1; opacity: 0.4; }

.night-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 980px) { .night-grid { grid-template-columns: 1fr; } }

.gami-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gami-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(8px);
  transition: transform 300ms ease, background 300ms ease;
}
.gami-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.gami-card.tall { grid-row: span 2; }
.gami-card.accent {
  background: linear-gradient(140deg, var(--o-500), var(--o-600));
  border-color: rgba(255,255,255,0.18);
  grid-column: span 2;
}
.gami-card .num {
  font-size: 44px; font-weight: 900; letter-spacing: -0.03em;
  line-height: 1;
}
.gami-card .lbl { font-size: 12px; font-weight: 700; color: rgba(226,232,240,0.7); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }

/* flame */
.flame {
  display: inline-block;
  position: relative;
  width: 48px; height: 64px;
  transition: transform 200ms ease;
}
.flame svg { display:block; }

/* ---------- Roadmap (vertical) ---------- */
.roadmap-v {
  position: relative;
  margin-top: 56px;
  padding: 32px 0;
  display: grid;
  gap: 32px;
}
.rv-line {
  position: absolute;
  left: 31px;
  top: 32px; bottom: 32px;
  width: 4px;
  background: var(--line);
  border-radius: 9999px;
  overflow: hidden;
}
.rv-fill {
  width: 100%;
  background: linear-gradient(180deg, #FB923C, #F97316);
  border-radius: 9999px;
  transition: height 600ms cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 16px rgba(249,115,22,0.4);
}
.rv-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: flex-start;
  z-index: 1;
}
.rv-node {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 9999px;
  background: var(--card);
  border: 4px solid var(--line);
  color: var(--mute-2);
  display: grid; place-items: center;
  transition: all 500ms cubic-bezier(0.22,1,0.36,1);
  flex-shrink: 0;
}
.rv-step.passed .rv-node {
  background: var(--o-500);
  border-color: var(--o-500);
  color: #fff;
  transform: scale(1.04);
  box-shadow: 0 8px 24px -4px rgba(249,115,22,0.5);
}
.rv-step.current .rv-node {
  background: var(--o-500);
  border-color: #fff;
  outline: 2px solid var(--o-500);
}
.rv-pulse {
  position: absolute; inset: -4px; border-radius: 9999px;
  border: 2px solid var(--o-500);
  animation: rvPulse 1.6s ease-out infinite;
  pointer-events: none;
}
@keyframes rvPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.rv-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 26px;
  transition: border-color 400ms, transform 400ms, box-shadow 400ms;
}
.rv-step.passed .rv-card {
  border-color: rgba(254,215,170,0.85);
  transform: translateX(4px);
  box-shadow: 0 12px 28px -16px rgba(249,115,22,0.25);
}
.rv-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.rv-step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--mute-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.rv-card h3 {
  margin: 4px 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rv-card h3 span {
  font-weight: 600;
  color: var(--muted);
  font-size: 16px;
}
.rv-card p {
  margin: 0;
  color: var(--ink-3);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.55;
}
@media (max-width: 720px) {
  .roadmap-v { gap: 22px; }
  .rv-step { grid-template-columns: 52px 1fr; gap: 14px; }
  .rv-node { width: 52px; height: 52px; }
  .rv-line { left: 25px; }
  .rv-card { padding: 18px 20px; border-radius: 18px; }
  .rv-card h3 { font-size: 19px; }
  .rv-card h3 span { display: block; font-size: 14px; }
}

/* ---------- Stats / Proof ---------- */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.proof {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: transform 300ms ease, border-color 300ms ease;
}
.proof:hover { transform: translateY(-4px); border-color: var(--o-200); }
.proof.big {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(160deg, #FFF7ED 0%, #FFEDD5 100%);
  border-color: rgba(254,215,170,0.8);
  padding: 36px;
}
.proof.orange {
  background: linear-gradient(140deg, #FFEDD5, #FFF7ED);
  border-color: rgba(254,215,170,0.8);
}
.proof.dark {
  grid-column: span 2;
  background: linear-gradient(160deg, #0F172A, #1E1B4B);
  border-color: rgba(255,215,0,0.2);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.proof.dark::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0057B7 0% 50%, #FFD700 50% 100%);
}
.proof-eyebrow {
  font-size: 11px; font-weight: 800; color: var(--muted);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.proof-num {
  font-size: clamp(56px, 7vw, 96px);
  font-weight: 900; letter-spacing: -0.04em;
  line-height: 1; color: var(--ink);
  font-feature-settings: "tnum" 1;
}
.proof-num.small {
  font-size: clamp(36px, 4vw, 52px);
}
.proof.big .proof-num { color: var(--o-700); }
.proof-sub {
  margin-top: 14px;
  font-size: 14.5px; color: var(--ink-3);
  font-weight: 500; line-height: 1.5;
}
.proof-bars {
  margin-top: 28px;
  display: grid; gap: 10px;
}
.proof-bar-row {
  display: grid; grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  font-size: 12px; font-weight: 700;
  color: var(--ink-2);
}
.proof-bar {
  height: 8px; background: rgba(124,45,18,0.1);
  border-radius: 9999px; overflow: hidden;
}
.proof-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #FB923C, #F97316);
  border-radius: 9999px;
  animation: barFill 1.4s cubic-bezier(0.22,1,0.36,1) both;
  transform-origin: left;
}
@keyframes barFill { from { width: 0 !important; } }

@media (max-width: 980px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof.big, .proof.dark { grid-column: span 2; }
  .proof.big { grid-row: auto; }
}
@media (max-width: 560px) {
  .proof-grid { grid-template-columns: 1fr; }
  .proof.big, .proof.dark { grid-column: span 1; }
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.trust-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 13px; font-weight: 700;
  color: var(--ink-2);
  transition: all 200ms ease;
}
.trust-pill:hover { border-color: var(--o-300); color: var(--o-700); transform: translateY(-2px); }
.trust-pill svg { color: var(--o-500); }

/* ---------- Military ---------- */
.military {
  margin: 0 16px;
  background: linear-gradient(160deg, #0F172A 0%, #1E1B4B 60%, #312E81 100%);
  border-radius: 48px;
  color: #fff;
  padding: 96px 64px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .military { padding: 64px 28px; border-radius: 36px; margin: 0 12px; } }
.flag-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0057B7 0% 50%, #FFD700 50% 100%);
}
.military h2 {
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1; margin: 0 0 24px;
  text-wrap: balance;
}
.military h2 em { font-style: normal; color: #FFD700; }
.military p { font-size: 18px; color: rgba(226,232,240,0.85); line-height: 1.6; max-width: 56ch; font-weight: 500; }

.military-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) { .military-grid { grid-template-columns: 1fr; } }

/* ---------- UA flag (replaces shield) ---------- */
.ua-flag {
  width: 240px;
  margin-bottom: 28px;
  position: relative;
  display: flex;
  justify-content: flex-start;
}
.ua-flag-inner {
  width: 200px;
  height: 130px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 22px 48px -16px rgba(0,87,183,0.45), 0 0 0 1px rgba(255,255,255,0.12);
  transform-origin: left center;
  animation: flagWave 4.5s ease-in-out infinite;
}
.ua-blue, .ua-yellow {
  position: absolute; left: 0; right: 0;
  height: 50%;
}
.ua-blue { top: 0; background: linear-gradient(180deg, #0066D9 0%, #0057B7 100%); }
.ua-yellow { bottom: 0; background: linear-gradient(180deg, #FFE100 0%, #FFD700 100%); }
.ua-shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg,
    transparent 0%, transparent 35%,
    rgba(255,255,255,0.18) 50%,
    transparent 65%, transparent 100%);
  background-size: 200% 100%;
  animation: flagShine 4.5s ease-in-out infinite;
  mix-blend-mode: overlay;
}
.ua-pole {
  position: absolute;
  left: -8px; top: -8px;
  width: 6px; height: 158px;
  background: linear-gradient(180deg, #94A3B8 0%, #475569 100%);
  border-radius: 3px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}
.ua-pole::before {
  content: "";
  position: absolute; top: -10px; left: -3px;
  width: 12px; height: 12px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #FACC15, #B45309);
  box-shadow: 0 0 12px rgba(250,204,21,0.6);
}
@keyframes flagWave {
  0%, 100% { transform: skewY(0deg) rotateY(0deg); }
  25% { transform: skewY(-1deg) rotateY(-3deg); }
  50% { transform: skewY(1deg) rotateY(0deg); }
  75% { transform: skewY(-0.5deg) rotateY(3deg); }
}
@keyframes flagShine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -50% 0; }
}

/* ---------- Reviews ---------- */
/* legacy reviews — removed; section replaced by proof-grid */

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 48px;
  display: grid; gap: 12px;
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 17px; font-weight: 700;
  color: var(--ink);
  gap: 16px;
}
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: var(--bg-2);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform 300ms ease, background 300ms ease;
  color: var(--ink);
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.22, 1, 0.36, 1), padding 300ms ease;
  padding: 0 26px;
  color: var(--ink-3);
  font-size: 15.5px; line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 360px;
  padding: 0 26px 22px;
}

/* ---------- Download / final CTA ---------- */
.download {
  margin-top: 24px;
  background: linear-gradient(160deg, var(--o-500), var(--o-400) 70%, var(--y-400));
  border-radius: 48px;
  padding: 96px 64px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) { .download { padding: 64px 28px; border-radius: 36px; } }
.download h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900; line-height: 1; letter-spacing: -0.03em;
  margin: 0 0 18px; text-wrap: balance;
}
.download p { font-size: 18px; opacity: 0.92; margin: 0 0 32px; max-width: 50ch; }
.store-row { display: flex; gap: 14px; flex-wrap: wrap; }

.store-btn-v2 {
  display: inline-flex; align-items: center; gap: 14px;
  background: #0F172A; color: #fff;
  padding: 14px 22px 14px 18px;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 220ms ease;
  box-shadow: 0 12px 32px -12px rgba(15,23,42,0.55), 0 0 0 1px rgba(255,255,255,0.06) inset;
  position: relative;
  overflow: hidden;
}
.store-btn-v2::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  background-position: 200% 0;
  transition: background-position 700ms ease;
  pointer-events: none;
}
.store-btn-v2:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 24px 48px -12px rgba(15,23,42,0.65); }
.store-btn-v2:hover::before { background-position: -50% 0; }
.store-glyph {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  color: #fff;
}
.store-text small { display: block; font-size: 11px; opacity: 0.7; font-weight: 600; letter-spacing: 0.04em; }
.store-text b { display: block; font-size: 17px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.1; margin-top: 1px; }

.dl-proof {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 18px;
  padding: 14px 22px 14px 18px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 9999px;
  color: #fff;
  flex-wrap: wrap;
  max-width: 100%;
}
.dl-proof-num {
  font-size: 28px; font-weight: 900; letter-spacing: -0.03em;
  font-feature-settings: "tnum" 1;
  line-height: 1;
  white-space: nowrap;
}
.dl-proof-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.dl-proof-text b { font-size: 13px; font-weight: 800; }
.dl-proof-text span { font-size: 11.5px; opacity: 0.85; font-weight: 600; }
.dl-proof-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.3); }
.dl-proof-tags { display: flex; gap: 14px; font-size: 12px; font-weight: 700; flex-wrap: wrap; }
.dl-proof-tags span { white-space: nowrap; opacity: 0.95; }

@media (max-width: 720px) {
  .dl-proof {
    display: flex;
    gap: 12px 14px;
    padding: 16px 18px;
    border-radius: 22px;
    width: 100%;
    box-sizing: border-box;
  }
  .dl-proof-num { font-size: 24px; flex: 0 0 auto; }
  .dl-proof-text { flex: 1 1 auto; }
  .dl-proof-text span { font-size: 11px; }
  .dl-proof-divider { display: none; }
  .dl-proof-tags {
    flex-basis: 100%;
    gap: 10px 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.22);
  }
}

.dl-glyph {
  position: absolute;
  font-size: 80px;
  opacity: 0.16;
  z-index: 1;
  filter: blur(0.4px);
  animation: dlFloat 6s ease-in-out infinite;
  pointer-events: none;
}
.dl-glyph:nth-child(2) { animation-delay: -1.5s; }
.dl-glyph:nth-child(3) { animation-delay: -3s; }
@keyframes dlFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

/* ---------- Footer ---------- */
.foot {
  padding: 64px 0 48px;
  border-top: 1px solid var(--line);
  margin-top: 80px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.foot-grid a { display: block; color: var(--ink-2); font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.foot-grid a:hover { color: var(--o-600); }
.foot-bottom {
  margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: var(--muted);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  transition: background 300ms ease, backdrop-filter 300ms ease, padding 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  padding: 10px 0;
  border-color: var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.brand .mark {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid; place-items: center;
  transform: rotate(-6deg);
  font-weight: 900;
  position: relative;
}
.brand .mark::after {
  content: "";
  position: absolute; right: -6px; top: -6px;
  width: 14px; height: 14px;
  background: var(--o-500);
  border-radius: 9999px;
  border: 2px solid var(--bg);
}
.nav-links {
  display: flex; gap: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 6px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 9999px;
  font-size: 14px; font-weight: 700; color: var(--ink-3);
  transition: background 200ms ease, color 200ms ease;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
@media (max-width: 980px) { .nav-links { display: none; } }

/* hide the desktop "Завантажити" button on narrow screens — menu-btn covers it */
@media (max-width: 720px) { .nav-row > .btn-primary { display: none; } }

/* mobile menu */
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  align-items: center; justify-content: center;
}
@media (max-width: 980px) { .menu-btn { display: inline-flex; } }
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 49;
  padding: 88px 24px 32px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(-100%);
  transition: transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 26px; font-weight: 800; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a::after {
  content: "→";
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
  transition: transform 200ms ease, color 200ms ease;
}
.mobile-menu a:hover::after,
.mobile-menu a:active::after { color: var(--o-500); transform: translateX(4px); }
.mobile-menu .btn-orange {
  width: 100%;
  margin-top: 24px !important;
  white-space: normal;
  text-align: center;
  padding: 18px 18px;
  font-size: 17px;
  border-radius: 18px;
  border-bottom: none;
}
.mobile-menu .btn-orange::after { content: none; }
@media (max-width: 480px) {
  .mobile-menu { padding: 80px 20px 28px; }
  .mobile-menu a { font-size: 22px; padding: 12px 0; }
  .mobile-menu .btn-orange { font-size: 16px; padding: 16px; }
}
@media (max-width: 360px) {
  .mobile-menu a { font-size: 20px; padding: 11px 0; }
}
/* lock body scroll while menu is open */
body:has(.mobile-menu.open) { overflow: hidden !important; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Decorative marquee strip ---------- */
.marquee {
  margin-top: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--card);
}
.marquee-track {
  display: flex; gap: 56px;
  white-space: nowrap;
  animation: scroll 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 16px; }
.marquee-track i { width: 6px; height: 6px; border-radius: 9999px; background: var(--o-500); display: inline-block; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* tag badges */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-2);
  color: var(--ink-2);
  padding: 6px 10px;
  border-radius: 9999px;
  font-size: 12px; font-weight: 700;
}

/* glass dot pattern */
.dot-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(15,23,42,0.07) 1px, transparent 1.4px);
  background-size: 18px 18px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

/* live counter card */
.countdown {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.countdown .pulse-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--g-500);
  box-shadow: 0 0 0 4px rgba(34,197,94,0.18);
  animation: pulse 1.4s ease-in-out infinite;
}
.countdown b { font-feature-settings: "tnum" 1; color: var(--o-600); }

/* mini stat tile next to demo quiz */
.stat-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
}
.stat-mini .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.stat-mini .big { font-size: 18px; font-weight: 900; color: var(--ink); letter-spacing: -0.01em; line-height: 1.1; }
.stat-mini .lbl { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }



/* ============================================================
   Legal pages (privacy / terms) — mirrors the in-app design
   ============================================================ */
.legal-page {
  --legal-bg: #FAFAFA;
  --legal-text: #0F172A;
  --legal-text-2: #1E293B;
  --legal-text-3: #334155;
  --legal-muted: #64748B;
  --legal-border: #F1F5F9;
  --legal-divider: #F1F5F9;
  --legal-subtle: #F8FAFC;
  --legal-accent: #2563EB;
  --legal-accent-soft: #EFF6FF;

  background: var(--legal-bg);
  min-height: 100vh;
  color: var(--legal-text);
}
.legal-page.legal-terms {
  --legal-accent: #7C3AED;
  --legal-accent-soft: #F5F3FF;
}

/* App-bar */
.legal-app-bar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--legal-border);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.legal-app-bar .container {
  display: flex; align-items: center; gap: 12px;
  padding-top: 14px; padding-bottom: 14px;
  max-width: 760px;
}
.legal-app-bar .back-btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--legal-text);
  border: 1px solid transparent;
  flex-shrink: 0;
  transition: background 200ms ease;
}
.legal-app-bar .back-btn:hover { background: var(--legal-subtle); }
.legal-app-bar .app-bar-title {
  font-size: 18px; font-weight: 800; color: var(--legal-text);
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}

/* Main scroll container */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* Hero */
.legal-hero {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 12px 0 24px;
}
.legal-hero .hero-icon {
  width: 64px; height: 64px;
  border-radius: 20px;
  background: var(--legal-accent-soft);
  border: 1px solid color-mix(in srgb, var(--legal-accent) 18%, transparent);
  display: grid; place-items: center;
  color: var(--legal-accent);
  margin-bottom: 16px;
}
.legal-hero .hero-icon svg { width: 32px; height: 32px; }
.legal-hero .hero-title {
  font-size: 26px; font-weight: 900; color: var(--legal-text);
  line-height: 1.15; letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.legal-hero .hero-subtitle {
  font-size: 13px; font-weight: 600; color: var(--legal-muted);
  margin: 0;
}

/* Meta card */
.legal-meta-card {
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--legal-border);
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  padding: 16px;
  margin-top: 24px;
}
.legal-meta-row {
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.legal-meta-row .meta-icon {
  width: 32px; height: 32px;
  border-radius: 12px;
  background: var(--legal-subtle);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.legal-meta-row .meta-icon svg { width: 16px; height: 16px; }
.legal-meta-row .meta-icon.ic-tag    { color: #2563EB; }
.legal-meta-row .meta-icon.ic-event  { color: #059669; }
.legal-meta-row .meta-icon.ic-check  { color: #4F46E5; }
.legal-meta-row .meta-label {
  flex: 1; min-width: 0;
  font-size: 13.5px; font-weight: 700; color: var(--legal-muted);
}
.legal-meta-row .meta-value {
  font-size: 13.5px; font-weight: 600; color: var(--legal-text-2);
  text-align: right;
}
.legal-meta-row .meta-value.badge {
  font-weight: 800;
  background: var(--legal-border);
  color: var(--legal-text-2);
  padding: 4px 10px;
  border-radius: 8px;
}
.legal-meta-divider {
  height: 1px; background: var(--legal-divider);
  margin: 12px 0;
}

/* Body */
.legal-body { padding-top: 8px; }

.legal-section {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 28px 0 16px;
}
.legal-section .num-badge {
  width: 32px; height: 32px;
  border-radius: 9999px;
  background: var(--legal-accent);
  color: #fff;
  font-size: 15px; font-weight: 900;
  display: grid; place-items: center;
  margin-top: 2px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--legal-accent) 30%, transparent);
}
.legal-section h2 {
  font-size: 21px; font-weight: 900; color: var(--legal-text);
  line-height: 1.25; letter-spacing: -0.015em;
  margin: 0;
  flex: 1; min-width: 0;
}

.legal-subheading {
  font-size: 16px; font-weight: 800; color: var(--legal-text-2);
  margin: 16px 0 8px;
}

.legal-lead {
  background: color-mix(in srgb, var(--legal-accent) 6%, transparent);
  border-left: 4px solid var(--legal-accent);
  border-radius: 0 10px 10px 0;
  padding: 10px 12px 10px 14px;
  margin: 0 0 14px;
  font-size: 15px; font-weight: 500; color: var(--legal-text-3);
  line-height: 1.55;
}

.legal-paragraph {
  font-size: 15px; font-weight: 500; color: var(--legal-text-3);
  line-height: 1.55;
  margin: 0 0 12px;
}

.legal-bullet {
  display: flex; gap: 8px;
  padding-left: 8px;
  margin: 0 0 8px;
  font-size: 15px; font-weight: 500; color: var(--legal-text-3);
  line-height: 1.55;
}
.legal-bullet::before {
  content: "•";
  flex-shrink: 0;
  color: var(--legal-text-3);
}

.legal-body a {
  color: var(--legal-accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2.5px;
  word-break: break-word;
}

@media (max-width: 480px) {
  .legal-content { padding: 16px 16px 32px; }
  .legal-hero { padding: 8px 0 16px; }
  .legal-hero .hero-icon { width: 56px; height: 56px; border-radius: 18px; }
  .legal-hero .hero-icon svg { width: 28px; height: 28px; }
  .legal-hero .hero-title { font-size: 22px; }
  .legal-meta-card { padding: 14px; border-radius: 20px; }
  .legal-section .num-badge { width: 28px; height: 28px; font-size: 13px; }
  .legal-section h2 { font-size: 19px; }
  .legal-app-bar .container { padding-top: 10px; padding-bottom: 10px; }
  .legal-app-bar .app-bar-title { font-size: 16px; }
}
@media (max-width: 360px) {
  .legal-meta-row .meta-label { font-size: 12.5px; }
  .legal-meta-row .meta-value { font-size: 12.5px; }
  .legal-section h2 { font-size: 17px; }
  .legal-paragraph, .legal-bullet, .legal-lead { font-size: 14px; }
}

/* ============================================================
   Mobile responsiveness fixes (≤480px / iPhone SE→14 Pro Max)
   ============================================================ */
@media (max-width: 480px) {
  /* Hero floating chips — shrink + clamp inside viewport */
  .float-chip {
    padding: 6px 10px;
    border-radius: 14px;
    gap: 8px;
    box-shadow: 0 12px 22px -14px rgba(15,23,42,0.22), 0 1px 4px rgba(15,23,42,0.04);
  }
  .float-chip .chip-icon { width: 26px; height: 26px; border-radius: 8px; }
  .float-chip .chip-icon svg { width: 14px; height: 14px; }
  .float-chip .chip-value { font-size: 12px; }
  .float-chip .chip-label { font-size: 9px; letter-spacing: 0.03em; }

  /* clamp negative offsets so chips stay on-screen */
  .float-chip[style*="left: -"]  { left: 4px !important; }
  .float-chip[style*="right: -"] { right: 4px !important; }

  /* Gamification — flame counter block: wrap, shrink */
  .night { padding: 56px 18px !important; margin: 0 8px !important; }
  .night .container { padding: 0 !important; }
  .night-grid { gap: 28px; }

  .gami-cards { gap: 12px; }
  .gami-card { padding: 18px; border-radius: 20px; }
  .gami-card .num { font-size: 32px; }
  .gami-card .lbl { font-size: 11px; }
  .gami-card.accent { padding: 16px; }
  .gami-card.accent [style*="font-size: 26px"] { font-size: 20px !important; }
  .gami-card.accent [style*="width: 56px"] { width: 44px !important; height: 44px !important; }
  .gami-card.accent [style*="font-size: 28px"] { font-size: 22px !important; }

  /* shrink the flame stats pill so it fits */
  .night [style*="padding: 20px 26px"] {
    padding: 16px 18px !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    width: 100%;
    box-sizing: border-box;
  }
  .night [style*="font-size: 44px"] { font-size: 30px !important; }
  .night [style*="paddingLeft: 24px"], .night [style*="padding-left: 24px"] {
    padding-left: 14px !important;
  }
}

/* Very small screens (≤360px — older Android, iPhone SE 1st gen) */
@media (max-width: 360px) {
  .gami-cards { grid-template-columns: 1fr; }
  .gami-card.accent { grid-column: span 1; }
  .float-chip .chip-value { font-size: 11px; }
  .float-chip .chip-label { font-size: 8px; }
}
