/* ===================================
   FitCraft — Landing Page CSS
   Used by /get/* landing pages.
   Loads AFTER shared.css and homepage.css.
   Contains only SB7-specific bits not in homepage.css:
   - Mechanics grid (page-specific feature showcase)
   - Proof bar (stat row)
   - FAQ section
   - A few section overrides
=================================== */

/* === MECHANICS (page-specific feature showcase) === */
.mechanics {
  padding: var(--section-pad) 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.mechanics .container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mechanics .section-heading { margin-bottom: 16px; }
.mechanics .section-body {
  margin: 0 auto 56px;
  max-width: 640px;
}
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  width: 100%;
}
.mechanic-card {
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 32px 28px;
  text-align: left;
  transition: all .3s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mechanic-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(232, 101, 43, .2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(27, 42, 74, .08);
}
.mechanic-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 101, 43, .14), rgba(232, 101, 43, .06));
  color: var(--cta-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.mechanic-icon svg { width: 22px; height: 22px; }
.mechanic-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .3px;
  color: var(--text-primary);
}
.mechanic-card p {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* === PROOF BAR (4-stat row) === */
.proof-bar {
  padding: 56px 0;
  background: var(--bg-alt);
  border-top: 1px solid rgba(27, 42, 74, .06);
  border-bottom: 1px solid rgba(27, 42, 74, .06);
}
.proof-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: start;
}
.proof-stat {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.proof-stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  color: var(--cta-primary);
  letter-spacing: -.5px;
  line-height: 1.1;
}
.proof-stat-label {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.proof-stat-source {
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .3px;
  margin-top: 4px;
}

/* === FAQ === */
.faq {
  padding: var(--section-pad) 0;
  background: var(--bg-deep);
}
.faq .container {
  max-width: 820px;
}
.faq .section-label {
  display: flex;
  justify-content: center;
}
.faq .section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(27, 42, 74, .08);
}
.faq-item:first-of-type {
  border-top: 1px solid rgba(27, 42, 74, .08);
}
.faq-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: .2px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.faq-item p {
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.7;
}

/* === AGREEMENT PLAN (SB7 element 4 — commitments that remove risk) ===
   Compact horizontal strip of 3 commitments shown under the Plan section CTA.
   Replaces dispersed reassurance copy with one explicit risk-removal list. */
.agreement-plan {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: center;
  max-width: 860px;
  margin: 28px auto 0;
  padding: 0;
}
.agreement-plan li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}
.agreement-plan li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--cta-primary);
}
@media (max-width: 700px) {
  .agreement-plan {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
  }
  .agreement-plan li { font-size: .88rem; }
}

/* === SUCCESS-PICTURE LEAD (SB7 element 7 — transformation painted before testimonials) ===
   A short paragraph between the Testimonials H2 and cards. Paints the after-state
   so the cards confirm rather than carry the success story alone. */
.testimonials-success-lead {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 680px;
  font-style: italic;
  color: var(--text-muted);
}

/* === Section-label/heading adjustments for landing-page context === */
/* Center the section-label inside flex column containers (problem, plan, mechanics, success, testimonials, faq) */
.problem .section-label,
.plan .section-label,
.mechanics .section-label,
.success .section-label,
.testimonials .section-label,
.faq .section-label,
.failure .section-label {
  margin-left: auto;
  margin-right: auto;
}

/* Mechanics-card icon overrides for inline SVG emoji glyphs */
.mechanic-icon-emoji {
  font-size: 1.6rem;
}

/* === Page-specific: hero CTA color tweaks === */
/* Match homepage's hero CTA color treatment for the landing page hero */

/* Derrick's longer promise headline should feel assertive without taking over
   the whole desktop viewport. Homepage.css has a large campaign-hero override
   later in the cascade, so scope this correction to the Derrick page only. */
@media (min-width: 901px) {
  .derrick-landing .hero-content {
    max-width: 650px;
  }

  .derrick-landing .hero h1 {
    font-size: clamp(3.35rem, 4.8vw, 4.75rem);
    line-height: 1;
    letter-spacing: -1.1px;
    max-width: 11.5ch;
  }

  .derrick-landing .hero-subtitle {
    max-width: 590px;
  }
}

.derrick-landing .guide-text .guide-authority {
  margin-bottom: 18px;
}

.derrick-landing .guide-text .derrick-science-note {
  margin-top: 4px;
}

.derrick-landing .derrick-proof-logos {
  margin-top: 18px;
}

/* === Desktop scrolled-state CTA fix ===
   shared.css turns the secondary CTA ("Get The App") white in .topnav.scrolled
   on the assumption that the nav background also darkens on scroll. The
   landing-page desktop nav stays white-frosted (it only darkens on mobile),
   so the white-on-white CTA becomes invisible. Re-pin it to the unscrolled
   dark-on-light styling for desktop only. */
@media (min-width: 901px) {
  .topnav.scrolled .topnav-cta-secondary {
    color: var(--accent) !important;
    border-color: rgba(27, 42, 74, .3) !important;
    background: transparent !important;
  }
  .topnav.scrolled .topnav-cta-secondary:hover {
    border-color: var(--accent) !important;
    background: rgba(27, 42, 74, .05) !important;
  }
}

/* === Mobile nav: restore homepage's glassy navy treatment ===
   shared.css gives content pages a solid-white nav on mobile, which looks
   wrong over the landing page's dark hero. These rules override shared.css
   to match the homepage's `rgba(27, 42, 74, .7)` translucent-navy bar with
   a white logo + white CTAs. Pair with the inline scroll-watcher JS that
   toggles `.topnav.scrolled` when the hero leaves the viewport. */
