/* =========================================================
   AdAerobic – styles
   ---------------------------------------------------------
   COLOURS: every colour on the site comes from the lines
   below. To change the look, edit these values only.
   ========================================================= */
:root {
  color-scheme: dark;       /* tells phones/browsers the page is dark */
  --ground:     #0e1014;    /* page background (charcoal) */
  --surface:    #13161b;    /* slightly lighter: alternate sections */
  --raised:     #1a1e25;    /* lighter again: cards and boxes */
  --line:       #272c35;    /* thin borders */
  --ink:        #f2f2f0;    /* main text */
  --muted:      #a0a6b0;    /* secondary text */
  --accent:     #ff6b35;    /* energy orange: buttons and small highlights only */
  --accent-ink: #0e1014;    /* text on orange */

  /* Font */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Type sizes (grow smoothly from phone to desktop) */
  --size-h2:    clamp(1.7rem, 2.2vw + 1rem, 2.75rem);
  --size-h3:    1.125rem;
  --size-lead:  clamp(1.0625rem, 0.4vw + 1rem, 1.25rem);
  --size-body:  1rem;
  --size-small: 0.875rem;

  /* Spacing and shape */
  --gutter:   clamp(1.1rem, 3.5vw, 2.5rem);
  --section:  clamp(3.75rem, 8vw, 7rem);
  --header-h: 4rem;
  --radius:   0.75rem;      /* card corners */
  --radius-btn: 0.5rem;     /* button corners */
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-padding-top: var(--header-h);   /* stops the sticky menu covering headings */
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }      /* smooth scrolling for menu links */
}

body {
  font-family: var(--font);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3, .hero-title { font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
/* The H1 is the small orange line in the hero: keep it looking like the other orange labels */
h1.eyebrow { font-weight: 500; line-height: 1.6; letter-spacing: normal; text-wrap: wrap; }
h2 { font-size: var(--size-h2); margin-bottom: 0.6em; }
h3 { font-size: var(--size-h3); line-height: 1.3; letter-spacing: -0.01em; }
p  { max-width: 60ch; }

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  background: var(--ink); color: var(--ground); padding: 0.75rem 1rem;
}
.skip-link:focus { top: 0.5rem; }

/* Clearly marked placeholder text */
.placeholder {
  outline: 1.5px dashed currentColor; outline-offset: 2px;
  padding: 0 0.15em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Shared pieces ---------- */
.section { padding-block: var(--section); }
.section-surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: 0; }

.eyebrow {
  font-size: var(--size-small); font-weight: 500; color: var(--accent);
  margin-bottom: 0.9rem;
}
.lead { font-size: var(--size-lead); line-height: 1.5; color: var(--muted); max-width: 38ch; }
.who-note { margin-top: 1rem; color: var(--muted); max-width: 42ch; }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .two-col { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
  .two-col-centre { align-items: center; }
  /* Line the right-hand lists up with the heading, not the small label above it */
  .two-col > .pain-list, .two-col > .steps, .two-col > .faq { margin-top: 2.3rem; }
}

.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 2.5vw, 2rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: 0.8rem 1.4rem; min-height: 3rem;
  border: 1px solid var(--accent); border-radius: var(--radius-btn);
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { background: #ff7d4d; border-color: #ff7d4d; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--raised); border-color: #3a404b; }
.btn-small { padding: 0.5rem 1rem; min-height: 0; font-size: 0.9375rem; }
.btn-large { padding: 0.95rem 1.9rem; font-size: 1.0625rem; }

/* ---------- Header / top menu ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.wordmark { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.04em; text-decoration: none; color: var(--ink); }
.menu-toggle {
  font: inherit; font-weight: 500; font-size: 0.9375rem;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  padding: 0.45rem 0.9rem; cursor: pointer;
}

/* Phone: menu drops down when "Menu" is tapped */
.site-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--ground); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column;
  padding: 0.5rem var(--gutter) 1.5rem;
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.8);
}
.site-nav.is-open { display: flex; }
.site-nav a { font-size: 1.125rem; font-weight: 500; text-decoration: none; padding: 0.7rem 0; }
.site-nav a:not(.btn) { border-bottom: 1px solid var(--line); }
.site-nav a.btn { margin-top: 1rem; font-size: 1rem; padding: 0.85rem 1.2rem; }

