/* Self-hosted fonts (latin subset). Big Shoulders and Chivo Mono are variable. */
@font-face { font-family: 'Big Shoulders Display'; src: url(fonts/big-shoulders-display.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url(fonts/barlow-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Chivo Mono'; src: url(fonts/chivo-mono.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* Local fallbacks resized to the web fonts' metrics, so text doesn't jump when the web font swaps in. */
@font-face { font-family: 'Display Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 900; size-adjust: 69.4%; ascent-override: 141.2%; descent-override: 30.3%; line-gap-override: 0%; }
@font-face { font-family: 'Display Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 800; size-adjust: 64.8%; ascent-override: 151.3%; descent-override: 32.4%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial'), local('ArialMT'); font-weight: 400; size-adjust: 96%; ascent-override: 104.2%; descent-override: 20.8%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 600; size-adjust: 90.3%; ascent-override: 110.7%; descent-override: 22.1%; line-gap-override: 0%; }
@font-face { font-family: 'Barlow Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'); font-weight: 700; size-adjust: 94%; ascent-override: 106.4%; descent-override: 21.3%; line-gap-override: 0%; }
@font-face { font-family: 'Mono Fallback'; src: local('Courier New'), local('CourierNewPSMT'); size-adjust: 100%; ascent-override: 94%; descent-override: 25%; line-gap-override: 0%; }

:root {
  --navy: #0a1b3d;
  --navy-deep: #061230;
  --card: #102552;
  --card-open: #0d2048;
  --teal: #3fe0d0;
  --red: #e0303b;
  --red-text: #ff5c66; /* brand red, brightened so small text passes contrast on cards */
  --soft: #c9d6f0;
  --muted: #8fa3c8;
  --line: rgba(63, 224, 208, .2);
  --pad-x: clamp(20px, 4vw, 56px);
  --pad-y: clamp(56px, 8vw, 104px);
  --display: 'Big Shoulders Display', 'Display Fallback', sans-serif;
  --mono: 'Chivo Mono', 'Mono Fallback', monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--navy);
  font-family: 'Barlow', 'Barlow Fallback', sans-serif;
  color: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: #fff; text-decoration: none; }
a:not(.btn, .brand):hover { color: var(--teal); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 20;
  background: var(--teal); color: var(--navy-deep); font-weight: 700;
  padding: 10px 16px; border-radius: 4px;
}
.skip:focus { top: 12px; }

/* ---------- Shared ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--pad-y); display: flex; flex-direction: column; gap: 40px; }
/* Same-background sections in a row share one gap instead of stacking two. */
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 10px; }

.eyebrow {
  font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal);
}
.display, .h2 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  text-wrap: balance;
}
.h2 { font-size: clamp(40px, 5vw, 64px); line-height: .95; }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.soft { font-size: 17px; color: var(--soft); }

.card { background: var(--card); border-radius: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 28px; border-radius: 4px;
  font-weight: 600; font-size: 18px; line-height: 1.2; text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 16px; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c7252f; }
