/* Kevlex Digital — site styles. Tokens live in tokens.css (copied from the design system).
   Translated from design/Kevlex Digital One Pager v2.dc.html. Mobile breakpoint: 760px. */

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--kx-cream);
  color: var(--kx-ink);
  font-family: var(--kx-font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol { margin: 0; }
a { color: var(--kx-ink); text-decoration-color: var(--kx-ink-300); text-underline-offset: 3px; }
a:hover { color: var(--kx-ink-700); text-decoration-color: var(--kx-ink); }
:focus-visible { outline: 3px solid var(--kx-focus-ring); outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--kx-ink); color: var(--kx-cream); padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--kx-max-width); margin: 0 auto; padding-inline: clamp(20px, 5vw, 56px); }
.wrap--narrow { max-width: 760px; }
.anchor { scroll-margin-top: 64px; }

.only-mobile { display: none !important; }
@media (max-width: 759px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: revert !important; }
  div.only-mobile, .compare-cards.only-mobile { display: flex !important; }
  .timeline.only-mobile { display: grid !important; }
}

/* ── Shared type & labels ─────────────────────────────────────────── */
.eyebrow {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--kx-font-mono);
  font-size: 13px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 6px;
  background: var(--kx-yellow-500); color: var(--kx-ink);
}
.eyebrow--dark { background: var(--kx-ink); color: var(--kx-cream); }
.mono-label { font-family: var(--kx-font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kx-ink-600); }
.mono-xs { font-family: var(--kx-font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kx-ink-600); }
.mono-xxs { font-family: var(--kx-font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kx-ink-600); }
.mono-num { font-family: var(--kx-font-mono); font-size: 15px; font-weight: 600; }
.num { font-family: var(--kx-font-mono); font-size: 13px; font-weight: 600; color: var(--kx-ink-500); }
.tag {
  align-self: flex-start;
  font-family: var(--kx-font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 7px; border: 1px dashed var(--kx-ink-500); color: var(--kx-ink-600); border-radius: 4px;
  white-space: nowrap;
}
.tag--dark { border-color: rgba(255,253,247,0.5); color: var(--kx-text-on-dark-muted); font-size: 10.5px; }
.placeholder { font-family: var(--kx-font-mono); font-size: 0.85em; padding: 1px 6px; border: 1px dashed rgba(255,253,247,0.5); border-radius: 4px; }
.band:not(.band--dark) .placeholder { border-color: var(--kx-ink-500); }

h2 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; text-wrap: balance; }
.h2-sm { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; }
.h2-xl { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; font-weight: 900; letter-spacing: -0.035em; }
.lead { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--kx-ink-700); max-width: 520px; text-wrap: pretty; }
.lead--ink { color: var(--kx-ink); }
.lead--on-dark { color: rgba(255,253,247,0.82); max-width: 600px; }
.body-lg { font-size: 18px; line-height: 1.6; color: var(--kx-ink-700); max-width: 440px; text-wrap: pretty; }
.statement { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
.statement--md { font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--kx-font-sans); font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: var(--kx-radius-md); border: 1px solid transparent;
  background: var(--kx-ink); color: var(--kx-cream); box-shadow: 0 4px 0 var(--kx-yellow-500); /* rounded yellow ledge under the button */
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--kx-dur) var(--kx-ease), transform var(--kx-dur-fast) var(--kx-ease), box-shadow var(--kx-dur) var(--kx-ease);
}
.btn:hover { background: var(--kx-ink-900); color: var(--kx-cream); transform: translateY(-1px); box-shadow: 0 5px 0 var(--kx-yellow-500); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--kx-yellow-500); }
.btn--sm { box-shadow: 0 3px 0 var(--kx-yellow-500); }
.btn--sm:hover { box-shadow: 0 4px 0 var(--kx-yellow-500); }
/* On dark bands, outline the button so it doesn't vanish into the background */
.band--dark .btn { box-shadow: inset 0 0 0 1px rgba(255,253,247,0.28), 0 4px 0 var(--kx-yellow-500); }
.band--dark .btn:hover { box-shadow: inset 0 0 0 1px rgba(255,253,247,0.4), 0 5px 0 var(--kx-yellow-500); }
.btn--sm { font-size: 13px; padding: 8px 16px; gap: 7px; }
.btn--lg { font-size: 17px; padding: 16px 30px; gap: 10px; }
.btn--dark { background: var(--kx-charcoal); color: var(--kx-text-inverse); }
.btn--dark:hover { background: var(--kx-charcoal-2); color: var(--kx-text-inverse); box-shadow: var(--kx-shadow-md); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.cta-row__note { font-size: 15px; color: var(--kx-ink-600); }
.cta-row__note--ink { color: var(--kx-ink); font-weight: 500; }

/* ── Header & footer ──────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,253,247,0.96); border-bottom: 1px solid var(--kx-border); }
.site-header__inner { padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--kx-ink); }
.brand img { height: 26px; width: auto; }
.brand span { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand span { white-space: nowrap; }
@media (max-width: 400px) { .site-header .brand span { font-size: 16px; } }
/* The header button stuck out 9px at 320px (audit 2026-11-06) */
@media (max-width: 359px) { .site-header .hide-xs { display: none; } }
.site-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; white-space: nowrap; }
/* Hidden below 900px: logo, nav and the "Book a 15-minute call" button no longer fit on one row */
@media (max-width: 899px) { .site-nav { display: none; } }

