:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  
  --primary: #0f2b48;
  --primary-hover: #0a1f33;
  --accent: #2563eb;
  
  --green: #15803d;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;
  --green-dark: #064e3b;
  
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  
  --red: #b91c1c;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", Menlo, monospace;
  
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a.card { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 4px;
}
.skip:focus { top: 0.5rem; }

.draft {
  background: #fef3c7;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
  padding: 0.75rem 1.25rem;
  text-align: center;
  font-size: 0.92rem;
}

/* 18+ Age Bar */
.agebar {
  background: #09131f;
  color: #f1f5f9;
  padding: 0.6rem 1.25rem;
  display: flex;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.agebar p { margin: 0; }
.agebar a { color: #fde047; text-decoration: underline; }
.agebar-links { display: flex; gap: 0.8rem; font-size: 0.86rem; }
.agebar-links a { color: #94a3b8; text-decoration: none; }
.agebar-links a:hover { color: #ffffff; }

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.4rem;
  border: 1.5px solid #ef4444;
  color: #ef4444;
  font-weight: 700;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.72rem;
  vertical-align: middle;
}

.wrap {
  width: min(1140px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0 0.2rem;
}
.brand-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.brand {
  text-decoration: none;
  color: var(--primary);
  display: flex;
  flex-direction: column;
}
.brand small {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  font-weight: 600;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-muted);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

#site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  padding: 0.9rem 0 0.8rem;
}
#site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  padding-bottom: 0.3rem;
  transition: color 0.15s ease;
}
#site-nav a:hover {
  color: var(--primary);
}
#site-nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
  font-weight: 600;
}

/* Main typography & hero */
.hero {
  padding: 2.2rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--primary);
}
h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  margin: 0.3rem 0 0.8rem;
}
h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin: 2.4rem 0 0.8rem;
}
h3 {
  font-size: 1.3rem;
  margin: 1.4rem 0 0.5rem;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #059669;
  font-weight: 600;
  margin: 0;
}
.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 44rem;
  line-height: 1.55;
}

.stamp {
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 1.25rem 1.35rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid #059669;
}
.stamp strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.4rem;
}
.stamp p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.path {
  display: block;
  text-decoration: none;
  background: var(--primary);
  color: #ffffff;
  padding: 1.4rem 1.4rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.path:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
  text-decoration: none;
}
.path span {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #93c5fd;
}
.path strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0.4rem 0;
}
.path .note {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}
.card:hover {
  border-color: var(--line-strong);
}
.card h3 { margin-top: 0; color: var(--primary); }
.muted { color: var(--text-muted); font-size: 0.95rem; }

.prose {
  max-width: 48rem;
}
.prose p, .prose li {
  color: #334155;
}
.prose li { margin: 0.4rem 0; }

