/* =========================================================
   BRIX Scale landing page
   Light, rounded, card-based layout. BRIX orange + warm ink.
   ========================================================= */

:root {
  /* Surfaces */
  --paper: #ffffff;
  --cream: #faf7f2;
  --wash: #fff3ec;
  --wash-2: #ffe6d9;

  /* Ink */
  --ink: #16120f;
  --grey: #6b645e;
  --line: #ece6df;

  /* Deep bands (results, final CTA, footer) */
  --deep: #1d1511;
  --deep-lift: #2b2019;
  --deep-darker: #120d0a;
  --deep-line: rgba(255, 255, 255, .1);
  --deep-muted: rgba(255, 255, 255, .66);

  /* Brand */
  --accent: #ff5a1f;
  --accent-deep: #e9470d;
  --accent-soft: #ffb899;
  --accent-ink: #ffffff;
  --error: #dc2626;

  /* Aliases used by the application overlay */
  --bg: var(--paper);
  --text: var(--ink);
  --muted: var(--grey);
  --surface: var(--paper);
  --surface-2: #f1ece6;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-card: 20px;
  --r-btn: 12px;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-btn: 0 10px 24px -10px rgba(255, 90, 31, .65);
  --shadow-card: 0 30px 60px -30px rgba(22, 18, 15, .25);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }
.center { display: flex; justify-content: center; }
.accent { color: var(--accent); }

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

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r-btn);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s, box-shadow .2s var(--ease), color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 15px; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 17px; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-btn); }
.btn--accent:hover { background: var(--accent-deep); }
.btn--outline { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2c2520; }
.btn--ghost { background: transparent; color: var(--grey); padding: 0 12px; }
.btn--ghost:hover { color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 28px; width: auto; }
.logo--sm img { height: 22px; }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--center { text-align: center; }
.pill {
  display: inline-flex; padding: 7px 14px; border-radius: 100px;
  background: var(--wash); border: 1px solid var(--wash-2); color: var(--ink);
  font-size: 14px; font-weight: 600;
}
.h2 { margin-top: 14px; font-size: clamp(32px, 4.6vw, 52px); }
.lede { margin-top: 18px; max-width: 640px; font-size: clamp(16px, 1.6vw, 18px); color: var(--grey); }
.head--center { text-align: center; }
.head--center .h2 { max-width: 760px; margin-left: auto; margin-right: auto; }
.head--center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.nav.is-scrolled { box-shadow: 0 6px 24px -18px rgba(22, 18, 15, .35); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--ink); opacity: .82; }
.nav__links a:hover { opacity: 1; color: var(--accent); }
.nav__cta { display: flex; gap: 10px; }
@media (max-width: 920px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 8vw, 104px); }
.hero__inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__title { margin-top: 22px; font-size: clamp(40px, 5.6vw, 66px); letter-spacing: -0.04em; line-height: 1.04; }
.hero__sub { margin-top: 20px; max-width: 580px; font-size: clamp(17px, 1.7vw, 20px); color: var(--grey); line-height: 1.5; }

.hero__features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; max-width: 620px; }
.hero__features li { display: flex; gap: 12px; }
.hero__features svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__features strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.hero__features span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--grey); line-height: 1.45; }

.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.micro { margin-top: 14px; font-size: 14px; color: var(--grey); }

/* Hero illustration */
.hero__visual { position: relative; padding: 56px 24px; }
.hero__visual::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--wash-2), var(--wash) 60%, transparent 72%);
}
.mock {
  position: relative; padding: 24px; border-radius: 24px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.mock__head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; }
