/* IQ Bear marketing site. Palette = the app's design tokens (web/src/design/tokens.css), light theme only. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/nunito-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/nunito-800.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/fonts/nunito-900.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --violet: #7b3fe4;
  --violet-edge: #5a22c2;
  --violet-ink: #6d2fdc;
  --violet-deep: #2e1065;
  --violet-night: #22094f;
  --violet-tint: #f2ebff;
  --violet-soft: #c29bf8;
  --violet-line: #dccbff;
  --lavender: #e2d4ff;
  --ink: #262626;
  --ink-2: #5e5e5e;
  --line: #e5e5e5;
  --line-edge: #d4d4d4;
  --surface-2: #f7f7f7;
  --xp: #fcb40a;
  --xp-tint: #fff6d1;
  --xp-ink: #9c6200;
  --flame: #ff7a1a;
  --flame-ink: #b84a00;
  --success-ink: #077a57;
  --memory: #e0457b;
  --memory-ink: #b42a5d;
  --memory-tint: #fde5ee;
  --logic: #f59e0b;
  --logic-ink: #956009;
  --logic-tint: #fff1d6;
  --focus: #2f7bf5;
  --focus-ink: #1d5bc7;
  --focus-tint: #e4edff;
  --math: #12a8a0;
  --math-ink: #08716c;
  --math-tint: #dcf5f3;
  --relax-ink: #b03a2a;
  --relax-tint: #ffe7e2;

  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--violet-ink);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--violet-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 720px) {
  :root {
    --gutter: 28px;
  }
}

/* ---------- Buttons (3D edge, like the app) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border: 2px solid transparent;
  border-radius: var(--r-md);
  font: 900 0.98rem/1.1 var(--font);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease), background-color 120ms;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: translateY(4px);
}
.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 4px 0 var(--violet-edge);
}
.btn--primary:hover {
  background: #8650ec;
}
.btn--primary:active {
  box-shadow: 0 0 0 var(--violet-edge);
}
.btn--secondary {
  background: #fff;
  color: var(--violet-ink);
  border-color: var(--line);
  box-shadow: 0 4px 0 var(--line-edge);
}
.btn--secondary:hover {
  background: var(--surface-2);
}
.btn--secondary:active {
  box-shadow: 0 0 0 var(--line-edge);
}
.btn--white {
  background: #fff;
  color: var(--violet-ink);
  box-shadow: 0 4px 0 #c9b3f5;
}
.btn--white:hover {
  background: #faf7ff;
}
.btn--white:active {
  box-shadow: 0 0 0 #c9b3f5;
}
.btn--sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 14px;
}
.btn--block {
  width: 100%;
}
.btn svg {
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--violet);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand img {
  width: 42px;
  height: 42px;
}
.nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.nav a {
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ink-2);
  font-weight: 800;
  text-decoration: none;
}
.nav a:hover {
  color: var(--violet-ink);
  background: var(--violet-tint);
}
.site-header .btn {
  margin-left: auto;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
  .site-header .btn {
    margin-left: 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 16px 0 40px;
}
.hero .wrap {
  display: grid;
  gap: 20px;
  align-items: center;
}
.hero__art {
  position: relative;
  /* small enough that both hero buttons fit in the first screen on phones */
  width: min(250px, 62vw, 30svh);
  aspect-ratio: 1;
  margin: 0 auto;
}
.hero__blob {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #efe4ff 0%, #e4d3ff 55%, rgba(228, 211, 255, 0) 72%);
}
.hero__bear {
  position: absolute;
  inset: 4% 4% 4% 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
  animation: float 6s ease-in-out infinite alternate;
}
.orbit {
  position: absolute;
  width: 16%;
  aspect-ratio: 1;
  animation: float 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 10px rgba(46, 16, 101, 0.16));
}
.orbit img {
  width: 100%;
  height: 100%;
}
.orbit--1 { left: 0; top: 10%; animation-delay: -1s; }
.orbit--2 { right: 1%; top: 2%; animation-delay: -2.5s; width: 14%; }
.orbit--3 { right: -2%; bottom: 22%; animation-delay: -3.5s; }
.orbit--4 { left: 4%; bottom: 6%; animation-delay: -0.5s; width: 14%; }
.orbit--5 { left: 40%; top: -4%; width: 11%; animation-delay: -2s; }
.orbit--6 { right: 22%; bottom: -2%; width: 12%; animation-delay: -4s; }
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}
.hero__copy {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.35rem + 4vw, 3.9rem);
  font-weight: 900;
  color: var(--violet-deep);
}
.hero h1 .accent {
  display: block;
  color: var(--violet);
}
.hero__lead {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
}
.hero__ctas {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  margin: 22px auto 0;
}
.hero__note {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  .hero {
    padding: 56px 0 72px;
  }
  .hero .wrap {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
  .hero__art {
    width: min(440px, 100%, 62vh);
  }
  .hero__copy {
    margin: 0;
  }
}

/* ---------- Facts strip ---------- */
.facts {
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
.facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.facts img {
  width: 40px;
  height: 40px;
  flex: none;
}
.facts strong {
  display: block;
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--violet-deep);
  line-height: 1.1;
}
.facts span {
  display: block;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.2;
}
@media (min-width: 760px) {
  .facts ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px 0;
  }
  .facts img {
    width: 48px;
    height: 48px;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}
.section--tint {
  background: var(--violet-tint);
}
.section--gray {
  background: var(--surface-2);
}
.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 36px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--violet-ink);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  font-weight: 900;
  color: var(--violet-ink);
}
.section__lead {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: clamp(1.04rem, 1rem + 0.3vw, 1.2rem);
}
@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
  .section__head {
    margin-bottom: 52px;
  }
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 var(--line);
  padding: 20px 22px 24px;
  text-align: center;
}
.step img {
  width: 150px;
  height: 150px;
  margin: 0 auto 8px;
}
.step__num {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 3px 0 var(--violet-edge);
}
.step h3 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--violet-deep);
}
.step p {
  margin-top: 8px;
  color: var(--ink-2);
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .step img {
    width: 170px;
    height: 170px;
  }
}

