/* =========================================================
   SPIN LOOKOUT — design tokens & reset
   ========================================================= */
:root {
  --bg: #faf7f2;
  --bg-tint: #e6f1ef;
  --bg-tint-strong: #dcece9;
  --ink: #14302c;
  --muted: #4d6a64;
  --teal: #0f5c56;
  --teal-dark: #0a4440;
  --accent: #ff6b35;
  --accent-dark: #d9531f;
  --line: rgba(15, 92, 86, 0.28);
  --line-soft: rgba(15, 92, 86, 0.16);
  --cream: #faf7f2;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --container: 1180px;
  --radius: 18px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 var(--sp-3); line-height: 1.15; font-weight: 600; }
p { margin: 0 0 var(--sp-4); max-width: 68ch; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.3em; }
li { margin-bottom: var(--sp-2); }
table { border-collapse: collapse; width: 100%; }
button { font-family: inherit; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: var(--sp-2);
}
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--teal);
  color: var(--white);
  padding: var(--sp-2) var(--sp-4);
  z-index: 200;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

/* =========================================================
   AGE NOTICE BAR (agebar-*) — persistent, non-blocking, every page
   ========================================================= */
.agebar {
  background: var(--teal-dark);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-bottom: 1px dashed rgba(250, 247, 242, 0.35);
}
.agebar-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.agebar-text { margin: 0; }
.agebar-text strong { color: var(--accent); }
.agebar-link {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(250, 247, 242, 0.55);
  white-space: nowrap;
}
.agebar-link:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   SITE HEADER (site-header-*)
   ========================================================= */
.site-header {
  border-bottom: 1px dashed var(--line);
  background: var(--bg);
}
.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; }
.site-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}
.site-nav-list a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--teal-dark);
}
.site-nav-list a:hover { color: var(--accent); }

/* =========================================================
   BUTTONS (btn-*) — outlined/ghost, accent text
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--accent);
  color: var(--accent-dark);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--white); }
.btn-secondary {
  border-color: var(--line);
  color: var(--teal-dark);
}
.btn-secondary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-small { padding: var(--sp-2) var(--sp-4); font-size: 0.82rem; }
.link-inline {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}
.link-inline:hover { color: var(--accent); }

/* =========================================================
   BADGES (badge-*) — subtle tinted background, low contrast
   ========================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--teal-dark);
}
.badge-accent { background: rgba(255, 107, 53, 0.14); color: var(--accent-dark); }
.badge-row { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.verdict {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--sp-1) var(--sp-3);
  border-radius: 999px;
  background: var(--teal-dark);
  color: var(--cream);
}

/* =========================================================
   HERO (hero-*)
   ========================================================= */
.hero { padding: var(--sp-8) 0 var(--sp-6); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-7);
  align-items: end;
}
.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  margin-bottom: var(--sp-4);
}
.hero-title .accent-word { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal-dark);
  border-top: 1px dashed var(--line);
  padding-top: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.hero-flags {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: var(--sp-4);
}

/* =========================================================
   SECTION HEADINGS + DIVIDERS (section-*) — short centred accent rule
   ========================================================= */
.section { padding: var(--sp-8) 0; }
.section-tint { background: var(--bg-tint); }
.section-head {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto var(--sp-7);
}
.section-head .eyebrow { display: inline-block; }
.section-rule {
  width: 64px;
  height: 3px;
  background: var(--accent);
  margin: var(--sp-4) auto 0;
  border: none;
}
.section-head p { margin: var(--sp-3) auto 0; color: var(--muted); }

/* =========================================================
   STATS STRIP (stats-*)
   ========================================================= */
.stats { padding: var(--sp-6) 0; border-bottom: 1px dashed var(--line); border-top: 1px dashed var(--line); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  color: var(--teal-dark);
  margin-bottom: var(--sp-1);
}
.stat-num .accent-word { color: var(--accent); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* =========================================================
   DISCLOSURE NOTE (disclosure-*)
   ========================================================= */
.disclosure {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: var(--sp-6);
}
.disclosure strong { color: var(--teal-dark); }

/* =========================================================
   SHOWCASE (showcase-*) — two-column card grid, large rounded cards
   ========================================================= */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-6);
}
.op-card {
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.op-card-head {
  background: var(--teal-dark);
  color: var(--cream);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.op-card-head.is-accent { background: var(--accent); }
.op-rank {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
.op-card-body {
  padding: var(--sp-5);
  border-bottom: 1px dashed var(--line);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.op-logo-row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.op-logo {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
  flex-shrink: 0;
  border: 1px dashed var(--line-soft);
}
.op-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.op-name { font-size: 1.35rem; margin-bottom: var(--sp-1); }
.op-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.op-offer {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--teal-dark);
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
}
.op-offer-note { display: block; color: var(--muted); font-size: 0.72rem; margin-top: var(--sp-1); }
.op-card-foot {
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.op-legal { font-size: 0.72rem; color: var(--muted); margin: var(--sp-2) var(--sp-5) 0; }

/* =========================================================
   COMPARISON TABLE (compare-*) — tabular comparison as visual centrepiece
   ========================================================= */
.compare-layout {
  display: grid;
  grid-template-columns: 2.4fr 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.compare-scroll {
  overflow-x: auto;
  border: 2px solid var(--teal-dark);
  border-radius: var(--radius-sm);
}
.compare-table { min-width: 720px; font-size: 0.92rem; }
.compare-table caption { text-align: left; padding: var(--sp-4) var(--sp-5); font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table th, .compare-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}
.compare-table thead th {
  background: var(--teal-dark);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  position: sticky;
  top: 0;
}
.compare-table thead th:first-child { border-radius: 0; }
.compare-table tbody th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-dark);
  background: var(--bg-tint);
  white-space: nowrap;
}
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }
.compare-table td { color: var(--ink); }

.sidebar-box {
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-5);
}
.sidebar-box h3 { font-size: 1.1rem; }
.sidebar-box p { font-size: 0.92rem; color: var(--muted); }
.sidebar-box ul { font-size: 0.9rem; color: var(--muted); padding-left: 1.1em; }

/* =========================================================
   METHODOLOGY (method-*)
   ========================================================= */
.method-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-7);
  align-items: center;
}
.method-figure {
  border-radius: var(--radius);
  overflow: hidden;
}
.method-list { list-style: none; padding-left: 0; }
.method-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line);
}
.method-list li:last-child { border-bottom: none; }
.method-num {
  font-family: var(--font-mono);
  color: var(--accent-dark);
  font-weight: 700;
  flex-shrink: 0;
}

