/* ============================================================
   THE LAB ILLINOIS — design tokens + components
   A division of Elevated Group. Palette shared with Elevated
   Group / Elevated Naturals brand materials for visual continuity.
   ============================================================ */

:root {
  /* ---------- Fluid type scale ---------- */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);

  /* ---------- 4px spacing system ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1240px;
  --content-full: 100%;

  --font-display: 'DM Sans', 'Georgia', serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Light mode (default) ---------- */
:root,
[data-theme='light'] {
  --color-bg: #f7f6f2;
  --color-surface: #ffffff;
  --color-surface-2: #fbfaf7;
  --color-surface-offset: #f0eee8;
  --color-border: #e3e1da;
  --color-divider: #eae8e2;

  --color-text: #1d2430;
  --color-text-muted: #5b6472;
  --color-text-faint: #9099a8;
  --color-text-inverse: #f7f6f2;

  --color-navy: #0b1220;
  --color-navy-2: #0f1b33;

  --color-primary: #17707c;
  --color-primary-hover: #125a64;
  --color-primary-active: #0e474f;
  --color-primary-highlight: #d8ecee;
  --color-on-primary: #ffffff;

  --color-gold: #b5810a;
  --color-gold-highlight: #f3e6bf;
  --color-purple: #6e3fa3;
  --color-purple-highlight: #e8def2;

  --color-error: #a12c7b;
  --color-warning: #964219;
  --color-success: #437a22;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 20px 48px rgba(11, 18, 32, 0.14);
}

/* ---------- Dark mode ---------- */
[data-theme='dark'] {
  --color-bg: #0b1220;
  --color-surface: #0f1b33;
  --color-surface-2: #132242;
  --color-surface-offset: #172a4d;
  --color-border: #27395c;
  --color-divider: #1c2c4c;

  --color-text: #e7e9ee;
  --color-text-muted: #9aa7bd;
  --color-text-faint: #67728a;
  --color-text-inverse: #0b1220;

  --color-navy: #060a13;
  --color-navy-2: #0b1428;

  --color-primary: #4fb0bb;
  --color-primary-hover: #6fc4ce;
  --color-primary-active: #8ad3db;
  --color-primary-highlight: #16333a;
  --color-on-primary: #061417;

  --color-gold: #e8af34;
  --color-gold-highlight: #3a3117;
  --color-purple: #b98fe0;
  --color-purple-highlight: #2c2440;

  --color-error: #d97bb5;
  --color-warning: #d98a5c;
  --color-success: #8fc266;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   BASE TYPE
   ============================================================ */
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--color-text); }
p { color: var(--color-text-muted); max-width: 68ch; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--color-primary);
  display: inline-block;
}

.h1 { font-size: var(--text-2xl); line-height: 1.08; }
.h2 { font-size: var(--text-xl); line-height: 1.15; }
.h3 { font-size: var(--text-lg); line-height: 1.25; }
.lede { font-size: var(--text-lg); color: var(--color-text-muted); max-width: 56ch; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap-narrow { max-width: var(--content-default); }

.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.section-tight { padding-block: clamp(var(--space-10), 5vw, var(--space-16)); }

.section-navy {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #f2f3f6;
}
.section-navy p { color: #b7bfcc; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #ffffff; }

.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.9fr 1.1fr; }
.split.reverse > *:first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: var(--space-10); }
  .split.reverse > *:first-child { order: 0; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.85em 1.6em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); }
