/* Favorite Casinos — one offer, one audience, one action.
   Type scale, spacing and radii follow the landing page system: 12/14/16/18/20/24/30/36/48/60,
   spacing 2/4/8/12/16/24/32/40/48/64/80/96 and Tailwind radii. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("assets/manrope-latin.woff2") format("woff2");
}

:root {
  --ink: #0b0b0b;
  --ink-muted: #5f5f5f;
  --ink-soft: #8a8a8a;
  --page: #ffffff;
  --surface: #f6f6f3;
  --line: #e4e4df;
  --accent: #0e7a4b;
  --accent-ink: #0a5b38;
  --warn: #8a4b0f;
  --danger: #9b1c1c;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { text-wrap: pretty; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
body { overflow-x: hidden; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem;
  border-radius: var(--radius-md); z-index: 100;
  transition: top 200ms var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------------------------------------------------------------- nav */
.nav-shell {
  position: sticky; top: 1rem; z-index: 40;
  display: flex; justify-content: center;
  padding: 0 1.5rem;
  margin-top: 1rem;
}
.nav {
  display: flex; align-items: center; gap: 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-shadow: 0 8px 24px rgba(11, 11, 11, 0.06);
}
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
.brand svg { display: block; }
.brand span { font-size: 0.875rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a {
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-md);
  color: var(--ink-muted);
  transition: color 300ms var(--ease), background 300ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--surface); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 0.5rem 0.75rem; border-radius: var(--radius-md);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: transform 500ms var(--ease), background 300ms var(--ease), color 300ms var(--ease), border-color 300ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface); }
.btn-sm { font-size: 0.875rem; }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-md); cursor: pointer;
}
.nav-toggle span { display: block; position: relative; width: 16px; height: 2px; background: var(--ink); transition: transform 500ms var(--ease), background 300ms var(--ease); }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: var(--ink);
  transition: transform 500ms var(--ease), top 500ms var(--ease);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  display: none; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 2rem 1.5rem;
}
.menu[data-open="true"] { display: flex; }
.menu a {
  font-size: 1.5rem; font-weight: 700; text-decoration: none;
  padding: 0.5rem 0; opacity: 0; transform: translateY(1.5rem);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
.menu[data-open="true"] a { opacity: 1; transform: none; }
.menu .menu-foot { margin-top: 2rem; font-size: 0.875rem; color: var(--ink-muted); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 4rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: start; }
.hero-grid > *, .split > *, .steps > *, .criteria > *, .safety > * { min-width: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-muted); margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
h1 {
  font-size: 3rem; line-height: 1; font-weight: 700; max-width: 680px;
  background: linear-gradient(90deg, #000 0%, #666 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-size: 1.125rem; line-height: 1.5556; color: var(--ink-muted);
  max-width: 680px; margin: 1.5rem 0 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-proof {
  margin: 2rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.875rem; color: var(--ink-muted);
}
.hero-proof li {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem; background: var(--surface);
}

.check-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 1.5rem;
  box-shadow: 0 12px 32px rgba(11, 11, 11, 0.05);
}
.check-card h2 { font-size: 1rem; font-weight: 700; margin: 0 0 0.25rem; }
.check-card p.hint { font-size: 0.875rem; color: var(--ink-muted); margin: 0 0 1rem; }
.check-card label { display: block; font-size: 0.875rem; font-weight: 600; margin: 0 0 0.5rem; }
.check-card input {
  width: 100%; min-width: 0; flex: 1 1 auto; font-family: inherit; font-size: 1rem;
  padding: 0.5rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-md);
  background: #fff; color: var(--ink);
  transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.check-card input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(14, 122, 75, 0.15); }
.check-card .row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.check-card .row .btn { flex: 0 0 auto; }
.check-card .error { color: var(--danger); font-size: 0.875rem; margin: 0.5rem 0 0; display: none; }
.check-card .error[data-show="true"] { display: block; }
.check-card .result { display: none; margin: 1rem 0 0; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 0.875rem; }
.check-card .result[data-show="true"] { display: block; }
.check-card .result strong { display: block; margin-bottom: 0.25rem; }
.check-note { font-size: 0.75rem; color: var(--ink-soft); margin: 0.75rem 0 0; }

/* ---------------------------------------------------------------- sections */
section { padding: 4rem 0; }
/* anchors must clear the floating nav, or the heading lands underneath it */
section[id], #check, #method, #registers, #questions { scroll-margin-top: 6rem; }
.section-head { max-width: 680px; }
h2 { font-size: 2.25rem; line-height: 1.1111; font-weight: 700; }
.section-head p { font-size: 1.125rem; color: var(--ink-muted); margin: 1rem 0 0; }
.surface { background: var(--surface); }

/* tagline reveal */
.reveal-tagline { padding: 5rem 0; }
.reveal-tagline p {
  font-size: 3rem; line-height: 1.0833; font-weight: 700; max-width: 680px; margin: 0;
  letter-spacing: -0.02em;
}
.reveal-tagline .w { transition: opacity 700ms var(--ease); }

/* problem and solution */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; }
.panel h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.75rem; }
.panel ul { margin: 0; padding-left: 1.25rem; color: var(--ink-muted); font-size: 1rem; }
.panel li + li { margin-top: 0.5rem; }
.panel.is-bad { border-color: #e8d6d6; background: #fdf7f7; }
.panel.is-good { border-color: #d6e8dd; background: #f5fbf8; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.step { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; }
.step .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--ink); color: #fff; font-size: 0.875rem; font-weight: 700; margin-bottom: 1rem;
}
.step h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.5rem; }
.step p { margin: 0; color: var(--ink-muted); font-size: 1rem; }

