/* ==========================================================================
   KarenFerrero.com — Main stylesheet
   Palette: Monochrome & Cobalt (black, white, platinum gray + electric cobalt)
   --------------------------------------------------------------------------
   HOW TO EDIT COLORS: change the values in the ":root" block below.
   Everything on the site pulls its colors from these few lines.
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted: fast + private, no Google tracking) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- 2. Design tokens (colors, spacing, type) ---------- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f2f3f5;          /* light platinum gray sections */
  --surface: #ffffff;
  --ink: #0a0a0a;             /* main text */
  --ink-2: #4b5058;           /* secondary text (8:1 contrast) */
  --line: #e2e4e8;            /* borders */
  --cobalt: #1f48e8;          /* electric cobalt: links + main buttons (6.7:1) */
  --cobalt-hover: #1737b8;
  --on-cobalt: #ffffff;
  --cobalt-soft: #e8edff;

  /* Always-dark bands (hero, footer) */
  --band-bg: #0a0a0a;
  --band-ink: #f5f6f8;
  --band-ink-2: #a7adb7;
  --band-line: #26282d;
  --band-cobalt: #7c98ff;

  --success: #0f7b3f;
  --error: #b42318;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-accent: "Instrument Serif", Georgia, "Times New Roman", serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(10 10 10 / 6%), 0 8px 24px rgb(10 10 10 / 6%);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 120px);
  --header-h: 68px;
}