@media (max-width: 900px) {
  .topnav {
    background: rgba(27, 42, 74, .7) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .1) !important;
    transition: background .4s ease, border-bottom .4s ease;
    padding: 18px 6px !important;
  }
  .topnav .topnav-logo img {
    filter: brightness(0) invert(1) !important;
  }
  .topnav.scrolled {
    background: rgba(27, 42, 74, .95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .12) !important;
  }
  .topnav.scrolled .topnav-logo img {
    filter: brightness(0) invert(1) !important;
  }
  .topnav-cta-mobile {
    color: #fff !important;
  }
  .topnav-cta-secondary-mobile {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .4) !important;
    background: transparent !important;
  }
  .topnav-cta-secondary-mobile:hover {
    border-color: #fff !important;
    background: rgba(255, 255, 255, .1) !important;
  }
  .hamburger svg {
    stroke: #fff !important;
  }
}

/* === GUIDE — "Behind the AI" variant ===
   Used on AI-centric landing pages (ai-personal-trainer-app, ai-fitness-coach)
   where Domenic's human expertise is the authority anchor and Ty is reframed
   as a delivery mechanism in the secondary section below.
   Does NOT touch shared .guide styles in homepage.css. */
.guide-behind-ai {
  padding: var(--section-pad) 0;
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}
.guide-behind-ai .container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.guide-behind-ai-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.guide-behind-ai-portrait {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  padding: 5px;
  background: var(--gradient-accent);
  box-shadow: 0 16px 48px rgba(27, 42, 74, .18);
  position: relative;
}
.guide-behind-ai-portrait::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed rgba(27, 42, 74, .15);
}
.guide-behind-ai-portrait picture,
.guide-behind-ai-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
}

.guide-behind-ai-text { min-width: 0; }
.behind-ai-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -.3px;
  color: var(--text-primary);
  margin: 12px 0 24px;
}
.behind-ai-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid var(--cta-primary);
}
.behind-ai-pivot {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.behind-ai-pivot strong { color: var(--text-primary); }

/* "What Ty doesn't do" callout — light alt panel, monospace-leaning, orange rule */
.behind-ai-not-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--cta-primary);
  border-radius: 6px;
  padding: 18px 22px 18px 24px;
  margin: 0 0 32px;
}
.behind-ai-not-label {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: .72rem;
  color: var(--cta-primary);
  margin: 0 0 10px;
}
.behind-ai-not-callout ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.behind-ai-not-callout li {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .92rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.behind-ai-not-callout li::before {
  content: '\00d7';                /* multiplication sign */
  position: absolute;
  left: 4px;
  top: -1px;
  color: var(--cta-primary);
  font-weight: 700;
  font-size: 1.05rem;
}

/* Domenic blockquote */
.behind-ai-quote {
  margin: 0 0 32px;
  padding: 4px 0 4px 24px;
  border-left: 3px solid rgba(27, 42, 74, .15);
  font-style: italic;
}
.behind-ai-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.behind-ai-quote-attribution {
  font-style: normal;
  font-size: .88rem;
  color: var(--text-dim);
  letter-spacing: .2px;
}

/* Press intro line */
.behind-ai-press-intro {
  font-size: .95rem;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* Large press logos — earn their loudness on this page */
.guide-behind-ai .guide-logos-large {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  margin-top: 4px;
  margin-bottom: 8px;
  opacity: .7;
  transition: opacity .3s ease;
}
.guide-behind-ai .guide-logos-large:hover { opacity: .92; }
.guide-behind-ai .guide-logos-large img {
  height: 40px;
  width: auto;
  filter: grayscale(1) brightness(.3);
  object-fit: contain;
}

/* Domenic byline pill — reuse shared .guide-domenic + .domenic-headshot
   from homepage.css; just ensure spacing in the new container is clean. */
.guide-behind-ai .guide-domenic {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, .06);
}

/* === SECONDARY: "And Ty?" callout — Ty as delivery vehicle, not authority === */
.meet-ty-secondary {
  padding: 56px 0 72px;
  background: var(--bg-alt);
  border-top: 1px solid rgba(27, 42, 74, .06);
}
.meet-ty-secondary .container {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: center;
  max-width: 880px;
}
.meet-ty-secondary-visual { display: flex; justify-content: center; }
.meet-ty-secondary-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 6px 20px rgba(27, 42, 74, .1);
  position: relative;
}
.meet-ty-secondary-avatar picture,
.meet-ty-secondary-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meet-ty-secondary-text { min-width: 0; }
.meet-ty-secondary-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .2px;
  color: var(--text-primary);
  margin: 8px 0 12px;
}
.meet-ty-secondary-text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .proof-bar .container { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 900px) {
  .guide-behind-ai .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .guide-behind-ai-visual { order: -1; }
  .guide-behind-ai-portrait { width: 240px; height: 240px; }
  .behind-ai-heading { font-size: clamp(1.6rem, 5.6vw, 2.05rem); }
  .behind-ai-lead { border-left: none; padding-left: 0; border-top: 3px solid var(--cta-primary); padding-top: 18px; }
  .guide-behind-ai .guide-logos-large { gap: 24px; }
  .guide-behind-ai .guide-logos-large img { height: 30px; }
  .guide-behind-ai .guide-domenic { justify-content: center; }

  .meet-ty-secondary .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .meet-ty-secondary-avatar { width: 112px; height: 112px; }
}
@media (max-width: 700px) {
  .mechanics-grid { grid-template-columns: 1fr; }
  .proof-bar { padding: 40px 0; }
  .proof-bar .container { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .proof-stat-number { font-size: 1.6rem; }
  .faq .section-heading { margin-bottom: 32px; }
  .faq-item { padding: 20px 0; }
  .behind-ai-not-callout { padding: 16px 18px 16px 20px; }
  .behind-ai-quote p { font-size: 1.02rem; }
}
