/* Puzzelino marketing site. Layout rhythm modelled on a duolingo-style landing page:
   breakpoints 768px / 1080px, 988px content width, 530px illustration column. */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --owl: #58CC02;
  --tree-frog: #58A700;
  --sea-sponge: #D7FFB8;
  --turtle: #A5ED6E;
  --macaw: #1CB0F6;
  --whale: #1899D6;
  --blue-jay: #84D8FF;
  --iguana: #DDF4FF;
  --humpback: #2B70C9;
  --narwhal: #1453A3;
  --cardinal: #FF4B4B;
  --fire-ant: #EA2B2B;
  --bee: #FFC800;
  --camel: #E7A601;
  --canary: #FFF5D3;
  --fox: #FF9600;
  --guinea-pig: #CD7900;
  --beetle: #CE82FF;
  --betta: #9069CD;
  --starling: #5C6CFC;
  --prussian: #00244E;
  --peacock: #00CD9C;
  --eel: #4B4B4B;
  --wolf: #777777;
  --hare: #AFAFAF;
  --swan: #E5E5E5;
  --polar: #F7F7F7;
  --snow: #FFFFFF;
  --font: "Nunito", "Feather", "din-round", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --content: 988px;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  color: var(--eel);
  background: var(--snow);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--macaw); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-jay); outline-offset: 3px; }