.mock__badge { padding: 4px 10px; border-radius: 100px; background: var(--wash); color: var(--accent); font-size: 14px; font-weight: 800; }
.mock__chart { margin-top: 22px; height: 210px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; border-bottom: 1px solid var(--line); }
.mock__chart span { height: var(--h); border-radius: 10px 10px 4px 4px; background: #ece6df; }
.mock__chart span.is-up { background: linear-gradient(180deg, var(--accent), #ff8a5c); }
.mock__axis { margin-top: 10px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; text-align: center; font-size: 12px; font-weight: 600; color: var(--grey); }

.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px;
  border-radius: 16px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.chip strong { display: block; font-size: 15px; line-height: 1.2; }
.chip small { display: block; font-size: 13px; color: var(--grey); }
.chip__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); }
.chip__icon--ink { background: var(--ink); }
.chip__icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chip--top { top: 18px; left: -6px; transform: rotate(-3deg); }
.chip--bottom { bottom: 20px; right: -6px; transform: rotate(2deg); }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- Our successful agencies ---------- */
.agencies { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.agencies__title { margin-top: 12px; text-align: center; font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; }
.agencies__row {
  list-style: none; margin: 40px auto 0; padding: 0; max-width: 940px;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 16px; align-items: stretch;
}
.agency {
  display: grid; place-items: center; min-height: 132px; padding: 22px 28px;
  border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.agency:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.agency--featured { min-height: 160px; background: var(--deep); border-color: var(--deep); box-shadow: var(--shadow-card); }
.agency__logo { width: auto; max-width: 100%; }
.agency__logo--sf { height: 64px; }
.agency__logo--dg { height: 76px; }
.agency--open { padding: 0; border-style: dashed; border-width: 1.5px; background: var(--cream); }
.agency--open button {
  width: 100%; height: 100%; padding: 22px; border: 0; background: none; color: var(--ink);
  display: grid; justify-items: center; align-content: center; gap: 4px; border-radius: var(--r-card);
}
.agency__avatar {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 8px;
  border-radius: 50%; background: var(--wash-2); overflow: visible;
}
.agency__avatar svg { width: 60px; height: 60px; border-radius: 50%; fill: var(--accent-soft); }
.agency__badge {
  position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--accent); color: #fff; border: 2px solid var(--cream);
  font-size: 16px; font-weight: 700; line-height: 1;
}
.agency--open button:hover .agency__avatar { background: var(--wash); }
.agency--open strong { font-size: 16px; }
.agency--open small { font-size: 14px; color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .agencies__row { grid-template-columns: 1fr; max-width: 420px; gap: 12px; }
  .agency { min-height: 108px; }
  .agency--featured { min-height: 132px; }
  .agency__logo--sf { height: 52px; }
  .agency__logo--dg { height: 64px; }
}

/* ---------- Section call to action ---------- */
.section-cta { margin-top: 48px; display: grid; justify-items: center; gap: 12px; text-align: center; }
.section-cta__note { font-size: 14px; color: var(--grey); }
.section--deep .section-cta__note { color: var(--deep-muted); }
.agencies .section-cta { margin-top: 36px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--cream { background: var(--cream); }
.section--wash { background: var(--wash); }
.section--deep { background: var(--deep); color: #fff; }
.section--deep .lede { color: var(--deep-muted); }
.section--deep .eyebrow { color: var(--accent-soft); }

/* ---------- Why Brix: colour cards ---------- */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: clamp(26px, 3vw, 40px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--paper); }
.card__label { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin-top: 18px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.card .hl { color: var(--accent); }
.card > p:not(.card__label) { margin-top: 14px; font-size: 15.5px; color: var(--grey); }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; font-weight: 500; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--accent); }

.card--ink { background: var(--deep); border-color: var(--deep); color: #fff; }
.card--ink .card__label { color: var(--accent-soft); }
.card--ink .hl { color: var(--accent-soft); }
.card--ink > p:not(.card__label) { color: var(--deep-muted); }
.card--ink .checks li::before { color: var(--accent-soft); }

.card--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.card--accent .card__label { color: rgba(255, 255, 255, .8); }
.card--accent .hl { color: var(--ink); }
.card--accent > p:not(.card__label) { color: rgba(255, 255, 255, .88); }
.card--accent .checks li::before { color: var(--ink); }

.card--wash { background: var(--wash); border-color: var(--wash-2); }

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

/* ---------- Guaranteed growth: deep band ---------- */
.stages { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stage { padding: clamp(26px, 3vw, 34px); border-radius: var(--r-card); border: 1px solid var(--deep-line); min-height: 240px; }
.stage__when { display: block; font-size: clamp(34px, 4vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stage h3 { margin-top: 18px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.stage p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; }
.stage--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.stage--accent p { color: rgba(255, 255, 255, .9); }
.stage--lift { background: var(--deep-lift); }
.stage--lift .stage__when { color: var(--accent); }
.stage--lift p, .stage--dark p { color: var(--deep-muted); }
.stage--dark { background: var(--deep-darker); }
.stage--dark .stage__when { color: var(--accent-soft); }

.guarantee {
  margin-top: 20px; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(26px, 4vw, 44px); border-radius: var(--r-card); border: 1px solid var(--deep-line);
  background: linear-gradient(135deg, rgba(255, 90, 31, .14), rgba(255, 90, 31, 0) 60%);
}
.guarantee h3 { font-size: clamp(26px, 3.2vw, 38px); }
.guarantee__text p { margin-top: 14px; color: var(--deep-muted); max-width: 520px; }
.guarantee__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.guarantee__list li { position: relative; padding-left: 34px; font-weight: 600; }
.guarantee__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800;
}
@media (max-width: 860px) {
  .stages { grid-template-columns: 1fr; }
  .stage { min-height: 0; }
  .guarantee { grid-template-columns: 1fr; }
}

/* ---------- Who we are: panel ---------- */
.panel {
  margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 3vw, 40px); border-radius: var(--r-card); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
}
.panel__text { padding: clamp(4px, 1.5vw, 12px); }
.panel__lead { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; }
.panel__lead strong { color: var(--accent); font-weight: 700; }
.panel__text p + p { margin-top: 16px; color: var(--grey); }
.panel__result { padding: clamp(28px, 3.5vw, 40px); border-radius: 16px; background: var(--deep); color: #fff; text-align: center; display: grid; justify-items: center; }
.panel__label { font-size: 15px; font-weight: 600; color: var(--deep-muted); }
.panel__big { margin-top: 6px; font-size: clamp(56px, 7vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.panel__note { margin-top: 14px; max-width: 420px; font-size: 15px; color: var(--deep-muted); }
.panel__result .btn { margin-top: 24px; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }

/* ---------- How it works: steps ---------- */
.steps { list-style: none; margin: 48px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; font-size: 17px; }
.step h3 { margin-top: 22px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--grey); font-size: 15.5px; }
.tag { margin-top: 16px; padding: 4px 12px; border-radius: 100px; background: var(--wash); color: var(--accent-deep); font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Fit ---------- */
.fit { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit__col { padding: clamp(26px, 4vw, 40px); border-radius: var(--r-card); border: 1px solid var(--line); background: var(--paper); }
.fit__col--yes { border-top: 4px solid var(--accent); }
.fit__col--no { background: transparent; }
.fit__col h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.fit__col ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.fit__col li { position: relative; padding-left: 34px; color: var(--grey); font-size: 15.5px; }
.fit__col li::before { position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.fit__col--yes li { color: var(--ink); }
.fit__col--yes li::before { content: "✓"; background: var(--accent); color: #fff; }
.fit__col--no li::before { content: "✕"; background: #ece6df; color: var(--grey); }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--wash-2); box-shadow: var(--shadow-card); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 24px; font-weight: 700; font-size: clamp(17px, 1.9vw, 19px); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--wash); color: var(--accent); font-weight: 500; font-size: 22px; transition: transform .25s var(--ease), background .25s, color .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq details p { padding: 0 64px 22px 24px; color: var(--grey); }

/* ---------- Final CTA ---------- */
.final { padding: clamp(80px, 11vw, 136px) 0; background: var(--deep); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; left: 50%; top: -30%; transform: translateX(-50%);
  width: 900px; max-width: 120vw; aspect-ratio: 1.6; background: radial-gradient(closest-side, rgba(255, 90, 31, .28), transparent 70%); pointer-events: none;
}
.final__inner { position: relative; display: grid; justify-items: center; }
.final__title { max-width: 760px; font-size: clamp(34px, 5vw, 58px); letter-spacing: -0.04em; }
.final__sub { margin-top: 18px; color: var(--deep-muted); font-size: clamp(16px, 1.7vw, 18px); }
.final__cta { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final__checks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.final__checks li::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { background: var(--deep-darker); color: var(--deep-muted); padding: 48px 0 40px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: center; }
.footer__brand p { margin-top: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; color: #fff; }
.footer__links a:hover { color: var(--accent-soft); }
.footer__copy, .footer__note { grid-column: 1 / -1; }
.footer__copy { padding-top: 24px; border-top: 1px solid var(--deep-line); }
.footer__note { margin-top: -16px; font-size: 12px; opacity: .75; }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   APPLICATION OVERLAY
   ========================================================= */
.apply {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column;
  animation: applyIn .35s var(--ease);
}
.apply[hidden] { display: none; }
@keyframes applyIn { from { opacity: 0; transform: translateY(16px); } }

.apply__top { flex: none; border-bottom: 1px solid var(--line); }
.apply__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; padding: 0 var(--gutter); }
.apply__status { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.apply__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text); }
.apply__close:hover { border-color: var(--text); }
.apply__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.progress { height: 4px; background: var(--surface-2); }
.progress__fill { height: 100%; width: 0; background: var(--accent); transition: width .45s var(--ease); }

.apply__body { flex: 1; overflow-y: auto; display: flex; justify-content: center; padding: clamp(40px, 10vh, 120px) var(--gutter) 48px; }
#leadForm { width: 100%; max-width: 680px; }

.q { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.q.is-active { display: block; animation: qIn .4s var(--ease); }
.q.is-back { animation: qBack .4s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(24px); } }
@keyframes qBack { from { opacity: 0; transform: translateY(-24px); } }

.q__step { padding: 0; margin-bottom: 28px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.q__field + .q__field { margin-top: 36px; }
.q__label { display: block; padding: 0; font-weight: 800; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.03em; line-height: 1.2; }
.q__field .q__input { margin-top: 18px; }
.q__num { display: inline-block; margin-right: 6px; font-size: .55em; vertical-align: middle; color: var(--accent); font-weight: 700; }
.q__input {
  width: 100%; margin-top: 32px; padding: 10px 0 14px;
  background: transparent; border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
  color: var(--text); font: 500 clamp(22px, 3.2vw, 30px)/1.3 var(--font); letter-spacing: -0.01em;
  transition: border-color .2s;
}
.q__input::placeholder { color: #c4bcb4; }
.q__input:focus { outline: none; border-bottom-color: var(--accent); }
.q__input.is-invalid { border-bottom-color: var(--error); }
.q__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.q__error { min-height: 22px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--error); }

.select { position: relative; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select select:invalid { color: #b3aba3; }
.select option { background: var(--surface); color: var(--text); font-size: 17px; }
.select svg { position: absolute; right: 4px; bottom: 20px; width: 26px; height: 26px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
/* Phone: country code picker + number */
.phone { display: flex; align-items: flex-end; gap: 14px; }
.phone > .q__input { flex: 1; min-width: 0; }
.phone__cc { position: relative; flex: none; }
.phone__ccLabel { display: block; width: auto; min-width: 128px; padding-right: 34px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone__cc select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  font-size: 16px; /* stops iOS zooming in */
}
.phone__cc svg { position: absolute; right: 2px; bottom: 20px; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.phone__cc:focus-within .phone__ccLabel { border-bottom-color: var(--accent); }

.other { margin-top: 24px; animation: qIn .3s var(--ease); }
.other .q__input { margin-top: 4px; font-size: clamp(18px, 2.6vw, 24px); }

.apply__nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.apply__enter { font-size: 13px; color: var(--muted); }
.apply__enter kbd { font-family: var(--font); font-weight: 600; font-size: 12px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 6px; }
@media (hover: none) { .apply__enter { display: none; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: currentColor; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Booking */
.booking, .done { width: 100%; max-width: 1000px; animation: qIn .5s var(--ease); }
.booking[hidden], .done[hidden] { display: none; }
.booking .kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.booking__title { margin-top: 12px; font-size: clamp(28px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.04em; }
.booking__sub { margin-top: 14px; color: var(--muted); max-width: 620px; }
.booking__loading { margin-top: 32px; color: var(--grey); font-weight: 600; }
.booking__loading[hidden], .calendly-wrap[hidden], .slots[hidden] { display: none; }

/* In-page time picker */
.slots { margin-top: 28px; }
.slots__tz { font-size: 14px; color: var(--grey); }
.slots__days {
  margin-top: 16px; display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px;
  scroll-snap-type: x proximity; scrollbar-width: thin;
}
.slots__day {
  flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; min-width: 92px; padding: 12px 10px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.slots__day span { font-size: 13px; font-weight: 600; color: var(--grey); }
.slots__day strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.slots__day small { font-size: 12px; color: var(--grey); }
.slots__day:hover { border-color: var(--ink); }
.slots__day.is-active { border-color: var(--accent); background: var(--wash); }
.slots__day.is-active span, .slots__day.is-active small { color: var(--accent-deep); }
.slots__times { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.slots__time {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink);
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s;
}
.slots__time:hover { border-color: var(--accent); color: var(--accent-deep); }
.slots__time.is-booking { background: var(--accent); border-color: var(--accent); color: #fff; }
.slots__time .spinner { border-color: rgba(255, 255, 255, .35); border-top-color: #fff; }
.slots__day:disabled, .slots__time:disabled:not(.is-booking) { opacity: .5; cursor: default; }
.slots__msg { min-height: 22px; margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--accent-deep); }


.calendly-wrap { position: relative; margin-top: 32px; min-height: 700px; border-radius: var(--r-card); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.calendly-wrap .calendly-inline-widget, .calendly-wrap iframe { width: 100%; min-height: 700px; height: 700px; border: 0; }
.calendly-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--grey); font-weight: 600; }
.calendly-missing { padding: 40px; color: var(--ink); }
.calendly-missing code { background: var(--cream); padding: 2px 6px; border-radius: 6px; }

.done { max-width: 620px; text-align: center; margin: auto 0; display: grid; justify-items: center; }
.done .booking__sub { margin-left: auto; margin-right: auto; }
.done .btn { margin-top: 32px; }
.done__icon { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--accent); }
.done__icon svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 600px) {
  body { font-size: 16px; }

  .nav__inner { height: 62px; }
  .logo img { height: 24px; }
  .nav__secondary { display: none; }
  .nav .btn--sm { --h: 40px; padding: 0 16px; font-size: 14px; }

  .hero { padding: 36px 0 56px; }
  .hero__title { font-size: clamp(34px, 10vw, 44px); }
  .hero__features { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .hero__cta .btn, .final__cta .btn, .center .btn, .section-cta .btn { width: 100%; }
  .section-cta { margin-top: 32px; }
  .micro { text-align: center; }
  .hero__visual { padding: 58px 8px 60px; }
  .mock { padding: 18px; }
  .mock__chart { height: 160px; gap: 8px; }
  .mock__axis { gap: 8px; font-size: 11px; }
  .chip { padding: 9px 12px 9px 9px; }
  .chip__icon { width: 30px; height: 30px; }
  .chip--top { top: 2px; left: 0; }
  .chip--bottom { bottom: 2px; right: 0; }

  .btn--lg { --h: 54px; padding: 0 20px; font-size: 16px; white-space: normal; text-align: center; }

  .section { padding: 64px 0; }
  .h2 { font-size: clamp(28px, 8vw, 36px); }
  .cards, .stages, .fit { margin-top: 32px; }
  .steps { margin: 32px 0; }
  .step { padding: 24px; }

  .faq summary { padding: 18px 18px; font-size: 16.5px; gap: 14px; }
  .faq summary::after { width: 28px; height: 28px; font-size: 18px; }
  .faq details p { padding: 0 18px 20px; font-size: 15px; }

  .final__cta { width: 100%; }

  /* Form overlay */
  .apply { height: 100dvh; }
  .apply__bar { height: 56px; }
  .apply__status { font-size: 12px; text-align: center; }
  .apply__body { padding: 32px var(--gutter) 32px; }
  .q__step { margin-bottom: 20px; }
  .q__field + .q__field { margin-top: 28px; }
  .q__label { font-size: 21px; }
  .q__input { margin-top: 24px; font-size: 19px; }
  .q__field .q__input { margin-top: 12px; }
  .phone { gap: 10px; }
  .phone__ccLabel { min-width: 104px; padding-right: 28px; }
  .apply__nav { position: sticky; bottom: 0; padding: 16px 0 calc(8px + env(safe-area-inset-bottom)); background: var(--bg); }
  .apply__nav #nextBtn { flex: 1; }
  .booking__title { font-size: 26px; }
  .calendly-wrap, .calendly-wrap .calendly-inline-widget, .calendly-wrap iframe { min-height: 1050px; height: 1050px; }
  .calendly-wrap { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; }
}

/* =========================================================
   MOBILE CARD SLIDERS (Why Brix, Growth, How it works, Fit)
   ========================================================= */
.slider-dots { display: none; }
@media (max-width: 760px) {
  [data-slider] {
    position: relative;
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
    margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 8px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  [data-slider]::-webkit-scrollbar { display: none; }
  [data-slider] > * { scroll-snap-align: start; min-width: 0; }
  /* Cards beside the screen edge would never "reveal" on scroll, so show them straight away */
  [data-slider] > .reveal { opacity: 1; transform: none; }
  .steps[data-slider] { margin-bottom: 0; }

  .slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; color: var(--ink); }
  .section--deep .slider-dots { color: #fff; }
  .steps[data-slider] + .slider-dots { margin-bottom: 32px; }
  .slider-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
    background: currentColor; opacity: .35; transition: width .25s var(--ease), opacity .25s, background-color .25s;
  }
  .slider-dots button.is-active { width: 24px; opacity: 1; background: var(--accent); }
}