.site-footer { background: var(--kx-charcoal); color: var(--kx-text-on-dark-muted); font-size: 15px; }
.site-footer__inner { padding-block: 28px 40px; border-top: 1px solid var(--kx-hairline-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.brand--footer img { height: 20px; }
.brand--footer span { color: var(--kx-cream); font-size: 15px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: var(--kx-cream); text-decoration-color: rgba(255,253,247,0.3); }
.site-footer a:hover { color: var(--kx-cream); text-decoration-color: var(--kx-cream); }

/* ── Sections ─────────────────────────────────────────────────────── */
.band--rule { border-top: 1px solid var(--kx-border); }
.band--rule-bottom { border-bottom: 1px solid var(--kx-border); }
.band--dark { background: var(--kx-charcoal); color: var(--kx-cream); }
.band--yellow { background: var(--kx-yellow-500); color: var(--kx-ink); }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section--tall { padding-block: clamp(80px, 11vw, 144px); }
.section__head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.section__head--wide { max-width: 680px; }
.stack-48 { display: flex; flex-direction: column; gap: 48px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 72px; }
.split--center { align-items: center; gap: 48px 72px; }

/* Hero */
.hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 72px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 74px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.hero__visual { justify-self: end; width: 100%; max-width: 520px; }

/* Hero, version B: centred stack */
.hero--centered { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.hero--centered .eyebrow { align-self: center; }
.hero--centered h1 { max-width: 16ch; }
.hero--centered .lead { max-width: 560px; }
.hero--centered .cta-row { justify-content: center; }
@media (max-width: 480px) { .hero--centered h1 { font-size: clamp(30px, 9.2vw, 36px); } }

/* Problem */
.problem { padding-block: clamp(72px, 11vw, 140px); }
.problem p { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.45; font-weight: 500; letter-spacing: -0.015em; color: var(--kx-ink-900); text-wrap: pretty; }
.problem p span { color: var(--kx-ink-500); }
.problem--split .split__visual { justify-self: end; width: 100%; max-width: 520px; }

/* Cards & services */
.card { background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg); box-shadow: var(--kx-shadow-sm); }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 32px; }
.service h3 { font-size: 21px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.service p { font-size: 17px; line-height: 1.6; color: var(--kx-ink-700); text-wrap: pretty; }

/* ── Report card (hero + reporting) ───────────────────────────────── */
.report-card {
  background: var(--kx-white); color: var(--kx-ink); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg);
  box-shadow: var(--kx-shadow-md); padding: 24px; display: flex; flex-direction: column; gap: 24px; width: 100%;
}
.report-card--lift { box-shadow: var(--kx-shadow-lg); }
.split__visual { max-width: 520px; width: 100%; }
.report-card__head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--kx-ink); }
.report-card__head .mono-label { font-size: 11px; }
.report-card__title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.report-card__rows { display: flex; flex-direction: column; gap: 12px; }
.report-card__sub { display: flex; gap: 10px; align-items: baseline; font-size: 15px; font-weight: 700; }
.report-card__sub .num { font-size: 12px; font-weight: 400; }
.report-card__bar { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: 14px; align-items: center; font-size: 14px; font-weight: 500; color: var(--kx-ink-700); }
.report-card__bar .bar { height: 12px; border-radius: 2px; background: var(--kx-ink); }
.report-card__split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 24px; padding-top: 20px; border-top: 1px solid var(--kx-border); }
.report-card__col { display: flex; flex-direction: column; gap: 12px; }
.report-card__cols { display: flex; align-items: flex-end; gap: 8px; height: 64px; border-bottom: 1px solid var(--kx-ink); }
.report-card__cols span { flex: 1; background: var(--kx-ink); border-radius: 2px 2px 0 0; }
.report-card__policies { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.report-card__policies div { display: flex; align-items: center; gap: 10px; }
.dot-warn { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--kx-warning); }
.report-card__policies .line { height: 8px; border-radius: 4px; background: var(--kx-border); }

/* ── Proof ────────────────────────────────────────────────────────── */
.proof { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.proof__intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px 72px; align-items: end; }
.proof__intro > p { font-size: 18px; line-height: 1.6; color: rgba(255,253,247,0.86); text-wrap: pretty; }
.proof__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; }
.proof__bar h3 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: rgba(255,253,247,0.86); }
.legend > span { display: flex; align-items: center; gap: 8px; }
.legend--sm { gap: 6px 18px; font-size: 12.5px; color: var(--kx-ink-600); }
.legend--sm > span { gap: 7px; }

/* Channel dots: email = filled ink circle, SMS = yellow circle, call = white diamond */
.dot { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid var(--kx-ink); background: var(--kx-ink); display: inline-block; }
.dot--s { background: var(--kx-yellow-500); }
.dot--c { border-radius: 2px; background: var(--kx-white); transform: rotate(45deg) scale(0.85); }
.dot--on-dark { width: 11px; height: 11px; border-color: var(--kx-cream); background: var(--kx-cream); }
.dot--on-dark.dot--s { background: var(--kx-yellow-500); }
.dot--on-dark.dot--c { width: 10px; height: 10px; background: transparent; }

.also-run { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255,253,247,0.2); }
.also-run h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; }
.also-run ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.55; color: rgba(255,253,247,0.86); }
.also-run strong { color: var(--kx-cream); }