/* criteria */
.criteria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.criterion { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; }
.criterion h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.5rem; }
.criterion p { margin: 0; color: var(--ink-muted); font-size: 1rem; }
.criterion .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 0.75rem; }

/* registers */
.registers { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.registers .head, .registers .row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr; gap: 1rem; padding: 1rem 1.5rem; align-items: center; }
.registers .head { background: var(--surface); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.registers .row { border-top: 1px solid var(--line); font-size: 0.875rem; }
.registers .row strong { font-size: 1rem; }
.registers a { color: var(--accent-ink); text-underline-offset: 3px; }
.registers a:hover { color: var(--accent); }

/* faq */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 1.25rem 0; }
.faq summary {
  cursor: pointer; font-size: 1.125rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem; align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.25rem; font-weight: 600; color: var(--ink-muted); transition: transform 500ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0.75rem 0 0; color: var(--ink-muted); max-width: 680px; }

/* safety */
.safety { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.safety h2 { font-size: 1.5rem; }
.safety p { color: var(--ink-muted); margin: 0.75rem 0 0; }
.badge-18 {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--danger); color: var(--danger); font-weight: 700; font-size: 0.875rem;
  margin-bottom: 1rem;
}
.safety ul { margin: 0; padding-left: 1.25rem; color: var(--ink-muted); }
.safety li + li { margin-top: 0.5rem; }

/* final cta */
.final { text-align: center; }
.final h2 { margin: 0 auto; max-width: 680px; }
.final p { color: var(--ink-muted); margin: 1rem auto 0; max-width: 680px; font-size: 1.125rem; }
.final .hero-actions { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; margin-top: 4rem; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h3 { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 0.75rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li + li { margin-top: 0.5rem; }
.foot-grid a { font-size: 0.875rem; text-decoration: none; color: var(--ink-muted); transition: color 300ms var(--ease); }
.foot-grid a:hover { color: var(--ink); }
.foot-note { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--ink-soft); max-width: 680px; }

/* legal pages */
.legal { padding: 4rem 0; max-width: 680px; }
.legal h1 { font-size: 2.25rem; }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.legal p, .legal li { color: var(--ink-muted); font-size: 1rem; }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--accent-ink); }

/* reveal on scroll. Content is visible by default; only a browser with JS hides it first,
   so a failed script or a crawler never sees an empty page. */
html.js [data-reveal] { opacity: 0; transform: translateY(2rem); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js .reveal-tagline[data-animate="true"] .w { opacity: 0.3; }
html.js .reveal-tagline[data-animate="true"] .w.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], .reveal-tagline .w { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .steps, .criteria, .safety, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.875rem; }
  .reveal-tagline p { font-size: 2.25rem; }
  .registers .head { display: none; }
  .registers .row { grid-template-columns: 1fr; gap: 0.25rem; padding: 1rem 1.5rem; }
  .nav { gap: 0.75rem; }
}
@media (max-width: 480px) {
  /* the licence field needs the full width, so the button moves below it */
  .check-card .row { flex-wrap: wrap; }
  .check-card .row input { flex: 1 1 100%; }
  .check-card .row .btn { width: 100%; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 760px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
