/* ============================================================
   ANCHOR x APPLE LAYER
   Loaded after each page's own <style>, so it restyles every page
   in one place. Brand stays: navy ink, cobalt, Satoshi.
   What changes: white / #f5f5f7 canvas, semibold tight headlines,
   gray "second line" instead of serif italics, pill buttons,
   large soft-radius cards, thin frosted nav, calm dark sections,
   slow Apple easing on reveals. Remove the <link> to roll back.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-2:      #ffffff;
  --bg-3:      #f5f5f7;
  --cream:     #ffffff;

  --line:        rgba(0,3,33,0.07);
  --line-strong: rgba(0,3,33,0.12);

  --apple-gray:   rgba(0,3,33,0.42);
  --apple-gray-d: rgba(255,255,255,0.5);
  --apple-blue-d: #7c9cff;
  --apple-ease:   cubic-bezier(0.28, 0.11, 0.32, 1);
  --apple-radius: 22px;
  --apple-radius-sm: 16px;

  --shadow-card-rest:  0 1px 2px rgba(0,3,33,0.04);
  --shadow-card-hover: 0 18px 40px -18px rgba(0,3,33,0.18);
  --shadow-card:       0 18px 40px -18px rgba(0,3,33,0.18);
  --shadow-cta-rest:   none;
  --shadow-cta-hover:  0 8px 24px -10px rgba(0,56,255,0.45);
}

body {
  background: var(--bg);
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
}

/* ---------- Typography ---------- */
.hero-headline,
.hero h1 {
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.04 !important;
}
.section-headline,
.section-headline-dark {
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.06 !important;
}
.display-num,
.stat-num,
.founder-stat-num,
.lectured-num {
  font-weight: 700 !important;
  letter-spacing: -0.035em !important;
}
h3 { letter-spacing: -0.02em; }

/* Apple pairs a bold line with a quiet gray line, not a serif italic */
.italic-muted {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: var(--apple-gray) !important;
}
.italic-muted-dark,
.on-dark .italic-muted,
.italic-muted.on-dark,
.section-dark .italic-muted,
section.dark .italic-muted,
.dark .italic-muted {
  color: var(--apple-gray-d) !important;
}

/* Eyebrows: sentence-case cobalt kicker, like Apple's "New" labels */
.eyebrow,
.eyebrow-dark {
  font-family: var(--font-display, var(--f-display, 'Satoshi', system-ui, sans-serif)) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  line-height: 1.2 !important;
  color: var(--accent) !important;
}
.eyebrow-dark,
.section-dark .eyebrow,
section.dark .eyebrow,
.dark .eyebrow,
.on-dark .eyebrow {
  color: var(--apple-blue-d) !important;
}

.lead,
.hero-sub,
.body-large,
.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem) !important;
  line-height: 1.5 !important;
  letter-spacing: -0.012em;
}

/* ---------- Navigation: thin frosted bar ---------- */
.nav,
nav.topnav {
  background: rgba(255,255,255,0.72) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  border-bottom: 1px solid rgba(0,3,33,0.06) !important;
  box-shadow: none !important;
}
.nav.scrolled,
nav.topnav.scrolled {
  background: rgba(255,255,255,0.82) !important;
  box-shadow: none !important;
}
.nav-progress,
nav.topnav .nav-progress { display: none !important; }
.nav-links a,
nav.topnav ul a {
  font-size: 13px !important;
  letter-spacing: -0.005em !important;
  transition: color 200ms var(--apple-ease) !important;
}
nav.topnav ul a::before { display: none !important; }
nav.topnav .btn-primary::after { display: none !important; }

/* ---------- Buttons: pills ---------- */
.btn,
.btn-primary,
.btn-ghost,
.nav-cta,
.price-card-cta,
.price-card-cta-ghost,
.way-cta {
  border-radius: 980px !important;
  letter-spacing: -0.01em !important;
  transition: background-color 200ms var(--apple-ease), color 200ms var(--apple-ease),
              box-shadow 300ms var(--apple-ease), transform 300ms var(--apple-ease) !important;
}
.btn-primary,
.nav-cta {
  box-shadow: none !important;
}
.btn-primary:hover,
.nav-cta:hover {
  background: #1f4dff !important;
  box-shadow: var(--shadow-cta-hover) !important;
  transform: none !important;
}
.btn-primary:active { transform: scale(0.98) !important; }
.btn-ghost:hover { transform: none !important; }