/* ---------- Skills ---------- */
.skills {
  display: grid;
  gap: 18px;
}
.skill {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 var(--line);
  padding: 22px;
}
.skill__top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.skill__icon {
  width: 60px;
  height: 60px;
  flex: none;
}
.skill h3 {
  font-size: 1.5rem;
  font-weight: 900;
}
.skill__tag {
  font-weight: 800;
  color: var(--ink);
}
.skill > p {
  margin-top: 12px;
  color: var(--ink-2);
}
.games {
  list-style: none;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 2px dashed var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.games li {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink-2);
}
.games img {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
}
.skill--memory h3 { color: var(--memory-ink); }
.skill--logic h3 { color: var(--logic-ink); }
.skill--focus h3 { color: var(--focus-ink); }
.skill--math h3 { color: var(--math-ink); }
.skill--memory { border-color: #f6c6d7; box-shadow: 0 4px 0 #f6c6d7; }
.skill--logic { border-color: #fbdca5; box-shadow: 0 4px 0 #fbdca5; }
.skill--focus { border-color: #c4d8fc; box-shadow: 0 4px 0 #c4d8fc; }
.skill--math { border-color: #b2e6e2; box-shadow: 0 4px 0 #b2e6e2; }
.puzzles {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: #fff;
  border: 2px solid #ffd2c9;
  text-align: center;
}
.puzzles p {
  font-weight: 800;
  color: var(--ink);
  max-width: 34em;
}
.puzzles__icons {
  display: flex;
  gap: 8px;
}
.puzzles__icons img {
  width: 46px;
  height: 46px;
}
@media (min-width: 760px) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .skill {
    padding: 26px 28px;
  }
}

/* ---------- Feature rows (alternating, Duolingo style) ---------- */
.feature {
  display: grid;
  gap: 36px;
  align-items: center;
}
.feature__copy h2 {
  margin-top: 0;
}
.feature__copy .section__lead {
  margin-top: 16px;
}
.points {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.points li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: start;
}
.points img {
  width: 52px;
  height: 52px;
}
.points strong {
  display: block;
  font-weight: 900;
  font-size: 1.12rem;
  color: var(--violet-deep);
}
.points span {
  color: var(--ink-2);
}
.medals {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.medals img {
  width: 56px;
  height: 56px;
}
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .feature--rev .feature__media {
    order: 2;
  }
}

/* ---------- Phone frames ---------- */
.phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 0 18px;
}
.phone {
  margin: 0;
  width: clamp(148px, 41vw, 272px);
  padding: 7px;
  border-radius: 34px;
  background: #17151c;
  box-shadow: 0 24px 48px -16px rgba(46, 16, 101, 0.35), 0 2px 0 #000 inset;
  flex: none;
}
.phone img {
  width: 100%;
  border-radius: 27px;
  background: #fff;
}
.phones .phone:first-child {
  transform: rotate(-3deg);
  z-index: 2;
}
.phones .phone + .phone {
  margin-left: -18px;
  margin-top: 46px;
  transform: rotate(3deg);
}
.phones__bear {
  position: absolute;
  z-index: 3;
  width: clamp(96px, 26vw, 150px);
  right: max(0px, calc(50% - 290px));
  bottom: -34px;
  filter: drop-shadow(0 10px 14px rgba(46, 16, 101, 0.18));
}
.phones--single .phone {
  width: clamp(210px, 60vw, 290px);
  transform: rotate(-2deg);
}
.phones__bear--left {
  right: auto;
  left: max(0px, calc(50% - 290px));
}
.chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 10px 24px -8px rgba(46, 16, 101, 0.25);
  font-weight: 900;
  color: var(--violet-deep);
  font-size: 0.95rem;
  white-space: nowrap;
}
.chip img {
  width: 30px;
  height: 30px;
}
.chip--tl {
  left: max(0px, calc(50% - 300px));
  top: 18%;
}
.chip--tr {
  right: max(0px, calc(50% - 290px));
  top: -8px;
}
@media (min-width: 900px) {
  .phone {
    padding: 9px;
    border-radius: 42px;
  }
  .phone img {
    border-radius: 33px;
  }
  .phones .phone + .phone {
    margin-left: -28px;
    margin-top: 64px;
  }
}

/* ---------- Leagues band ---------- */
.band {
  background: radial-gradient(120% 90% at 85% 0%, #5b25c7 0%, var(--violet-deep) 55%, var(--violet-night) 100%);
  color: #fff;
}
.band h2 {
  color: #fff;
}
.band .eyebrow {
  color: var(--lavender);
}
.band .section__lead,
.band .points span {
  color: var(--lavender);
}
.band .points strong {
  color: #fff;
}
.band .phone {
  background: #0d0420;
}
.tiers {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  max-width: 460px;
}
.tiers li {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lavender);
}
@media (max-width: 480px) {
  .tiers li {
    font-size: 0.66rem;
    letter-spacing: 0.01em;
  }
}
.tiers img {
  width: 100%;
  max-width: 76px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

/* ---------- Plans ---------- */
.plans {
  display: grid;
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}
.plan {
  position: relative;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 5px 0 var(--line);
  padding: 28px 24px;
}
.plan--plus {
  border-color: var(--violet);
  box-shadow: 0 5px 0 var(--violet-edge);
  background: linear-gradient(180deg, #faf6ff 0%, #fff 40%);
}
.plan__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.plan__head img {
  width: 64px;
  height: 64px;
  flex: none;
}
.plan h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--violet-deep);
}
.plan__sub {
  color: var(--ink-2);
  font-size: 1rem;
}
.badge {
  position: absolute;
  top: -15px;
  right: 22px;
  background: var(--xp);
  color: #3d2700;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 0 #d48f00;
}
.ticks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 34px;
  font-weight: 700;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ddf7ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23077a57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/18px no-repeat;
}
.plan--plus .ticks li::before {
  background-color: var(--violet-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d2fdc' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E");
}
.plan .btn {
  margin-top: 24px;
}
.price-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.price-note strong {
  color: var(--violet-deep);
}
@media (min-width: 820px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .plan {
    padding: 32px 32px 30px;
  }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}
.faq details {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 3px 0 var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--violet-deep);
  min-height: 56px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  margin-left: auto;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--violet-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d2fdc' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/16px no-repeat;
  transition: transform 200ms var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details > div {
  padding: 0 20px 20px;
  color: var(--ink-2);
}
.faq details > div p + p {
  margin-top: 10px;
}
.faq__bear {
  width: 130px;
  margin: 0 auto 8px;
}

/* ---------- Final CTA ---------- */
.cta {
  background: var(--violet);
  color: #fff;
  overflow: hidden;
}
.cta .wrap {
  display: grid;
  gap: 18px;
  align-items: center;
  text-align: center;
  padding-top: 56px;
  padding-bottom: 56px;
}
.cta img {
  width: min(260px, 64vw);
  margin: 0 auto;
  filter: drop-shadow(0 18px 24px rgba(34, 9, 79, 0.35));
}
.cta h2 {
  font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem);
  font-weight: 900;
  color: #fff;
}
.cta p {
  margin: 14px auto 0;
  max-width: 32em;
  color: #f2ebff;
  font-size: 1.15rem;
}
.cta__btns {
  display: grid;
  gap: 14px;
  width: min(100%, 360px);
  margin: 28px auto 0;
}
@media (min-width: 900px) {
  .cta .wrap {
    grid-template-columns: 0.8fr 1.2fr;
    text-align: left;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .cta img {
    width: 340px;
  }
  .cta p {
    margin-left: 0;
  }
  .cta__btns {
    margin-left: 0;
  }
}

/* ---------- Store button ---------- */
.store {
  background: #111;
  color: #fff;
  box-shadow: 0 4px 0 #000;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 800;
  font-size: 1rem;
  gap: 12px;
}
.store:hover {
  background: #222;
}
.store:active {
  box-shadow: 0 0 0 #000;
}
.store small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.store span {
  text-align: left;
  line-height: 1.15;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--violet-night);
  color: var(--lavender);
  padding: 48px 0 32px;
  font-size: 0.98rem;
}
.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer__grid {
  display: grid;
  gap: 28px;
}
.footer__brand p {
  margin-top: 10px;
  max-width: 24em;
}
.footer__brand .brand {
  color: #fff;
}
.site-footer h2 {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet-soft);
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.footer__legal {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(226, 212, 255, 0.22);
  font-size: 0.85rem;
  color: #cbb8f2;
}
.footer__legal p + p {
  margin-top: 6px;
}
@media (min-width: 760px) {
  .footer__grid {
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
  }
}

