/* ==========================================================================
   PB3 Racing — Design C (clean, motion-led)
   Brand palette:
   Ink Black #00000F · Fresh Sky #00ACED · Bright Indigo #0042FF
   Honeydew #D6EADF · Dim Grey #636564 · white
   Fresh Sky = CTA buttons and the main contrast/accent colour.
   ========================================================================== */
:root {
  --ink: #00000f;
  --sky: #00aced;
  --royal: #0042ff;
  --honeydew: #d6eadf;
  --grey: #636564;
  --white: #ffffff;

  --line: rgba(99, 101, 100, .2);
  --soft: rgba(214, 234, 223, .45);     /* honeydew wash */
  --shadow: 0 1px 2px rgba(0, 0, 15, .04), 0 24px 60px -24px rgba(0, 0, 15, .18);

  --font: "Manrope", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--white); padding: 8px 12px; border-radius: 8px; }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.6vw, 5.4rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 400; }
h3 { font-size: 1.45rem; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0 0; }
.center { text-align: center; }
.muted { color: var(--grey); }
.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .9rem; color: var(--grey); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 44px; height: 1px; background: currentColor; }

/* Pill button with circular arrow — the reference's signature control */
.pill {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 22px; min-height: 50px;
  border-radius: 999px; background: var(--sky); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; font-family: inherit; transition: background .3s var(--ease);
}
.pill .arrow {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: grid; place-items: center; transition: transform .35s var(--ease);
}
.pill .arrow svg { width: 16px; height: 16px; }
.pill:hover .arrow { transform: rotate(45deg); }
.pill:hover { background: #33bdf1; }
.pill--light { background: var(--white); }
.pill--light:hover { background: var(--honeydew); }
.pill--sm { min-height: 42px; padding-left: 18px; font-size: .88rem; }
.pill--sm .arrow { width: 32px; height: 32px; }
.text-link { color: var(--royal); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0, 66, 255, .3); }
.text-link:hover { border-bottom-color: var(--royal); }

/* ==========================================================================
   Header — transparent over the hero, white once you scroll
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.site-header .wrap { max-width: 1320px; display: flex; align-items: center; height: 84px; gap: 28px; }
.brand { position: relative; display: block; height: 40px; }
.brand img { height: 40px; width: auto; transition: opacity .3s; }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.nav-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, .35); transition: background .3s; }
.nav { display: flex; gap: 28px; flex: 1; }
.nav a { color: rgba(255, 255, 255, .88); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .3s; }
.nav a:hover { color: var(--white); }
.header-cta { margin-left: auto; }
.header-cta .pill { min-height: 42px; }
.scrolled .site-header, .site-header.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .logo-light { opacity: 0; }
.site-header.scrolled .logo-dark { opacity: 1; }
.site-header.scrolled .nav a { color: var(--grey); }
.site-header.scrolled .nav a:hover { color: var(--ink); }
.site-header.scrolled .nav-divider { background: var(--line); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: rgba(255, 255, 255, .16); border-radius: 50%; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--white); transition: transform .3s, opacity .3s, background .3s; }
.site-header.scrolled .nav-toggle { background: var(--soft); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

@media (max-width: 960px) {
  .nav-divider, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 12px auto 12px; flex-direction: column; gap: 0; padding: 12px 20px 20px;
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .3s var(--ease);
  }
  .nav a, .site-header.scrolled .nav a { color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .pill { margin-top: 16px; align-self: flex-start; border-bottom: 0; }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@media (min-width: 961px) { .nav .pill { display: none; } }

/* ==========================================================================
   Hero — pinned; the page slides up over it
   ========================================================================== */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; color: var(--white); z-index: 0; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 62%; }