/* ---------- Sections ---------- */
.hero::before,
.hero::after { opacity: 0.35; }

#clients, #faq, #program, #investment, #ways {
  border-top: 0 !important;
  border-bottom: 0 !important;
}

/* Dark sections: calm navy, no grid lines or grain, one soft glow */
.section-dark,
section.dark,
.dark {
  border-top: 0 !important;
  border-bottom: 0 !important;
}
.section-dark::after,
section.dark::after,
.dark::after,
.section-dark .grain,
section.dark .grain,
.dark .grain { display: none !important; }
.section-dark::before,
.dark::before {
  background: radial-gradient(1100px 520px at 50% -10%, rgba(0,56,255,0.18), transparent 70%) !important;
  opacity: 1 !important;
}

/* ---------- Cards: big soft radius, hairline, gentle lift ---------- */
.card,
.feature-card,
.program-card,
.metric-card,
.testimonial-card,
.t-card,
.stat-card,
.beyond-card,
.result,
.way-card,
.case-card,
.fit-card,
.price-card,
.pricing-card,
.support-card,
.agent-card,
.flow-card,
.workflow-card,
.toolkit-tile,
.field-tile,
.suite-callout,
.train-callout,
.services-banner,
.modal-card,
.layer4,
.intro-inner,
.video-wrap,
.founder-media,
.hero-photo {
  border-radius: var(--apple-radius) !important;
}
.card,
.feature-card,
.program-card,
.testimonial-card,
.t-card,
.beyond-card,
.result,
.way-card,
.case-card,
.fit-card,
.price-card,
.pricing-card,
.support-card,
.toolkit-tile {
  border-color: rgba(0,3,33,0.06) !important;
  box-shadow: var(--shadow-card-rest) !important;
  transition: transform 500ms var(--apple-ease), box-shadow 500ms var(--apple-ease),
              border-color 300ms var(--apple-ease) !important;
}
.card:hover,
.feature-card:hover,
.program-card:hover,
.testimonial-card:hover,
.t-card:hover,
.beyond-card:hover,
.result:hover,
.way-card:hover,
.case-card:hover,
.fit-card:hover,
.price-card:hover,
.pricing-card:hover,
.support-card:hover,
.toolkit-tile:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-card-hover) !important;
  border-color: rgba(0,3,33,0.08) !important;
}
.feature-card::before { opacity: 0 !important; }

/* Images inside rounded cards follow the radius */
.result-img,
.t-photo,
.testimonial-photo,
.founder-img,
.intro-photo,
.train-photo,
.train-callout-photo {
  border-radius: var(--apple-radius-sm) !important;
}

/* Dark cards stay dark, just softer */
.card.dark,
.stat-card,
.agent-card,
.section-dark .card,
section.dark .card,
.dark .metric-card {
  border-color: rgba(255,255,255,0.08) !important;
}

