@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Source+Serif+4:wght@600;700&display=swap');

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

:root {
  --bg: hsl(40,20%,99%);
  --fg: hsl(220,20%,18%);
  --card: #fff;
  --primary: hsl(168,50%,28%);
  --primary-fg: #fff;
  --secondary: hsl(220,14%,96%);
  --muted: hsl(220,10%,46%);
  --accent: hsl(168,30%,94%);
  --border: hsl(220,14%,90%);
  --destructive: hsl(0,84%,60%);
  --radius: 0.5rem;
  --font-heading: 'Source Serif 4', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

body { font-family: var(--font-body); background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); }
a { color: inherit; text-decoration: none; }
main { flex: 1; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Header */
header { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.logo { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; color: var(--fg); }
nav.desktop { display: flex; gap: 1.5rem; }
nav.desktop a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .2s; }
nav.desktop a:hover { color: var(--primary); }

/* Mobile menu */
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; padding: 0.5rem; color: var(--fg); }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .dropdown { position: absolute; right: 0; top: 100%; margin-top: 0.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,.1); padding: 0.5rem 0; min-width: 12rem; z-index: 50; }
.mobile-menu .dropdown a { display: block; padding: 0.5rem 1rem; font-size: 0.875rem; color: var(--muted); transition: color .2s, background .2s; }
.mobile-menu .dropdown a:hover { color: var(--primary); background: var(--accent); }

/* Footer */
footer { background: var(--secondary); border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner { padding: 2.5rem 1rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-grid h3 { font-family: var(--font-heading); font-weight: 600; margin-bottom: 0.75rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid nav a, .footer-grid p { font-size: 0.875rem; color: var(--muted); transition: color .2s; }
.footer-grid nav a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted); line-height: 1.6; margin-bottom: 0.5rem; }

/* Sections */
.section { padding: 2.5rem 0; }
.section.bg-secondary { background: var(--secondary); }
.section h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-bottom: 1rem; }
.section .intro { color: var(--muted); margin-bottom: 1.5rem; max-width: 42rem; line-height: 1.7; }

/* Hero */
.hero { padding: 4rem 0 6rem; background: var(--secondary); text-align: center; }
.hero h1 { font-size: clamp(1.75rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; max-width: 42rem; margin-left: auto; margin-right: auto; }
.hero p { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 0.875rem; font-weight: 600; border-radius: var(--radius); cursor: pointer; transition: opacity .2s; border: none; text-align: center; }
.btn-cta { background: var(--primary); color: var(--primary-fg); padding: 0.75rem 1.5rem; }
.btn-cta:hover { opacity: .9; }
.btn-cta.sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
.btn-cta.lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-outline { background: transparent; color: var(--fg); padding: 0.75rem 1.5rem; border: 1px solid var(--border); }
.btn-outline:hover { background: var(--secondary); }
.btn-outline.lg { padding: 0.875rem 2rem; font-size: 1rem; }
.btn-link { background: none; border: none; color: var(--primary); padding: 0; font-size: 0.875rem; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* Platform cards */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.platform-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.platform-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.platform-card ul { flex: 1; list-style: none; margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.platform-card ul li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.platform-card ul li .check { color: var(--primary); margin-top: 1px; }
.platform-card .btn-cta { width: 100%; }
.platform-card .brand { margin-bottom: 0.75rem; }

/* Comparison table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--secondary); }
th { text-align: left; font-size: 0.875rem; font-weight: 600; padding: 0.75rem; border-bottom: 1px solid var(--border); }
th.right, td.right { text-align: right; }
td { padding: 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
td.name { font-weight: 500; color: var(--fg); }
tbody tr:hover { background: hsla(168,30%,94%,.5); }

/* FAQ accordion */
.faq-list { max-width: 42rem; }
details.faq-item { border-bottom: 1px solid var(--border); }
details.faq-item summary { list-style: none; cursor: pointer; padding: 1rem 0; font-size: 0.875rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--muted); transition: transform .2s; }
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-answer { font-size: 0.875rem; color: var(--muted); line-height: 1.7; padding-bottom: 1rem; }

/* Pros/Cons */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pros-block { background: var(--accent); border-radius: var(--radius); padding: 1.25rem; }
.cons-block { background: var(--secondary); border-radius: var(--radius); padding: 1.25rem; }
.pros-cons h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.75rem; }
.pros-cons ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.pros-cons ul li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.plus { color: var(--primary); font-weight: 700; }
.minus { color: var(--destructive); font-weight: 700; }

/* Bullet list */
.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; max-width: 42rem; }
.bullet-list li { display: flex; gap: 0.5rem; font-size: 0.875rem; color: var(--muted); }
.bullet-list li .dot { color: var(--primary); }

/* Ordered list */
.step-list { list-style: decimal inside; display: flex; flex-direction: column; gap: 0.5rem; max-width: 42rem; }
.step-list li { font-size: 0.875rem; color: var(--muted); }

/* Blog grid */
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.blog-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.blog-card h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.blog-card p { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }
.blog-card span { font-size: 0.875rem; color: var(--primary); font-weight: 500; }

/* Brand link colours */
a[href*="betclic"] { color: #e00 !important; }
a[href*="betano"] { color: #f80 !important; }
a[href*="betclic"].btn-cta, .btn-betclic { background: #e00 !important; color: #fff !important; }
a[href*="betano"].btn-cta, .btn-betano { background: #f80 !important; color: #fff !important; }

/* Underline body links */
main a:not([href*="betclic"]):not([href*="betano"]) { text-decoration: underline; }

/* See also */
.see-also { font-size: 0.875rem; color: var(--muted); padding: 1.5rem 0; }
.see-also a { color: var(--primary); }
.see-also a:hover { text-decoration: underline; }

/* Responsible gambling */
.rg-section { padding: 2.5rem 0; background: var(--secondary); }
.rg-section h2 { font-size: clamp(1.5rem,3vw,1.875rem); font-weight: 700; margin-bottom: 1rem; }
.rg-section p { color: var(--muted); max-width: 42rem; line-height: 1.7; margin-bottom: 1rem; }

/* Brand logos */
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand img {
  height: 20px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease;
}

.brand-lg img {
  height: 28px;
}

td .brand {
  gap: 0.4rem;
}

td .brand img {
  height: 18px;
}

.btn img {
  height: 16px;
  width: auto;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
}

.brand:hover img {
  transform: scale(1.04);
}

/* Responsive */
@media (max-width: 768px) {
  nav.desktop { display: none; }
  .mobile-menu { display: block; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 4rem; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
}
@media (max-width: 768px) {
  .hide-md { display: none; }
}