/* Crookadoo website. Colours follow the game's GameTheme: royal-blue sky, navy ink, gold, crook orange, cop blue. */
@font-face { font-family: "Lilita One"; src: url("/fonts/LilitaOne-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/fonts/Fredoka-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --sky: #2f5fe6;
  --sky-2: #3d6ff2;
  --sky-deep: #2148c4;
  --ink: #0b1846;
  --navy: #142a78;
  --panel: #1d3a9c;
  --gold: #ffc928;
  --gold-deep: #e9a90c;
  --crook: #ff8a1f;
  --crook-deep: #e06a00;
  --cop: #3b7bff;
  --green: #2fcb6b;
  --pink: #ff5fa8;
  --purple: #8a4dff;
  --teal: #1fc3ae;
  --cream: #fff7e6;
  --paper: #fffdf7;
  --text: #1a2350;
  --muted: #55608f;
  --line: #dfe3f3;
  --r: 22px;
  --r-sm: 14px;
  --drop: 0 6px 0 var(--ink);
  --drop-sm: 0 4px 0 var(--ink);
  --gutter: 16px;
  --max: 1160px;
  --head: "Lilita One", "Fredoka", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 800; z-index: 99; }
.skip:focus { left: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--ink);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(var(--gutter), env(safe-area-inset-left));
}
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #fff; text-decoration: none; font-family: var(--head); font-size: 18px;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: rgba(255,255,255,0.12); }
.nav a[aria-current="page"] { background: rgba(255,255,255,0.16); }
.nav__pill { background: var(--gold) !important; color: var(--ink) !important; border: 3px solid var(--ink); box-shadow: var(--drop-sm); margin-left: 6px; }
.nav__pill:hover { transform: translateY(-1px); }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 48px; height: 44px; border-radius: 12px;
  background: var(--gold); border: 3px solid var(--ink); box-shadow: var(--drop-sm);
  display: grid; place-content: center; gap: 4px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 3px; background: var(--ink); border-radius: 2px; }
.menu__panel {
  position: absolute; right: 0; top: 56px; min-width: 220px;
  background: var(--panel); border: 3px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--drop);
  padding: 8px; display: grid;
}
.menu__panel a { color: #fff; text-decoration: none; font-family: var(--head); font-size: 20px; padding: 10px 12px; border-radius: 10px; }
.menu__panel a:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 760px) {
  .nav { display: none; }
  .menu { display: block; }
  .brand img { height: 36px; }
}