.btn-teal { background: var(--teal); color: var(--navy-deep); font-weight: 700; font-size: 17px; }
.btn-teal:hover { background: #6ae9dc; }
.btn-outline { border: 1.5px solid var(--teal); color: var(--teal); }
.btn-outline:hover { background: rgba(63, 224, 208, .1); }
.btn-outline-white { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions-center { justify-content: center; }

.photo { border-radius: 8px; overflow: hidden; background: var(--card); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-wide { aspect-ratio: 5 / 4; }
.slides { grid-auto-columns: 100%; height: 100%; }

/* ---------- Flag + header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 10;
  padding: 14px var(--pad-x);
  display: flex; gap: 16px; justify-content: space-between; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
/* Transparent over the hero; frosted glass with a shadow once the page scrolls. */
.site-header.is-scrolled {
  background: rgba(6, 18, 48, .72);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: rgba(255, 255, 255, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.brand { display: flex; gap: 12px; align-items: center; min-width: 0; }
.brand-mark { flex: none; width: 42px; height: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 22px; white-space: nowrap; }
.brand-sub { font-size: 13px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); font-weight: 600; font-size: 16px; }
.nav-links {
  /* Reset popover UA styles: on desktop this is a normal inline list. */
  display: flex; gap: clamp(14px, 2vw, 28px);
  position: static; inset: auto; margin: 0; padding: 0; border: 0;
  background: none; color: inherit; overflow: visible;
}
.menu-btn { display: none; }

@media (max-width: 860px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 4px; color: #fff; cursor: pointer;
  }
  .nav { gap: 10px; }
  .nav-links:not(:popover-open) { display: none; }
  .nav-links:popover-open {
    position: fixed; inset: 0 0 auto auto; margin: 76px 12px 0 auto;
    width: min(280px, calc(100vw - 24px));
    flex-direction: column; gap: 0; padding: 8px;
    background: var(--navy-deep); border: 1px solid var(--line); border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  }
  .nav-links a { display: block; padding: 14px 16px; border-radius: 4px; font-size: 18px; }
  .nav-links a:hover { background: var(--card); }
}
@media (max-width: 480px) {
  .btn-sm { padding-inline: 14px; font-size: 15px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (max-width: 560px) {
  .brand-text { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .eyebrow { font-size: 14px; }
.hero h1 { font-size: clamp(52px, 7vw, 92px); line-height: .92; }
.hero .lead { max-width: 540px; }
.fine-print { margin-top: -12px; font-size: 15px; color: var(--muted); }

.creds {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.creds dt { font-size: 13px; color: var(--muted); }
.creds dd { font-weight: 700; font-size: 17px; }

.hero-media { position: relative; justify-self: center; width: 100%; max-width: 460px; }
/* Soft teal glow behind the cut-out portrait; the bottom fades into the page. */
.hero-media::before {
  content: ""; position: absolute; inset: 8% -10% 10%;
  background: radial-gradient(closest-side, rgba(63, 224, 208, .22), transparent);
}
.hero-cutout { position: relative; width: 100%; height: auto; mask-image: linear-gradient(to bottom, #000 78%, transparent 98%); }

/* ---------- Why ---------- */
.why {
  background: radial-gradient(50% 80% at 50% 0%, rgba(63, 224, 208, .18), transparent 70%), var(--navy-deep);
  padding: var(--pad-y) var(--pad-x);
}
.why-inner { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.why-quote { font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.steps .card { padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--red-text); }
.steps p { font-size: 17px; line-height: 1.5; color: var(--soft); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.price-card, .extras-card { border-radius: 8px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; }
.price-card { background: var(--navy-deep); gap: 16px; }
.extras-card { background: var(--card); gap: 14px; }
.plan-name span { color: var(--muted); letter-spacing: .08em; }
.price-card-premium { box-shadow: inset 0 0 0 1.5px var(--teal); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.price-amount { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 7vw, 88px); line-height: 1; }
.list { display: flex; flex-direction: column; font-size: 17px; }
.list li { display: flex; gap: .5em; }
.list-check { gap: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .15); }
.list-check li::before { content: "✓"; }
.list-plus { gap: 12px; color: var(--soft); }
.list-plus li::before { content: "+"; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.price-card .list { margin-bottom: 8px; }
.steps h3, .extras-card h3 { font-weight: 700; font-size: 22px; }
.guarantee { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; color: var(--soft); }

/* ---------- About ---------- */
.about { background: var(--navy-deep); padding-block: var(--pad-y); }
.about-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(40px, 6vw, 80px); align-items: center;
}
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--soft); text-wrap: pretty; }
.h2-about { font-size: clamp(36px, 4.6vw, 58px); line-height: .98; }
.pbs { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 8px; }
.pbs div { display: flex; flex-direction: column-reverse; }
.pbs dd { font-family: var(--mono); font-weight: 700; font-size: 24px; }
.pbs dt { font-size: 14px; color: var(--muted); }

/* ---------- Quotes ---------- */
.quotes-head { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 20px; }
.quotes-nav { display: flex; gap: 10px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--teal);
  background: none; color: var(--teal); font-size: 20px; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.round-btn:hover { background: var(--teal); color: var(--navy-deep); }
.snap-track {
  display: grid; grid-auto-flow: column; overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.snap-track::-webkit-scrollbar { display: none; }
.snap-track > * { scroll-snap-align: start; }
@media (prefers-reduced-motion: no-preference) { .snap-track { scroll-behavior: smooth; } }
.quotes { grid-auto-columns: clamp(260px, 85%, 380px); gap: 20px; border-radius: 6px; }
.quote { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.quote blockquote { font-size: 19px; line-height: 1.5; }
.quote-by { font-size: 15px; color: var(--muted); }
.quote-by strong { color: #fff; }

/* ---------- FAQ ---------- */
#faq { gap: 32px; }
.faq { max-width: 860px; width: 100%; border-top: 1px solid var(--line); }
.faq details { interpolate-size: allow-keywords; border-bottom: 1px solid var(--line); padding: 0 20px; border-radius: 6px; transition: background .4s ease; }
.faq details:hover { background: rgba(63, 224, 208, .04); }
.faq details[open] { background: radial-gradient(80% 140% at 0% 0%, rgba(63, 224, 208, .12), transparent 70%), var(--card-open); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 700; font-size: clamp(17px, 1.6vw, 19px); transition: color .3s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary { color: var(--teal); }
.faq-icon {
  flex: none; width: 28px; height: 28px; border: 1.5px solid var(--teal); border-radius: 50%;
  display: grid; place-items: center; color: var(--teal); font-size: 18px; line-height: 1;
  transition: transform .45s var(--ease), background .3s, color .3s;
}
.faq details[open] .faq-icon { transform: rotate(135deg); background: var(--teal); color: var(--navy-deep); }
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }
.faq-body {
  color: var(--soft); font-size: 17px; line-height: 1.5; padding: 0 44px 20px 0;
  opacity: 0; transform: translateY(-6px);
  transition: opacity .4s ease .1s, transform .5s var(--ease) .05s;
}
.faq details[open] .faq-body { opacity: 1; transform: none; }
@media (max-width: 520px) {
  .faq details { padding: 0 12px; }
  .faq-body { padding-right: 0; }
}

/* ---------- Book ---------- */
.book-wrap { padding: 0 var(--pad-x) var(--pad-y); }
.book {
  max-width: 1280px; margin: 0 auto; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: var(--navy-deep);
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(28px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 6vw, 72px); align-items: center;
}
/* Race photo behind the card, darkened toward the text so everything stays readable. */
.book-bg {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover;
  opacity: .45; mask-image: linear-gradient(100deg, transparent 15%, #000 85%);
}
.book-pitch { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.display-book { font-size: clamp(44px, 5.4vw, 76px); line-height: .95; }
.book-points { display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: 16px; }
.book-points li { white-space: nowrap; }
.book-points li::before { content: "✓"; color: var(--teal); margin-right: 8px; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 19px; }

/* ---------- Contact form ---------- */
.contact {
  background: rgba(6, 18, 48, .78); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: clamp(22px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px;
}
.contact-title, .field-full { grid-column: 1 / -1; }
.contact-title { font-weight: 700; font-size: 22px; }
.contact-sub { margin-top: -10px; color: var(--soft); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; color: var(--soft); }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: #fff; background: var(--navy-deep);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 4px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.field textarea::placeholder { color: var(--muted); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.contact-actions .btn:disabled { opacity: .6; cursor: wait; }
.contact-status { color: var(--soft); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 48px calc(48px + env(safe-area-inset-bottom)); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand .soft { font-size: 16px; max-width: 280px; }
.footer-name { font-size: 24px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 16px; }
.footer-col a { padding-block: 2px; overflow-wrap: anywhere; }
.footer-title { font-weight: 700; }
.copyright { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after, .faq details::details-content { transition: none !important; }
}
