/* Aviamasters DE — affiliate guide styles */

:root {
  --bg: #FFFFFF;
  --surface: #F3F2F7;
  --surface-2: #EAE8F0;
  --border: #E1DFE6;
  --text: #17161C;
  --muted: #57545F;
  --accent: #FFCC29;
  --accent-2: #888596;
  --accent-ink: #17161C;
  --radius: 8px;
  --header-h: 64px;
  --measure: 58ch;   /* renders as ~65 characters per line in this font */
  --page: 840px;

  --font-heading: 'Cairo', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}

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

:where(a, button, summary, input, textarea):focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Anchor targets must clear the sticky header. */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text);
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.01em; }
h2 { font-size: clamp(23px, 3.4vw, 29px); margin-top: 0; }
h3 { font-size: clamp(19px, 2.2vw, 21px); }

/* Paragraph gap stays larger than the line gap so blocks read as blocks. */
p { margin: 0 0 1.4em; max-width: var(--measure); }

/* Unstyled lists are prose too, so they get the same measure. */
section > ul:not([class]),
section > ol:not([class]),
.article-section ul:not([class]),
.article-section ol:not([class]) {
  max-width: var(--measure);
  padding-left: 22px;
}
li { margin-bottom: 0.5em; }

a { color: inherit; }
a.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-underline-offset: 2px;
}
a.text-link:hover { text-decoration-color: var(--text); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius);
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.logo span { color: var(--accent-2); }

.main-nav {
  display: none;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 500;
}
.main-nav a {
  text-decoration: none;
  color: var(--text);
}
.main-nav a:hover { color: var(--accent-2); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}
.nav-toggle::before { margin-bottom: 4px; }
.nav-toggle::after { margin-top: 4px; }

@media (min-width: 760px) {
  .main-nav { display: flex; }
  .nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 12px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { filter: brightness(0.95); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-2); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* Layout */
main.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px 14px 56px;
}
@media (min-width: 560px) {
  body { font-size: 17px; }
  main.page { padding: 32px 20px 64px; }
}

.stack > * + * { margin-top: 44px; }



/* Hero */
.hero p { color: var(--muted); }
.hero h1 { margin-bottom: 0.4em; }
.hero .hero-note { margin-top: 24px; font-size: 0.94em; }
@media (min-width: 560px) {
  .hero > p:first-of-type { font-size: 1.06em; }
}
.hero-media {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 20px;
  display: block;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.key-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) {
  .key-facts { grid-template-columns: repeat(4, 1fr); }
}
.key-facts li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.key-facts .k-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.key-facts .k-value {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* TOC */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.toc h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 1;
  gap: 4px 24px;
}
@media (min-width: 640px) {
  .toc ol { columns: 2; }
}
.toc li { break-inside: avoid; }
.toc a {
  display: inline-block;
  padding: 8px 0;          /* 36px tap target, WCAG 2.5.8 */
  text-decoration: none;
  color: var(--text);
  font-size: 16px;
}
.toc a:hover { color: var(--accent-2); text-decoration: underline; }

/* Demo */
.demo-frame-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.demo-frame-wrap iframe {
  width: 100%;
  min-height: 480px;
  border: 0;
  display: block;
}
.demo-facade {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 3;      /* reserved up front, so no layout shift */
  min-height: 280px;
}
.demo-facade-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.demo-facade-btn {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 30px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.demo-facade-btn:hover { filter: brightness(0.95); }
.demo-facade-note {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 16px;
  right: 16px;
  margin: 0;
  max-width: none;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.demo-fallback {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}
table.kv { min-width: 0; }
table.kv th { width: 42%; }
table caption { text-align: left; padding: 12px 16px; font-weight: 600; }
th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
th { background: var(--surface); font-weight: 600; width: 38%; }
td.cta-cell { white-space: nowrap; }

/* Casino wordmark badges — typographic stand-ins, not the operators' actual logo artwork */
.casino-cell { display: flex; align-items: center; gap: 12px; }
.casino-mark {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: #fff;
}
.casino-mark--stake   { background: #1B1D23; }
.casino-mark--roobet  { background: #6B3FF2; }
.casino-mark--shuffle { background: #0E9F6E; }
.casino-mark--rainbet { background: #E8590C; }
.casino-mark--bc-game { background: #1971C2; }
.casino-name { font-weight: 600; }

dl.specs-dl { margin: 0; }
dl.specs-dl div { display: flex; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
dl.specs-dl div:last-child { border-bottom: none; }
dl.specs-dl dt { width: 38%; font-weight: 600; margin: 0; flex: none; }
dl.specs-dl dd { margin: 0; color: var(--muted); }

/* Article */
.article-lead {
  font-size: clamp(23px, 3.4vw, 29px);
  margin-bottom: 24px;
}
.article-section + .article-section { margin-top: 40px; }
.article-section p { color: var(--text); }

/* Features */
.features-table td:first-child { font-weight: 600; }

/* Screenshots */
.screens-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .screens-grid { grid-template-columns: 1fr 1fr; }
}
.screens-grid figure { margin: 0; }
.screens-grid img { width: 100%; border-radius: var(--radius); display: block; border: 1px solid var(--border); }
.screens-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Similar */
.similar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
}
.similar-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
}
.similar-card:hover { background: var(--surface-2); }
.similar-card h3 { margin-bottom: 4px; }
.similar-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--accent-2);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 10px; color: var(--muted); }

/* Mid CTA */
.mid-cta {
  text-align: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mid-cta p { margin: 0 auto 14px; max-width: none; color: var(--muted); }

/* Contact form */
.form-field { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 14px; }
.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  margin-top: 48px;
}
.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 32px 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.footer-nav a {
  display: inline-block;
  padding: 5px 0;          /* lifts the row past the 24px tap-target minimum */
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.footer-nav a:hover { text-decoration: underline; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.trust-row img { height: 32px; width: auto; display: block; }
.trust-row a { display: inline-flex; }

.footer-legal { font-size: 13px; color: var(--muted); }
.footer-legal p { margin: 0 0 8px; }

/* Mobile sticky CTA */
.mobile-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--border);
}
@media (min-width: 760px) {
  .mobile-sticky { display: none; }
}

body { padding-bottom: 76px; }
@media (min-width: 760px) {
  body { padding-bottom: 0; }
}

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.age-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* Compliance / context callout */
.notice {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px 20px;
  margin: 20px 0;
}
.notice p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}
.notice strong { color: var(--text); }