.grid-campaigns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 16px; align-items: stretch; }
.campaign { background: var(--kx-white); color: var(--kx-ink); border-radius: var(--kx-radius-lg); padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.campaign__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 24px; align-items: start; }
.campaign__top--mock { grid-template-columns: minmax(0, 1fr) 168px; }
@media (max-width: 759px) { .campaign__top--mock { grid-template-columns: minmax(0, 1fr); } }
.campaign__info { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.campaign__title { display: flex; gap: 12px; align-items: baseline; }
.campaign__title h4 { font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
.campaign__info > p { font-size: 16px; line-height: 1.55; color: var(--kx-ink-700); text-wrap: pretty; }
.campaign__meta { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--kx-border); }
.campaign__meta div { display: flex; flex-direction: column; gap: 2px; }
.campaign__meta dt { font-family: var(--kx-font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kx-ink-600); }
.campaign__meta dd { font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.campaign__meta dd.muted { color: var(--kx-ink-700); }
.campaign__note { font-size: 13px; color: var(--kx-ink-600); margin-top: -12px; }

.campaign__mock .tag { white-space: normal; }
.campaign__mock { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sms-mock { border: 1px solid var(--kx-border); border-radius: var(--kx-radius-md); background: var(--kx-cream); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { align-self: flex-start; width: 80%; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: 12px 12px 12px 3px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.bubble--out { align-self: flex-end; width: 32%; background: var(--kx-yellow-500); border: none; border-radius: 12px 12px 3px 12px; }
.bubble .line { display: block; height: 7px; width: 100%; border-radius: 3px; background: var(--kx-border); }
.bubble--out .line { background: var(--kx-ink); }

.viz { margin-top: auto; background: var(--kx-cream); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-md); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.viz__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.viz--timeline { padding: 0; background: none; border: none; gap: 24px; }

/* Timeline */
.timeline { aspect-ratio: 5 / 4; min-height: 240px; background: var(--kx-cream); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-md); padding: 18px 18px 14px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 10px; }
.timeline__phases, .timeline__lane, .timeline__axis { display: grid; }
.timeline__phase { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding-right: 6px; min-width: 0; }
.timeline__phase .mono-xs { letter-spacing: 0.1em; line-height: 1.35; }
.timeline__phase-bar { height: 4px; background: var(--kx-yellow-500); border-radius: 2px; }
.timeline__lanes { display: flex; flex-direction: column; min-height: 0; }
.timeline__lane { flex: 1; align-items: stretch; border-top: 1px solid var(--kx-border); }
.timeline__lane > .mono-xs { align-self: center; letter-spacing: 0.1em; }
.timeline__cell { display: flex; align-items: center; justify-content: center; border-left: 1px dashed var(--kx-border); }
.timeline__axis { padding-top: 8px; border-top: 1px solid var(--kx-border); }
.timeline__axis span { font-family: var(--kx-font-mono); font-size: 10.5px; color: var(--kx-ink-500); text-align: center; white-space: nowrap; }
/* Mobile: label every other week (W2…W12) so the 12-week axis stays legible */
@media (max-width: 759px) { .timeline__axis span:nth-child(even) { visibility: hidden; } }

/* Scorecard */
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--kx-border); border: 1px solid var(--kx-border); border-radius: 8px; overflow: hidden; }
.metric { background: var(--kx-white); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 104px; }
.metric__v { font-family: var(--kx-font-mono); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.metric__l { font-size: 14px; line-height: 1.35; font-weight: 600; }
.metric__sub { font-size: 13px; line-height: 1.35; color: var(--kx-ink-600); }
@media (max-width: 759px) { .metrics { grid-template-columns: minmax(0, 1fr); } .metric { min-height: 0; } .metric__v { white-space: nowrap; } }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel__row { display: flex; flex-direction: column; gap: 6px; }
.funnel__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; }
.funnel__track { height: 28px; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: 4px; overflow: hidden; }
.funnel__track div { height: 100%; }

/* Steps */
.steps { display: flex; flex-direction: column; }
.steps__row { display: grid; grid-template-columns: 72px 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--kx-border); font-size: 14px; line-height: 1.45; font-weight: 500; }
.steps__row--exit { color: var(--kx-ink-600); font-weight: 400; }
.steps__when { font-family: var(--kx-font-mono); font-size: 11px; color: var(--kx-ink-500); padding-top: 2px; line-height: 1.4; font-weight: 400; }
.steps__dots { display: flex; gap: 4px; padding-top: 3px; }
.steps__dots .dot { width: 12px; height: 12px; }

/* Calendar */
.calendar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 759px) { .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calendar__month { background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: 6px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 78px; min-width: 0; }
.calendar__month.is-window { background: var(--kx-yellow-300); border-color: var(--kx-yellow-600); }
.calendar__m { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-family: var(--kx-font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.calendar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--kx-ink); flex: none; display: inline-block; }
.calendar__t { font-size: 12.5px; line-height: 1.3; font-weight: 500; text-wrap: pretty; }
.is-window .calendar__t { font-weight: 600; }
.legend__window { width: 12px; height: 12px; border-radius: 3px; background: var(--kx-yellow-300); border: 1px solid var(--kx-yellow-600); display: inline-block; }

/* Year-round campaign calendar (§ 04). Desktop: 12 month columns with one fixed slot per campaign,
   so each campaign reads as a row. Mobile: one block per month, cards wrap as chips. */
.year-cal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.year-cal__month { display: grid; grid-auto-rows: 56px; grid-template-rows: auto; gap: 5px; padding: 8px 4px; border-radius: 8px; background: var(--kx-sand); min-width: 0; }
.year-cal__month.is-window { background: var(--kx-yellow-100); }
.year-cal__m { font-family: var(--kx-font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 2px 6px; border-bottom: 1px solid var(--kx-border); }
.year-cal__card { display: flex; align-items: center; padding: 6px; border-radius: 6px; font-size: 11px; line-height: 1.25; font-weight: 600; letter-spacing: -0.005em; overflow: hidden; hyphens: manual; }
.year-cal__card--seasonal { background: var(--kx-yellow-500); color: var(--kx-ink); }
.year-cal__card--evergreen { background: var(--kx-white); color: var(--kx-ink); border: 1px solid var(--kx-border); }
.year-cal__swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.year-cal__swatch--seasonal { background: var(--kx-yellow-500); }
.year-cal__swatch--evergreen { background: var(--kx-white); border: 1px solid var(--kx-border); }
.year-cal__key { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 32px; margin: 0; padding-top: 24px; border-top: 1px solid var(--kx-border); }
.year-cal__key div { display: flex; flex-direction: column; gap: 2px; }
.year-cal__key dt { font-size: 15px; font-weight: 700; }
.year-cal__key dd { margin: 0; font-size: 14px; color: var(--kx-ink-600); }
@media (max-width: 1023px) {
  .year-cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .year-cal__month { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; padding: 10px; }
  .year-cal__m { flex-basis: 100%; }
  .year-cal__gap { display: none; }
  .year-cal__card { font-size: 12px; padding: 5px 8px; }
}
@media (max-width: 480px) { .year-cal { grid-template-columns: minmax(0, 1fr); } }

/* Portal */
.portal { background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: 8px; overflow: hidden; }
.portal__head, .portal__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--kx-border); }
.portal__head { padding-block: 12px; }
.portal__head > div, .portal__row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.portal__title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.portal__name { font-size: 14px; font-weight: 600; }
.portal__sub { font-size: 12.5px; color: var(--kx-ink-600); }
.portal__avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--kx-sand); border: 1px solid var(--kx-border); flex: none; }
.status { display: flex; align-items: center; gap: 6px; font-family: var(--kx-font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--kx-sand); white-space: nowrap; }
.status > span { width: 7px; height: 7px; border-radius: 50%; background: #2E9E5B; }
.status--review { background: var(--kx-yellow-100); }
.status--review > span { background: var(--kx-yellow-600); }
.portal__gaps { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--kx-yellow-50); }
.portal__gaps-title { color: var(--kx-ink-700); font-weight: 700; }
.portal__gap { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--kx-white); border: 1px solid var(--kx-yellow-300); border-radius: 6px; padding: 9px 11px; font-size: 13.5px; line-height: 1.35; font-weight: 500; }
.portal__gap span:last-child { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* Mix */
.mix-bar { display: flex; height: 30px; border-radius: 5px; overflow: hidden; border: 1px solid var(--kx-border); }
.mix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--kx-border); border: 1px solid var(--kx-border); border-radius: 8px; overflow: hidden; }
@media (max-width: 759px) { .mix-grid { grid-template-columns: minmax(0, 1fr); } }
.mix-item { background: var(--kx-white); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mix-item__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 700; }
.mix-item__head > span:first-child { display: flex; align-items: center; gap: 8px; }
.mix-item__head .mono-num { font-size: 14px; }
.swatch { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--kx-ink); flex: none; }
.mix-item__sub { font-size: 13px; line-height: 1.4; color: var(--kx-ink-600); text-wrap: pretty; }

