/* Nimble Nook website: one stylesheet for every page. Colours mirror the app's Palette. */

@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../assets/fonts/nunito.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --bg: #faf7f0;
  --dots: #e8e2d6;
  --surface: #ffffff;
  --ink: #1f1f24;
  --muted: #676c78;
  --line: #ebe5d8;
  --forest: #254e48;
  --forest-2: #397568;
  --forest-3: #4b8b77;
  --orange: #f7a35c;
  --gold: #ffc233;
  --yellow: #f8c85c;
  --cyan: #a8dde6;
  --blue: #9db7f5;
  --red: #f57f73;
  --pink: #f2aecb;
  --green: #afd27a;
  --purple: #cda8f5;
  --radius: 26px;
  --shadow: 0 10px 30px rgba(31, 31, 36, 0.08);
  --shadow-lift: 0 22px 44px rgba(31, 31, 36, 0.14);
  --display: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--forest-2); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1160px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 20;
}
.skip:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 247, 240, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] { background: var(--surface); box-shadow: var(--shadow); }
.nav .nav-cta {
  background: var(--ink);
  color: #fff;
  margin-left: 6px;
}
.nav .nav-cta:hover { background: var(--forest); color: #fff; }

/* Mobile menu: a <details> element, so it works without JavaScript. */
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.menu summary::-webkit-details-marker { display: none; }
.menu .bars,
.menu .bars::before,
.menu .bars::after {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.menu .bars { position: relative; }
.menu .bars::before,
.menu .bars::after { content: ""; position: absolute; left: 0; }
.menu .bars::before { top: -7px; }
.menu .bars::after { top: 7px; }
.menu[open] .bars { background: transparent; }
.menu[open] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu[open] .bars::after { transform: translateY(-7px) rotate(-45deg); }
.menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(260px, calc(100vw - 32px));
  display: grid;
  gap: 2px;
  padding: 10px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-lift);
  animation: drop 0.22s ease-out;
}
.menu nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
}
.menu nav a:hover { background: var(--bg); }

@keyframes drop {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 900;
  font-size: 1rem;
  text-decoration: none;
  padding: 15px 24px;
  border-radius: 18px;
  transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.2s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12), 0 14px 24px rgba(0, 0, 0, 0.16);
}
.btn-primary:hover { color: var(--ink); }
.btn-primary .play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
}
.btn-ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */

.hero { padding: 36px 0 12px; }
.hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 40px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.14), transparent 40%),
    linear-gradient(125deg, var(--forest), var(--forest-2) 55%, var(--forest-3));
  box-shadow: 0 30px 60px rgba(37, 78, 72, 0.3);
}

/* Floating puzzle pieces behind the hero content. */
.floaters { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.floaters span {
  position: absolute;
  opacity: 0.9;
  animation: float 7s ease-in-out infinite;
}
.f-tile {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--yellow);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15), inset 0 6px 0 rgba(255, 255, 255, 0.35);
}
.f-ring {
  width: 54px; height: 54px; border-radius: 50%;
  border: 11px solid var(--pink);
}
.f-tri {
  width: 0; height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-bottom: 44px solid var(--cyan);
}
.f-star { font-size: 34px; color: var(--gold); line-height: 1; }
.f-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--green); }
.floaters .a { top: 7%; left: 47%; animation-delay: -1s; }
.floaters .b { bottom: 5%; right: 3%; animation-delay: -3s; }
.floaters .c { bottom: 7%; left: 50%; animation-delay: -2s; }
.floaters .d { top: 5%; right: 4%; animation-delay: -4s; }
.floaters .e { bottom: 4%; left: 3%; animation-delay: -5s; }
.floaters .f { top: 44%; left: 52%; animation-delay: -6s; background: var(--purple); width: 30px; height: 30px; border-radius: 9px; }