.js .hero-media img { transform: scale(1.08); transition: transform 1.8s var(--ease); will-change: transform; }
.is-loaded .hero-media img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 15, .62) 0%, rgba(0, 0, 15, .32) 42%, rgba(0, 0, 15, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 15, .38) 0%, rgba(0, 0, 15, 0) 26%, rgba(0, 0, 15, 0) 55%, rgba(0, 0, 15, .7) 100%);
}
.hero-inner { position: relative; z-index: 1; height: 100%; max-width: 1320px; display: flex; flex-direction: column; justify-content: center; padding-top: 84px; padding-bottom: 40px; will-change: transform, opacity; }
.hero .eyebrow { color: rgba(255, 255, 255, .85); }
.hero h1 { max-width: 11ch; margin-bottom: .32em; }
.hero-lede { max-width: 44ch; color: rgba(255, 255, 255, .85); font-size: 1.05rem; margin-bottom: 30px; }
.hero-ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hero-ctas .ghost { color: var(--white); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .45); padding-bottom: 2px; }
.hero-ctas .ghost:hover { border-bottom-color: var(--white); }
.hero-proof { position: absolute; z-index: 2; left: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); bottom: 40px; display: flex; gap: 16px; align-items: center; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .5); font-size: .86rem; color: rgba(255, 255, 255, .88); line-height: 1.45; }
.hero-proof b { display: block; font-weight: 600; color: var(--white); letter-spacing: .02em; }
.scroll-cue { position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - 1320px) / 2 + var(--gutter))); bottom: 40px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); display: flex; align-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: linear-gradient(rgba(255, 255, 255, .8), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Hero entrance */
.js .hero [data-enter] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 200ms); }
.js.is-loaded .hero [data-enter] { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .hero-media img { object-position: 52% 70%; }
  .hero::after { background: linear-gradient(180deg, rgba(0, 0, 15, .55) 0%, rgba(0, 0, 15, .25) 40%, rgba(0, 0, 15, .7) 100%); }
  .hero-inner { justify-content: flex-end; padding-bottom: 130px; }
  .scroll-cue { display: none; }
  .hero-proof { right: var(--gutter); }
}

/* Everything after the hero sits on a white sheet that scrolls over it */
.sheet { position: relative; z-index: 1; background: var(--white); }

/* ==========================================================================
   Statement + photo
   ========================================================================== */
.statement { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.statement-text { font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.28; letter-spacing: -0.025em; font-weight: 500; margin: 0; }
.statement-text .w { color: rgba(0, 0, 15, .14); transition: color .35s linear; }
.statement-text .w.on { color: var(--ink); }
.statement-text .tail .w.on { color: var(--grey); }
.statement-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.statement-media img { width: 100%; height: 110%; object-fit: cover; will-change: transform; }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Stats with count-up */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(56px, 8vw, 104px); list-style: none; padding: 0; }
.stats li { border-top: 1px solid var(--line); padding-top: 22px; }
.stats .num { display: block; font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-weight: 400; letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.stats .lbl { font-size: .92rem; color: var(--grey); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; gap: 28px 20px; } }

/* ==========================================================================
   What is PB3 (answer block, AI/snippet friendly)
   ========================================================================== */
.answer { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 96px); padding: clamp(36px, 5vw, 64px); border-radius: calc(var(--radius) * 1.4); background: var(--soft); }
.answer h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.answer-body > p:first-child { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.answer-body p { color: var(--grey); }
.answer-body a { color: var(--royal); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.facts li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--grey); }
.facts b { color: var(--ink); font-weight: 600; min-width: 88px; }
@media (max-width: 860px) { .answer, .facts { grid-template-columns: 1fr; } }

/* Distance chips (plan finder) */
.finder { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 36px; }
.finder a {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line);
  text-decoration: none; font-weight: 500; font-size: .95rem; transition: background .3s var(--ease), border-color .3s, transform .3s var(--ease);
}
.finder a::after { content: "↗"; color: var(--grey); font-size: .85rem; transition: transform .3s var(--ease), color .3s; }
.finder a:hover { background: var(--honeydew); border-color: var(--honeydew); transform: translateY(-2px); }
.finder a:hover::after { transform: rotate(45deg); color: var(--ink); }

