/* Spin Borough — Retro-Modern, pale mint + deep teal */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --mint: #e8f5f0;
  --mint-dark: #d4ebe3;
  --teal: #0d4f4f;
  --teal-light: #156565;
  --ink: #1a1a2e;
  --ink-muted: #4a5568;
  --accent: #f4a261;
  --accent-dark: #e08b3a;
  --white: #fafcfb;
  --rule: rgba(13, 79, 79, 0.15);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --max-width: 72rem;
  --rail-width: 13rem;
  --header-h: 3.5rem;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--mint);
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(13, 79, 79, 0.03) 49%, rgba(13, 79, 79, 0.03) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(13, 79, 79, 0.02) 49%, rgba(13, 79, 79, 0.02) 51%, transparent 52%);
  background-size: 3rem 3rem;
}

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

a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-dark); }

a.link-arrow::after {
  content: ' →';
  display: inline;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.375rem, 2.5vw, 1.875rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 var(--space-md); }

ul, ol { margin: 0 0 var(--space-md); padding-left: 1.25rem; }

.wrap {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

.accent { color: var(--accent-dark); }

.chip {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(244, 162, 97, 0.18);
  color: var(--teal);
  border-radius: 3px;
}

/* Age bar */
.age-bar {
  background: var(--teal);
  color: var(--white);
  font-size: 0.875rem;
  padding: var(--space-xs) var(--space-md);
  text-align: center;
}

.age-bar a { color: var(--accent); }
.age-bar strong { color: var(--accent); }

/* Layout shell with left rail */
.site-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

@media (min-width: 960px) {
  .site-shell {
    grid-template-columns: var(--rail-width) 1fr;
  }
}

/* Side rail */
.side-rail {
  display: none;
  background: var(--teal);
  color: var(--white);
  padding: var(--space-lg) var(--space-md);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (min-width: 960px) {
  .side-rail { display: flex; flex-direction: column; gap: var(--space-lg); }
}

.side-rail__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.side-rail__brand img { flex-shrink: 0; }

.side-rail nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.side-rail nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: var(--space-sm);
  transition: border-color var(--transition), color var(--transition);
}

.side-rail nav a:hover,
.side-rail nav a[aria-current="page"] {
  color: var(--accent);
  border-left-color: var(--accent);
}

.side-rail__note {
  margin-top: auto;
  font-size: 0.8125rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* Sticky header (mobile + compact desktop) */
.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(232, 245, 240, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: padding var(--transition), box-shadow var(--transition);
}

.top-header.is-compact {
  box-shadow: 0 2px 12px rgba(13, 79, 79, 0.08);
}

.top-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: var(--space-md);
}

.top-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal);
  transition: transform var(--transition);
}

@media (min-width: 960px) {
  .top-header__brand { display: none; }
  .mobile-nav-toggle { display: none; }
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-md);
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 960px) {
  .mobile-nav { display: none !important; }
}

/* Hero split */
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.stat-box {
  background: var(--white);
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
  notched: none;
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--teal);
  line-height: 1;
}

.stat-box span {
  font-size: 0.8125rem;
  color: var(--ink-muted);
}

.hero-aside {
  background: var(--teal);
  color: var(--white);
  padding: var(--space-lg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1rem), calc(100% - 1rem) 100%, 0 100%);
}

.hero-aside p { margin-bottom: var(--space-sm); font-size: 0.9375rem; }
.hero-aside a { color: var(--accent); }

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--tinted {
  background: var(--mint-dark);
}

.section--white {
  background: var(--white);
}

.section__head {
  max-width: 42rem;
  margin-bottom: var(--space-lg);
}

.kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--space-xs);
}

.notice-panel {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.compare-table th,
.compare-table td {
  padding: var(--space-md);
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--rule);
}

.compare-table th {
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compare-table tbody tr {
  background: var(--white);
  transition: background var(--transition);
}

.compare-table tbody tr:hover {
  background: var(--mint);
}

.compare-table tr.is-featured {
  background: rgba(244, 162, 97, 0.08);
  border-left: 4px solid var(--accent);
}

.compare-table tr.is-featured:hover {
  background: rgba(244, 162, 97, 0.12);
}

.compare-table .op-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
}

.compare-table .op-brand img {
  width: 64px;
  height: auto;
  object-fit: contain;
}