@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -16px; rotate: 10deg; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  font-size: 0.7rem;
  letter-spacing: 0;
}
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.02;
}
/* "Big happy" set in little candy tiles. */
/* Each word stays on one line; the two words may wrap onto separate lines. */
.tiles { display: inline-flex; flex-wrap: wrap; gap: 0.12em 0.32em; margin: 0.08em 0; font-size: 0.86em; }
.tiles .word { display: inline-flex; gap: 0.07em; white-space: nowrap; }
.tiles i {
  font-style: normal;
  display: inline-grid;
  place-items: center;
  min-width: 0.95em;
  height: 1.05em;
  padding: 0 0.06em;
  border-radius: 0.2em;
  color: var(--ink);
  background: var(--c);
  box-shadow: inset 0 -0.09em 0 rgba(0, 0, 0, 0.16), inset 0 0.08em 0 rgba(255, 255, 255, 0.45);
  transform: rotate(var(--r, 0deg));
  animation: pop 0.6s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(0.4em) rotate(0deg) scale(0.6); }
}
.hero .lead {
  margin: 20px 0 28px;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  max-width: 36ch;
  opacity: 0.93;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero .badges li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 800;
  font-size: 0.88rem;
}

/* Phone mockup with the app icon peeking out. */
.device-stage {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
  padding: 10px 0 20px;
}
.phone {
  position: relative;
  aspect-ratio: 9 / 18.5;
  border-radius: 42px;
  padding: 11px;
  background: #15171c;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 2px #2c3038;
  transform: rotate(5deg);
  animation: bob 6s ease-in-out infinite;
}
.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  translate: -50% 0;
  width: 70px;
  height: 7px;
  border-radius: 6px;
  background: #2c3038;
  z-index: 2;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 32px;
}
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.device-stage .app-icon {
  position: absolute;
  left: -12%;
  bottom: 6%;
  width: 40%;
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.35));
  transform: rotate(-10deg);
  animation: float 8s ease-in-out infinite;
}
.bubble {
  position: absolute;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
  z-index: 3;
}
.bubble.one { top: 10%; left: -18%; transform: rotate(-7deg); animation: float 6s ease-in-out infinite; }
.bubble.two { top: 46%; right: -14%; transform: rotate(6deg); animation: float 7s ease-in-out -2s infinite; }

/* ---------- Ribbon ---------- */

.ribbon {
  margin: 28px 0 8px;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  transform: rotate(-1.5deg);
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon ul {
  display: flex;
  gap: 40px;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: scroll 50s linear infinite;
}
.ribbon:hover ul { animation-play-state: paused; }
.ribbon li {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  white-space: nowrap;
}
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: 22px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.stat .dot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  font-size: 1.35rem;
  flex: none;
  transform: rotate(-6deg);
}
.stat strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.9rem; font-weight: 700; }

/* ---------- Sections ---------- */

section { padding: clamp(48px, 8vw, 88px) 0; }
.section-head { max-width: 660px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(31, 31, 36, 0.06);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-2);
}
.section-head h2,
.legal h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.08;
}
.section-head p { margin: 0; color: var(--muted); font-size: 1.1rem; }
.squiggle {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%);
  padding: 0 0.1em;
}

/* ---------- Bento features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(170px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s;
}
.tile:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
.tile h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.2; }
.tile p { margin: 0; color: var(--muted); }
.tile .emoji {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-size: 1.7rem;
  margin-bottom: 16px;
}
.tile.wide { grid-column: span 4; }
.tile.narrow { grid-column: span 2; }
.tile.half { grid-column: span 3; }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark p { color: rgba(255, 255, 255, 0.72); }
.tile.green { background: linear-gradient(140deg, #e6f5d0, #c4e3a0); }
.tile.peach { background: linear-gradient(140deg, #ffe7d6, #ffc7a8); }
.tile.sky { background: linear-gradient(140deg, #e3efff, #bcd3fb); }
.tile.lilac { background: linear-gradient(140deg, #f1e6ff, #d6bff7); }
.tile.green p, .tile.peach p, .tile.sky p, .tile.lilac p { color: rgba(31, 31, 36, 0.72); }

/* Star meter inside the "quick" tile. */
.meter { display: flex; gap: 8px; margin-top: 18px; }
.meter span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.1);
}
.meter span.on { background: var(--gold); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); }