.btn-primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-outline { border-color: currentColor; color: var(--color-text); background: transparent; }
.btn-outline:hover { background: var(--color-surface-offset); color: var(--color-text); }
.btn-inverse { background: #ffffff; color: var(--color-navy); }
.btn-inverse:hover { background: #e7e9ee; color: var(--color-navy); }
.btn-sm { padding: 0.6em 1.2em; font-size: var(--text-xs); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.topbar {
  background: var(--color-navy);
  color: #c6cddb;
  font-size: var(--text-xs);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-2); gap: var(--space-4); }
.topbar a { color: #c6cddb; }
.topbar a:hover { color: #ffffff; }
.topbar-phone { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; color: #ffffff; }

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--ease) 0.3s, transform var(--ease) 0.3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: var(--space-4); gap: var(--space-6); }

.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand img { height: 38px; width: auto; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.02em; color: var(--color-text); line-height: 1.1; }
.brand-word small { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-text-faint); font-weight: 700; }

.nav { display: flex; align-items: center; gap: var(--space-8); }
.nav-links { display: flex; align-items: center; gap: var(--space-6); list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  padding: var(--space-2) 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}
.nav-links a:hover, .nav-links a.active { color: var(--color-primary); }
.nav-links a.active { border-bottom: 2px solid var(--color-primary); }

.has-dropdown > .dropdown {
  position: absolute;
  top: calc(100% + var(--space-4));
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-3);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--ease) 0.2s, transform var(--ease) 0.2s, visibility 0.2s;
  z-index: 70;
}
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: var(--space-3); border-radius: var(--radius-md); font-weight: 600; }
.dropdown a:hover { background: var(--color-surface-offset); }
.dropdown a span.desc { font-family: var(--font-body); font-weight: 400; font-size: var(--text-xs); color: var(--color-text-muted); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.theme-toggle, .menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-full);
  color: var(--color-text); background: transparent;
}
.theme-toggle:hover, .menu-toggle:hover { background: var(--color-surface-offset); }
.menu-toggle { display: none; }

.mobile-panel {
  position: fixed; inset: 0; top: 0; z-index: 90;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform var(--ease) 0.35s;
  overflow-y: auto;
}
.mobile-panel.open { transform: translateX(0); }
.mobile-panel-inner { padding: var(--space-6); }
.mobile-panel-close { position: absolute; top: var(--space-6); right: var(--space-6); }
.mobile-links { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-16); }
.mobile-links a { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-divider); color: var(--color-text); }
.mobile-sub { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-2) 0 var(--space-4) var(--space-4); }
.mobile-sub a { font-size: var(--text-sm); font-weight: 600; border-bottom: none; padding: var(--space-2) 0; color: var(--color-text-muted); }