/* ==========================================================================
   Stacking cards — "ways to train"
   ========================================================================== */
.stack { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 28px; padding-bottom: 8vh; }
.stack-card {
  position: sticky; top: calc(112px + var(--i) * 26px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: 16px; padding-right: clamp(24px, 4vw, 56px);
  background: var(--white); border-radius: calc(var(--radius) * 1.4); box-shadow: var(--shadow); border: 1px solid var(--line);
  transform-origin: 50% 0; will-change: transform; min-height: 420px;
}
.stack-card .media { border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 388px; }
.stack-card .media img { width: 100%; height: 100%; object-fit: cover; }
.stack-card .price { font-size: .9rem; color: var(--grey); margin-bottom: 6px; display: block; }
.stack-card h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 8px; }
.stack-card .for { color: var(--grey); font-size: .95rem; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 9px; }
.checks li { display: flex; gap: 12px; font-size: .95rem; line-height: 1.45; }
.checks li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--honeydew)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300000f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.stack-card .tag { position: absolute; top: 30px; left: 30px; background: var(--white); color: var(--ink); font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 860px) {
  .stack-card { position: relative; top: auto; grid-template-columns: 1fr; padding: 12px 12px 28px; min-height: 0; }
  .stack-card > div:last-child { padding: 0 12px; }
  .stack-card .media { min-height: 0; aspect-ratio: 16 / 10; }
  .stack-card .tag { top: 24px; left: 24px; }
}

/* ==========================================================================
   Featured plans — clean rows
   ========================================================================== */