/* Ten level bars inside the difficulty tile. */
.levels { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 18px; }
.levels i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: var(--forest-3);
  opacity: calc(0.35 + var(--h-n) * 0.065);
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  background: var(--c);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14), 0 6px 12px rgba(0, 0, 0, 0.08);
  transform: rotate(-6deg);
}
.steps h3 { margin: 8px 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Game grid ---------- */

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.legend li {
  background: var(--surface);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 0.92rem;
  box-shadow: 0 2px 8px rgba(31, 31, 36, 0.06);
}
.legend li b { color: var(--muted); font-weight: 800; margin-left: 4px; }

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.game {
  position: relative;
  min-height: 168px;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.55), transparent 45%),
    linear-gradient(140deg, var(--a), var(--b));
  box-shadow: 0 6px 16px rgba(31, 31, 36, 0.08);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s;
}
.game:nth-child(odd):hover { transform: translateY(-6px) rotate(-1.5deg); }
.game:nth-child(even):hover { transform: translateY(-6px) rotate(1.5deg); }
.game:hover { box-shadow: var(--shadow-lift); }
.game .glyph {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 6px 14px rgba(31, 31, 36, 0.1);
  font-size: 1.6rem;
  transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1);
}
.game:hover .glyph { transform: rotate(-12deg) scale(1.1); }
.game .cat {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.game h3 { margin: auto 0 2px; padding-top: 34px; font-family: var(--display); font-weight: 600; font-size: 1.18rem; line-height: 1.2; }
.game p { margin: 0; font-size: 0.9rem; color: rgba(31, 31, 36, 0.72); }

/* ---------- Showcase ---------- */

.showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  align-items: center;
}
.shot { margin: 0; }
.shot img {
  border-radius: 24px;
  border: 8px solid var(--surface);
  box-shadow: var(--shadow-lift);
}
.shot.tilt-l img { transform: rotate(-1.5deg); }
.shot.tilt-r img { transform: rotate(2deg); }
.shot figcaption { margin-top: 14px; color: var(--muted); font-weight: 700; font-size: 0.95rem; text-align: center; }

/* ---------- Languages ---------- */

.hellos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hellos li {
  position: relative;
  min-width: 128px;
  text-align: center;
  background: var(--c, var(--surface));
  border-radius: 22px 22px 22px 6px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg));
  transition: transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.hellos li:hover { transform: rotate(0deg) scale(1.06); }
.hellos li[dir="rtl"] { border-radius: 22px 22px 6px 22px; }
.hellos strong { display: block; font-family: var(--display); font-size: 1.45rem; font-weight: 600; line-height: 1.3; }
.hellos small { color: rgba(31, 31, 36, 0.62); font-weight: 800; font-size: 0.8rem; }
.note { color: var(--muted); font-size: 0.95rem; margin: 22px auto 0; text-align: center; max-width: 640px; }

/* ---------- Privacy promise ---------- */

.promise {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--surface);
  border-radius: 36px;
  padding: clamp(26px, 5vw, 52px);
  box-shadow: var(--shadow);
}
.promise::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid #eef7e6;
  z-index: 0;
}
.promise > * { position: relative; z-index: 1; }
.promise .shield {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 32px;
  background: linear-gradient(140deg, #e6f5d0, #b8de8f);
  font-size: 3.2rem;
  transform: rotate(-6deg);
}
.promise h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
.promise p { margin: 0 0 14px; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.checks li { background: #eef7e6; border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 0.88rem; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details {
  background: var(--surface);
  border-radius: 20px;
  padding: 4px 22px;
  box-shadow: 0 2px 10px rgba(31, 31, 36, 0.05);
  transition: box-shadow 0.2s;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 800;
  padding: 16px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 1.2rem;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--yellow); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-radius: 40px;
  padding: clamp(40px, 7vw, 76px) 24px;
  color: #fff;
  background: linear-gradient(125deg, var(--forest), var(--forest-3));
}
.cta img {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.3));
  animation: bob 5s ease-in-out infinite;
}
.cta h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; }
.cta p { margin: 0 0 28px; opacity: 0.9; font-size: 1.1rem; }

