/* =====================================================================
   SYSTEM B · Kelly McKenna's own funnel brand (Business of Therapy®)
   Used by: offer/, register/, thank-you/, replay/, deck, email + ad specimen pages.
   Her real palette: cream canvas #FBF8F3, navy ink (#454D70, deepened for
   text), the logo's pink bar, sky blue #A6E1FA and butter #F7E14E as washes.
   Type: Figtree (closest open match to her Filson Pro), friendly + rounded.
   ===================================================================== */
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  /* canvas (her cream) */
  --bg: #fbf8f3;
  --bg-2: #f6f0e6;
  --surface: #ffffff;
  --surface-2: #fdfbf7;
  /* ink (her navy, deepened for body text) */
  --ink: #262b45;
  --ink-2: #4f5675;
  --ink-3: #676d8c;
  --line: rgba(38, 43, 69, 0.13);
  --line-soft: rgba(38, 43, 69, 0.075);
  /* brand */
  --navy: #3d4468;        /* CTA fill (her #454D70, a touch deeper) */
  --navy-2: #2e3454;      /* CTA hover */
  --on-navy: #ffffff;
  --brass: #b03d82;       /* pink, deepened to pass as text: eyebrows, index numbers */
  --brass-soft: #fbd6ee;  /* her logo bar pink, softened: marks */
  --pink: #f391de;        /* her exact pink: bars, dots, decorative only */
  --sky: #a6e1fa;         /* her sky blue */
  --butter: #f7e14e;      /* her yellow */
  --butter-soft: #fdf5c4;
  --teal-wash: rgba(166, 225, 250, 0.32);
  /* type */
  --display: "Figtree", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Figtree", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Figtree", "Avenir Next", system-ui, sans-serif;
  /* shape + motion */
  --radius: 20px;
  --radius-sm: 14px;
  --shadow-1: 0 1px 2px rgba(38, 43, 69, 0.06), 0 8px 24px -12px rgba(38, 43, 69, 0.14);
  --shadow-2: 0 2px 6px rgba(38, 43, 69, 0.06), 0 24px 60px -24px rgba(38, 43, 69, 0.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --section-y: clamp(64px, 9vw, 120px);
  --gutter: clamp(18px, 4vw, 32px);

  --ink-muted: var(--ink-2);
  --muted: var(--ink-2);
  --hair: var(--line);
  --accent: var(--navy);
}

/* ---- mobile hardening (paste into every generated stylesheet) ---- */
*, *::before, *::after { box-sizing: border-box; }
img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
p, li, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 700px) {
  [class*="row"], [class*="stack"] > *, [class*="item"], .it { flex-wrap: wrap; }
  .tag, [class*="badge"], [class*="pill"] { margin-left: 0; }
}
@media (max-width: 420px) { .tok-merge, .tok-link, code { white-space: normal; } }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: calc(17px + 2px); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* one continuous page canvas: no seams between sections */
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(166, 225, 250, 0.30), transparent 60%),
    radial-gradient(80% 50% at 100% 40%, rgba(243, 145, 222, 0.07), transparent 70%),
    radial-gradient(90% 60% at 0% 85%, rgba(247, 225, 78, 0.10), transparent 70%);
  background-attachment: scroll;
}
::selection { background: var(--navy); color: var(--on-navy); }
a { color: inherit; }
img { display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: calc(var(--section-y) * 0.6) 0; }
.center { text-align: center; }

