/* ===========================================================
   The Sales Mastermind — homepage styles
   Design tokens sourced from the Claude Design export + handoff spec.
   =========================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body, h1, h2, p, blockquote, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
a { text-decoration: none; }

/* ---------- Design tokens ---------- */
:root {
  --orange: #EA6837;
  /* Nudged one shade darker than the export's literal #C24E22 so both this
     token's static use (Ghostbuster/eyebrow text) and its reuse as the
     hover/active color for buttons and links clear WCAG AA (4.5:1) —
     the export's hover/active states were the spec author's own stated
     intent, not a captured design, and #C24E22 landed at ~4.49:1. */
  --orange-dark: #B8451D;
  --blue: #0F68C9;
  --navy: #0B1F3A;
  --ink: #1B1A18;
  --paper: #FAF8F4;
  --card: #F3EFE7;
  --slate: #6E6A63;
  --rule: #DFD9CC;
  --body-copy: #39352F;
  --on-navy-sub: #D7DEEA;
  --on-navy-meta: #C9D8EE;
  --on-navy-footer: #8FA3C2;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-btn: 3px;
  --radius-card: 4px;
  --gutter: 48px;
  --section-y: 90px;

  --ph-bg: repeating-linear-gradient(45deg, #EDE8DE 0 10px, #F3EFE7 10px 20px);
}

@media (max-width: 768px) {
  :root { --gutter: 32px; --section-y: 64px; }
}
@media (max-width: 480px) {
  :root { --gutter: 20px; --section-y: 48px; }
}

/* ---------- Base ---------- */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
a:hover { color: var(--orange-dark); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 100;
  background: var(--navy);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: top 150ms ease;
}
.skip-link:focus {
  top: 12px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--paper);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  border-radius: var(--radius-btn);
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  transition: background 150ms ease, transform 150ms ease;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--orange-dark); color: var(--paper); }
.btn:active { background: var(--orange-dark); color: var(--paper); transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:disabled,
.btn[aria-disabled="true"] {
  background: rgba(234, 104, 55, 0.4);
  cursor: not-allowed;
}

.btn--lg { padding: 16px 32px; font-size: 13px; }
.btn--md { padding: 14px 28px; font-size: 12px; }
.btn--form { padding: 15px 30px; font-size: 12px; }
.btn--sm { padding: 12px 24px; font-size: 12px; }
.btn--xs { padding: 10px 20px; font-size: 12px; }

@media (max-width: 480px) {
  .btn--full-mobile { display: block; width: 100%; text-align: center; }
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 480px) {
  .site-header { padding-top: 20px; padding-bottom: 20px; }
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.primary-nav {
  display: flex;
  gap: 30px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.primary-nav a {
  color: var(--slate);
  transition: color 150ms ease;
}
.primary-nav a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-btn);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .header-cta-inline { display: none; }
  .nav-toggle { display: flex; }
  .header-right { gap: 12px; }
  .primary-nav { display: none; }
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  padding: 14px 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
}
.nav-drawer a:hover { color: var(--ink); }
.nav-drawer .btn { margin-top: 16px; }

@media (min-width: 769px) {
  .nav-drawer { display: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  padding: 62px var(--gutter) 67px;
  align-items: stretch;
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .hero__photo { order: 2; }
  .hero__text { order: 1; }
}
@media (max-width: 480px) {
  .hero { gap: 32px; }
}

.hero__text { max-width: 600px; }

.hero__heading {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 600px;
}
.hero__heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
@media (max-width: 768px) {
  .hero__heading { font-size: 34px; line-height: 1.1; }
}
@media (max-width: 480px) {
  .hero__heading { font-size: 28px; line-height: 1.15; }
}

.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body-copy);
  margin-top: 18px;
  max-width: 460px;
}
.hero__sub p { margin: 0 0 1em; }
.hero__sub p:last-child { margin-bottom: 0; }

.hero__cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 480px) {
  .hero__cta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__cta .btn { width: 100%; text-align: center; }
}

.hero__cta-lead {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.hero__photo {
  height: 100%;
  min-height: 460px;
  border: 1px solid var(--rule);
  object-fit: cover;
  object-position: center 20%;
  width: 100%;
}
@media (max-width: 768px) {
  .hero__photo { min-height: 0; aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .hero__photo { aspect-ratio: 3 / 2; }
}

/* ---------- Lead-magnet strip ---------- */
.lead-magnet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px var(--gutter);
  background: var(--card);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 768px) {
  .lead-magnet { flex-direction: column; align-items: flex-start; gap: 20px; }
  .lead-magnet .btn { width: 100%; }
}

.lead-magnet__text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .lead-magnet__text { font-size: 18px; }
}
.lead-magnet__text em {
  font-style: italic;
  font-weight: 500;
  color: var(--orange-dark);
}

/* ---------- Trusted by ---------- */
.trusted-by {
  padding: 44px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 24px;
  font-weight: 600;
}
.eyebrow--orange-dark { color: var(--orange-dark); }

.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
  mask-image: linear-gradient(to right, transparent, black 48px, black calc(100% - 48px), transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: logo-scroll 70s linear infinite;
}
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
  animation-play-state: paused;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-tile {
  width: 140px;
  height: 42px;
  flex: none;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: var(--paper);
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
}