/* Dark theme (visitor's device setting, unless they chose light with the toggle) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg-alt: #141518;
    --surface: #17181b;
    --ink: #f5f6f8;
    --ink-2: #a7adb7;
    --line: #2a2c31;
    --cobalt: #7c98ff;
    --cobalt-hover: #a3b6ff;
    --on-cobalt: #0a0a0a;
    --cobalt-soft: #1a2140;
    --band-bg: #000000;
    --success: #4ade80;
    --error: #ff8a80;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
    color-scheme: dark;
  }
}
/* Dark theme (chosen with the toggle) */
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-alt: #141518;
  --surface: #17181b;
  --ink: #f5f6f8;
  --ink-2: #a7adb7;
  --line: #2a2c31;
  --cobalt: #7c98ff;
  --cobalt-hover: #a3b6ff;
  --on-cobalt: #0a0a0a;
  --cobalt-soft: #1a2140;
  --band-bg: #000000;
  --success: #4ade80;
  --error: #ff8a80;
  --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  color-scheme: dark;
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--band-cobalt); }
::selection { background: var(--cobalt); color: var(--on-cobalt); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 650;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Accent: elegant italic serif word(s) inside headings */
.serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.accent { color: var(--cobalt); }
.band .accent { color: var(--band-cobalt); }

/* ---------- 4. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.band { background: var(--band-bg); color: var(--band-ink); }
.band a:not(.btn) { color: var(--band-cobalt); }
.band .muted, .band .lede { color: var(--band-ink-2); }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-2); line-height: 1.6; max-width: 62ch; }
.center .lede { margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 1.1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--cobalt); }
.band .eyebrow { color: var(--band-ink-2); }
.band .eyebrow::before { background: var(--band-cobalt); }

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--cobalt); color: var(--on-cobalt); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-cobalt); }

/* ---------- 6. Buttons ---------- */
.btn {
  --btn-bg: var(--cobalt); --btn-ink: var(--on-cobalt); --btn-line: var(--cobalt);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.35em;
  font: 600 1rem/1.2 var(--font-body);
  color: var(--btn-ink); background: var(--btn-bg);
  border: 1.5px solid var(--btn-line); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { --btn-bg: var(--cobalt-hover); --btn-line: var(--cobalt-hover); color: var(--btn-ink); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--outline { --btn-bg: transparent; --btn-ink: var(--cobalt); --btn-line: var(--cobalt); }
.btn--outline:hover { --btn-bg: var(--cobalt); --btn-ink: var(--on-cobalt); }
.btn--ink { --btn-bg: var(--ink); --btn-ink: var(--bg); --btn-line: var(--ink); }
.btn--ink:hover { --btn-bg: var(--cobalt); --btn-line: var(--cobalt); --btn-ink: var(--on-cobalt); }
.btn--sm { min-height: 40px; padding: 0.5em 1.05em; font-size: 0.92rem; }
.btn--block { width: 100%; }
/* Buttons on black bands */
.band .btn { --btn-bg: var(--band-cobalt); --btn-ink: #0a0a0a; --btn-line: var(--band-cobalt); }
.band .btn:hover { --btn-bg: #a3b6ff; --btn-line: #a3b6ff; }
.band .btn--outline { --btn-bg: transparent; --btn-ink: var(--band-ink); --btn-line: #4a4d55; }
.band .btn--outline:hover { --btn-bg: var(--band-ink); --btn-ink: #0a0a0a; --btn-line: var(--band-ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- 7. Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand-dot { color: var(--cobalt); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list li { margin: 0; }
.nav-list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-list a:hover { background: var(--bg-alt); color: var(--ink); }
.nav-list a[aria-current="page"] { color: var(--cobalt); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
.menu-toggle { display: none; }

@media (max-width: 1180px) {
  .menu-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-list.is-open { display: flex; }
  .nav-list a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-list .nav-cta-mobile { padding-top: 16px; }
  .nav-list .nav-cta-mobile a { border: 0; text-align: center; border-radius: 999px; color: var(--on-cobalt); }
  .nav-list .nav-cta-mobile a:hover { background: var(--cobalt-hover); color: var(--on-cobalt); }
}
@media (min-width: 1181px) { .nav-cta-mobile { display: none; } }

/* ---------- 8. Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; pointer-events: none; }
.hero-grid {
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr;
  padding-block: clamp(56px, 9vw, 112px) clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.8fr); } }
.hero h1 { margin-bottom: 0.45em; }
.hero .lede { margin-bottom: 1.8rem; }
.hero-tagline { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--band-ink); margin: 0 0 1.4rem; letter-spacing: 0; }
.portrait { position: relative; max-width: 360px; margin-inline: auto; width: 100%; }
.portrait::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px;
  border: 1.5px solid var(--band-cobalt); border-radius: var(--radius); z-index: -1;
}
.portrait img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(0.95); }
.portrait figcaption {
  position: absolute; left: -12px; bottom: 22px;
  background: var(--white); color: var(--black);
  padding: 10px 14px; border-radius: 10px; font-size: 0.82rem; line-height: 1.35; box-shadow: var(--shadow);
  max-width: 230px;
}
.portrait figcaption strong { display: block; font-size: 0.95rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; margin-right: 6px; box-shadow: 0 0 0 3px rgb(22 163 74 / 20%); vertical-align: 1px; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--band-line); }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metric { padding: 24px 20px 28px 0; }
@media (min-width: 760px) { .metric + .metric { padding-left: 24px; border-left: 1px solid var(--band-line); } }
.metric-value { font-family: var(--font-head); font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; color: var(--band-ink); }
.metric-label { font-size: 0.9rem; color: var(--band-ink-2); line-height: 1.45; margin: 0; }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(56px, 8vw, 104px) clamp(40px, 6vw, 72px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 1.8rem; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.2rem; color: var(--band-ink-2); }
.breadcrumbs a { color: var(--band-ink-2); }

/* ---------- 9. Logo / wordmark strip ---------- */
.logos { padding-block: 36px; border-bottom: 1px solid var(--line); }
.logos-title { text-align: center; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; font-weight: 600; }
.wordmarks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; list-style: none; padding: 0; margin: 0; }
.wordmarks li { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 1.7vw, 1.35rem); letter-spacing: -0.02em; color: var(--ink); opacity: 0.78; }
.marquee { overflow: hidden; margin-top: 18px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 36px; width: max-content; animation: marquee 48s linear infinite; list-style: none; margin: 0; padding: 0; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-track li { margin: 0; white-space: nowrap; color: var(--ink-2); font-size: 0.95rem; font-weight: 500; }
.marquee-track li::after { content: "•"; margin-left: 36px; color: var(--line); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 8px 20px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee-track li::after { margin-left: 20px; }
}
.marquee-pause { display: block; margin: 10px auto 0; background: none; border: 0; color: var(--ink-2); font-size: 0.8rem; text-decoration: underline; cursor: pointer; padding: 6px; }
@media (prefers-reduced-motion: reduce) { .marquee-pause { display: none; } }

/* ---------- 10. Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); position: relative;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { border-color: var(--cobalt); transform: translateY(-3px); box-shadow: var(--shadow); }
.card--link .stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-num { font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--cobalt); letter-spacing: 0.08em; margin-bottom: 14px; display: block; }
.section--alt .card { background: var(--surface); }

/* Problem → solution cards */
.problem { display: flex; flex-direction: column; }
.problem-q { font-family: var(--font-head); font-weight: 650; font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 0.8em; }
.problem-a { color: var(--ink-2); font-size: 0.98rem; }
.proof { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 10px; }
.proof-num { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.03em; color: var(--cobalt); line-height: 1; }
.proof-label { font-size: 0.85rem; color: var(--ink-2); line-height: 1.35; }

.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--cobalt-soft); color: var(--cobalt); margin: 0 6px 6px 0; }
.tag--plain { background: var(--bg-alt); color: var(--ink-2); }

/* ---------- 11. Quote / testimonials ---------- */
.big-quote { max-width: 900px; margin: 0 auto; text-align: center; }
.big-quote blockquote { margin: 0; }
.big-quote p { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.3rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.band .big-quote p { color: var(--band-ink); }
.quote-mark { font-family: var(--font-accent); font-size: 4.5rem; line-height: 0.6; color: var(--cobalt); display: block; margin-bottom: 18px; }
.band .quote-mark { color: var(--band-cobalt); }
.cite { font-size: 0.92rem; font-style: normal; color: var(--ink-2); }
.band .cite { color: var(--band-ink-2); }
.cite strong { color: var(--ink); display: block; }
.band .cite strong { color: var(--band-ink); }

.carousel { position: relative; max-width: 880px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }
.slide { flex: 0 0 100%; padding: 4px; }
.slide figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); height: 100%; }
.slide blockquote { margin: 0 0 1.2rem; }
.slide blockquote p { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.55; color: var(--ink); }
.slide blockquote p::before { content: "“"; font-family: var(--font-accent); color: var(--cobalt); font-size: 1.6em; line-height: 0; vertical-align: -0.28em; margin-right: 2px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.carousel-dots { display: flex; gap: 4px; }
.carousel-dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.carousel-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.carousel-dots button[aria-current="true"]::before { background: var(--cobalt); transform: scale(1.25); }

/* ---------- 12. Case studies ---------- */
.case { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .case { grid-template-columns: 300px 1fr; } }
.case-aside { align-self: start; }
@media (min-width: 960px) { .case-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.case-meta { list-style: none; padding: 0; margin: 18px 0 0; font-size: 0.92rem; }
.case-meta li { padding: 10px 0; border-top: 1px solid var(--line); margin: 0; }
.case-meta span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-2); font-weight: 600; }
.case h3 { margin-top: 1.8em; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); font-family: var(--font-body); font-weight: 600; }
.case h3:first-child { margin-top: 0; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 1.2rem 0 1.6rem; }
.result { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 18px; }
.result-num { font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.05; color: var(--cobalt); display: block; margin-bottom: 6px; }
.result-label { font-size: 0.88rem; color: var(--ink-2); line-height: 1.4; display: block; }
.case blockquote { margin: 1.6rem 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cobalt); }
.case blockquote p { font-family: var(--font-accent); font-style: italic; font-size: 1.3rem; line-height: 1.4; margin-bottom: .4em; }

/* ---------- 13. Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 28px 36px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--cobalt); }
.timeline .when { font-size: 0.82rem; font-weight: 600; color: var(--cobalt); letter-spacing: 0.05em; }
.timeline h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.timeline .org { color: var(--ink-2); font-size: 0.95rem; margin-bottom: 6px; }
.timeline p { margin: 0; font-size: 0.97rem; }

/* ---------- 14. Split layouts ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.3fr 1fr; } .split--wide-right { grid-template-columns: 1fr 1.3fr; } }
.split--center { align-items: center; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 0.7em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231f48e8'%3E%3Cpath d='M8.2 13.6 4.8 10.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E") center/14px no-repeat;
}

.value-list { counter-reset: v; list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.value-list li { counter-increment: v; display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); margin: 0; }
.value-list li::before { content: counter(v, decimal-leading-zero); font-family: var(--font-head); font-weight: 600; color: var(--cobalt); }
.value-list strong { display: block; font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 2px; }
.value-list span { color: var(--ink-2); }

/* ---------- 15. Story block ---------- */
.story-open { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; margin-bottom: 1.2rem; }

/* ---------- 16. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-2); }
.req { color: var(--error); }
input[type="text"], input[type="email"], input[type="url"], input[type="date"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid #8b9099; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 30%, transparent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.87rem; font-weight: 500; min-height: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cobalt); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status.is-success { display: block; background: color-mix(in srgb, var(--success) 12%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.form-status.is-error { display: block; background: color-mix(in srgb, var(--error) 10%, transparent); color: var(--error); border: 1px solid color-mix(in srgb, var(--error) 40%, transparent); }
.form-status a { color: inherit; font-weight: 700; }
.form-note { font-size: 0.85rem; color: var(--ink-2); margin: 0; }
button[disabled] { opacity: 0.65; cursor: progress; }

/* Inline newsletter form (single row on wide screens) */
.inline-form { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .inline-form { grid-template-columns: 1fr 1.3fr auto; } }
.band input[type="text"], .band input[type="email"] { background: #141518; color: var(--band-ink); border-color: #5a5e66; }
.band .form-note { color: var(--band-ink-2); }
.band .form-status.is-success { color: #4ade80; border-color: #1f6f3f; background: #0d2417; }
.band .form-status.is-error { color: #ff8a80; border-color: #7a2a24; background: #2a0f0d; }

/* Lead magnet panel */
.magnet { display: grid; gap: clamp(24px, 4vw, 56px); grid-template-columns: 1fr; align-items: center; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 64px); }
@media (min-width: 900px) { .magnet { grid-template-columns: 0.8fr 1.2fr; } }
.magnet-cover {
  aspect-ratio: 8.5 / 11; max-width: 260px; margin-inline: auto; width: 100%;
  background: #fff; color: #0a0a0a; border-radius: 6px; padding: 26px 22px;
  box-shadow: 0 30px 60px rgb(0 0 0 / 45%); transform: rotate(-3deg);
  display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
}
.magnet-cover::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 22px; height: 22px; background: #1f48e8; }
.magnet-cover .mc-kicker { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: #1f48e8; }
.magnet-cover .mc-title { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; line-height: 1.05; letter-spacing: -0.03em; }
.magnet-cover .mc-title em { font-family: var(--font-accent); font-weight: 400; }
.magnet-cover .mc-by { font-size: 0.72rem; color: #4b5058; }

/* ---------- 17. Article / prose ---------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { font-size: 1.08rem; }
.prose blockquote { margin: 1.8em 0; padding-left: 20px; border-left: 3px solid var(--cobalt); font-family: var(--font-accent); font-style: italic; font-size: 1.35rem; line-height: 1.45; }
.article-meta { font-size: 0.92rem; color: var(--band-ink-2); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.author-box { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 3rem; }
.author-box img { width: 72px; height: 72px; border-radius: 50%; flex: none; }
.author-box p { margin: 0; font-size: 0.95rem; }
.post-card .tag { margin-bottom: 14px; }
.post-card h3 { font-size: 1.25rem; }
.post-card time { font-size: 0.85rem; color: var(--ink-2); display: block; margin-bottom: 8px; }

/* ---------- 18. FAQ ---------- */
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }

/* ---------- 19. CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 18ch; margin-inline: auto; }

/* ---------- 20. Footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-ink-2); padding-top: clamp(56px, 7vw, 88px); font-size: 0.95rem; }
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { color: var(--band-cobalt); text-decoration: underline; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; padding-bottom: 48px; border-bottom: 1px solid var(--band-line); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 1060px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1.5fr; } }
.footer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--band-ink); letter-spacing: -0.02em; margin-bottom: 8px; }
.footer-brand span { color: var(--band-cobalt); }
.footer-tagline { font-family: var(--font-accent); font-style: italic; font-size: 1.15rem; color: var(--band-ink); margin-bottom: 12px; }
.footer-h { color: var(--band-ink); font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--band-line); }
.social a:hover { border-color: var(--band-cobalt); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding-block: 24px 32px; font-size: 0.85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0; }
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--band-ink-2); }
.footer-disclaimer { font-size: 0.8rem; color: #8a8f98; padding-bottom: 32px; margin: 0; max-width: 100ch; }
.footer-disclaimer a { color: #b5bac3; text-decoration: underline; }
.site-footer .inline-form { grid-template-columns: 1fr; }
.site-footer input[type="email"] { background: #141518; color: var(--band-ink); border-color: #5a5e66; }

/* ---------- 21. Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
  max-width: 560px; margin-left: auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgb(0 0 0 / 25%); padding: 20px;
}
.cookie-banner p { font-size: 0.92rem; margin-bottom: 14px; }
.cookie-banner[hidden] { display: none; }

/* ---------- 22. Link-in-bio page ---------- */
.linkbio { min-height: 100dvh; display: grid; place-items: start center; padding: 48px 16px 64px; }
.linkbio-inner { width: 100%; max-width: 480px; text-align: center; }
.linkbio img.avatar { width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 16px; border: 3px solid var(--band-cobalt); }
.linkbio h1 { font-size: 1.7rem; margin-bottom: 4px; }
.linkbio .btn { width: 100%; margin-bottom: 12px; min-height: 56px; }

/* ---------- 23. Embeds ---------- */
.calendly-inline-widget { min-width: 280px; height: 720px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.embed-fallback { padding: 28px; text-align: center; }

/* ---------- 24. Scroll reveal (only when JS is on + motion allowed) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 25. Misc ---------- */
.notice { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--bg-alt); border-left: 3px solid var(--cobalt); font-size: 0.95rem; }
.kicker-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.04em; line-height: 1; color: var(--cobalt); }
.divider-label { display: flex; align-items: center; gap: 16px; color: var(--ink-2); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; margin: 0 0 24px; }
.divider-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(6rem, 20vw, 12rem); letter-spacing: -0.06em; line-height: 0.9; color: var(--band-ink); }
.error-code span { color: var(--band-cobalt); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pill-list li { margin: 0; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.92rem; }
.band .pill-list li { border-color: var(--band-line); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6rem; }
.toc a { padding: 8px 14px; border: 1px solid var(--band-line); border-radius: 999px; font-size: 0.9rem; text-decoration: none; color: var(--band-ink); }
.toc a:hover { border-color: var(--band-cobalt); color: var(--band-cobalt); }

@media print {
  .site-header, .site-footer, .cookie-banner, .hero-canvas, .btn-row { display: none !important; }
  .band { background: #fff; color: #000; }
}
.btn-spacer { display: none; font-size: .95rem; line-height: 1.65; visibility: hidden; }
@media (min-width: 640px) { .btn-spacer { display: block; } }
.cta-band .btn-row { justify-content: center; }
.cta-band .lede { margin-inline: auto; }
.site-footer { border-top: 1px solid var(--band-line); }
.proof-num { white-space: nowrap; }
.magnet-cover .mc-by { padding-right: 34px; }
@media (max-width: 600px) {
  .portrait { max-width: 300px; }
  .portrait::before { inset: 12px -10px -12px 12px; }
  .portrait figcaption { left: 8px; bottom: 12px; }
}
/* Dark-mode check icon */
:root[data-theme="dark"] .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237c98ff'%3E%3Cpath d='M8.2 13.6 4.8 10.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237c98ff'%3E%3Cpath d='M8.2 13.6 4.8 10.2l1.1-1.1 2.3 2.3 5.9-5.9 1.1 1.1z'/%3E%3C/svg%3E"); }
}
.site-footer .form-note { color: var(--band-ink-2); }
.site-footer .form-note a, .band .form-note a { text-decoration: underline; }
.prose p.story-open { font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.3; }
/* Portrait headshot (4:5) */
.portrait img { aspect-ratio: 4 / 5; object-position: center top; }
.portrait { max-width: 340px; }
