/* =========================================================
   Detailing Atlas — styles
   Colors and fonts live in :root so they're easy to change.
   ========================================================= */

:root {
  --ink: #0b0c0e;        /* page background: clear-coat black */
  --panel: #131518;      /* raised surfaces */
  --panel-2: #1a1d21;
  --line: rgba(255, 255, 255, .1);
  --text: #ecebe6;       /* main text */
  --muted: #9c9fa5;      /* secondary text */
  --accent: #8ca57c;     /* the "system" color, used sparingly */
  --accent-ink: #0b0c0e;

  --display: "Archivo", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(80px, 12vw, 150px); }
.center { text-align: center; margin-top: 48px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.kicker {
  font: 500 13px/1 var(--mono);
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 18px;
}
.h2 { font-size: clamp(32px, 5vw, 56px); font-stretch: 112%; max-width: 18ch; }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--text); }
.note { font-size: 15px; color: var(--muted); border-left: 2px solid var(--line); padding-left: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #a1b994; }
.btn--light { background: var(--text); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.28); color: var(--text); background: rgba(11,12,14,.3); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(11,12,14,.86); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
/* Current text wordmark — swap for your logo image when ready */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 44px; width: auto; }
.brand--footer img { height: 40px; }
@media (max-width: 600px) { .brand img { height: 38px; } }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: rgba(255,255,255,.75); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: #fff; }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: transform .25s;
  }
  .menu-btn span::before { position: absolute; top: -6px; }
  .menu-btn span::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] span { background: transparent; }
  .menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 72px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 18px; min-height: 50px; }
  .header:has(.nav.is-open) { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding-block: 140px 72px;
  overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media img { animation: drift 24s ease-in-out infinite alternate; }
.hero__media video { position: absolute; inset: 0; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,.1) 35%, rgba(11,12,14,.85) 82%, var(--ink) 100%),
    linear-gradient(90deg, rgba(11,12,14,.7) 0%, rgba(11,12,14,0) 60%);
}
@keyframes drift { from { transform: scale(1.04) translateX(0); } to { transform: scale(1.12) translateX(-2%); } }