@media (max-width: 480px) {
  .logo-track { gap: 20px; }
  .logo-tile { width: 110px; height: 34px; padding: 4px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Result cards ---------- */
.results {
  padding: 28px var(--gutter);
  border-radius: var(--radius-card);
}
.results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 768px) {
  .results__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .results__grid { grid-template-columns: 1fr; }
  .results { padding: 24px var(--gutter); }
}

.result-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius-card);
  padding: 28px;
}

.result-card__mark {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--orange);
  line-height: 0.6;
}

.result-card__metric {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin: 0;
}
@media (max-width: 768px) {
  .result-card__metric { font-size: 32px; }
}
@media (max-width: 480px) {
  .result-card__metric { font-size: 30px; }
}

.result-card__quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--paper);
  margin: 0;
}

.result-card__attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.result-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex: none;
  overflow: hidden;
  object-fit: cover;
}

.result-card__name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
  color: var(--paper);
}
.result-card__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-navy-meta);
  margin-top: 2px;
}

/* ---------- Problem section ---------- */
.problem {
  padding: 60px var(--gutter) 0;
  text-align: center;
}
.problem__heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 28px;
}
@media (max-width: 768px) {
  .problem { padding-top: 48px; }
}

.problem__body {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body-copy);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 480px) {
  .problem__body { line-height: 1.7; gap: 16px; }
}
.problem__body p { margin: 0; }

.problem__spacer { height: 56px; }

/* ---------- Founder intro ---------- */
.founder {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 56px;
  padding: 20px var(--gutter) 100px;
  align-items: center;
}
@media (max-width: 768px) {
  .founder {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 64px;
  }
  .founder__image { order: 1; }
  .founder__content { order: 2; }
}
@media (max-width: 480px) {
  .founder { gap: 32px; padding-bottom: 48px; }
}

.founder__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.founder__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .founder__image { aspect-ratio: 1 / 1; }
}

.founder__heading {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.stat-row {
  display: flex;
  gap: 36px;
  margin-top: 30px;
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}
@media (max-width: 480px) {
  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

.stat__num {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--blue);
}
.stat__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-top: 6px;
}

.founder__cta { margin-top: 32px; }

/* ---------- Section header (Stories / FAQ) ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 48px;
}
.section-head--faq { margin-bottom: 40px; }
@media (max-width: 768px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
}

/* ---------- Stories ---------- */
.stories { padding: var(--section-y) var(--gutter); }
.stories .section-head h2 { font-size: 30px; }

.story-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.story-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--card);
  padding: 32px 34px;
}
@media (max-width: 480px) {
  .story-card { padding: 24px 22px; flex-direction: column; gap: 12px; }
  .story-card__mark { margin-top: 0; }
}

.story-card__mark {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--orange);
  line-height: 0.6;
  flex: none;
  margin-top: 18px;
}
@media (max-width: 480px) {
  .story-card__mark { display: none; }
}

.story-card__quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
@media (max-width: 480px) {
  .story-card__quote { font-size: 17px; }
}

.story-card__attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.story-card__tick {
  width: 26px;
  height: 2px;
  background: var(--blue);
  flex: none;
}
.story-card__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- FAQs ---------- */
.faqs {
  padding: var(--section-y) var(--gutter);
  max-width: 760px;
}
.faqs .section-head h2 { font-size: 28px; }

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  min-height: 48px;
  text-align: left;
}
@media (max-width: 480px) {
  .faq-question { padding: 18px 0; }
}

.faq-question__text {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}
@media (max-width: 480px) {
  .faq-question__text { font-size: 16px; }
}

.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: transform 250ms ease;
}
.faq-question[aria-expanded="true"] .faq-toggle {
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: reduce) {
  .faq-toggle { transition: none; }
}

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms ease;
}
.faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel { transition: none; }
}

.faq-panel__inner {
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms ease;
}
.faq-item.is-open .faq-panel__inner {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel__inner { transition: none; }
}

.faq-answer {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--slate);
  line-height: 1.7;
}
.faq-answer p { margin: 0 0 14px; }
.faq-answer p.faq-final-line { margin-bottom: 16px; }

/* ---------- Final CTA + form ---------- */
.final-cta {
  padding: var(--section-y) var(--gutter);
  background: var(--navy);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .final-cta { grid-template-columns: 1fr; gap: 40px; }
}

.final-cta__heading {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  margin: 0 0 16px;
  max-width: 600px;
}
@media (max-width: 768px) {
  .final-cta__heading { font-size: 28px; }
}

.final-cta__sub {
  font-size: 16px;
  color: var(--on-navy-sub);
  margin-bottom: 32px;
  max-width: 480px;
}

.form-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 34px;
}
@media (max-width: 480px) {
  .form-card { padding: 24px; }
}

.form-card iframe {
  display: block;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px var(--gutter);
  background: var(--navy);
  color: var(--on-navy-footer);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
@media (max-width: 768px) {
  .site-footer { flex-direction: column; align-items: flex-start; gap: 20px; }
}

.footer-links {
  display: flex;
  gap: 28px;
}
@media (max-width: 480px) {
  .footer-links { flex-wrap: wrap; row-gap: 16px; }
}
.footer-links a {
  color: var(--on-navy-footer);
  transition: color 150ms ease;
}
.footer-links a:hover { color: var(--paper); }