/* ---------- FAQ: clean rows ---------- */
.faq-item {
  border-radius: var(--apple-radius-sm) !important;
}
.faq-q {
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

/* ---------- Footer ---------- */
.footer,
footer.site-footer {
  font-size: 12px;
}

/* ---------- Motion: slow, smooth reveals ---------- */
.reveal {
  transition: opacity 900ms var(--apple-ease), transform 900ms var(--apple-ease) !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none !important; }
  .card:hover, .feature-card:hover, .program-card:hover, .testimonial-card:hover,
  .t-card:hover, .beyond-card:hover, .result:hover, .way-card:hover, .case-card:hover,
  .fit-card:hover, .price-card:hover, .pricing-card:hover, .support-card:hover,
  .toolkit-tile:hover { transform: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .eyebrow, .eyebrow-dark { font-size: 15px !important; }
  :root { --apple-radius: 18px; --apple-radius-sm: 14px; }
}

/* ---------- Pass 2: remaining mono / serif spots in the hero and nav ---------- */
nav.topnav ul a {
  font-family: var(--f-display, var(--font-display, 'Satoshi', system-ui, sans-serif)) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
}
.hero h1 .accent {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  background: linear-gradient(100deg, #0038ff 10%, #5b7cff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}
.pricing-period {
  font-family: inherit !important;
  font-style: normal !important;
}
/* Hero status pills read as quiet sentence-case badges */
.hero .pill,
.hero-pill,
.status-pill {
  border-radius: 980px !important;
  box-shadow: none !important;
}
.hero .pill,
.hero .pill *,
.hero-pill,
.hero-pill *,
.status-pill,
.status-pill * {
  font-family: var(--font-display, var(--f-display, 'Satoshi', system-ui, sans-serif)) !important;
  text-transform: none !important;
  letter-spacing: -0.005em !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* ---------- Pass 3: in-title accents and photo banner contrast ---------- */
h3 .accent,
h4 .accent,
.toolkit-name .accent,
h3 em,
.feature-card h3 .accent,
.price-card-name .accent,
.svc-title .italic-muted,
.svc-title em {
  font-family: inherit !important;
  font-style: normal !important;
  font-weight: inherit !important;
}
/* Text over the services photo banner must stay light */
.services-banner-content .eyebrow { color: rgba(255,255,255,0.85) !important; }
.services-banner-content .section-headline .italic-muted { color: rgba(255,255,255,0.6) !important; }

/* ---------- Pass 4: no left accent stripes; plain soft tiles instead ---------- */
.suite-callout,
.suite-callout:hover,
.train-bullet,
.fit-pill,
.fit-pill:hover,
.process-steps li {
  border: 0 !important;
  border-radius: var(--apple-radius-sm) !important;
  background: var(--bg-3) !important;
  box-shadow: none !important;
}
.fit-pill:hover { transform: none !important; }
section[style*="--bg-3"] .suite-callout,
section[style*="--bg-3"] .train-bullet,
section[style*="--bg-3"] .fit-pill,
section[style*="--bg-3"] .process-steps li { background: #fff !important; }

/* ---------- Pass 5: testimonials up top, three videos side by side ---------- */
@media (min-width: 1024px) {
  .t-grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (min-width: 1100px) {
  .testimonials-3 { grid-template-columns: repeat(3, 1fr) !important; }
}
.t-card .t-quote,
.testimonial-card .testimonial-quote { font-size: 1.125rem !important; }

/* AI Systems proof block */
.proof-section { padding: 72px 0 24px; }
@media (min-width: 768px) { .proof-section { padding: 112px 0 40px; } }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 40px;
}
@media (min-width: 768px) { .proof-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.proof-card {
  background: #fff;
  border: 1px solid rgba(0,3,33,0.06);
  border-radius: var(--apple-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,3,33,0.04);
  transition: transform 500ms var(--apple-ease), box-shadow 500ms var(--apple-ease);
}
.proof-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.proof-video { position: relative; padding-bottom: 56.25%; background: var(--bg-3); }
.proof-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.proof-author { display: flex; align-items: center; gap: 12px; padding: 16px 20px 18px; }
.proof-author img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.proof-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; color: var(--text); }
.proof-role { font-size: 13px; color: var(--text-muted); }
@media (prefers-reduced-motion: reduce) { .proof-card:hover { transform: none; } }

/* ---------- Pass 6: featured case-study video above the testimonial row ---------- */
.case-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 40px 0 24px;
  background: #fff;
  border: 1px solid rgba(0,3,33,0.06);
  border-radius: var(--apple-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,3,33,0.04);
}
@media (min-width: 900px) {
  .case-feature { grid-template-columns: 1.6fr 1fr; align-items: center; }
}
.case-feature-video { position: relative; padding-bottom: 56.25%; background: var(--bg-3); }
.case-feature-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.case-feature-copy { padding: 24px 24px 28px; }
@media (min-width: 900px) { .case-feature-copy { padding: 32px 40px; } }
.case-feature-kicker { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: -0.01em; margin-bottom: 10px; }
.case-feature-num {
  font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.case-feature-num span { color: var(--apple-gray); }
.case-feature-sub { margin-top: 12px; font-size: 1.0625rem; line-height: 1.5; color: var(--text-muted); max-width: 26rem; }
/* the row below no longer needs its own top gap */
.case-feature + .t-grid,
.case-feature + .proof-grid { margin-top: 0 !important; }