/* Quote */
.quote { margin: 0 auto; max-width: 820px; padding-top: 40px; border-top: 1px solid var(--kx-hairline-dark); display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.quote .tag { align-self: center; }
.quote blockquote { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; }
.quote figcaption { display: flex; align-items: center; gap: 14px; text-align: left; }
.quote figcaption > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.quote figcaption > span:last-child span { font-size: 14px; color: var(--kx-text-on-dark-muted); }
.avatar-ph { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 1px dashed rgba(255,253,247,0.5); display: flex; align-items: center; justify-content: center; font-family: var(--kx-font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kx-text-on-dark-muted); }
/* Smaller, light-background quote under the version B hero CTA */
.quote--hero { max-width: 680px; margin-top: 16px; padding-top: 32px; border-top-color: var(--kx-border); gap: 18px; }
.quote--hero blockquote { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.5; color: var(--kx-ink-900); }
.quote--hero figcaption > span:last-child { font-size: 15px; }
.quote--hero figcaption > span:last-child span { color: var(--kx-ink-600); }
.quote--hero .avatar-ph { width: 44px; height: 44px; border-color: var(--kx-ink-500); color: var(--kx-ink-600); }
.avatar { width: 56px; height: 56px; flex: none; border-radius: 50%; object-fit: cover; }
.quote--hero .avatar { width: 44px; height: 44px; }

/* ── Comparison ───────────────────────────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare thead th, .compare thead td { padding: 16px 20px; border-bottom: 1px solid var(--kx-ink); font-size: 17px; font-weight: 700; text-align: left; }
.compare thead td { padding-left: 0; width: 22%; }
.compare thead th.is-kevlex { background: var(--kx-yellow-500); border-radius: 10px 10px 0 0; padding-inline: 24px; font-weight: 800; }
.compare tbody th { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--kx-border); font-family: var(--kx-font-mono); font-size: 12px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kx-ink-600); line-height: 1.5; text-align: left; vertical-align: top; }
.compare tbody td { padding: 20px; border-bottom: 1px solid var(--kx-border); font-size: 17px; line-height: 1.5; color: var(--kx-ink-700); vertical-align: top; }
.compare tbody td.is-kevlex { padding-inline: 24px; background: var(--kx-yellow-50); border-bottom-color: var(--kx-yellow-200); font-weight: 600; color: var(--kx-ink); }

.compare-cards { flex-direction: column; gap: 16px; }
.compare-card { border-radius: var(--kx-radius-lg); border: 1px solid var(--kx-border); background: var(--kx-white); overflow: hidden; }
.compare-card__head { padding: 14px 20px; font-size: 18px; font-weight: 800; background: var(--kx-sand); border-bottom: 1px solid var(--kx-border); }
.compare-card.is-kevlex { background: var(--kx-yellow-50); border-color: var(--kx-yellow-600); }
.compare-card.is-kevlex .compare-card__head { background: var(--kx-yellow-500); border-color: var(--kx-yellow-600); }
.compare-card__row { padding: 12px 20px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--kx-hairline); font-size: 17px; line-height: 1.45; }
.compare-card__row:last-child { border-bottom: none; }
.compare-card__row .mono-xs { font-size: 11px; }

/* ── LinkedIn card ────────────────────────────────────────────────── */
.profile-card { background: var(--kx-white); border: 1px solid var(--kx-ink); border-radius: var(--kx-radius-lg); box-shadow: var(--kx-shadow-lg); overflow: hidden; display: flex; flex-direction: column; }
.profile-card__banner { height: 88px; position: relative; flex: none; }
.profile-card__banner--linkedin { background: #0A66C2; }
.profile-card__banner--booking { background: var(--kx-charcoal); }
.booking-badge { position: absolute; top: 20px; right: 24px; width: 32px; height: 32px; border-radius: 6px; background: var(--kx-yellow-500); color: var(--kx-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; }
.profile-card__avatar.profile-card__avatar--booking { background: var(--kx-yellow-500); flex-direction: column; gap: 0; line-height: 1; }
.profile-card__avatar--booking .booking-disc__n { font-size: 38px; font-weight: 900; letter-spacing: -0.04em; background: none; padding: 0; color: var(--kx-ink); font-family: var(--kx-font-sans); text-transform: none; }
.profile-card__avatar--booking .booking-disc__u { font-family: var(--kx-font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kx-ink); background: none; padding: 2px 0 0; }
.grid-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; align-items: stretch; }
.li-badge { width: 20px; height: 20px; border-radius: 4px; background: #0A66C2; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; letter-spacing: -0.04em; font-family: Arial, Helvetica, sans-serif; }
.li-badge--lg { position: absolute; top: 20px; right: 24px; width: 32px; height: 32px; border-radius: 6px; background: #FFFFFF; color: #0A66C2; font-size: 19px; }
.profile-card__body { padding: 0 clamp(28px, 4vw, 40px) clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 16px; flex: 1; }
.profile-card__avatar { position: relative; z-index: 1; margin-top: -56px; width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--kx-white); background: repeating-linear-gradient(135deg, var(--kx-sand) 0 8px, var(--kx-ink-100) 8px 16px); display: flex; align-items: center; justify-content: center; }
.profile-card__avatar span { font-family: var(--kx-font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kx-ink-600); background: var(--kx-cream); padding: 3px 6px; border-radius: 3px; }
.profile-card--linkedin .profile-card__body { padding-top: clamp(28px, 4vw, 40px); }
.profile-card__name { display: flex; flex-direction: column; gap: 4px; }
.profile-card__name span:first-child { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.profile-card__name span:last-child { font-size: 15px; color: var(--kx-ink-600); }
.profile-card h3 { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -0.025em; }
.profile-card p { font-size: 17px; line-height: 1.6; color: var(--kx-ink-700); }
.profile-card__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.li-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 24px; border: 1.5px solid #0A66C2; color: #0A66C2; font-size: 16px; font-weight: 700; text-decoration: none; }
.li-btn:hover { background: #E8F1FB; color: #0A66C2; }

/* ── Who it's for, About, Final CTA ───────────────────────────────── */
.numbered { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--kx-ink); }
.numbered li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--kx-border); font-size: 19px; line-height: 1.45; font-weight: 500; }
.numbered .num { font-weight: 400; padding-top: 4px; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 72px; align-items: center; }
.about__copy { max-width: 600px; }
.about .body-lg { max-width: none; }
.portrait-ph { aspect-ratio: 4 / 5; max-width: 420px; width: 100%; border-radius: var(--kx-radius-lg); border: 1px solid var(--kx-border); background: repeating-linear-gradient(135deg, var(--kx-sand) 0 10px, var(--kx-ink-100) 10px 20px); display: flex; align-items: flex-end; padding: 20px; }
.portrait-ph .mono-label { font-size: 11px; background: var(--kx-cream); padding: 6px 10px; border-radius: 4px; }

.final-cta { display: flex; flex-direction: column; gap: 28px; padding-bottom: clamp(56px, 8vw, 96px); }
.final-cta h2 { max-width: 900px; font-size: clamp(34px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }

/* ── Legal pages ──────────────────────────────────────────────────── */
.prose { max-width: 760px; padding-block: clamp(48px, 8vw, 96px); }
.prose h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 24px; text-wrap: balance; }
.prose h2, .prose h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; margin: 40px 0 12px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--kx-ink-700); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose li > ul, .prose li > ol { margin: 6px 0 0; }
.prose strong { color: var(--kx-ink); }
.prose a { color: var(--kx-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--kx-border-strong); }
.prose a:hover { text-decoration-color: currentColor; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; line-height: 1.45; color: var(--kx-ink-700); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--kx-border); }
.prose th { color: var(--kx-ink); font-weight: 700; background: var(--kx-surface-sunken); border-bottom-color: var(--kx-border-strong); }
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .prose th, .prose td { min-width: 140px; }
}