.plans { list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.plans a {
  display: grid; grid-template-columns: 140px 1fr auto 44px; gap: 24px; align-items: center; padding: 26px 8px;
  border-bottom: 1px solid var(--line); text-decoration: none; transition: background .35s var(--ease), padding .35s var(--ease);
}
.plans a:hover { background: var(--soft); padding-left: 20px; padding-right: 20px; }
.plans .sport { font-size: .82rem; font-weight: 600; color: var(--royal); }
.plans h3 { font-size: 1.2rem; margin: 0 0 2px; font-weight: 500; }
.plans p { margin: 0; font-size: .9rem; color: var(--grey); }
.plans .price { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.plans .price small { font-size: .72rem; color: var(--grey); margin-left: 3px; letter-spacing: 0; }
.plans .go { width: 44px; height: 44px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; transition: transform .35s var(--ease), background .3s; }
.plans .go svg { width: 16px; height: 16px; }
.plans a:hover .go { transform: rotate(45deg); background: var(--ink); color: var(--white); }
.plans-note { margin-top: 22px; color: var(--grey); font-size: .9rem; text-align: center; }
@media (max-width: 760px) {
  .plans a { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .plans .sport, .plans a > div { grid-column: 1; }
  .plans .price { grid-column: 1; grid-row: 3; }
  .plans .go { grid-column: 2; grid-row: 1 / span 3; }
}

/* How it works */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; padding: 28px 24px; border-radius: var(--radius); background: var(--soft); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 600; color: var(--royal); margin-bottom: 40px; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { font-size: .92rem; color: var(--grey); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .steps li::before { margin-bottom: 18px; } }

/* Coach */
.coach { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.coach-media { border-radius: calc(var(--radius) * 1.4); overflow: hidden; aspect-ratio: 4 / 5; }
.coach-media img { width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.creds { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.creds li { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: .9rem; color: var(--grey); line-height: 1.4; }
.creds b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.philosophy { margin: 0 0 30px; font-size: 1.15rem; line-height: 1.5; letter-spacing: -0.01em; color: var(--ink); }
.philosophy::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--sky); margin-bottom: 8px; }
@media (max-width: 860px) { .coach { grid-template-columns: 1fr; } .coach-media { aspect-ratio: 16 / 11; } }
@media (max-width: 480px) { .creds { grid-template-columns: 1fr; } }

/* Testimonial */
.testimonial { max-width: 820px; margin: 0 auto; text-align: center; position: relative; }
.stars { color: var(--sky); letter-spacing: 4px; font-size: 1.05rem; margin-bottom: 18px; display: block; }
.testimonial blockquote { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; }
.testimonial blockquote .w { color: rgba(0, 0, 15, .14); transition: color .35s linear; }
.testimonial blockquote .w.on { color: var(--ink); }
.testimonial figcaption { margin-top: 22px; color: var(--grey); font-size: .92rem; }
.avatars { display: flex; justify-content: center; margin-top: 18px; }
.avatars span { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--white); margin-left: -8px; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.avatars span:nth-child(1) { background: var(--sky); }
.avatars span:nth-child(2) { background: var(--honeydew); }
.avatars span:nth-child(3) { background: var(--royal); color: var(--white); }
.avatars span:nth-child(4) { background: var(--ink); color: var(--white); }
.placeholder-flag { display: inline-block; margin-bottom: 16px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--grey); background: var(--honeydew); }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.guide { text-decoration: none; display: block; }
.guide .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 18px; }
.guide .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.guide:hover .media img { transform: scale(1.05); }
.guide .kind { font-size: .82rem; color: var(--royal); font-weight: 600; display: block; margin-bottom: 6px; }
.guide h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 6px; }
.guide p { color: var(--grey); font-size: .92rem; }
.guide-more { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.guide-more a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); text-decoration: none; }
.guide-more a::after { content: "↗"; color: var(--grey); transition: transform .3s var(--ease); }
.guide-more a:hover::after { transform: rotate(45deg); color: var(--ink); }
@media (max-width: 860px) { .guides, .guide-more { grid-template-columns: 1fr; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 1.2rem; transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sky); }
.faq .faq-a { padding: 0 52px 24px 0; color: var(--grey); }
.faq .faq-a a { color: var(--royal); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Closing CTA with background photo */
.cta { position: relative; border-radius: calc(var(--radius) * 1.6); overflow: hidden; color: var(--white); padding: clamp(48px, 8vw, 104px) clamp(28px, 6vw, 80px); isolation: isolate; }
.cta picture, .cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 15, .78), rgba(0, 0, 15, .35)); }
.cta h2 { max-width: 14ch; }
.cta p { max-width: 46ch; color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.newsletter { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.newsletter label { position: absolute; left: -9999px; }
.newsletter input { flex: 1 1 220px; min-height: 50px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12); color: var(--white); padding: 0 22px; font: inherit; backdrop-filter: blur(6px); }
.newsletter input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter input:focus { outline: none; border-color: var(--white); }
.cta small { display: block; margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: .8rem; }

/* Footer */
.site-footer { padding: clamp(72px, 10vw, 120px) 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-grid img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-grid p, .footer-grid address { color: var(--grey); font-size: .92rem; font-style: normal; }
.footer-grid h2 { font-size: .85rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--grey); text-decoration: none; font-size: .92rem; }
.footer-grid a:hover { color: var(--ink); }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--ink); }
.socials a:hover { background: var(--sky); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 24px; font-size: .84rem; color: var(--grey); }
.footer-base nav { display: flex; gap: 20px; }
.footer-base a { color: var(--grey); text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* Floating CTA (echoes the reference's floating pill) */
.float-cta { display: none; position: fixed; right: 20px; bottom: 20px; z-index: 90; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); box-shadow: 0 10px 30px -8px rgba(0, 0, 15, .35); }
.float-cta.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 960px) { .float-cta { display: inline-flex; } }

/* Scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Reduced motion: show everything, no transforms */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal], .hero [data-enter] { opacity: 1 !important; transform: none !important; }
  .hero-media img { transform: none !important; }
  .statement-text .w, .testimonial blockquote .w { color: inherit !important; }
  .statement-text .tail .w { color: var(--grey) !important; }
  .stack-card { position: relative; top: auto; }
}

/* Footer sits after the sheet; give it its own white layer above the pinned hero */
.site-footer { position: relative; z-index: 1; background: var(--white); }