@media (max-width: 980px) {
  .nav-links, .header-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }
  .topbar-secondary { display: none; }
}
@media (max-width: 520px) {
  .brand-word small { display: none; }
  .brand img { height: 30px; }
  .brand-word { font-size: var(--text-sm); }
  .header-inner { gap: var(--space-3); }
  .header-actions { gap: var(--space-2); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 60%, #1a1030 130%);
  color: #ffffff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(11,18,32,0.92) 10%, rgba(11,18,32,0.6) 55%, rgba(11,18,32,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding-block: clamp(var(--space-20), 12vw, var(--space-32)); }
.hero .eyebrow { color: #6fc4ce; }
.hero .eyebrow::before { background: #6fc4ce; }
.hero h1 { font-size: var(--text-3xl); color: #fff; max-width: 18ch; margin-block: var(--space-5); }
.hero p { color: #c3c9d6; font-size: var(--text-lg); max-width: 52ch; }
.hero-ctas { display: flex; gap: var(--space-4); margin-top: var(--space-8); flex-wrap: wrap; }
.hero-strip { display: flex; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-12); font-family: var(--font-display); font-weight: 700; font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase; color: #8f9ab0; }
.hero-strip span { color: #dfe3ea; }

.page-hero {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-2) 100%);
  color: #fff;
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
}
.page-hero .eyebrow { color: #6fc4ce; }
.page-hero .eyebrow::before { background: #6fc4ce; }
.page-hero h1 { color: #fff; margin-top: var(--space-4); font-size: var(--text-2xl); max-width: 28ch; }
.page-hero p { color: #c3c9d6; margin-top: var(--space-4); font-size: var(--text-lg); max-width: 60ch; }
.breadcrumb { font-size: var(--text-xs); color: #8f9ab0; display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-6); }
.breadcrumb a { color: #8f9ab0; }
.breadcrumb a:hover { color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.card-tight { padding: var(--space-6); }

.pillar-card { border-top: 3px solid var(--color-primary); }
.pillar-card .icon { color: var(--color-primary); margin-bottom: var(--space-4); }
.pillar-card h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.pillar-card p { font-size: var(--text-sm); margin: 0; }

.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease) 0.25s, box-shadow var(--ease) 0.25s, border-color var(--ease) 0.25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-primary); }
.product-card .thumb { aspect-ratio: 4/3; background: var(--color-surface-2); display: flex; align-items: center; justify-content: center; padding: var(--space-6); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: contain; }

.product-card--bleed { background: var(--color-navy); border-color: var(--color-navy); }
.product-card--bleed .thumb.thumb--bleed { aspect-ratio: 4/5; background: var(--color-navy); padding: 0; }
.product-card--bleed .thumb.thumb--bleed img { object-fit: cover; width: 100%; height: 100%; }
.product-card--bleed .body p,
.product-card--bleed .body h3,
.product-card--bleed .body h4 { color: #fff; }
.product-card--bleed .body p { color: #c3c9d6; }

/* Larger image variant used on White Label group sections */
.split-lg { grid-template-columns: 0.8fr 1.2fr; }
.split-lg.reverse { grid-template-columns: 1.2fr 0.8fr; }
.split-lg .thumb.thumb--bleed { aspect-ratio: 1/1; min-height: 320px; }
@media (max-width: 860px) {
  .split-lg, .split-lg.reverse { grid-template-columns: 1fr; }
  .split-lg .thumb.thumb--bleed { min-height: 220px; }
}

/* Full-width category banner used on Raw Materials */
.raw-banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: 340px; background: var(--color-navy); }
.raw-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.raw-banner-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,10,19,0) 45%, rgba(6,10,19,0.9) 100%); }
.raw-banner-title { position: absolute; left: var(--space-6); bottom: var(--space-5); color: #fff; margin: 0; z-index: 2; }
@media (max-width: 640px) { .raw-banner { height: 220px; } }
.product-card .body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.product-card h3 { font-size: var(--text-base); margin: 0; }
.product-card p { font-size: var(--text-xs); margin: 0; }

.blurb-card {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-4);
}
.blurb-card h4 { font-family: var(--font-display); font-size: var(--text-sm); margin-bottom: var(--space-1); color: var(--color-text); }
.blurb-card p { font-size: var(--text-xs); margin: 0; }

.team-card { text-align: center; }
.team-card .avatar { width: 96px; height: 96px; border-radius: var(--radius-full); overflow: hidden; margin-inline: auto; margin-bottom: var(--space-4); border: 3px solid var(--color-surface-offset); }
.team-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: var(--text-base); margin-bottom: 2px; }
.team-card .role { font-size: var(--text-xs); color: var(--color-primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); }
.team-card .contact-line { display: flex; flex-direction: column; gap: 4px; font-size: var(--text-xs); }
.team-card .contact-line a { color: var(--color-text-muted); }
.team-card .contact-line a:hover { color: var(--color-primary); }

/* ============================================================
   BADGES / CALLOUTS
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1);
  font-size: var(--text-xs); font-weight: 700; font-family: var(--font-display);
  padding: 0.3em 0.85em; border-radius: var(--radius-full);
  background: var(--color-primary-highlight); color: var(--color-primary);
}
.badge-gold { background: var(--color-gold-highlight); color: var(--color-gold); }
.badge-purple { background: var(--color-purple-highlight); color: var(--color-purple); }

.callout {
  background: var(--color-primary-highlight);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
}
.callout p { color: var(--color-text); margin: 0; }

/* ============================================================
   FAQ (AEO / GEO answer blocks)
   ============================================================ */
.faq-list {
  display: flex; flex-direction: column; gap: var(--space-6);
  max-width: 780px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-6);
}
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.faq-q {
  font-size: var(--text-lg); font-weight: 700; font-family: var(--font-display);
  color: var(--color-text); margin: 0 0 var(--space-2);
}
.faq-a {
  font-size: var(--text-base); color: var(--color-text-muted); margin: 0; line-height: 1.6;
}

.disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

/* ============================================================
   TABLES
   ============================================================ */
.svc-table { border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
.svc-table table { width: 100%; }
.svc-table thead { background: var(--color-navy); }
.svc-table thead th { color: #fff; text-align: left; font-family: var(--font-display); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; padding: var(--space-4) var(--space-5); }
.svc-table tbody tr { border-top: 1px solid var(--color-divider); }
.svc-table tbody tr:hover { background: var(--color-surface-offset); }
.svc-table td { padding: var(--space-4) var(--space-5); font-size: var(--text-sm); vertical-align: top; }
.svc-table td.name { font-weight: 700; font-family: var(--font-display); color: var(--color-text); white-space: nowrap; }
.svc-table td.price { color: var(--color-primary); font-weight: 700; white-space: nowrap; }

/* ============================================================
   FEATURE GRID (used across product pages)
   ============================================================ */
.feature { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); background: var(--color-surface); }
.feature h4 { font-size: var(--text-base); margin-bottom: var(--space-2); }
.feature p { font-size: var(--text-sm); margin: 0; }

/* ============================================================
   TWO-COL LIST
   ============================================================ */
.two-col-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-10); }
.two-col-list ul { display: flex; flex-direction: column; gap: var(--space-2); }
.two-col-list li { font-size: var(--text-sm); color: var(--color-text-muted); padding-left: var(--space-4); position: relative; }
.two-col-list li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }
@media (max-width: 640px) { .two-col-list { grid-template-columns: 1fr; } }

/* ============================================================
   FACILITY GALLERY
   ============================================================ */
.facility-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.facility-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); aspect-ratio: 4/3; }
.facility-gallery > *:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .facility-gallery { grid-template-columns: 1fr 1fr; } .facility-gallery > *:first-child { grid-row: auto; grid-column: span 2; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { background: linear-gradient(120deg, var(--color-navy) 0%, var(--color-navy-2) 100%); color: #fff; border-radius: var(--radius-xl); padding: clamp(var(--space-10), 6vw, var(--space-16)); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3c9d6; margin-inline: auto; }
.cta-band .hero-ctas { justify-content: center; }

/* ============================================================
   TESTIMONIAL / TRUST STRIP
   ============================================================ */
.trust-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-10); padding-block: var(--space-8); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
@media (max-width: 640px) { .trust-strip { grid-template-columns: 1fr; } }
.trust-item { display: flex; align-items: center; gap: var(--space-3); }
.trust-item strong { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-text); display: block; }
.trust-item span { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ============================================================
   FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-xs); font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field textarea, .field select {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); color: var(--color-text);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--color-primary); }