/* ── Blog ─────────────────────────────────────────────────────────── */
/* Translated from design/blog/Kevlex Blog.dc.html. Hidden from production until launch (src/_data/blog.js). */
/* Preview builds only (ELEVENTY_ENV=preview): marks posts that are drafts or dated in the future */
.draft-banner { background: #c0262d; color: #fff; font: 600 12px/1.4 var(--kx-font-mono, monospace); letter-spacing: .06em; text-transform: uppercase; text-align: center; padding: 10px 16px; }
.blog-intro { padding-top: clamp(48px, 7vw, 88px); display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.blog-intro__text { display: flex; flex-direction: column; gap: 20px; max-width: 760px; }
.blog-intro h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.blog-intro .lead { max-width: 640px; }
.blog-intro--compact { padding-top: clamp(40px, 6vw, 72px); gap: 20px; }
.blog-intro--compact h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.04; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--kx-ink-600); }
.crumbs a { color: var(--kx-ink-600); }
.crumbs [aria-current] { color: var(--kx-ink); }

.post-cat { font-family: var(--kx-font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kx-ink-600); }
.pill-label { font-family: var(--kx-font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--kx-radius-pill); background: var(--kx-yellow-500); }

/* Image placeholder until a post has an image */
.img-ph { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 16px; background: repeating-linear-gradient(135deg, var(--kx-sand) 0 10px, var(--kx-ink-100) 10px 20px); }
.img-ph .mono-label { font-size: 11px; background: var(--kx-cream); padding: 6px 10px; border-radius: 4px; }

