/* ===================================================================
   AI-First - Brand Design System
   Editorial-premium: Playfair Display headings + Inter body.
   Palette derived from the AI-First brand: near-black, blue accent,
   mint highlight, white canvas. No gradients, no stock photos.
   =================================================================== */

/* 1. FONTS ---------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* 2. RESET ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

img,
picture,
video,
iframe { display: block; max-width: 100%; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul { list-style: none; }

/* 3. DESIGN TOKENS -------------------------------------------------- */
:root {
  /* Colours */
  --primary: #0A0A0A;
  --primary-dark: #000000;
  --secondary: #0A0A0A;        /* heading colour */
  --accent: #2563EB;
  --accent-dark: #1D4ED8;
  --accent-soft: #EBF1FE;      /* light blue tile background */
  --mint: #10B981;
  --mint-soft: #E7F8F1;
  --bg: #FFFFFF;
  --bg-light: #F5F5F7;
  --text: #0A0A0A;
  --text-muted: #5A5A60;
  --border: #E6E6E9;
  --success: #10B981;

  /* Type scale (1.25 modular) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.1rem;
  --text-4xl: 2.6rem;
  --text-5xl: 3.25rem;
  --text-6xl: 4rem;

  /* Spacing (4px scale) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 3px rgba(10, 10, 10, 0.06);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06), 0 2px 4px rgba(10, 10, 10, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 10, 10, 0.10), 0 4px 8px rgba(10, 10, 10, 0.05);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --hero-headline: 1080px;

  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* 4. BASE ----------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.5vw, var(--text-6xl)); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, var(--text-5xl)); line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2.2vw, var(--text-2xl)); line-height: 1.2; }
h4 { font-size: var(--text-xl); line-height: 1.25; }

p { line-height: 1.65; max-width: 70ch; }

a { color: var(--accent); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent-dark); }

strong { font-weight: 600; }

/* 5. LAYOUT UTILITIES ---------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.hero-headline {
  max-width: var(--hero-headline);
  margin-inline: auto;
}

.section { padding-block: var(--space-24); }
.section-alt { background: var(--bg-light); }

@media (max-width: 768px) {
  .section { padding-block: var(--space-16); }
}

/* 6. BUTTONS -------------------------------------------------------- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-full);
  transition: transform var(--t-base), box-shadow var(--t-base), background var(--t-base), color var(--t-base);
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  color: #fff;
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-large { padding: 1.15rem 2.25rem; font-size: var(--text-lg); }

.btn-primary svg,
.btn-secondary svg { width: 18px; height: 18px; }

/* 7. CARD ----------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* 8. TRUST STRIP ---------------------------------------------------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  color: var(--text-muted);
  font-size: var(--text-sm);
}
.trust-strip .trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.trust-strip .trust-num {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}
.trust-strip .stars { color: var(--accent); letter-spacing: 2px; }

/* 9. SECTION HEADING SET ------------------------------------------- */
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-4);
}
.section-title { margin-bottom: var(--space-4); }
.section-subtitle {
  color: var(--text-muted);
  font-size: var(--text-lg);
  max-width: 600px;
}
.section-head-center {
  text-align: center;
}
.section-head-center .section-subtitle { margin-inline: auto; }

/* 10. MODAL (defined for completeness; Pattern A uses no modal) ----- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base), visibility var(--t-base);
  z-index: 1000;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-content {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-12);
}
.modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
}
.modal-close:hover { background: var(--bg-light); color: var(--text); }
body.modal-open { overflow: hidden; }

/* 11. FAQ ACCORDION ------------------------------------------------- */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--t-base);
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding-bottom: var(--space-6);
  color: var(--text-muted);
  max-width: 65ch;
}

/* 12. NAV + PLACEHOLDERS ------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.nav.nav-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 30px; width: auto; }

.video-placeholder,
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: var(--text-sm);
  background: var(--bg-light);
  padding: var(--space-8);
}
.video-placeholder { aspect-ratio: 16 / 9; }
.image-placeholder { aspect-ratio: 3 / 2; }

/* 16:9 video frame */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
}
.video-frame iframe,
.video-frame .wistia_responsive_padding {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 13. RESPONSIVE GRIDS --------------------------------------------- */
.grid-2,
.grid-3 { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

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

/* 14. UTILITIES ---------------------------------------------------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* .highlight - emphasise a single phrase/number, used sparingly */
.highlight {
  color: var(--accent);
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 0.08em;
}
.highlight-mint {
  color: var(--mint);
  background: linear-gradient(transparent 62%, var(--mint-soft) 62%);
  padding: 0 0.08em;
}

/* eyebrow pill (matches brand: rounded pill with mint dot) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  background: #fff;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}