/* Filter Buttons */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 0.8rem;
}
.filters button, .button, button {
  font: inherit;
  cursor: pointer;
}
.filters button {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.filters button:hover {
  border-color: var(--text-muted);
}
.filters button[aria-pressed="true"] {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Comparison Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 0.95rem;
}
caption {
  text-align: left;
  padding: 1rem 1.1rem 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
th, td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
  background: var(--bg-muted);
}
tbody th { font-weight: 600; }
.mono { font-family: var(--mono); font-size: 0.86rem; }

.pill {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill.ok {
  background: var(--green-bg);
  color: var(--green-dark);
  border: 1px solid var(--green-border);
}
.pill.stop {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red-border);
}

.filter-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

/* Facts and Detail items */
.facts {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 0.45rem 1.25rem;
  margin: 1.25rem 0;
  background: #ffffff;
  padding: 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.facts dt { color: var(--text-muted); font-weight: 500; }
.facts dd { margin: 0; color: var(--text-main); }

.button {
  display: inline-block;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  padding: 0.7rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  border: 0;
  transition: background-color 0.15s ease;
}
.button:hover {
  background: var(--primary-hover);
  color: #ffffff;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--line-strong);
}
.button.secondary:hover {
  background: var(--bg-muted);
}

.disclosure {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  padding: 0.5rem 0.8rem;
  color: #92400e;
  font-size: 0.92rem;
  border-radius: 0 4px 4px 0;
}
.crumbs {
  font-size: 0.92rem;
  color: var(--text-light);
  margin-bottom: 0.8rem;
}
.crumbs a { color: inherit; }

.callout {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.callout p { margin: 0.3rem 0; color: #1e3a8a; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.9rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { color: var(--accent); }
.faq p { margin-top: 0.5rem; color: var(--text-muted); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin: 1.2rem 0;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  background: #09131f;
  color: #e2e8f0;
  padding: 2.5rem 0 1.8rem;
}
.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #ffffff; }

.compliance {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.8rem;
}
.compliance p { margin: 0.5rem 0; font-size: 0.94rem; color: #cbd5e1; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
}
.foot-grid strong {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #ffffff;
}
.foot-grid p {
  color: #94a3b8;
  font-size: 0.92rem;
}
.foot-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.foot-grid li { margin: 0.35rem 0; font-size: 0.95rem; }
.legal-mini {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #64748b;
}

/* Modal Dialog */
dialog {
  border: 0;
  padding: 0;
  max-width: 32rem;
  width: calc(100% - 2rem);
  background: #ffffff;
  color: var(--text-main);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
}
dialog::backdrop {
  background: rgba(9, 19, 31, 0.7);
  backdrop-filter: blur(2px);
}
.dialog-body { padding: 1.5rem 1.5rem 1rem; }
.dialog-body h2 { margin-top: 0; font-size: 1.4rem; color: var(--primary); }
.dialog-body p { color: var(--text-muted); font-size: 0.98rem; margin: 0.4rem 0; }
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 0.8rem 1.5rem 1.5rem;
}
.dialog-actions button {
  border: 1px solid var(--line-strong);
  background: white;
  padding: 0.65rem 1.1rem;
  border-radius: 6px;
  font-weight: 500;
}
.dialog-actions .primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  font-weight: 600;
}

/* Mobile brand sheet drawer */
.mobile-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem 1rem 2rem;
  overflow: auto;
  color: #f8fafc;
  background:
    radial-gradient(120% 55% at 50% -10%, rgba(37, 99, 235, 0.35), transparent 60%),
    linear-gradient(180deg, #07111c 0%, #0d1e33 45%, #08111d 100%);
}
.mobile-sheet[hidden] { display: none; }
.mobile-sheet a { color: #93c5fd; }
.mobile-sheet-bar { display: flex; align-items: center; gap: 0.75rem; }
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.mobile-brand b { display: block; font-size: 1rem; letter-spacing: 0.08em; }
.mobile-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #93c5fd, transparent 45%),
    conic-gradient(from 120deg, #1d4ed8, #38bdf8, #1e40af);
  box-shadow: inset 0 0 0 2px rgba(8, 20, 35, 0.6);
}
.mobile-sheet-bar button {
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 28, 48, 0.8);
  display: grid;
  gap: 0.22rem;
  place-content: center;
}
.mobile-sheet-bar button span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: #f8fafc;
}

.mobile-sheet h2 {
  margin: 0.4rem 0 0;
  text-align: center;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: clamp(1.8rem, 7vw, 2.3rem);
  line-height: 1.15;
  color: #ffffff;
}
.mobile-sheet > p {
  margin: 0;
  text-align: center;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.mobile-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mobile-pills span {
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(15, 30, 52, 0.6);
  color: #dbeafe;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.brand-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(17, 34, 58, 0.95), rgba(9, 20, 36, 0.95));
  border: 1px solid rgba(147, 197, 253, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.brand-card-logo {
  display: block;
  height: 3.2rem;
  width: auto;
  max-width: 11rem;
  border-radius: 0.6rem;
  object-fit: contain;
}
.brand-card-rating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.92rem;
}
.brand-card-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.stars-meter {
  position: relative;
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.08em;
}
.stars-base { color: rgba(253, 224, 71, 0.25); }
.stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  overflow: hidden;
  white-space: nowrap;
  color: #facc15;
}
.brand-card-score {
  color: #f1f5f9;
  font-family: var(--mono);
  font-size: 0.82rem;
}
.brand-card-bonus {
  margin: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(147, 197, 253, 0.18);
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.35;
}
.brand-card .button,
.brand-card .button.secondary {
  display: block;
  text-align: center;
  background: #2563eb;
  color: #ffffff;
  border: 0;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  font-weight: 700;
  font-size: 1rem;
}
.brand-card .button:hover { background: #1d4ed8; }

/* Responsive adjustments */
@media (max-width: 800px) {
  .hero, .grid-2, .grid-3, .foot-grid, .facts { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  #site-nav { display: none; flex-direction: column; }
  #site-nav.is-open { display: flex; }
  .agebar { align-items: flex-start; }
}

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