.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: var(--kx-sand); border: 1px solid var(--kx-border); font-weight: 800; color: var(--kx-ink-700); letter-spacing: -0.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 56px; height: 56px; font-size: 17px; }
.avatar--md { width: 88px; height: 88px; font-size: 26px; }
.avatar--lg { width: 128px; height: 128px; font-size: 36px; }

/* Featured card */
.post-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-xl); overflow: hidden; box-shadow: var(--kx-shadow-md); text-decoration: none; color: var(--kx-ink); transition: transform 160ms var(--kx-ease), box-shadow 160ms var(--kx-ease); }
.post-feature:hover { color: var(--kx-ink); transform: translateY(-2px); box-shadow: var(--kx-shadow-lg); }
.post-feature__img { min-height: 300px; aspect-ratio: 4 / 3; background: var(--kx-sand); }
.post-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.post-feature__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.post-feature__labels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.post-feature h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.post-feature p { font-size: 18px; line-height: 1.6; color: var(--kx-ink-700); text-wrap: pretty; }
.post-feature__more { font-size: 16px; font-weight: 700; }
@media (max-width: 759px) { .post-feature__img { min-height: 0; aspect-ratio: 16 / 9; } }

/* Byline: avatar + name + second line */
.byline__author { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-top: 6px; }
.byline__author > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.byline__author strong { font-size: 15px; }
.byline__author > span:last-child > span { color: var(--kx-ink-600); }

/* List: heading + chips, card grid, pager */
.blog-list { padding-block: clamp(48px, 7vw, 80px) clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 32px; }
.list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-bottom: 20px; border-bottom: 1px solid var(--kx-ink); }
.list-head h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; letter-spacing: -0.025em; }
.list-head__link { font-size: 16px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--kx-radius-pill); border: 1px solid var(--kx-border); background: var(--kx-white); color: var(--kx-ink); font-size: 14px; font-weight: 600; text-decoration: none; transition: background 150ms var(--kx-ease); }
.chip:hover { background: var(--kx-sand); color: var(--kx-ink); }
.chip--active, .chip--active:hover { background: var(--kx-ink); border-color: var(--kx-ink); color: var(--kx-cream); }
.chip__count { font-family: var(--kx-font-mono); font-size: 11px; opacity: 0.7; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.post-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.post-card { display: flex; flex-direction: column; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg); overflow: hidden; box-shadow: var(--kx-shadow-sm); text-decoration: none; color: var(--kx-ink); transition: transform 160ms var(--kx-ease), box-shadow 160ms var(--kx-ease); }
.post-card:hover { color: var(--kx-ink); transform: translateY(-2px); box-shadow: var(--kx-shadow-md); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--kx-sand); border-bottom: 1px solid var(--kx-border); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.post-card p { font-size: 16px; line-height: 1.55; color: var(--kx-ink-700); text-wrap: pretty; }
.post-card__meta { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--kx-ink-600); }

.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--kx-border); }
.pager__label { font-size: 14px; color: var(--kx-ink-600); }
.pager__links { display: flex; flex-wrap: wrap; gap: 6px; }
.pager__num, .pager__btn { height: 40px; min-width: 40px; border-radius: var(--kx-radius-md); display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--kx-border); background: var(--kx-white); font-size: 15px; font-weight: 600; text-decoration: none; }
.pager__btn { padding: 0 16px; }
.pager__num:hover, .pager__btn:hover { background: var(--kx-sand); color: var(--kx-ink); }
.pager__num--current { background: var(--kx-ink); border-color: var(--kx-ink); color: var(--kx-cream); font-weight: 700; }

/* Author page */
.author-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 56px; align-items: center; margin-top: 8px; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-xl); box-shadow: var(--kx-shadow-md); padding: clamp(28px, 4vw, 48px); }
.author-hero__id { display: flex; align-items: center; gap: 24px; }
.author-hero__id > div { display: flex; flex-direction: column; gap: 6px; }
.author-hero h1 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.03em; }
.author-hero__role { font-size: 16px; color: var(--kx-ink-600); }
.author-hero__bio { display: flex; flex-direction: column; gap: 18px; }
.author-hero__bio p { font-size: 18px; line-height: 1.6; color: var(--kx-ink-700); text-wrap: pretty; }
.author-hero__email { font-size: 16px; font-weight: 600; }
.author-hero .mono-label { font-size: 11px; font-weight: 700; }
@media (max-width: 480px) { .author-hero__id { flex-direction: column; align-items: flex-start; } }