.verdict {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
}

/* Operator cards (flat, rules only) */
.op-card {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 640px) {
  .op-card {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.op-card:first-of-type { border-top: 1px solid var(--rule); }

.op-card__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.op-card__brand img { width: 80px; object-fit: contain; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--ink) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 3px 0 var(--accent-dark);
}

.btn:hover {
  background: var(--accent-dark);
  color: var(--ink) !important;
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--teal) !important;
  box-shadow: none;
  border: 2px solid var(--teal);
}

.btn--ghost:hover {
  background: var(--teal);
  color: var(--white) !important;
}

@media (max-width: 639px) {
  .btn { display: block; width: 100%; }
}

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* Two column content */
.content-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .content-grid--sidebar {
    grid-template-columns: 1fr 18rem;
  }
}

.sidebar-panel {
  background: var(--white);
  padding: var(--space-lg);
  border-left: 3px solid var(--teal);
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.sidebar-panel h3 { font-size: 1rem; }

/* Safety strip */
.safety-strip {
  background: var(--white);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.safety-logos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
  margin-top: var(--space-md);
}

.safety-logos a {
  display: block;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.safety-logos a:hover { opacity: 1; }

.safety-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* FAQ */
.faq-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--rule);
}

.faq-item h3 {
  font-size: 1.0625rem;
  margin-bottom: var(--space-sm);
}

.myth-fact {
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
  .myth-fact { grid-template-columns: 1fr 1fr; }
}

.myth-fact__box {
  padding: var(--space-md);
  background: var(--white);
}

.myth-fact__box--myth { border-left: 3px solid #c0392b; }
.myth-fact__box--fact { border-left: 3px solid var(--teal); }

/* Footer */
.site-footer {
  background: var(--teal);
  color: rgba(255,255,255,0.9);
  padding: var(--space-xl) 0 var(--space-lg);
  font-size: 0.9375rem;
}

.site-footer a { color: var(--accent); }

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-grid h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 0.35rem; }

.footer-grid a {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: 0.875rem;
}

.footer-grid a:hover { color: var(--accent); }

.licensing-block {
  background: rgba(0,0,0,0.2);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-radius: 4px;
}

.licensing-block h2 {
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.license-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.license-table th,
.license-table td {
  padding: var(--space-sm);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  vertical-align: top;
}

.license-table th {
  color: var(--accent);
  font-weight: 600;
}

.license-table a { word-break: break-all; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: var(--space-md);
  font-size: 0.8125rem;
  opacity: 0.85;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: var(--white);
  padding: var(--space-md);
  z-index: 200;
  display: none;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.is-visible { display: block; }

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.875rem;
}

.cookie-banner a { color: var(--accent); }

/* Content pages */
.page-hero {
  padding: var(--space-xl) 0 var(--space-md);
}

.page-hero h1 { margin-bottom: var(--space-sm); }

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 42rem;
}

.prose { max-width: 42rem; }
.prose--wide { max-width: 52rem; }

.prose h2 { margin-top: var(--space-xl); }

/* Head-to-head panels */
.h2h-grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .h2h-grid { grid-template-columns: 1fr 1fr; }
}

.h2h-card {
  background: var(--white);
  padding: var(--space-lg);
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.h2h-card:hover { border-color: var(--teal); }

/* Showcase entrance animation */
@media (prefers-reduced-motion: no-preference) {
  .compare-table tbody tr,
  .op-card {
    opacity: 0;
    transform: translateX(-12px);
    animation: slideIn 0.4s ease forwards;
  }

  .compare-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
  .compare-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
  .compare-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
  .compare-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
  .compare-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
  .compare-table tbody tr:nth-child(6) { animation-delay: 0.3s; }

  @keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
  }

  .hero-aside::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(244,162,97,0.3);
    border-radius: 50%;
    top: -20px;
    right: -20px;
    animation: drift 8s ease-in-out infinite;
    pointer-events: none;
  }

  .hero-aside { position: relative; overflow: hidden; }

  @keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-8px, 6px); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print */
@media print {
  .age-bar, .side-rail, .top-header, .mobile-nav, .cookie-banner, .btn { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .site-shell { display: block; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 9pt; }
  .licensing-block { background: #f5f5f5; color: black; }
}