.hero__title { font-size: clamp(44px, 8.4vw, 112px); font-stretch: 118%; font-weight: 800; letter-spacing: -.035em; line-height: .96; max-width: 11ch; }
.hero__lead { margin-top: 26px; max-width: 54ch; font-size: clamp(17px, 1.6vw, 20px); color: rgba(236,235,230,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* System feed cards: light, phone-notification style, played in order by main.js (newest on top) */
.feed {
  list-style: none; margin: 0; padding: 0;
  position: absolute; right: var(--gutter); top: 112px;
  width: min(350px, 34vw);
  display: flex; flex-direction: column-reverse;
}
.feed__card {
  position: relative;
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start;
  padding: 0 14px; margin-top: 0; max-height: 0; overflow: hidden;
  background: rgba(248, 248, 245, .97); color: #15171a;
  border: 1px solid rgba(255,255,255,.7); border-radius: 18px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.65), 0 2px 6px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(-14px) scale(.94);
  transition: max-height .5s cubic-bezier(.2,.8,.2,1), padding .5s cubic-bezier(.2,.8,.2,1), margin .5s cubic-bezier(.2,.8,.2,1),
              opacity .35s ease, transform .6s cubic-bezier(.34,1.56,.64,1);
}
.feed__card.is-in { max-height: 140px; padding: 12px 14px; margin-top: 10px; opacity: 1; transform: none; }
/* Older cards step back a little so the newest one leads */
.feed__card.is-in:not(.is-latest) { opacity: .82; transform: scale(.97); }
/* Newest card: a soft sage glow that pulses once when it lands */
.feed__card.is-latest { animation: cardGlow 1.6s ease-out .15s 1; }
@keyframes cardGlow {
  0% { box-shadow: 0 18px 40px -14px rgba(0,0,0,.65), 0 0 0 0 rgba(140,165,124,.7); }
  100% { box-shadow: 0 18px 40px -14px rgba(0,0,0,.65), 0 0 0 14px rgba(140,165,124,0); }
}
.feed.is-clearing .feed__card { opacity: 0; transform: translateX(24px); transition: opacity .5s ease, transform .5s ease; }

.feed__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.feed__icon svg { width: 20px; height: 20px; }
.feed__icon--msg { background: linear-gradient(135deg, #00b2ff, #006aff); color: #fff; }
.feed__icon--atlas { background: #0b0c0e; color: var(--accent); }
.feed__icon--cal { background: var(--accent); color: #0b0c0e; }
.feed__icon--star { background: #fff4d6; color: #e8a500; }

.feed__body { display: grid; gap: 3px; min-width: 0; }
.feed__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; line-height: 1.2; color: #6b6f76; }
.feed__meta b { color: #15171a; font-weight: 700; }
.feed__meta time { white-space: nowrap; }
.feed__text { font-size: 14.5px; line-height: 1.4; color: #25282c; }
.stars { color: #e8a500; letter-spacing: 1px; }

@media (max-width: 900px) {
  .hero { padding-top: 110px; }
  /* Phones: one card at a time, below the buttons */
  .feed { position: static; width: auto; margin: 26px var(--gutter) 0; display: block; min-height: 84px; }
  .feed__card { display: none; }
  .feed__card.is-latest { display: grid; max-height: none; padding: 12px 14px; margin: 0; opacity: 1; transform: none;
    animation: feedIn .55s cubic-bezier(.34,1.56,.64,1), cardGlow 1.6s ease-out .2s 1; }
  .feed.is-clearing .feed__card.is-latest { opacity: 0; transform: none; }
}
@keyframes feedIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Leak ---------- */
.leak__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.leak__body { display: grid; gap: 40px; padding-top: 34px; }
.leaks { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.leaks div { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.leaks dt { font-family: var(--display); font-weight: 700; font-stretch: 112%; }
.leaks dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) {
  .leak__grid { grid-template-columns: 1fr; }
  .leak__body { padding-top: 0; }
  .leaks div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Race (scroll piece) ---------- */
.race { position: relative; height: 340vh; border-top: 1px solid var(--line); }
.race__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center; padding-block: 96px 40px; }
.race__head { display: grid; gap: 14px; margin-bottom: 36px; }
.race__head .muted { max-width: 52ch; }
.race__lanes { display: grid; border-top: 1px solid var(--line); }
.race__row {
  display: grid; grid-template-columns: 150px 1fr 1fr; gap: 24px; align-items: center;
  padding: 15px 0; border-bottom: 1px solid var(--line);
  transition: opacity .45s;
}
.race__row--head span { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.race__row--head .race__sys { color: var(--accent); }
.race__time { font: 500 13px/1.3 var(--mono); color: var(--muted); }
.race__row:not(.race__row--head) { opacity: .16; }
.race__row.is-on { opacity: 1; }
.race__row span:nth-child(2) { color: var(--muted); }
.race__row .race__sys { position: relative; padding-left: 18px; }
.race__row:not(.race__row--head) .race__sys::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: background-color .3s, box-shadow .3s;
}
.race__row.is-on .race__sys::before { background: var(--accent); box-shadow: 0 0 0 5px rgba(140,165,124,.18); }

.race__tally { display: grid; grid-template-columns: 150px 1fr 1fr; gap: 24px; margin-top: 22px; }
.race__tally::before { content: ""; }
.race__tally div { display: grid; gap: 6px; }
.tally__label { font: 500 12px/1 var(--mono); color: var(--muted); }
.tally__num { font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); }
.race__tally .race__sys { padding-left: 18px; }
.race__tally .race__sys .tally__num { color: var(--accent); }
.race__note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Short laptop screens: drop the sticky effect so nothing gets cut off */
@media (max-height: 759px) {
  .race { height: auto; }
  .race__sticky { position: static; min-height: 0; padding-block: 88px; }
}
@media (max-width: 860px) {
  .race { height: auto; }
  .race__sticky { position: static; min-height: 0; padding-block: 88px; }
  .race__row { grid-template-columns: 1fr 1fr; gap: 6px 16px; padding: 16px 0; font-size: 15px; }
  .race__row .race__time { grid-column: 1 / -1; }
  .race__row--head .race__time { display: none; }
  .race__tally { grid-template-columns: 1fr 1fr; }
  .race__tally::before { display: none; }
}

/* ---------- Work ---------- */
.work { border-top: 1px solid var(--line); }
.work__title { font-size: clamp(40px, 7vw, 88px); font-stretch: 118%; max-width: none; }
.work__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.work__meta span { font: 500 12.5px/1 var(--mono); padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.work__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 64px); margin-top: 56px; align-items: center; }

/* TK showcase: one still screenshot in a browser frame */
.showcase { margin: 0; }
.showcase__desk { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.showcase__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.showcase__bar i { width: 10px; height: 10px; border-radius: 50%; }
.showcase__bar i:nth-child(1) { background: #ff5f57; }
.showcase__bar i:nth-child(2) { background: #febc2e; }
.showcase__bar i:nth-child(3) { background: #28c840; }
.showcase__img { width: 100%; height: auto; display: block; }

/* Project tags */
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 12px; border-left: 2px solid var(--accent); background: rgba(140,165,124,.1); font-size: 13.5px; font-weight: 600; }

.work__copy { display: grid; gap: 26px; }
.built { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.built li { padding-left: 22px; position: relative; color: var(--muted); }
.built li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; }
.built strong { color: var(--text); font-weight: 600; }
.work__copy .btn { justify-self: start; }

.upgrade { margin-top: 56px; padding: 24px 28px; border: 1px solid rgba(140,165,124,.4); border-radius: var(--radius); background: linear-gradient(90deg, rgba(140,165,124,.1), transparent); }
.upgrade p { max-width: 80ch; color: var(--muted); }
.upgrade strong { color: var(--text); }

@media (max-width: 960px) { .work__grid { grid-template-columns: 1fr; } }

/* ---------- Calculator ---------- */
.calc { background: var(--panel); border-block: 1px solid var(--line); }
.calc__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.calc__grid > div { display: grid; gap: 16px; }
.calc__form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span:first-child { font-size: 14px; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  font: 500 17px var(--body);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field__money { position: relative; }
.field__money::before { content: "$"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field__money input { padding-left: 32px; }

.calc__result { margin-top: 8px; padding: 26px; background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; }
.calc__label { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.calc__total { font-family: var(--display); font-weight: 800; font-stretch: 118%; font-size: clamp(44px, 6vw, 68px); line-height: 1; color: var(--accent); }
.calc__total::after { content: " / month"; font-size: .3em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.calc__lines p { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.calc__lines b { color: var(--text); font-weight: 600; white-space: nowrap; }
.calc__fine { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .calc__grid { grid-template-columns: 1fr; } }

/* ---------- Packages ---------- */
.pricing__intro { margin-top: 16px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.tier h3 { font-size: 28px; font-stretch: 115%; }
.tier__type { font: 500 12px/1 var(--mono); color: var(--muted); }
.tier__line { margin-top: 6px; font-size: 17px; }
.tier ul { list-style: none; margin: 14px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.tier li { padding-left: 24px; position: relative; font-size: 15.5px; color: var(--muted); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.tier__fit { margin-top: 18px; font-size: 14px; color: var(--muted); font-style: italic; }
.tier--main { border-color: var(--accent); background: linear-gradient(180deg, rgba(140,165,124,.12), var(--panel) 45%); }
.tier__badge { align-self: flex-start; font: 500 11.5px/1 var(--mono); padding: 7px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-bottom: 6px; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process { border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 24px 0 0; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -14px; left: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); font: 500 12px/1 var(--mono); color: var(--accent); }
.steps h3 { font-size: 22px; font-stretch: 112%; margin: 6px 0 10px; }
.steps p { color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; border-left: 2px solid var(--line); margin-left: 12px; }
  .steps li { border-top: 0; padding: 0 0 32px 32px; }
  .steps li::before { left: -14px; top: 0; }
}

/* ---------- Founder ---------- */
.founder { background: var(--panel); border-block: 1px solid var(--line); }
.founder__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder__figure { margin: 0; }
.founder__photo { width: 100%; height: auto; aspect-ratio: 762 / 953; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.founder__body { display: grid; gap: 18px; color: var(--muted); }
.founder__body .kicker { margin-bottom: 0; }
.founder__body .h2 { color: var(--text); margin-bottom: 10px; }
.founder__lead { color: var(--text); font-size: 19px; }
.sign { font: 500 13px/1 var(--mono); color: var(--accent) !important; margin-top: 8px; }
@media (max-width: 860px) { .founder__grid { grid-template-columns: 1fr; } .founder__figure { max-width: 420px; } }

/* ---------- Audit ---------- */
.audit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.audit__grid > div { display: grid; gap: 22px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { padding-left: 28px; position: relative; color: var(--muted); }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.audit__form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.audit__form .btn { margin-top: 6px; }
.form__status { font-size: 14px; color: var(--accent); min-height: 1em; }
.form__status.is-error { color: #e48a7a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.audit__form { position: relative; }
.audit__form .btn:disabled { opacity: .7; cursor: default; transform: none; }
.form__fine { font-size: 13px; color: var(--muted); }
@media (max-width: 860px) { .audit__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--mono); color: var(--accent); transition: transform .25s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 0 22px; color: var(--muted); max-width: 62ch; }
@media (max-width: 860px) { .faq__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(72px, 10vw, 120px); }
.footer__cta { font-size: clamp(36px, 6vw, 72px); font-stretch: 118%; font-weight: 800; max-width: 14ch; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 80px; padding-block: 28px; border-top: 1px solid var(--line); }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer__bottom nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer__bottom nav a:hover { color: var(--text); }
.footer__bottom .muted { font-size: 14px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img { animation: none; }
  .feed__card, .feed__card.is-latest, .feed.is-clearing .feed__card { transition: none; animation: none !important; }
  .race { height: auto; }
  .race__sticky { position: static; }
  .race__row:not(.race__row--head) { opacity: 1; }
  .btn:hover { transform: none; }
}

/* Audit form: pop-up after submit */
.modal {
  width: min(460px, calc(100% - 32px)); padding: 36px 32px 28px;
  background: var(--panel); color: var(--text);
  border: 1px solid rgba(140,165,124,.45); border-radius: 18px;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.9);
  text-align: center;
}
.modal::backdrop { background: rgba(5,6,7,.72); backdrop-filter: blur(4px); }
.modal[open] { animation: pop .35s cubic-bezier(.2,.8,.2,1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__check { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 26px; font-weight: 700; }
.modal__title { font-size: clamp(26px, 4vw, 32px); font-stretch: 112%; line-height: 1.1; }
.modal__text { margin-top: 14px; color: var(--muted); }
.modal__text strong { color: var(--text); font-weight: 600; word-break: break-word; }
.modal__fine { margin: 10px 0 24px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

[hidden] { display: none !important; }

/* =========================================================
   Inside the packages: clickable explainer
   Scenes animate when they get .is-active (see main.js).
   ========================================================= */
.explain { border-top: 1px solid var(--line); }
.explain__intro { margin-top: 16px; }
.explain__tabs {
  display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 40px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel);
}
.explain__tabs button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 15px var(--body); transition: background-color .25s, color .25s;
}
.explain__tabs button:hover { color: var(--text); }
.explain__tabs button[aria-selected="true"] { background: var(--text); color: var(--ink); }

.explain__body { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 56px); margin-top: 28px; align-items: stretch; }

/* Stage */
.stage {
  position: relative; min-height: 440px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(140,165,124,.10), transparent 60%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--panel);
}
.scene {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 28px; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.scene.is-active { opacity: 1; visibility: visible; transition: opacity .35s ease; }

/* Shared pieces */
.ui-card { width: min(360px, 88%); padding: 18px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.ui-label { font: 500 11px/1 var(--mono); color: var(--muted); letter-spacing: .04em; margin-bottom: 14px; }
.chip {
  font: 500 12px/1 var(--mono); padding: 9px 13px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
}
.chip--pop { opacity: 0; transform: translateY(8px) scale(.95); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.is-active .chip--pop { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.fd-btn { margin-top: 14px; padding: 11px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 600; font-size: 13.5px; }

/* Mini website */
.mini-site { width: min(380px, 88%); display: grid; gap: 10px; padding: 12px; background: var(--ink); border: 1px solid var(--line); border-radius: 12px; }
.ms-nav { display: flex; gap: 6px; justify-content: flex-end; }
.ms-nav span { width: 34px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); }
.ms-nav span:first-child { margin-right: auto; width: 60px; background: rgba(255,255,255,.4); }
.ms-hero { display: grid; gap: 8px; padding: 22px 16px; border-radius: 8px; background: linear-gradient(135deg, #22272c, #15181b); }
.ms-hero b { display: block; height: 12px; width: 78%; border-radius: 4px; background: rgba(255,255,255,.75); }
.ms-hero b + b { width: 52%; }
.ms-hero i { display: block; margin-top: 6px; width: 92px; height: 22px; border-radius: 999px; background: var(--accent); }
.ms-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ms-tiles span { height: 52px; border-radius: 8px; background: #1f2327; }
.mini-site:not(.mini-site--static) > * { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1); }
.is-active .mini-site > * { opacity: 1; transform: none; }
.is-active .mini-site > :nth-child(2) { transition-delay: .25s; }
.is-active .mini-site > :nth-child(3) { transition-delay: .5s; }
.ms-banner { max-height: 0; padding: 0 12px; overflow: hidden; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font: 600 12px/34px var(--body); transition: max-height .5s cubic-bezier(.2,.8,.2,1); }
.is-active .ms-banner { max-height: 34px; transition-delay: .5s; }

/* Booking form */
.fd-field { display: grid; gap: 6px; margin-bottom: 10px; }
.fd-field span { font-size: 11.5px; color: var(--muted); }
.fd-field i { position: relative; display: block; height: 32px; border: 1px solid var(--line); border-radius: 8px; }
.fd-field i::after { content: ""; position: absolute; left: 10px; top: 12px; height: 7px; width: 0; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .5s ease; }
.is-active .fd-field i::after { width: var(--w); transition-delay: var(--d); }

/* Sheet */
.sd-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; padding: 9px 8px; border-top: 1px solid var(--line); font: 400 12.5px/1.2 var(--mono); color: var(--muted); }
.sd-head { border-top: 0; font-size: 11px; }
.sd-new { max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; color: var(--text); background: rgba(140,165,124,.16); border-radius: 6px; transition: max-height .5s ease, padding .5s ease, opacity .4s ease; }
.is-active .sd-new { max-height: 40px; padding-block: 9px; opacity: 1; transition-delay: .5s; }

/* Map */
.map-demo {
  position: relative; width: min(380px, 88%); aspect-ratio: 16 / 11; border-radius: 12px; border: 1px solid var(--line); overflow: hidden;
  background:
    linear-gradient(24deg, transparent 47%, rgba(255,255,255,.08) 47%, rgba(255,255,255,.08) 53%, transparent 53%),
    linear-gradient(-62deg, transparent 46%, rgba(255,255,255,.06) 46%, rgba(255,255,255,.06) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 22px 22px,
    #121518;
}
.md-pin {
  position: absolute; left: 50%; top: 30%; width: 26px; height: 26px; margin-left: -13px;
  background: var(--accent); border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(20px, -20px); opacity: 0;
  transition: transform .55s cubic-bezier(.3,1.6,.5,1), opacity .3s ease;
}
.md-pin::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--ink); }
.is-active .md-pin { opacity: 1; transform: rotate(-45deg); transition-delay: .3s; }
.md-card { position: absolute; left: 50%; bottom: 14px; width: 82%; transform: translate(-50%, 10px); display: grid; gap: 4px; padding: 12px 14px; opacity: 0; transition: opacity .4s ease, transform .4s ease; }
.md-card span { font-size: 12px; color: var(--accent); }
.is-active .md-card { opacity: 1; transform: translate(-50%, 0); transition-delay: 1s; }

/* Chat */
.chat { width: min(360px, 88%); display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .4s cubic-bezier(.2,.8,.2,1); }
.bubble small { display: block; margin-top: 4px; font: 400 10.5px/1.2 var(--mono); color: var(--muted); }
.bubble--in { align-self: flex-start; background: #23272c; border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: rgba(140,165,124,.16); border: 1px solid rgba(140,165,124,.5); border-bottom-right-radius: 4px; }
.bubble--out small { color: var(--accent); }
.is-active .bubble { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
.typing { align-self: flex-end; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: rgba(140,165,124,.12); opacity: 0; height: 0; padding-block: 0; overflow: hidden; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
.is-active .typing { animation: typing .8s var(--d) both; }
@keyframes typing { 0% { opacity: 0; height: 0; padding-block: 0; } 15%, 85% { opacity: 1; height: 30px; padding-block: 12px; } 100% { opacity: 0; height: 0; padding-block: 0; } }
@keyframes dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* Pipeline */
.pipe { width: min(460px, 92%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pipe__col { display: grid; align-content: start; gap: 8px; min-height: 170px; padding: 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.pipe__col p { font: 500 11px/1 var(--mono); color: var(--muted); margin-bottom: 2px; }
.pipe__card, .pipe__slot { display: block; min-height: 38px; padding: 9px 10px; border-radius: 8px; font-size: 12.5px; background: var(--ink); border: 1px solid var(--line); }
.pipe__slot { visibility: hidden; }
.pipe__card--move { position: relative; z-index: 1; transition: transform .9s cubic-bezier(.6,0,.2,1), border-color .3s ease, background-color .3s ease; }
.is-active .pipe__card--move { transform: translate(calc(100% + 32px), calc(100% + 8px)); border-color: var(--accent); background: #18201a; transition-delay: .6s, 1.5s, 1.5s; }

/* Review */
.review-demo { text-align: center; }
.rd-stars { display: flex; justify-content: center; gap: 6px; margin-top: 14px; font-size: 30px; line-height: 1; }
.rd-stars i { font-style: normal; color: rgba(255,255,255,.14); transition: color .25s ease, transform .3s cubic-bezier(.3,1.6,.5,1); }
.is-active .rd-stars i { color: #e7c873; transform: scale(1.12); }
.is-active .rd-stars i:nth-child(1) { transition-delay: .5s; }
.is-active .rd-stars i:nth-child(2) { transition-delay: .7s; }
.is-active .rd-stars i:nth-child(3) { transition-delay: .9s; }
.is-active .rd-stars i:nth-child(4) { transition-delay: 1.1s; }
.is-active .rd-stars i:nth-child(5) { transition-delay: 1.3s; }

/* Reactivation */
.react { width: min(360px, 88%); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.react .bubble { align-self: stretch; max-width: none; }
.react__time { font: 500 13px/1 var(--mono); color: var(--muted); display: flex; align-items: center; gap: 10px; width: 100%; }
.react__time::before, .react__time::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Campaign blast */
.blast { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(380px, 88%); }
.blast__card { text-align: center; font-weight: 600; border-color: rgba(140,165,124,.5); }
.blast__dots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px 22px; }
.blast__dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.12); transition: background-color .3s ease, box-shadow .3s ease; }
.is-active .blast__dots i { background: var(--accent); box-shadow: 0 0 0 5px rgba(140,165,124,.15); }
.blast__label { font-size: 13px; color: var(--muted); text-align: center; }

/* Report */
.report__bars { display: flex; align-items: flex-end; gap: 14px; height: 150px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.report__bars i { flex: 1; height: 4%; border-radius: 6px 6px 0 0; background: rgba(255,255,255,.18); transition: height .7s cubic-bezier(.2,.8,.2,1); }
.report__bars i:last-child { background: var(--accent); }
.is-active .report__bars i { height: var(--h); }
.is-active .report__bars i:nth-child(2) { transition-delay: .15s; }
.is-active .report__bars i:nth-child(3) { transition-delay: .3s; }
.is-active .report__bars i:nth-child(4) { transition-delay: .45s; }
.report__months { display: flex; gap: 14px; padding: 8px 6px 0; }
.report__months span { flex: 1; text-align: center; font: 400 11px/1 var(--mono); color: var(--muted); }

/* Calendar */
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__grid i { aspect-ratio: 1; border-radius: 6px; background: rgba(255,255,255,.06); }
.cal__day { transition: background-color .3s ease, box-shadow .3s ease; }
.is-active .cal__day { background: var(--accent); box-shadow: 0 0 0 4px rgba(140,165,124,.2); transition-delay: .5s; }

/* Steps list */
.beats { display: flex; flex-direction: column; }
.beats__includes { font: 500 12px/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.beats__list { list-style: none; margin: 0; padding: 0; display: grid; }
.beats__list button {
  position: relative; display: grid; gap: 4px; width: 100%; padding: 14px 0 14px 20px; text-align: left; cursor: pointer;
  background: none; border: 0; border-left: 2px solid var(--line); color: var(--text); font: inherit;
}
.beats__list b { font-family: var(--display); font-stretch: 112%; font-size: 17px; color: var(--muted); transition: color .25s; }
.beats__list span { font-size: 14.5px; line-height: 1.5; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease; }
.beats__list button:hover b { color: var(--text); }
.beats__list li.is-done button { border-left-color: rgba(140,165,124,.5); }
.beats__list li.is-active b { color: var(--text); }
.beats__list li.is-active span { max-height: 80px; opacity: 1; }
.beats__list li.is-active button::before {
  content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: 100%;
  background: var(--accent); transform-origin: top; transform: scaleY(1);
}
.explain.is-playing .beats__list li.is-active button::before { animation: beatfill var(--beat, 3.2s) linear both; }
@keyframes beatfill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.beats__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }

@media (max-width: 900px) {
  .explain__body { grid-template-columns: 1fr; }
  .stage { min-height: 360px; }
  .explain__tabs { display: flex; border-radius: 16px; }
  .explain__tabs button { flex: 1; padding: 0 10px; font-size: 14px; }
}
@media (max-width: 420px) {
  .explain__tabs button { font-size: 13px; padding: 0 6px; }
  .pipe__card { font-size: 11px; padding: 8px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .stage *, .stage *::before, .stage *::after, .scene { transition: none !important; animation: none !important; }
  .typing { display: none; }
  .explain.is-playing .beats__list li.is-active button::before { animation: none; }
}

/* Book-a-call links (hidden until BOOKING_URL is set in main.js) */
.call-link { font-size: 15px; color: var(--muted); }
.call-link a { color: var(--text); font-weight: 600; text-underline-offset: 3px; }
.call-link a:hover { color: var(--accent); }
.modal .call-link { margin: -12px 0 20px; font-size: 14px; }
.footer .call-link { margin-top: 18px; }