/* ---------- Toast (store link placeholder) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 140%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 20px;
  border-radius: 16px;
  background: var(--violet-deep);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 32px -10px rgba(34, 9, 79, 0.5);
  transition: transform 260ms var(--ease);
}
.toast.is-on {
  transform: translate(-50%, 0);
}

/* ---------- Legal + 404 pages ---------- */
.doc {
  padding: 40px 0 72px;
}
.doc .wrap {
  max-width: 820px;
}
.doc__hero {
  display: flex;
  gap: 16px;
  align-items: center;
}
.doc__hero img {
  width: 88px;
  height: 88px;
  flex: none;
}
.doc h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem);
  font-weight: 900;
  color: var(--violet-deep);
}
.doc__meta {
  color: var(--ink-2);
  margin-top: 4px;
}
.draft {
  margin: 24px 0 8px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--xp-tint);
  border: 2px solid #f6d98a;
  color: #5c3b00;
  font-weight: 800;
}
.doc h2 {
  margin: 36px 0 10px;
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--violet-ink);
}
.doc h3 {
  margin: 22px 0 6px;
  font-size: 1.12rem;
  font-weight: 900;
  color: var(--violet-deep);
}
.doc p,
.doc li {
  color: #3d3d3d;
}
.doc p + p {
  margin-top: 10px;
}
.doc ul {
  padding-left: 1.3em;
  margin: 10px 0;
}
.doc li + li {
  margin-top: 6px;
}
.summary-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--violet-tint);
  border: 2px solid var(--violet-line);
}
.summary-box ul {
  margin: 8px 0 0;
}
.table-wrap {
  overflow-x: auto;
  margin: 12px 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 2px solid var(--line);
}
.doc th {
  color: var(--violet-deep);
  font-weight: 900;
  background: var(--surface-2);
}
.lost {
  padding: 48px 0 80px;
  text-align: center;
}
.lost img {
  width: min(260px, 66vw);
  margin: 0 auto;
}
.lost h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
  font-weight: 900;
  color: var(--violet-deep);
}
.lost p {
  margin: 12px auto 0;
  max-width: 30em;
  color: var(--ink-2);
  font-size: 1.15rem;
}
.lost .btn {
  margin-top: 28px;
}
.lost__code {
  color: var(--violet-ink);
  font-weight: 900;
  letter-spacing: 0.12em;
}

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