/* ---------- Legal pages ---------- */

.legal { padding: clamp(28px, 6vw, 56px) 0 64px; }
.legal-hero {
  max-width: 860px;
  margin: 0 auto 22px;
  text-align: center;
}
.legal-hero .emoji {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 2.2rem;
  background: var(--c);
  transform: rotate(-6deg);
  margin-bottom: 12px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.1);
}
.legal .updated { color: var(--muted); margin: 0; font-weight: 800; }
.legal .paper {
  max-width: 860px;
  margin-inline: auto;
  background: var(--surface);
  border-radius: 32px;
  padding: clamp(22px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  margin: 38px 0 8px;
  scroll-margin-top: 96px;
}
.legal h2:first-of-type { margin-top: 28px; }
.legal p,
.legal li { color: #3b3e47; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.summary-box {
  background: #f1f7ec;
  border-radius: 22px;
  padding: 20px 24px;
  margin: 0 0 18px;
}
.summary-box p { margin: 0 0 8px; }
.summary-box ul { margin: 0; }
.toc-box {
  background: var(--bg);
  border-radius: 22px;
  padding: 18px 24px;
  margin: 18px 0 0;
}
.toc-box p { margin: 0 0 6px; font-weight: 900; }
.toc {
  columns: 2;
  column-gap: 32px;
  padding-left: 1.3em;
  margin: 0;
}
.toc li { break-inside: avoid; }
.data-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
}
.data-table th { background: var(--bg); font-weight: 900; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.contact-card {
  display: grid;
  gap: 2px;
  background: var(--bg);
  border-radius: 20px;
  padding: 18px 22px;
  margin-top: 10px;
}
.contact-card strong { font-size: 1.05rem; }
.contact-card span,
.contact-card a { color: #3b3e47; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 44px 0 40px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand img { width: 46px; height: 46px; border-radius: 14px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.04em; }
.footer-brand p { margin: 4px 0 0; }
.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.site-footer a { color: rgba(255, 255, 255, 0.86); text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.wide, .tile.narrow, .tile.half { grid-column: span 1; }
  .tile.wide:first-child { grid-column: span 2; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .menu { display: block; }
  .hero-card { grid-template-columns: 1fr; text-align: left; }
  /* Single column: keep only the floaters that sit in clear corners. */
  .floaters .a,
  .floaters .c,
  .floaters .f { display: none; }
  .device-stage { width: min(72%, 280px); margin-top: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .showcase { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 18px; }
  .hero-card { border-radius: 30px; }
  .hero .actions .btn { flex: 1 1 100%; }
  .bubble.one { left: -6%; }
  .bubble.two { right: -4%; }
  .device-stage .app-icon { left: -6%; }
  .bento { grid-template-columns: 1fr; }
  .tile.wide:first-child { grid-column: span 1; }
  .stats { gap: 10px; }
  .stat { padding: 12px; gap: 10px; }
  .stat .dot { width: 38px; height: 38px; font-size: 1.1rem; }
  .stat strong { font-size: 1.35rem; }
  .games { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game { min-height: 150px; padding: 14px; }
  .game .glyph { width: 42px; height: 42px; font-size: 1.3rem; border-radius: 13px; }
  .game h3 { font-size: 1.02rem; }
  .game p { font-size: 0.82rem; }
  .hellos li { min-width: calc(50% - 7px); }
  .promise { grid-template-columns: 1fr; text-align: center; }
  .promise .shield { margin-inline: auto; }
  .checks { justify-content: center; }
  .toc { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 380px) {
  .games { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

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