/* Article header */
.post-header { padding-top: clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 22px; }
.post-header__text { display: flex; flex-direction: column; gap: 20px; max-width: 880px; }
.post-header__text .eyebrow { text-decoration: none; }
.post-header h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.post-header__lead { font-size: clamp(19px, 2vw, 22px); max-width: 720px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.byline .byline__author { padding-top: 0; }
.byline__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--kx-ink-600); }
.byline .tag { align-self: center; font-size: 10.5px; line-height: 1.4; }
.post-hero { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.post-hero__img { aspect-ratio: 21 / 9; min-height: 220px; border-radius: var(--kx-radius-xl); overflow: hidden; border: 1px solid var(--kx-border); background: var(--kx-sand); }
.post-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.post-hero figcaption, .post-figure figcaption { font-size: 14px; color: var(--kx-ink-600); }

/* Article body: sticky contents + share on the left, text column on the right */
.post-layout { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 104px); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; }
.toc .mono-label, .share .mono-label, .post-tags .mono-label, .author-box .mono-label { font-size: 11px; font-weight: 700; }
.toc__list { list-style: none; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--kx-ink); }
.toc__list li { border-bottom: 1px solid var(--kx-border); }
.toc__list a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; padding: 10px 0; font-size: 15px; line-height: 1.4; font-weight: 500; text-decoration: none; }
.toc__list a:hover { color: var(--kx-ink-600); }
.toc__list .num { font-size: 12px; font-weight: 400; padding-top: 2px; }
.share { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.share__links { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-btn { height: 34px; padding: 0 12px; border-radius: var(--kx-radius-pill); border: 1px solid var(--kx-border); background: var(--kx-white); display: inline-flex; align-items: center; font: inherit; font-size: 13px; font-weight: 600; color: var(--kx-ink); text-decoration: none; cursor: pointer; }
.pill-btn:hover { background: var(--kx-sand); color: var(--kx-ink); }
@media (max-width: 759px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; padding: 20px; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg); }
}

.post-main { max-width: 680px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.post-body { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; color: var(--kx-ink-900); }
.post-body > p:first-child { font-size: 20px; line-height: 1.6; }
.post-body p { text-wrap: pretty; }
.post-body h2, .faq h2 { margin-top: 24px; font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.025em; scroll-margin-top: 88px; }
.post-body h3 { margin-top: 12px; font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; scroll-margin-top: 88px; }
.post-body ul, .post-body ol { margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.post-body ul { list-style: none; }
/* Tick is positioned, not a grid column: a grid made every link in an item its own cell, so links overlapped ("GoHighLevel" under "workflow") */
.post-body ul > li { position: relative; padding-left: 38px; }
.post-body ul > li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--kx-yellow-500); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.post-body ol { padding-left: 1.4em; }
.post-body ol > li { padding-left: 6px; }
.post-body ol > li::marker { font-family: var(--kx-font-mono); font-size: 14px; font-weight: 600; color: var(--kx-ink-500); }
.post-body blockquote { margin: 8px 0; padding: 24px 28px; background: var(--kx-yellow-50); border: 1px solid var(--kx-yellow-200); border-radius: var(--kx-radius-lg); font-size: 22px; line-height: 1.45; font-weight: 600; letter-spacing: -0.015em; text-wrap: pretty; }
.post-body blockquote p { margin: 0; }
.post-body img { border-radius: var(--kx-radius-lg); border: 1px solid var(--kx-border); }
.post-body code { font-family: var(--kx-font-mono); font-size: 0.85em; padding: 2px 6px; background: var(--kx-sand); border-radius: 4px; }
.post-figure { margin: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg); overflow: hidden; box-shadow: var(--kx-shadow-sm); font-size: 15px; line-height: 1.45; }
.post-body th { text-align: left; padding: 12px 16px; background: var(--kx-sand); font-family: var(--kx-font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kx-ink-600); font-weight: 600; }
.post-body td { padding: 12px 16px; vertical-align: top; border-top: 1px solid var(--kx-border); font-weight: 500; }
.post-body td:first-child { font-family: var(--kx-font-mono); font-size: 13px; font-weight: 400; color: var(--kx-ink-600); white-space: nowrap; }
@media (max-width: 759px) { .post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

.faq { display: flex; flex-direction: column; gap: 22px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--kx-ink); }
.faq details { border-bottom: 1px solid var(--kx-border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span::before { content: "+"; font-size: 20px; font-weight: 500; color: var(--kx-ink-600); }
.faq details[open] summary span::before { content: "–"; }
.faq details p { margin: 0 0 20px; font-size: 17px; line-height: 1.65; color: var(--kx-ink-700); text-wrap: pretty; }

.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 16px; }
.post-tags .mono-label { margin-right: 6px; }
.post-tag { height: 30px; padding: 0 12px; border-radius: var(--kx-radius-pill); background: var(--kx-sand); border: 1px solid var(--kx-border); display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }

.author-box { margin-top: 24px; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-xl); box-shadow: var(--kx-shadow-md); padding: clamp(24px, 3.5vw, 36px); display: flex; flex-direction: column; gap: 20px; }
.author-box__head { display: flex; align-items: center; gap: 18px; }
.author-box__head > div { display: flex; flex-direction: column; gap: 4px; }
.author-box__name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.author-box__role { font-size: 15px; color: var(--kx-ink-600); }
.author-box p { font-size: 17px; line-height: 1.6; color: var(--kx-ink-700); text-wrap: pretty; }
.author-box__more { font-size: 16px; font-weight: 700; }

/* Blog CTA band: same as the homepage final CTA, a size smaller */
.final-cta--blog { gap: 24px; }
.final-cta--blog h2 { max-width: 820px; font-size: clamp(32px, 4.4vw, 52px); }
.cta-row__note--on-dark { color: rgba(255,253,247,0.82); }