/* =========================================================
   SAFETY RESOURCES (safety-*)
   ========================================================= */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.safety-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  padding: var(--sp-5) var(--sp-4);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
}
.safety-card:hover { border-color: var(--accent); }
.safety-card img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.safety-card span { font-size: 0.86rem; font-weight: 700; }
.safety-card small { color: var(--muted); font-size: 0.76rem; }

/* =========================================================
   FAQ (faq-*) — plain list
   ========================================================= */
.faq-list { list-style: none; padding-left: 0; max-width: 78ch; margin: 0 auto; }
.faq-item { border-bottom: 1px dashed var(--line); padding: var(--sp-5) 0; }
.faq-item:first-child { border-top: 1px dashed var(--line); }
.faq-q { font-family: var(--font-display); font-size: 1.15rem; margin-bottom: var(--sp-2); }
.faq-a { color: var(--muted); margin-bottom: 0; }

/* =========================================================
   DISCLAIMER (disclaimer-*)
   ========================================================= */
.disclaimer {
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 74ch;
  margin: 0 auto;
}

/* =========================================================
   FOOTER (site-footer-*)
   ========================================================= */
.site-footer {
  background: var(--teal-dark);
  color: var(--cream);
  padding: var(--sp-8) 0 var(--sp-6);
}
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px dashed rgba(250, 247, 242, 0.25);
}
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.footer-brand .brand-word { font-size: 1.2rem; }
.footer-about { color: rgba(250, 247, 242, 0.75); font-size: 0.88rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--sp-2); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(250, 247, 242, 0.6);
}
.footer-mark-watermark {
  opacity: 0.15;
}

/* =========================================================
   COOKIE BANNER (cookiebar-*)
   ========================================================= */
.cookiebar {
  position: fixed;
  left: var(--sp-4);
  right: var(--sp-4);
  bottom: var(--sp-4);
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--teal-dark);
  border-radius: var(--radius-sm);
  padding: var(--sp-5);
  z-index: 150;
  box-shadow: none;
}
.cookiebar[hidden] { display: none; }
.cookiebar p { font-size: 0.88rem; margin-bottom: var(--sp-4); color: var(--muted); }
.cookiebar-actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

/* =========================================================
   ARTICLE / SUB-PAGE LAYOUT (article-*)
   ========================================================= */
.page-hero { padding: var(--sp-7) 0 var(--sp-5); border-bottom: 1px dashed var(--line); }
.page-title { font-size: clamp(2rem, 4vw, 3rem); }
.page-lede { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.article { padding: var(--sp-7) 0; }
.article-layout {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: var(--sp-7);
}
.article-body h2 { font-size: 1.6rem; margin-top: var(--sp-7); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.2rem; margin-top: var(--sp-5); }
.article-body p { color: var(--ink); }
.article-figure { margin: var(--sp-6) 0; border-radius: var(--radius); overflow: hidden; }
.article-figure figcaption { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); padding: var(--sp-3) 0 0; }
.callout {
  background: var(--bg-tint);
  border-left: 3px dashed var(--teal);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  color: var(--teal-dark);
  margin: var(--sp-5) 0;
}
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px dashed var(--line);
}
.timeline li:last-child { border-bottom: none; }
.timeline-year { font-family: var(--font-mono); color: var(--accent-dark); font-weight: 700; }
.timeline-year { font-family: var(--font-mono); color: var(--accent-dark); font-weight: 700; }
.def-list dt { font-family: var(--font-mono); color: var(--teal-dark); font-weight: 700; margin-top: var(--sp-4); }
.def-list dd { margin: var(--sp-1) 0 0; color: var(--muted); }
.simple-form { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 560px; }
.simple-form label { font-weight: 700; font-size: 0.9rem; display: block; margin-bottom: var(--sp-1); }
.simple-form input, .simple-form textarea, .simple-form select {
  width: 100%;
  padding: var(--sp-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.simple-form input:focus, .simple-form textarea:focus, .simple-form select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.contact-note { font-size: 0.85rem; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid, .method-layout, .compare-layout, .article-layout { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .site-nav-list { gap: var(--sp-3); }
  .safety-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .agebar-row { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .compare-table { min-width: 620px; }
}

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