/* North Track Digital — design system
   Palette: dark green + neutral, sampled from brand assets
   (logo sage #495E4B, headshot studio green #3A4838) */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600-italic.woff2') format('woff2');
}

:root {
  --deep: #1B241A;
  --pine: #2A3628;
  --moss: #3A4838;
  --sage: #495E4B;
  --sage-lt: #92A98F;
  --mint: #CBD9C6;
  --cream: #F7F4EB;
  --paper: #FFFFFF;
  --sand: #E4DfD0;
  --ink: #1C241D;
  --ink-soft: #525C53;
  --radius: 18px;
  --display: 'Fraunces', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--deep); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.accent { font-style: italic; }
.on-dark .accent, .dark .accent { color: var(--mint); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--sage);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--sage-lt); }
.dark .eyebrow { color: var(--sage-lt); }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.55; }
.muted { color: var(--ink-soft); }
.dark .muted { color: var(--mint); opacity: 0.88; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 15px 30px; border-radius: 999px;
  font-family: var(--body); font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: background .18s ease, color .18s ease, border-color .18s ease;
  border: 1.5px solid transparent; text-align: center;
}
.btn-solid { background: var(--sage); color: #fff; }
.btn-solid:hover { background: var(--deep); color: #fff; }
.dark .btn-solid { background: var(--cream); color: var(--deep); }
.dark .btn-solid:hover { background: var(--mint); color: var(--deep); }
.btn-ghost { border-color: var(--sage); color: var(--sage); background: transparent; }
.btn-ghost:hover { background: var(--sage); color: #fff; }
.dark .btn-ghost { border-color: var(--sage-lt); color: var(--cream); }
.dark .btn-ghost:hover { background: var(--sage-lt); color: var(--deep); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.arrow-link {
  font-weight: 600; color: var(--sage); text-decoration: none;
  border-bottom: 1.5px solid var(--sage-lt); padding-bottom: 2px;
}
.arrow-link::after { content: ' ↗'; }
.arrow-link:hover { color: var(--deep); border-color: var(--deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 235, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand);
}
.nav-bar { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 42px; height: 42px; border-radius: 10px; }
.brand span { font-family: var(--display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--ink); }
.nav-links a:hover { color: var(--sage); }
.nav-links .btn { padding: 11px 22px; font-size: 0.92rem; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; }

@media (max-width: 780px) {
  .nav-toggle-label {
    display: flex; flex-direction: column; gap: 5px; padding: 8px;
  }
  .nav-toggle-label span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--sand); padding: 10px 24px 22px;
  }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--sand); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
@media (max-width: 780px) { section { padding: 58px 0; } }
.dark { background: var(--deep); color: var(--cream); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.band-sage { background: var(--sage); color: #fff; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(120% 130% at 78% 30%, var(--moss) 0%, var(--pine) 55%, var(--deep) 100%);
  color: var(--cream); padding: 72px 0 88px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero p { margin-top: 20px; max-width: 56ch; }
.hero .btn-row { margin-top: 34px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* founder video slot */
.video-slot {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  background: var(--moss); text-decoration: none;
}
.video-slot img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: top; }
.video-slot .play {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 26, 19, 0.82) 100%);
  padding: 22px;
}
.play-inner { display: flex; align-items: center; gap: 14px; color: var(--cream); }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease;
}
.video-slot:hover .play-btn { transform: scale(1.08); }
.play-btn::after {
  content: ''; margin-left: 4px;
  border-left: 14px solid var(--deep); border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.play-inner strong { display: block; font-size: 1.02rem; }
.play-inner small { opacity: 0.85; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- logo band ---------- */
.logo-band { background: var(--sage); padding: 58px 0; color: #fff; }
.logo-band h2 { font-size: 1.05rem; font-family: var(--body); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; margin-bottom: 30px; color: var(--mint); }
.logo-band img { margin: 0 auto; max-width: 980px; width: 100%; }

/* ---------- stat bar ---------- */
.stat-bar { padding: 66px 0; background: var(--cream); border-bottom: 1px solid var(--sand); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.stat .num { font-family: var(--display); font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 600; color: var(--sage); line-height: 1; }
.stat .num sup { font-size: 55%; }
.stat p { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--sand); border-radius: var(--radius);
  padding: 30px;
}
.card-grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* service cards */
.svc-card h3 { margin-bottom: 10px; }
.svc-card .svc-num { font-family: var(--display); font-style: italic; color: var(--sage-lt); font-size: 1rem; display: block; margin-bottom: 14px; }
.svc-card p { color: var(--ink-soft); font-size: 0.99rem; }
.svc-card .arrow-link { display: inline-block; margin-top: 14px; font-size: 0.95rem; }

/* testimonial cards */
.t-card { display: flex; flex-direction: column; gap: 20px; }
.t-card blockquote { font-family: var(--display); font-size: 1.18rem; line-height: 1.45; letter-spacing: -0.01em; }
.t-card blockquote::before { content: '“'; color: var(--sage-lt); font-size: 1.6em; line-height: 0; vertical-align: -0.32em; margin-right: 2px; }
.t-who { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.t-who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.t-who strong { display: block; font-size: 0.98rem; }
.t-who span { color: var(--ink-soft); font-size: 0.88rem; }

/* video testimonial feature */
.t-feature { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; margin-top: 44px; }
@media (max-width: 900px) { .t-feature { grid-template-columns: 1fr; } .t-feature .video-slot { max-width: 340px; } }
button.video-slot { border: 0; padding: 0; cursor: pointer; width: 100%; font: inherit; text-align: left; }
.video-slot.ratio-45 img { aspect-ratio: 4 / 5; }
.yt-facade iframe { width: 100%; aspect-ratio: 4 / 5; border: 0; display: block; }
.t-feature blockquote { font-family: var(--display); font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.4; letter-spacing: -0.01em; }
.t-feature blockquote::before { content: '“'; color: var(--sage-lt); font-size: 1.6em; line-height: 0; vertical-align: -0.32em; margin-right: 2px; }

/* team cards */
.team-card { text-align: left; overflow: hidden; padding: 0; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-card .team-meta { padding: 22px 26px 26px; }
.team-card h3 { margin-bottom: 4px; }
.team-card p { color: var(--ink-soft); font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ---------- split rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split .stack > * + * { margin-top: 18px; }

/* checklist */
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; list-style: none; margin-top: 26px; }
.checklist li { padding-left: 26px; position: relative; font-size: 0.99rem; }
.checklist li::before { content: '↗'; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
@media (max-width: 620px) { .checklist { grid-template-columns: 1fr; } }
.dark .checklist li::before { color: var(--sage-lt); }

/* plain bullet list (verbatim bullets) */
.dot-list { list-style: none; }
.dot-list li { padding-left: 22px; position: relative; margin-top: 8px; }
.dot-list li::before { content: '•'; position: absolute; left: 4px; color: var(--sage); font-weight: 700; }
.dark .dot-list li::before { color: var(--sage-lt); }

/* ---------- pull quote ---------- */
.pull-quote {
  border-left: 4px solid var(--sage); background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 34px; font-family: var(--display); font-size: 1.3rem; line-height: 1.45;
}

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(110% 160% at 50% 0%, var(--pine) 0%, var(--deep) 70%); color: var(--cream); text-align: center; padding: 92px 0; }
.cta-band h2 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 760px; margin: 0 auto; }
.cta-band p { max-width: 620px; margin: 20px auto 0; color: var(--mint); }
.cta-band .btn-row { justify-content: center; margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--sand); border-radius: 14px;
  padding: 0 26px; margin-bottom: 14px;
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 20px 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.5rem; color: var(--sage); flex: none; transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 2px 0 24px; color: var(--ink-soft); }
.faq .faq-body p + p, .faq .faq-body p + ul, .faq .faq-body ul + p { margin-top: 12px; }

/* ---------- comparison ---------- */
.compare { align-items: stretch; }
.compare .card h2 { font-size: 1.35rem; margin-bottom: 18px; }
.compare .card-bad { background: var(--cream); }
.compare .card-bad h2 { color: var(--ink-soft); }
.compare .card-good { background: var(--deep); color: var(--cream); border-color: var(--deep); }
.compare .card-good h2 { color: var(--cream); }
.compare .card-good .dot-list li::before { color: var(--sage-lt); }

/* icon grid */
.icon-card { text-align: center; padding: 34px 26px; }
.icon-card img { width: 64px; height: 64px; margin: 0 auto 18px; object-fit: contain; }
.icon-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.icon-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* receipts strip (viral post cards) */
.receipts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .receipts { grid-template-columns: repeat(2, 1fr); } }
.receipt-card {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--sand); text-decoration: none; background: var(--deep);
}
.receipt-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; transition: transform .25s ease; }
.receipt-card:hover img { transform: scale(1.04); }
.receipt-badge {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: rgba(20, 26, 19, 0.82); color: var(--cream); border-radius: 10px;
  padding: 8px 12px; font-size: 0.85rem; line-height: 1.35;
}
.receipt-badge strong { display: block; font-family: var(--display); font-size: 1.05rem; }

/* ---------- social row ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.social-row a {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--sand); border-radius: 999px; padding: 10px 18px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 0.93rem;
  background: var(--paper); transition: border-color .15s ease, color .15s ease;
}
.social-row a:hover { border-color: var(--sage); color: var(--sage); }
.social-row svg { width: 17px; height: 17px; fill: var(--sage); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); color: var(--mint); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1fr 1fr; gap: 44px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { font-family: var(--display); color: var(--cream); font-size: 1.25rem; margin-bottom: 14px; }
.site-footer .f-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-lt); margin-bottom: 14px; font-weight: 700; }
.site-footer a { color: var(--mint); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(203, 217, 198, 0.18); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 0.88rem; color: var(--sage-lt);
}
.footer-bottom a { color: var(--sage-lt); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- misc ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--deep); color: #fff;
  padding: 10px 18px; z-index: 100; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }
.stack > * + * { margin-top: 18px; }
.mt-lg { margin-top: 40px; }
.center { text-align: center; }