/* ---------- Buttons (3D "juicy" with bottom lip) ---------- */
.btn {
  --btn-bg: var(--owl);
  --btn-lip: var(--tree-frog);
  --btn-fg: #fff;
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 16px;
  width: 100%;
  max-width: 330px;
  border: 2px solid var(--btn-border);
  border-radius: 16px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 4px 0 var(--btn-lip);
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .8px;
  line-height: 20px;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: filter .1s, transform .1s, box-shadow .1s;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 4px;
}
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--btn-lip); }
.btn--secondary { --btn-bg: #fff; --btn-fg: var(--macaw); --btn-lip: var(--swan); --btn-border: var(--swan); }
.btn--secondary:hover { filter: none; background: var(--polar); }
.btn--blue { --btn-bg: var(--macaw); --btn-lip: var(--whale); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--prussian); --btn-lip: #c9d6e6; }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-lip: rgba(255,255,255,.35); --btn-border: rgba(255,255,255,.35); }
.btn--small { width: auto; min-height: 40px; padding: 8px 16px; font-size: 13px; border-radius: 12px; }
.btn--super {
  --btn-bg: linear-gradient(90deg, #26FF55, #268AFF 55%, #FC55FF);
  --btn-lip: #1b5fb8;
  background-image: var(--btn-bg);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: #fff;
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--swan); }
.site-header__inner {
  height: var(--header-h);
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--owl); font-size: 32px; font-weight: 900; letter-spacing: -.04em; }
.logo img { width: 40px; height: 40px; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }
.site-header__lang { color: var(--wolf); font-size: 14px; text-transform: uppercase; letter-spacing: .6px; display: none; }
.site-header .btn--small { display: none; }
.site-header.is-scrolled .btn--small { display: inline-flex; }
@media (min-width: 768px) {
  .site-header__lang { display: inline; }
  .site-header .btn--small { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  min-height: min(calc(100vh - var(--header-h) - 90px), 640px);
  justify-content: center;
}
.hero__art { width: 100%; max-width: 330px; }
.hero__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.hero__title { font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--eel); max-width: 480px; margin-bottom: 32px; }
.hero__buttons { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
@media (min-width: 768px) {
  .hero__title { font-size: 32px; line-height: 40px; }
  .hero__art { max-width: 424px; }
}
@media (min-width: 1080px) {
  .hero { flex-direction: row; gap: 56px; padding: 32px 0 48px; }
  .hero__art { flex: 0 0 424px; max-width: 424px; }
  .hero__copy { flex: 1; }
}

/* Hero illustration */
.hero-scene { position: relative; aspect-ratio: 1 / 1; }
.hero-scene svg { width: 100%; height: 100%; }
.bounce { animation: bounce 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-10px) scale(.99, 1.01); }
  55% { transform: translateY(-10px) scale(.99, 1.01); }
  90% { transform: translateY(0) scale(1.02, .98); }
}
svg .bounce, svg .float { transform-box: fill-box; }
.float { animation: float 4s ease-in-out infinite; }
.float--2 { animation-delay: -1.3s; }
.float--3 { animation-delay: -2.6s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* Hero mascot idle: gentle breathe + bob, squash anchored at the feet. */
@media (prefers-reduced-motion: no-preference) {
  .mascot-idle {
    transform-box: fill-box;
    transform-origin: 50% 96%;
    animation: mascot-idle 2.4s cubic-bezier(.45, 0, .55, 1) infinite alternate;
  }
}
@keyframes mascot-idle {
  from { transform: translateY(0) scale(1.012, .988); }
  to { transform: translateY(-4px) scale(.992, 1.012); }
}
@media (prefers-reduced-motion: reduce) {
  .bounce, .float { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Game strip (course carousel) ---------- */
.game-strip { border-top: 2px solid var(--swan); border-bottom: 2px solid var(--swan); }
.game-strip__inner {
  max-width: 1070px; margin: 0 auto; height: 80px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.game-strip__arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border: 0; background: none; color: var(--hare);
  cursor: pointer; border-radius: 8px; display: grid; place-items: center;
}
.game-strip__arrow:hover { background: var(--polar); color: var(--wolf); }
.game-strip__list {
  flex: 1; display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; list-style: none; margin: 0; padding: 0;
}
.game-strip__list::-webkit-scrollbar { display: none; }
.game-chip {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 8px 14px; border-radius: 12px; color: var(--wolf); font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px;
}
a.game-chip:hover { background: var(--polar); }
.game-chip__icon { width: 36px; height: 28px; border-radius: 6px; flex: 0 0 auto; }
.game-chip--soon { color: var(--hare); }
.game-chip__badge {
  font-size: 11px; padding: 2px 6px; border-radius: 6px; background: var(--polar); color: var(--hare);
  border: 2px solid var(--swan); letter-spacing: .4px;
}
.game-chip--live .game-chip__badge { background: var(--sea-sponge); color: var(--tree-frog); border-color: var(--turtle); }

/* ---------- Feature sections ---------- */
.feature {
  max-width: var(--content); margin: 0 auto; padding: 64px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
.feature__art { width: 100%; max-width: 420px; }
.feature__copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.feature__title {
  color: var(--owl); font-size: 36px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em;
  max-width: 340px; margin-bottom: 20px;
}
.feature__text { color: var(--wolf); font-size: 17px; font-weight: 600; line-height: 1.55; max-width: 480px; }
.feature__text + .feature__text { margin-top: 12px; }
.feature__text strong { color: var(--eel); }
@media (min-width: 768px) {
  .feature__title { font-size: 48px; max-width: 503px; }
  .feature__text { font-size: 19px; }
}
@media (min-width: 1080px) {
  .feature { flex-direction: row; gap: 101px; padding: 96px 0; }
  .feature--reverse { flex-direction: row-reverse; }
  .feature__art { flex: 0 0 auto; width: 420px; }
  .feature__copy { align-items: flex-start; text-align: left; flex: 1; }
}

/* ---------- Super band ---------- */
.super-band {
  background: radial-gradient(1200px 500px at 80% -10%, #1E3A8A 0%, transparent 60%),
              radial-gradient(900px 500px at 0% 110%, #3B1E8A 0%, transparent 60%),
              var(--prussian);
  color: #fff; overflow: hidden;
}
.super-band .feature__title { color: #fff; }
.super-band .feature__text { color: #C8D6F0; }
.super-band .feature__text strong { color: #fff; }
.super-wordmark {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-weight: 900; font-size: 22px; letter-spacing: -.02em;
}
.super-wordmark__tag {
  padding: 2px 10px; border-radius: 8px; font-size: 16px; text-transform: uppercase; letter-spacing: .06em;
  background: linear-gradient(90deg, #26FF55, #268AFF 55%, #FC55FF); color: #fff;
}
.super-band .btn { margin-top: 28px; }
.gradient-text {
  background: linear-gradient(90deg, #26FF55, #268AFF 55%, #FC55FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- App download block ---------- */
.download {
  padding: 64px 20px 0; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #DDF4FF 55%, #DDF4FF 100%);
}
.download__title {
  color: var(--owl); font-size: 36px; font-weight: 900; letter-spacing: -.02em; line-height: 1.1;
  max-width: 330px; margin: 0 auto 28px;
}
.download__stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 16px; }
.download__web { margin-bottom: 40px; }
.download__art { max-width: 760px; margin: 0 auto; }
@media (min-width: 768px) { .download__title { font-size: 48px; max-width: 583px; } }
@media (min-width: 1080px) {
  .download { padding-top: 96px; }
  .download__title { font-size: 64px; max-width: 760px; }
}

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 190px; height: 58px; padding: 0 18px;
  border-radius: 14px; background: #000; color: #fff;
  box-shadow: 0 4px 0 #3a3a3a; transition: transform .1s, box-shadow .1s;
  text-align: left;
}
.store-badge:active { transform: translateY(4px); box-shadow: 0 0 0 #3a3a3a; }
.store-badge svg { width: 28px; height: 28px; flex: 0 0 auto; }
.store-badge__small { display: block; font-size: 11px; font-weight: 700; opacity: .85; line-height: 1.1; }
.store-badge__big { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--owl); color: #fff; }
.site-footer__inner {
  max-width: var(--content); margin: 0 auto; padding: 48px 20px 32px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px;
}
.footer-col h3 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: #fff; font-weight: 600; font-size: 15px; opacity: .92; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.site-footer__bottom {
  border-top: 2px solid rgba(255,255,255,.35);
  max-width: var(--content); margin: 0 auto; padding: 24px 20px 40px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  font-size: 14px; font-weight: 600;
}
.site-footer__bottom .logo { color: #fff; font-size: 26px; }
@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .site-footer__inner { grid-template-columns: repeat(5, 178px); gap: 24px; padding: 96px 0 64px; justify-content: space-between; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; padding: 24px 0 40px; }
}

/* ---------- Super page ---------- */
.super-hero {
  background: radial-gradient(1000px 520px at 85% -10%, #2448A8 0%, transparent 60%),
              radial-gradient(800px 520px at -5% 110%, #4B23A8 0%, transparent 60%),
              var(--prussian);
  color: #fff; padding: 56px 20px 80px; text-align: center; overflow: hidden;
}
.super-hero__inner { max-width: var(--content); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.super-hero__copy { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.super-hero__title { font-size: 36px; font-weight: 900; line-height: 1.1; letter-spacing: -.02em; max-width: 640px; }
.super-hero__sub { font-size: 19px; color: #C8D6F0; font-weight: 600; max-width: 560px; }
.super-hero__art { width: 240px; }
@media (min-width: 768px) { .super-hero__title { font-size: 52px; } }
@media (min-width: 1080px) {
  .super-hero { padding: 72px 0 96px; }
  .super-hero__inner { flex-direction: row; text-align: left; gap: 64px; }
  .super-hero__copy { flex: 1; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
  .super-hero__art { width: 360px; flex: 0 0 auto; }
}

.plans { max-width: var(--content); margin: -48px auto 0; padding: 0 20px; position: relative; z-index: 1;
  display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .plans { padding: 0; } }
.plan {
  background: #fff; border: 2px solid var(--swan); border-radius: 22px; box-shadow: 0 4px 0 var(--swan);
  padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px; position: relative;
}
.plan--featured { border-color: var(--starling); box-shadow: 0 4px 0 #3f4bd1; }
.plan__ribbon {
  position: absolute; top: -16px; left: 24px; padding: 4px 12px; border-radius: 10px;
  background: var(--starling); color: #fff; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
}
.plan__name { font-size: 22px; font-weight: 900; }
.plan__price { font-size: 40px; font-weight: 900; color: var(--eel); letter-spacing: -.02em; line-height: 1; }
.plan__price small { font-size: 17px; color: var(--wolf); font-weight: 700; letter-spacing: 0; }
.plan__note { color: var(--wolf); font-weight: 600; font-size: 15px; }
.plan__save { color: var(--tree-frog); font-weight: 800; font-size: 15px; }
.plan .btn { max-width: none; margin-top: 8px; }

.section { max-width: var(--content); margin: 0 auto; padding: 72px 20px; }
@media (min-width: 1080px) { .section { padding: 96px 0; } }
.section__title { color: var(--eel); font-size: 32px; font-weight: 900; text-align: center; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 32px; }
@media (min-width: 768px) { .section__title { font-size: 40px; } }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--swan); border-radius: 22px; overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 16px 14px; text-align: center; border-bottom: 2px solid var(--swan); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 800; color: var(--eel); }
.compare th[scope="row"] span { display: block; font-weight: 600; color: var(--wolf); font-size: 14px; }
.compare thead th { font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: var(--wolf); background: var(--polar); }
.compare thead th.compare__super { color: #fff; background: var(--prussian); }
.compare td.compare__super { background: #F1F3FF; color: var(--narwhal); font-weight: 900; }
.compare td { color: var(--wolf); font-weight: 700; }
.yes { color: var(--owl); font-weight: 900; }
.no { color: var(--hare); }
@media (max-width: 529px) { .compare { font-size: 14px; } .compare th, .compare td { padding: 12px 8px; } }

.perk-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .perk-grid { grid-template-columns: repeat(3, 1fr); } }
.perk { border: 2px solid var(--swan); border-radius: 22px; padding: 24px; text-align: center; box-shadow: 0 4px 0 var(--swan); }
.perk svg { width: 72px; height: 72px; margin: 0 auto 12px; }
.perk h3 { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.perk p { color: var(--wolf); font-weight: 600; }

.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 2px solid var(--swan); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--macaw); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--wolf); font-weight: 600; padding-bottom: 18px; }
.fineprint { color: var(--wolf); font-size: 13px; font-weight: 600; text-align: center; max-width: 760px; margin: 24px auto 0; padding: 0 20px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 96px; font-weight: 600; color: var(--eel); }
.legal h1 { color: var(--owl); font-size: 36px; font-weight: 900; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.15; }
.legal .legal__meta { color: var(--wolf); margin-bottom: 32px; }
.legal h2 { font-size: 22px; font-weight: 900; margin: 36px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 800; margin: 24px 0 8px; }
.legal p, .legal li { line-height: 1.65; color: #555; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { font-weight: 800; }
.legal .callout { background: var(--iguana); border: 2px solid var(--blue-jay); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
.legal address { font-style: normal; line-height: 1.7; }
@media (min-width: 768px) { .legal h1 { font-size: 48px; } }