.field-error { color: var(--color-error); font-size: var(--text-xs); }
.form-note { font-size: var(--text-xs); color: var(--color-text-faint); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-navy); color: #b7bfcc; }
.footer .wrap { padding-block: var(--space-16) var(--space-8); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: var(--space-10); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 34px; margin-bottom: var(--space-4); }
.footer-brand p { color: #8f9ab0; font-size: var(--text-sm); max-width: 32ch; }
.footer h4 { color: #fff; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-4); }
.footer ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer a { color: #b7bfcc; font-size: var(--text-sm); }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-4); padding-top: var(--space-8); margin-top: var(--space-8); border-top: 1px solid #1c2c4c; font-size: var(--text-xs); color: #6c778f; }
.footer-legal { display: flex; gap: var(--space-4); }
.footer-phone-cta { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MISC
   ============================================================ */
.tag-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.divider { height: 1px; background: var(--color-divider); margin-block: var(--space-4); }
.icon-circle { width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--color-primary-highlight); color: var(--color-primary); display: flex; align-items: center; justify-content: center; }

/* ============================================================
   AGE VERIFICATION GATE
   ============================================================ */
html.age-gate-locked,
html.age-gate-locked body { overflow: hidden; height: 100%; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: radial-gradient(circle at 28% 18%, rgba(110, 63, 163, 0.35), transparent 55%), var(--color-navy);
}
.age-gate[hidden] { display: none; }
.age-gate-panel {
  max-width: 440px;
  width: 100%;
  background: var(--color-navy-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.age-gate-logo { height: 30px; width: auto; margin-bottom: var(--space-6); }
.age-gate-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 var(--space-3);
}
.age-gate-desc {
  color: #9aa7bd;
  font-size: var(--text-sm);
  line-height: 1.6;
  margin: 0 0 var(--space-8);
}
.age-gate-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.age-gate .btn-outline { color: #e7e9ee; border-color: rgba(231, 233, 238, 0.4); }
.age-gate .btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
.age-gate-fine { font-size: 0.7rem; color: #67728a; line-height: 1.55; margin: 0; }
@media (max-width: 480px) {
  .age-gate-panel { padding: var(--space-8) var(--space-6); }
}

/* ============================================================
   OWNER WELCOME MESSAGE (homepage)
   ============================================================ */
.owner-msg-section { padding-top: 0; }
.owner-msg-card {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.owner-msg-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.owner-msg-card:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.owner-msg-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 108px;
  height: 108px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 3px solid var(--color-primary-highlight);
}
.owner-msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.owner-msg-play-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
.owner-msg-body { flex: 1 1 auto; min-width: 0; }
.owner-msg-title {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
}
.owner-msg-title svg { color: var(--color-primary); transition: transform 0.2s ease; }
.owner-msg-card:hover .owner-msg-title svg { transform: translateX(4px); }
.owner-audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  max-width: 420px;
}
.owner-audio-track {
  flex: 1 1 auto;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
  cursor: pointer;
}
.owner-audio-progress { height: 100%; width: 0%; background: var(--color-primary); border-radius: var(--radius-full); transition: width 0.1s linear; }
.owner-audio-time { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.owner-msg-card.is-playing .owner-msg-avatar { border-color: var(--color-primary); }
@media (max-width: 640px) {
  .owner-msg-card { flex-direction: column; text-align: center; gap: var(--space-5); }
  .owner-msg-title { justify-content: center; }
  .owner-audio-player { max-width: 100%; justify-content: center; }
}

/* Legal pages — Terms of Service, Privacy Policy */
.legal-content { max-width: var(--content-default); margin: 0 auto; }
.legal-updated { color: var(--color-text-faint); font-size: var(--text-sm); margin-bottom: var(--space-10); }
.legal-content section { margin-top: var(--space-10); }
.legal-content section:first-of-type { margin-top: 0; }
.legal-content h2 { font-size: var(--text-lg); line-height: 1.25; }
.legal-content h3 { font-size: var(--text-base); margin-top: var(--space-6); }
.legal-content p { max-width: none; margin-top: var(--space-3); }
.legal-content p:first-of-type { margin-top: var(--space-3); }
.legal-content ul, .legal-content ol { margin-top: var(--space-3); padding-left: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); color: var(--color-text-muted); }
.legal-content li { padding-left: var(--space-1); }
.legal-content a { color: var(--color-primary); text-decoration: underline; }
.footer-legal { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.footer-legal a { color: #b7bfcc; }
.footer-legal a:hover { color: #fff; }

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 900;
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: var(--space-5) var(--space-6);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner { display: flex; flex-direction: column; gap: var(--space-4); }
.cookie-consent-text { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0; line-height: 1.55; }
.cookie-consent-text a { color: var(--color-primary); text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: var(--space-3); justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 480px) {
  .cookie-consent { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-4) var(--space-5); }
  .cookie-consent-actions { justify-content: stretch; }
  .cookie-consent-actions .btn { flex: 1 1 auto; }
}

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.blog-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.blog-card h3 { font-size: var(--text-lg); line-height: 1.3; margin-bottom: var(--space-3); }
.blog-card p { font-size: var(--text-sm); margin-bottom: var(--space-4); }
.blog-card-meta { margin-top: auto; font-size: var(--text-xs); color: var(--color-text-faint); display: flex; align-items: center; gap: var(--space-2); }
.blog-card-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; color: var(--color-primary); font-size: var(--text-sm); }
.blog-card:hover h3 { color: var(--color-primary); }
.blog-card:hover .blog-card-link { color: var(--color-primary-hover); }

.blog-coming-card { border-style: dashed; opacity: 0.75; }
.blog-coming-card .blog-card-tag { color: var(--color-text-faint); }

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}
.article-meta span { display: inline-flex; align-items: center; gap: var(--space-2); }

.article-body {
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.article-body h2 {
  font-size: var(--text-xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.article-body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.article-body p { max-width: none; margin-bottom: var(--space-5); font-size: var(--text-base); line-height: 1.7; }
.article-body ul, .article-body ol { max-width: none; margin: 0 0 var(--space-5); padding-left: var(--space-6); color: var(--color-text-muted); }
.article-body li { margin-bottom: var(--space-2); line-height: 1.65; }
.article-body li::marker { color: var(--color-primary); }
.article-body a { text-decoration: underline; text-decoration-color: var(--color-primary-highlight); text-underline-offset: 3px; }
.article-body strong { color: var(--color-text); font-weight: 700; }
.article-callout {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
}
.article-callout p:last-child { margin-bottom: 0; }
.article-callout .eyebrow { margin-bottom: var(--space-2); }
.article-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  max-width: var(--content-narrow);
  margin-inline: auto;
}
.article-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.article-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: var(--space-1) var(--space-3);
}