/* ---- type ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: calc(12.5px + 2px); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass); margin: 0 0 18px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.5; }
.eyebrow--plain::before, .eyebrow--plain::after { display: none; }
h1, .h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 1.06;
  font-size: calc(clamp(32px, 5.2vw, 60px) + 2px); margin: 0 auto 22px; max-width: 22ch; text-wrap: balance;
}
h1 em, .h1 em, h2 em, .h2 em { font-style: normal; color: var(--navy); background: linear-gradient(transparent 64%, var(--brass-soft) 64%, var(--brass-soft) 92%, transparent 92%); padding: 0 0.06em; }
h2, .h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.022em; line-height: 1.1;
  font-size: calc(clamp(28px, 3.8vw, 44px) + 2px); margin: 0 auto 18px; max-width: 26ch; text-wrap: balance;
}
h3, .h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; font-size: calc(clamp(21px, 2.1vw, 26px) + 2px); line-height: 1.2; margin: 0 0 10px; }
.sub { font-size: calc(clamp(17px, 1.6vw, 20px) + 2px); color: var(--ink-2); max-width: 60ch; margin: 0 auto; line-height: 1.55; }
.lead { font-size: calc(18px + 2px); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.small { font-size: calc(14px + 2px); color: var(--ink-3); }
.mark { background: linear-gradient(transparent 62%, var(--brass-soft) 62%); padding: 0 0.08em; }
.mark--sky { background: linear-gradient(transparent 62%, rgba(166, 225, 250, 0.6) 62%); }
.head { text-align: center; margin: 0 auto clamp(40px, 5vw, 64px); }

/* ---- buttons ---- */
.btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: calc(17px + 2px); letter-spacing: 0.005em;
  background: var(--navy); color: var(--on-navy);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 12px 28px -12px rgba(61, 68, 104, 0.5);
  transition: transform 0.35s var(--ease), background 0.25s ease, box-shadow 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.btn::after { /* sheen */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transition: transform 0.8s var(--ease);
}
.btn:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 18px 36px -14px rgba(61, 68, 104, 0.55); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--surface); color: var(--ink); }
.btn--lg { min-height: 62px; padding: 0 38px; font-size: calc(18px + 2px); }
.btn .arr { width: 16px; height: 16px; }

/* ---- cards / media ---- */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.frame { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-2); border: 1px solid var(--line-soft); }

/* 2-up video grid (testimonials, case studies) */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 4vw, 56px); }
.vcard { text-align: center; }
.vcard__media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #262b45; box-shadow: var(--shadow-2); }
.vcard__media iframe, .vcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.vcard__name { font-family: var(--display); font-size: calc(22px + 2px); font-weight: 700; margin: 18px 0 4px; }
.vcard__desc { color: var(--ink-2); font-size: calc(16px + 2px); margin: 0 auto; max-width: 44ch; }
@media (max-width: 700px) { .vgrid { grid-template-columns: 1fr; } }

/* equal 4x2 proof grid */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.proof__tile { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--line-soft); }
.proof__tile img { width: 100%; height: 100%; object-fit: cover; }
.proof__tag { position: absolute; left: 10px; bottom: 10px; background: rgba(38, 43, 69, 0.82); color: #fff; font-family: var(--mono); font-weight: 600; font-size: calc(12px + 2px); letter-spacing: 0.04em; padding: 5px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
@media (max-width: 860px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* brand logos (YouTube etc.) */
.logo-i { width: 1.1em; height: 1.1em; flex: none; }

/* ---- footer: branding-only banner, height = 1.5x logo, logo centred ---- */
.foot { display: flex; align-items: center; justify-content: center; height: 72px; /* 1.5 x 48px logo */ margin-top: 0; }
.foot img { height: 48px; width: auto; }
.foot-wrap { padding: 0 0 28px; }

/* ---- reveal (IntersectionObserver in funnel.js); content visible without JS ---- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn, .btn::after { transition: none; }
}

/* ---- modal (opt-in) ---- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s; }
.modal.is-open { visibility: visible; opacity: 1; transition: opacity 0.35s var(--ease); }
.modal__backdrop { position: absolute; inset: 0; background: rgba(38, 43, 69, 0.5); backdrop-filter: blur(8px); }
.modal__dialog { position: relative; width: min(480px, 100%); background: var(--surface); border-radius: 22px; padding: 38px 32px 30px; box-shadow: 0 40px 90px -30px rgba(38, 43, 69, 0.5); transform: translateY(14px) scale(0.98); transition: transform 0.45s var(--ease); text-align: center; }
.modal.is-open .modal__dialog { transform: none; }
.modal__x { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: calc(22px + 2px); line-height: 1; cursor: pointer; }
.modal__x:hover { background: var(--bg-2); }
.field { display: block; text-align: left; margin: 0 0 14px; }
.field span { display: block; font-size: calc(14px + 2px); font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font: inherit; font-size: calc(17px + 2px); color: var(--ink); }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px var(--teal-wash); background: #fff; }
.field.is-bad input { border-color: #b4412f; }
.field__err { display: none; color: #b4412f; font-size: calc(13px + 2px); margin-top: 6px; }
.field.is-bad .field__err { display: block; }