/* ── Glossary ─────────────────────────────────────────────────────── */
/* Hub cards and term pages (src/glossary/). Same look as the blog. Hidden until launch (src/_data/glossary.json). */
.g-intro .lead { max-width: 680px; }
.g-jump { display: flex; flex-direction: column; gap: 16px; }
.g-letters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.g-letters .mono-label { margin-right: 8px; font-size: 11px; font-weight: 700; }
.g-letters a, .g-letters span:not(.mono-label) { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; border-radius: var(--kx-radius-sm); font-family: var(--kx-font-mono); font-size: 13px; font-weight: 600; }
.g-letters a { background: var(--kx-white); border: 1px solid var(--kx-border); color: var(--kx-ink); text-decoration: none; }
.g-letters a:hover { background: var(--kx-yellow-500); border-color: var(--kx-yellow-500); color: var(--kx-ink); }
.g-letters span:not(.mono-label) { color: var(--kx-ink-300); }
.g-section { padding-top: clamp(48px, 6vw, 72px); scroll-margin-top: 88px; display: flex; flex-direction: column; gap: 28px; }
.g-section .list-head .mono-label { font-size: 11px; font-weight: 700; }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 640px) { .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .g-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg); box-shadow: var(--kx-shadow-sm); text-decoration: none; color: var(--kx-ink); transition: transform var(--kx-dur) var(--kx-ease), box-shadow var(--kx-dur) var(--kx-ease); }
.g-card:hover { color: var(--kx-ink); transform: translateY(-2px); box-shadow: var(--kx-shadow-md); }
.g-card h3 { font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.g-abbr { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 2px 8px; border-radius: var(--kx-radius-sm); background: var(--kx-yellow-500); font-family: var(--kx-font-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.g-card p { flex: 1; font-size: 16px; line-height: 1.55; color: var(--kx-ink-700); text-wrap: pretty; }
.g-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.g-card__more { font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--kx-yellow-500); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.g-az { padding-bottom: clamp(64px, 9vw, 112px); }
.g-az__groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 28px 32px; }
.g-az__group { scroll-margin-top: 88px; }
.g-az__group h3 { font-family: var(--kx-font-mono); font-size: 15px; font-weight: 700; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 2px solid var(--kx-yellow-500); }
.g-az__group ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.g-az__see { color: var(--kx-ink-600); }

.g-article { max-width: 856px; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 9vw, 104px); display: flex; flex-direction: column; gap: 24px; }
.g-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.g-head .eyebrow { text-decoration: none; }
.g-head h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.g-aliases { font-size: 17px; color: var(--kx-ink-600); }
.g-block { padding: clamp(20px, 3vw, 28px); background: var(--kx-white); border: 1px solid var(--kx-border); border-radius: var(--kx-radius-lg); box-shadow: var(--kx-shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.g-block .mono-label { font-size: 11px; font-weight: 700; }
.g-block p { font-size: 18px; line-height: 1.65; color: var(--kx-ink-900); text-wrap: pretty; }
.g-block--def { background: var(--kx-yellow-50); border-color: var(--kx-yellow-200); box-shadow: none; }
.g-block--def p { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; color: var(--kx-ink); }
.g-block--example blockquote { margin: 0; padding-left: 18px; border-left: 4px solid var(--kx-yellow-500); }
.g-block--example blockquote p { font-size: 19px; font-style: italic; }
.g-block--faq h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.g-body { display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.7; color: var(--kx-ink-900); }
.g-body p { text-wrap: pretty; }
.g-note { padding: 12px 16px; border: 1px dashed var(--kx-ink-500); border-radius: var(--kx-radius-md); font-size: 15px; color: var(--kx-ink-700); }
.g-links { margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.g-links h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.g-cross { font-size: 17px; color: var(--kx-ink-700); }
.g-cross a { font-weight: 700; }
.g-posts { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 17px; }
.g-posts a { font-weight: 700; }

/* Featured images (1200x675, title drawn into the image): show them whole at 16:9, never cropped */
.post-hero__img.has-img, .post-feature__img.has-img, .post-card__img.has-img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
.post-hero__img.has-img { max-width: 960px; }
.post-feature__img.has-img { align-self: center; }

/* Featured card with an image (/blog/): the 16:9 image fills the card's full height, flush top/bottom/left,
   ~60/40 columns from 960px (the text is clipped below that); the text column is fitted inside that height (contain: size keeps it from making the card
   taller). Stacked below 960px. Fallback crop keeps the bottom-left (title baked into the image). */
@media (min-width: 960px) {
  .post-feature.post-feature--img { display: grid; grid-template-columns: 3fr 2fr; align-items: stretch; flex-wrap: nowrap; }
  .post-feature--img .post-feature__img.has-img { aspect-ratio: 16 / 9; min-height: 0; height: auto; align-self: stretch; flex: none; }
  .post-feature--img .post-feature__img img { width: 100%; height: 100%; object-fit: cover; object-position: left bottom; }
  .post-feature--img .post-feature__body { contain: size; overflow: hidden; min-width: 0; padding: 26px 32px; gap: 10px; justify-content: center; flex: none; }
  .post-feature--img h2 { font-size: clamp(22px, 1.9vw, 29px); line-height: 1.12; }
  .post-feature--img p { font-size: 16px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .post-feature--img .post-feature__more { margin-top: 2px; }
  /* Never squeeze the text parts: a squeezed excerpt was clipped mid-word ("agent-") with no ellipsis.
     The line clamp alone shortens it, always ending in an ellipsis; fewer lines where the card is shorter. */
  .post-feature--img .post-feature__body > * { flex-shrink: 0; }
  .post-feature--img p { -webkit-line-clamp: 2; line-clamp: 2; }
}
@media (min-width: 960px) and (max-width: 1023px) {
  .post-feature--img .post-feature__body { padding: 20px 28px; }
}
@media (min-width: 1180px) {
  .post-feature--img p { -webkit-line-clamp: 3; line-clamp: 3; }
}
@media (max-width: 959px) {
  .post-feature.post-feature--img { display: grid; grid-template-columns: 1fr; flex-wrap: nowrap; }
  .post-feature--img .post-feature__img.has-img { aspect-ratio: 16 / 9; min-height: 0; height: auto; align-self: stretch; flex: none; }
}