@media (min-width: 56rem) {
  .menu-toggle { display: none; }
  .site-nav {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: 2rem; padding: 0; box-shadow: none; background: none; border: 0;
  }
  .site-nav a { font-size: 0.9375rem; color: var(--muted); padding: 0.25rem 0; transition: color 160ms ease; }
  .site-nav a:not(.btn) { border: 0; }
  .site-nav a:not(.btn):hover { color: var(--ink); }
  .site-nav a.btn { margin-top: 0; color: var(--accent-ink); font-size: 0.9375rem; padding: 0.5rem 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.25rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-title {
  font-size: 8.5vw;                 /* two lines on phones */
  line-height: 1.02; letter-spacing: -0.045em;
  margin-bottom: 0.5em;
}
.hero-sub { font-size: var(--size-lead); line-height: 1.5; color: var(--muted); max-width: 36ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-promise {
  margin-top: 1.5rem; padding-left: 0.9rem; border-left: 3px solid var(--accent);
  font-size: 0.9375rem; color: var(--muted); max-width: 34ch;
}
.hero-promise strong { color: var(--ink); font-weight: 600; }
.hero-note { margin-top: 1.25rem; font-size: var(--size-small); color: var(--muted); }

/* The illustration: photo panel + sample ad on a phone + tracking card */
.hero-visual {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; justify-content: center; gap: 0.75rem;
  padding: 1.5rem 1rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
}
.hero-photo {
  position: absolute; inset: 0; z-index: -1;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%;
  opacity: 0.38;                    /* kept quiet so the phone stands out */
}
.hero-figure figcaption { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--muted); }

.phone {
  flex: 0 0 min(56%, 14.5rem);
  background: #000; padding: 0.4rem; border-radius: 1.5rem;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
}
.phone-screen {
  background: #fff; color: #1c1e21;
  border-radius: 1.15rem; overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.6875rem; line-height: 1.35;
}
.ad-head { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.7rem 0.4rem; }
.ad-avatar {
  flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: #1c1e21; color: #fff; display: grid; place-items: center;
  font-size: 0.625rem; font-weight: 700;
}
.ad-name { display: grid; font-weight: 700; font-size: 0.75rem; line-height: 1.2; }
.ad-name small { font-weight: 400; color: #65676b; font-size: 0.625rem; }
.ad-text { padding: 0 0.7rem 0.55rem; }
.ad-photo { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.ad-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  background: #f0f2f5; padding: 0.55rem 0.7rem;
}
.ad-cta > span:first-child { display: grid; font-weight: 700; font-size: 0.7rem; line-height: 1.25; }
.ad-cta small { font-weight: 400; color: #65676b; font-size: 0.6rem; }
.ad-btn { flex: none; background: #e4e6eb; border-radius: 0.3rem; padding: 0.35rem 0.55rem; font-weight: 600; }

.track-card {
  flex: 1 1 0; min-width: 0; max-width: 13rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: 0.6rem;
  padding: 0.75rem; font-size: 0.75rem; line-height: 1.3;
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.9);
}
.track-title { font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.track-card li { display: flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0; }
.track-card li::before {
  content: "\2713"; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.625rem; font-weight: 700;
  background: var(--line); color: var(--ink);
}
.track-card .track-done { font-weight: 600; }
.track-card .track-done::before { background: var(--accent); color: var(--accent-ink); }

@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
  .hero-title { font-size: min(3.25rem, 4.4vw); }   /* two lines on laptops and desktops */
  .hero-visual { padding: 2.5rem 1.5rem 1.5rem; gap: 1rem; }
  .track-card { font-size: 0.8125rem; padding: 0.9rem; margin-bottom: 1.5rem; }
}

/* ---------- The problem ---------- */
.pain-list { border-top: 1px solid var(--line); }
.pain-list li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding-block: 0.95rem; border-bottom: 1px solid var(--line);
  font-size: var(--size-lead); line-height: 1.35;
}
.pain-list li::before {
  content: ""; flex: none; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--accent); transform: translateY(-0.2em);
}

/* ---------- How it works ---------- */
.steps { counter-reset: step; border-top: 1px solid var(--line); }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 2.75rem 1fr; column-gap: 0.5rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--line);
}
.steps li::before {
  content: "0" counter(step);
  grid-row: span 2;
  font-size: var(--size-small); font-weight: 500; color: var(--accent);
  font-variant-numeric: tabular-nums; padding-top: 0.2rem;
}
.steps h3 { margin-bottom: 0.15rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; }
.money-note {
  margin-top: 1.5rem; padding: 0.9rem 1.1rem;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 0.9375rem; color: var(--muted);
}
.money-note strong { color: var(--ink); font-weight: 600; }
@media (min-width: 56rem) {
  .sticky-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Cost calculator ---------- */
.calc {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
  display: grid; gap: 0.9rem; max-width: 34rem;
}
.calc-inputs { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 0.6rem; }
.calc label { display: grid; gap: 0.35rem; font-size: var(--size-small); color: var(--muted); }
.calc input {
  font: inherit; font-size: 1.15rem; font-weight: 600; color: var(--ink);
  width: 100%; min-width: 0; padding: 0.6rem 0.75rem;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius-btn);
}
.calc input::placeholder { color: #5d636c; }
.calc input:focus { outline: none; border-color: var(--accent); }
.calc-results { display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.6rem; }
.calc-out {
  display: grid; gap: 0.1rem; padding: 0.7rem 0.85rem; border-radius: var(--radius-btn);
  background: var(--ground); border: 1px solid var(--line);
  font-size: var(--size-small); color: var(--muted);
}
.calc-out strong { font-size: 1.4rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.calc-main { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.calc-main strong { color: var(--accent-ink); font-size: 1.6rem; }
.calc-help { font-size: 0.8125rem; color: var(--muted); }

/* ---------- Results ---------- */
.results { display: grid; gap: 1rem; }
.case { display: grid; gap: 1.1rem; align-content: start; }
.case-label { font-size: var(--size-small); font-weight: 500; color: var(--muted); }
.case-headline { font-size: var(--size-lead); font-weight: 600; line-height: 1.35; }
.case-facts { border-top: 1px solid var(--line); }
.case-facts div { display: grid; gap: 0.1rem; padding-block: 0.7rem; border-bottom: 1px solid var(--line); }
.case-facts dt { font-size: var(--size-small); color: var(--muted); }
.case-facts dd { font-weight: 500; line-height: 1.4; }
.case-quote { color: var(--muted); line-height: 1.5; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.case-stats div {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0.3rem;
  padding: 0.85rem 0.9rem; background: var(--raised);
  border: 1px solid var(--line); border-radius: var(--radius-btn);
}
.case-stats dt { font-size: var(--size-small); color: var(--muted); line-height: 1.3; }
.case-stats dd { order: -1; font-size: clamp(1.6rem, 6vw, 2.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.case-stat-main { border-color: var(--accent) !important; }
.case-stat-main dd { color: var(--accent); }
@media (min-width: 56rem) {
  /* One wide card: headline and quote on the left, the facts on the right */
  .case { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem); }
  .case-label { grid-column: 1 / -1; }
  .case { grid-template-rows: auto auto auto 1fr; }
  .case-facts { grid-column: 2; grid-row: 2 / span 3; }
}

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; }
.about-photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center;
  width: 100%;
}
/* Two photos: a large one, with a smaller one overlapping its bottom-right corner */
.about-photos { position: relative; width: 100%; max-width: 17rem; padding: 0 14% 16% 0; }
.about-photo-second {
  position: absolute; right: 0; bottom: 0; width: 50%;
  border: 5px solid var(--surface);       /* a gap in the section's colour around the small photo */
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.8);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo figcaption { padding: 1rem; text-align: center; font-size: var(--size-small); color: var(--muted); }
.about .statement { font-size: var(--size-lead); line-height: 1.45; font-weight: 500; margin-bottom: 1rem; max-width: 36ch; }
.about p + p { margin-top: 0.85rem; }
.about p:not(.statement):not(.eyebrow) { color: var(--muted); }
.about .addon { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.about .addon strong { color: var(--ink); font-weight: 600; }
@media (min-width: 56rem) {
  .about { grid-template-columns: 4fr 7fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
  .about-photos { max-width: 24rem; }
}

/* ---------- Questions ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.05rem; font-weight: 500; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.35rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding-bottom: 1.15rem; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-card {
  background: var(--raised); border: 1px solid var(--line); border-radius: 1rem;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 4rem);
  text-align: center; display: grid; justify-items: center;
}
.contact-card h2 { font-size: clamp(1.9rem, 3vw + 1rem, 3.25rem); max-width: 16ch; }
.contact-card .lead { margin-bottom: 2rem; }
.contact-options { display: grid; gap: 0.75rem; width: 100%; max-width: 44rem; }
.contact-box {
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.25rem; display: grid; justify-items: center; gap: 0.35rem;
}
.contact-box-main { border-color: var(--accent); }
.contact-box p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 0.9rem; }
.contact-box .btn { width: 100%; max-width: 18rem; overflow-wrap: anywhere; }
@media (min-width: 40rem) { .contact-options { grid-template-columns: 1fr 1fr; gap: 1rem; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 1.5rem; font-size: var(--size-small); color: var(--muted); }
.footer-inner { display: grid; gap: 1.75rem; }
.site-footer .wordmark { margin-bottom: 0.5rem; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }
.footer-nav a:last-child { grid-column: 1 / -1; }
.footer-nav a { text-decoration: none; width: fit-content; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--ink); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  align-items: center;
}
.footer-social { display: flex; gap: 0.5rem; }
.footer-social a {
  display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 1px solid var(--line); border-radius: var(--radius-btn);
  color: var(--muted); transition: color 0.2s, border-color 0.2s;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-nav { grid-template-columns: none; grid-auto-flow: column; gap: 1.75rem; align-content: start; }
  .footer-nav a:last-child { grid-column: auto; }
}

/* =========================================================
   MOTION – things fade up gently as you scroll to them.
   Only switched on when JavaScript runs (html.js) and the
   visitor hasn't asked their phone for reduced motion.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }

  .js .hero-copy > *, .js .hero-figure {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .js .hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .js .hero-copy > :nth-child(5) { animation-delay: 240ms; }
  .js .hero-figure { animation-delay: 200ms; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