/* ---------- Shared bits ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--head); font-size: 20px; text-decoration: none; color: var(--ink);
  background: var(--gold); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--drop);
  padding: 12px 22px; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn--ghost { background: #fff; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border: 3px solid var(--ink); border-radius: 999px;
  padding: 6px 14px; font-family: var(--head); font-size: 16px; letter-spacing: .02em;
}
.chip--gold { background: var(--gold); color: var(--ink); }
.chip--crook { background: var(--crook); color: #fff; }
.chip--cop { background: var(--cop); color: #fff; }

/* ---------- Landing ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255,255,255,.18), transparent 60%),
    repeating-conic-gradient(from 0deg at 50% 38%, var(--sky-2) 0deg 9deg, var(--sky) 9deg 18deg);
  padding: 56px 0 72px;
  border-bottom: 3px solid var(--ink);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero__logo { width: min(520px, 100%); filter: drop-shadow(0 8px 0 rgba(11,24,70,.35)); }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); margin: 22px 0 12px; text-shadow: 0 4px 0 var(--ink); }
.hero h1 .gold { color: var(--gold); }
.hero__lead { font-size: 19px; font-weight: 700; max-width: 34em; margin: 0 0 24px; color: #eef2ff; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon {
  display: inline-flex; flex-direction: column; line-height: 1.15;
  background: var(--ink); color: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 9px 16px;
  box-shadow: 0 4px 0 rgba(11,24,70,.5);
}
.store-soon small { font-size: 12px; font-weight: 800; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.store-soon b { font-family: var(--head); font-weight: 400; font-size: 20px; }
.hero__note { margin-top: 16px; font-size: 14px; font-weight: 800; color: #d9e2ff; }

.phone {
  position: relative; background: var(--ink); border-radius: 34px; padding: 12px;
  box-shadow: 0 10px 0 rgba(11,24,70,.55), 0 30px 60px rgba(11,24,70,.35);
  transform: rotate(-2.5deg);
}
.phone img { border-radius: 24px; width: 100%; }
.phone__tag { position: absolute; left: -10px; top: -18px; transform: rotate(-6deg); }
.hero__art { position: relative; }
.hero__sticker {
  position: absolute; right: -28px; bottom: -64px; width: 26%; max-width: 160px;
  border: 4px solid var(--ink); border-radius: 18px; box-shadow: var(--drop); transform: rotate(6deg);
}

.section { padding: 72px 0; }
.section--cream { background: var(--cream); border-bottom: 3px solid var(--ink); }
.section--navy { background: var(--navy); color: #fff; border-bottom: 3px solid var(--ink); }
.section--sky { background: var(--sky); color: #fff; border-bottom: 3px solid var(--ink); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__head h2 { font-size: clamp(32px, 4.4vw, 48px); margin: 12px 0 10px; }
.section--cream .section__head h2 { color: var(--ink); }
.section__head p { margin: 0; font-weight: 700; font-size: 18px; }
.section--cream .section__head p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--drop);
  padding: 26px 22px 22px;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--head); font-size: 24px; color: var(--ink);
  background: var(--gold); border: 3px solid var(--ink);
}
.step h3 { font-size: 26px; color: var(--ink); margin: 6px 0 8px; }
.step p { margin: 0; color: var(--muted); font-weight: 600; }
.step .emoji { font-size: 34px; line-height: 1; }

.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.side {
  border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--drop); overflow: hidden; color: #fff;
  display: flex; flex-direction: column;
}
.side--crook { background: linear-gradient(180deg, var(--crook) 0%, var(--crook-deep) 100%); }
.side--cop { background: linear-gradient(180deg, #4d88ff 0%, #2357d8 100%); }
.side__head { padding: 24px 24px 8px; }
.side__head h3 { font-size: 40px; text-shadow: 0 3px 0 var(--ink); }
.side__head p { margin: 6px 0 0; font-weight: 800; }
.side ul { margin: 12px 24px 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.side li { background: rgba(11,24,70,.22); border-radius: 12px; padding: 9px 12px; font-weight: 700; }
.side li b { font-family: var(--head); font-weight: 400; font-size: 18px; letter-spacing: .02em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 24px 24px; margin-top: auto; }
.card { border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: var(--drop-sm); }
.card img { aspect-ratio: 720 / 784; object-fit: cover; width: 100%; }
.card span { display: block; text-align: center; font-family: var(--head); font-size: 15px; padding: 4px 2px 6px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--panel); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--drop);
  padding: 22px; color: #fff;
}
.feature .badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 28px;
  border: 3px solid var(--ink); margin-bottom: 12px;
}
.feature h3 { font-size: 24px; margin-bottom: 6px; }
.feature p { margin: 0; color: #d6defc; font-weight: 600; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shot { margin: 0; background: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--drop); overflow: hidden; }
.shot figcaption { color: #fff; font-family: var(--head); font-size: 18px; padding: 10px 16px 12px; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 3px solid var(--ink); border-radius: var(--r-sm); box-shadow: var(--drop-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; position: relative;
  font-family: var(--head); font-size: 21px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--gold); border: 3px solid var(--ink);
  display: grid; place-items: center; font-size: 20px; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); font-weight: 600; }
.faq details > div p { margin: 0 0 8px; }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 48px); text-shadow: 0 4px 0 var(--ink); margin-bottom: 10px; }
.cta-band p { font-weight: 700; margin: 0 0 22px; }

/* ---------- Legal / doc pages ---------- */
.main--doc { background: repeating-conic-gradient(from 0deg at 50% -10%, var(--sky-2) 0deg 6deg, var(--sky) 6deg 12deg); padding: 40px 0 72px; }
.paper {
  max-width: 860px; margin: 0 auto;
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: 0 8px 0 var(--ink);
  overflow: hidden;
}
.paper__head { background: var(--navy); color: #fff; padding: 28px 32px 24px; border-bottom: 3px solid var(--ink); }
.paper__head h1 { font-size: clamp(32px, 5vw, 46px); text-shadow: 0 3px 0 var(--ink); }
.paper__head p { margin: 8px 0 0; color: #d6defc; font-weight: 700; }
.paper__body { padding: 28px 32px 36px; }
.paper__body h2 { font-size: 28px; color: var(--ink); margin: 34px 0 10px; padding-top: 6px; scroll-margin-top: 90px; }
.paper__body h3 { font-family: var(--body); font-weight: 900; font-size: 18px; color: var(--ink); margin: 22px 0 6px; }
.paper__body p, .paper__body li { color: var(--text); }
.paper__body a { color: #1f4fd6; font-weight: 700; text-underline-offset: 3px; }
.paper__body ul, .paper__body ol { padding-left: 1.3em; }
.paper__body li { margin: 4px 0; }
.paper__body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.paper__body th, .paper__body td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.paper__body th { background: #eef2ff; color: var(--ink); font-weight: 900; }
.table-scroll { overflow-x: auto; border: 2px solid var(--line); border-radius: 12px; margin: 14px 0; }
.table-scroll table { margin: 0; min-width: 620px; }
.summary {
  background: var(--cream); border: 3px solid var(--ink); border-radius: var(--r-sm); padding: 16px 20px; margin: 0 0 8px;
}
.summary h2 { margin-top: 0 !important; font-size: 24px !important; }
.summary ul { margin: 8px 0 0; }
.note { background: #eef2ff; border-left: 6px solid var(--cop); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.warn { background: #fff1e5; border-left: 6px solid var(--crook); border-radius: 10px; padding: 12px 16px; margin: 16px 0; }
.toc { background: #f4f6fd; border-radius: var(--r-sm); padding: 14px 20px; margin: 18px 0 6px; }
.toc strong { font-family: var(--head); font-weight: 400; font-size: 20px; color: var(--ink); }
.toc ol { margin: 8px 0 0; columns: 2; column-gap: 28px; }
.toc a { font-weight: 700; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 10px 12px 10px 56px; background: #f4f6fd; border-radius: 12px; margin: 10px 0; }
.steps-list li::before {
  content: counter(s); position: absolute; left: 12px; top: 10px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--ink); display: grid; place-items: center; font-family: var(--head); color: var(--ink);
}
.contact-card {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  background: var(--navy); color: #fff; border: 3px solid var(--ink); border-radius: var(--r-sm); padding: 16px 20px; margin: 18px 0;
}
.contact-card a.btn { color: var(--ink); }
.contact-card p { margin: 0; color: #fff !important; font-weight: 700; }
.licence { white-space: pre-wrap; font-size: 13px; background: #f4f6fd; border-radius: 12px; padding: 14px; max-height: 320px; overflow: auto; }
.updated { font-size: 14px; color: var(--muted); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9d3f5; padding: 40px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.footer__brand { display: flex; gap: 14px; align-items: center; max-width: 380px; }
.footer__brand img { border-radius: 14px; border: 3px solid #26357a; flex: none; }
.footer__brand strong { display: block; color: #fff; font-family: var(--head); font-weight: 400; font-size: 24px; }
.footer__brand span { font-size: 15px; font-weight: 600; }
.footer__links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer__links h2 { font-size: 18px; color: var(--gold); margin-bottom: 8px; }
.footer__links a { display: block; text-decoration: none; font-weight: 700; padding: 3px 0; color: #e4e9ff; }
.footer__links a:hover { text-decoration: underline; }
.footer__legal { max-width: var(--max); margin: 28px auto 0; padding: 18px var(--gutter) 0; border-top: 1px solid #22306b; font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__logo { margin: 0 auto; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { max-width: 640px; margin: 10px auto 0; width: 100%; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .sides { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 36px 0 56px; }
  .section { padding: 56px 0; }
  .steps, .features, .shots { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .paper__head, .paper__body { padding-left: 20px; padding-right: 20px; }
  .main--doc { padding: 20px var(--gutter) 56px; }
  .toc ol { columns: 1; }
  .side__head h3 { font-size: 34px; }
  .cards { padding: 0 16px 18px; gap: 8px; }
  .side ul { margin: 10px 16px 16px; }
  .side__head { padding: 20px 16px 6px; }
  .hero__sticker { display: none; }
  .phone { transform: none; border-radius: 24px; padding: 8px; }
  .phone img { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .nav__pill { transition: none; }
}
.contact-card .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
@media (max-width: 640px) { .contact-card .btn { width: 100%; font-size: 17px; padding: 12px 14px; } }
