/* ============================================================
   BuildersRiskNerd — Kadence Handoff Stylesheet
   Mirrors Kadence Global Colors / Typography conventions.
   Every selector is named after the block it represents.
   ============================================================ */

:root {
  /* Kadence Global Colors — Palette 1 */
  --kd-accent:   #F5C340;
  --kd-accent-d: #E3AD21;
  --kd-ink:      #0E0E0E;
  --kd-ink-2:    #1A1A1A;
  --kd-cream:    #F4F0E6;
  --kd-concrete: #E3DED2;
  --kd-rebar:    #E87B2E;
  --kd-paper:    #FFFFFF;
  --kd-muted:    #6E6A5E;
  --kd-line:     rgba(14,14,14,0.12);
  --kd-line-dk:  rgba(255,255,255,0.14);

  /* Kadence Global Fonts */
  --ff-display: "Bebas Neue", sans-serif;
  --ff-narrow:  "Archivo Narrow", "Bebas Neue", sans-serif;
  --ff-body:    "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--ff-body);
  color: var(--kd-ink);
  background: var(--kd-cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.brn-standalone {
  background: var(--kd-ink);
  min-height: 100vh;
}

/* ============================================================
   Handoff Bar + Annotation Overlay
   ============================================================ */
.handoff-bar {
  position: sticky; top: 0; z-index: 100;
  background: #111; color: #fff;
  border-bottom: 1px solid #2a2a2a;
  font-family: var(--ff-narrow);
  font-size: 13px;
}
.handoff-bar__inner {
  max-width: 1400px; margin: 0 auto;
  padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.handoff-bar__brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.handoff-bar__sub { opacity: 0.6; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.handoff-bar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-block; padding: 3px 8px;
  background: var(--kd-accent); color: var(--kd-ink);
  font-weight: 700; letter-spacing: 0.1em; font-size: 11px;
  border-radius: 2px;
}
.chip--live { background: #3BB273; color: #fff; }
.toggle { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--kd-accent); }
.btn-sm {
  padding: 6px 12px; border: 1px solid #333; border-radius: 3px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #eee;
}
.btn-sm:hover { background: var(--kd-accent); color: var(--kd-ink); border-color: var(--kd-accent); }
.btn-sm--ghost { border-color: #555; color: #aaa; }

/* Annotations */
[data-block] { position: relative; }
body.annotations [data-block]::before {
  content: attr(data-block);
  position: absolute; top: 54px; left: 6px; z-index: 45;
  background: var(--kd-accent); color: var(--kd-ink);
  padding: 3px 7px; border-radius: 2px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  max-width: 360px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.annotations [data-block]:hover::before {
  max-width: 720px; white-space: normal; z-index: 60;
}
body.annotations [data-block][data-settings]::after {
  content: attr(data-settings);
  position: absolute; top: 54px; left: 6px;
  background: rgba(0,0,0,0.88); color: #eee;
  padding: 3px 7px; border-radius: 2px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 10.5px;
  max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transform: translateY(22px);
  opacity: 0;
  transition: opacity 0.18s;
  pointer-events: none;
}
body.annotations [data-block][data-settings]:hover::after {
  opacity: 1;
  white-space: normal; max-width: 720px;
  z-index: 60;
}
body.annotations [data-block]:hover { outline: 2px dashed var(--kd-accent); outline-offset: 2px; }

/* ============================================================
   Layout primitives
   ============================================================ */
.k-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* Section heads */
.k-section-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 64px;
}
.k-section-head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 0.95;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.k-section-head__right {
  font-size: 17px;
  color: var(--kd-muted);
  max-width: 44ch;
  margin: 0;
  padding-bottom: 10px;
}
.k-section-head--dark h2 { color: #fff; }
.k-section-head--dark .k-section-head__right { color: rgba(255,255,255,0.65); }

/* Eyebrows */
.k-eyebrow {
  font-family: var(--ff-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--kd-accent);
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
}
.k-eyebrow--dark { color: var(--kd-rebar); }
.k-eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--kd-accent);
}

/* ============================================================
   Buttons — Kadence Advanced Button presets
   ============================================================ */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 22px;
  font-family: var(--ff-narrow);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.k-btn--lg { padding: 20px 28px; font-size: 15px; }
.k-btn--block { width: 100%; }
.k-btn--primary { background: var(--kd-accent); color: var(--kd-ink); }
.k-btn--primary:hover { background: var(--kd-accent-d); }
.k-btn--ink { background: var(--kd-ink); color: var(--kd-paper); }
.k-btn--ink:hover { background: #2a2a2a; }
.k-btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,0.3); }
.k-btn--ghost-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }

/* ============================================================
   Header — Kadence Header Builder
   ============================================================ */
.k-header {
  position: absolute; top: 44px; /* sits under handoff bar */
  left: 0; right: 0; z-index: 10;
  padding: 22px 0;
}
.k-header .k-container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.k-header__logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  display: block;
  color: var(--kd-accent);
}
.logo-mark--foundation { filter: drop-shadow(0 1px 0 rgba(0,0,0,0.2)); }
.logo-wm {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 16px; letter-spacing: 0.04em; color: #fff;
}
.logo-wm .accent { color: var(--kd-accent); }

.k-header__nav {
  display: flex; gap: 32px;
  font-family: var(--ff-narrow);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.k-header__nav a { color: rgba(255,255,255,0.85); }
.k-header__nav a:hover { color: var(--kd-accent); }
.k-header__cta { display: flex; align-items: center; justify-content: flex-end; }

/* ============================================================
   Hero — Kadence Row Layout (full-width, BG image, dark overlay)
   ============================================================ */
.k-hero {
  position: relative;
  min-height: 860px;
  color: #fff;
  padding: 188px 0 118px;
  overflow: hidden;
}
.k-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('assets/hero/hero-builders-risk-generated.png');
  background-size: cover; background-position: 62% center;
  filter: grayscale(0.2);
}
.k-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(105deg, rgba(14,14,14,0.93) 0%, rgba(14,14,14,0.74) 38%, rgba(14,14,14,0.34) 70%, rgba(14,14,14,0.62) 100%),
    linear-gradient(180deg, rgba(14,14,14,0.45) 0%, rgba(14,14,14,0.12) 42%, rgba(14,14,14,0.94) 100%);
}
.k-hero__inner { z-index: 2; }
.k-hero__card { z-index: 3; }
.k-hero__inner {
  position: relative;
  max-width: 1360px;
  display: block;
}
.k-hero__content { max-width: 860px; }
.k-hero h1 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(60px, 7.8vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 18px 0 28px;
}
.k-hero h1 .h1-line { white-space: nowrap; }
.k-hero h1 .accent { color: var(--kd-accent); }
.k-hero h1 .outline {
  -webkit-text-stroke: 1.5px var(--kd-accent);
  color: transparent;
  font-style: italic;
}
.k-lede {
  max-width: 52ch;
  font-size: 19px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  margin: 0 0 36px;
}
.k-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.k-hero__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 740px;
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 28px;
}
.k-stat { padding-right: 24px; border-right: 1px solid rgba(255,255,255,0.14); }
.k-stat:last-child { border-right: none; }
.k-stat .n {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 42px; line-height: 1; color: var(--kd-accent);
}
.k-stat .l {
  font-family: var(--ff-narrow); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-top: 6px;
}

.k-hero__card {
  position: relative;
  background: var(--kd-paper);
  color: var(--kd-ink);
  padding: 32px;
  border-radius: 4px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.35);
  align-self: end;
}
.k-hero__card h4 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 26px; margin: 0 0 6px;
}
.k-hero__card p { margin: 0 0 22px; color: var(--kd-muted); font-size: 14px; }
.k-hero__card select,
.k-hero__card input {
  width: 100%;
  padding: 14px 14px;
  font-family: var(--ff-body); font-size: 14px;
  border: 1px solid var(--kd-line);
  border-radius: 3px;
  margin-bottom: 12px;
  background: var(--kd-paper);
}
.k-hero__card .k-row { display: flex; gap: 10px; }
.k-hero__card small {
  display: block;
  font-family: var(--ff-narrow); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kd-muted); margin-top: 14px; text-align: center;
}
.k-anchor {
  position: absolute;
  top: -80px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ============================================================
   Trust strip
   ============================================================ */
.k-trust-strip {
  background: var(--kd-accent);
  padding: 22px 0;
}
.k-trust-strip__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.k-trust-strip .cell {
  display: flex; align-items: center; gap: 10px;
  padding: 0 24px;
  border-right: 1px solid rgba(14,14,14,0.18);
  font-family: var(--ff-narrow);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--kd-ink);
}
.k-trust-strip .cell:last-child { border-right: none; }
.k-trust-strip .i { font-size: 18px; }

/* ============================================================
   Coverage — Kadence Tabs (vertical)
   ============================================================ */
.k-coverage {
  background: var(--kd-cream);
  padding: 100px 0;
}
.k-tabs--vertical {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  background: var(--kd-paper);
  border: 1px solid var(--kd-line);
  border-radius: 4px;
  overflow: hidden;
}
.k-tabs__nav {
  display: flex; flex-direction: column;
  background: var(--kd-ink);
  padding: 24px 0;
}
.k-tabs__btn {
  background: transparent; border: 0;
  padding: 22px 28px;
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: 22px;
  color: rgba(255,255,255,0.55);
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
  display: flex; align-items: baseline; gap: 14px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.k-tabs__btn .n {
  font-family: var(--ff-narrow); font-size: 11px;
  letter-spacing: 0.12em; color: var(--kd-accent);
  font-weight: 700;
}
.k-tabs__btn:hover { color: #fff; }
.k-tabs__btn.active {
  color: #fff;
  background: #1a1a1a;
  border-left-color: var(--kd-accent);
}

.k-tabs__panels { padding: 56px 56px 56px 0; }
.k-tabs__panel { display: none; }
.k-tabs__panel.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.k-tabs__panel h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1.05;
  margin: 10px 0 18px;
}
.k-tabs__panel p {
  font-size: 17px; color: var(--kd-muted);
  max-width: 56ch;
  margin: 0 0 28px;
}
.k-check-list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  max-width: 520px;
}
.k-check-list li {
  padding-left: 30px;
  position: relative;
  font-family: var(--ff-narrow);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
}
.k-check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px;
  background: var(--kd-accent); color: var(--kd-ink);
  display: grid; place-items: center;
  border-radius: 2px;
  font-size: 12px; font-weight: 900;
}

/* ============================================================
   Audience cards
   ============================================================ */
.k-audience {
  background: var(--kd-ink);
  color: #fff;
  padding: 120px 0;
}
.on-dark { color: #fff; }
.on-dark-muted { color: rgba(255,255,255,0.65); }
.k-audience__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.k-card {
  background: #141414;
  transition: background 0.2s;
}
.k-card:hover { background: #1c1c1c; }
.k-card__img {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  filter: grayscale(0.35) brightness(0.85);
  transition: filter 0.3s;
  border-bottom: 3px solid var(--kd-accent);
}
.k-card:hover .k-card__img { filter: none; }
.k-card__body { padding: 24px; }
.k-card__body .num {
  font-family: var(--ff-narrow); font-size: 11px;
  letter-spacing: 0.14em; color: var(--kd-accent);
  font-weight: 700;
}
.k-card__body h3 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 26px; line-height: 1.1;
  margin: 8px 0 8px;
}
.k-card__body p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.5; margin: 0; }

/* ============================================================
   Stats
   ============================================================ */
.k-stats { background: var(--kd-cream); padding: 120px 0; }
.k-stats__head { max-width: 900px; margin: 0 0 72px; }
.k-stats__head h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(44px, 5.2vw, 88px);
  line-height: 0.95;
  margin: 16px 0 18px;
  letter-spacing: -0.01em;
}
.k-stats__head .rebar { color: var(--kd-rebar); font-style: italic; }
.k-lede--dark {
  font-size: 19px; color: var(--kd-muted); line-height: 1.55; max-width: 60ch; margin: 0;
}
.k-stats__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  border-top: 1px solid var(--kd-line);
  padding-top: 52px;
}
.k-stat-cell .big {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--kd-ink);
}
.k-stat-cell .big sup {
  font-size: 0.35em; color: var(--kd-rebar); font-weight: 500;
  vertical-align: super; margin-left: 4px;
}
.k-stat-cell .lbl {
  font-family: var(--ff-narrow);
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kd-ink); margin-top: 16px; font-weight: 700;
}
.k-stat-cell .desc { font-size: 15px; color: var(--kd-muted); margin-top: 10px; max-width: 34ch; }

/* ============================================================
   How it works
   ============================================================ */
.k-how { background: var(--kd-paper); padding: 120px 0; }
.k-how__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border-top: 1px dashed var(--kd-line);
  padding-top: 48px;
}
.k-step {
  padding: 0 28px 0 0;
  border-right: 1px dashed var(--kd-line);
  position: relative;
}
.k-step:last-child { border-right: none; }
.k-step:not(:last-child) { padding-right: 40px; margin-right: 0; }
.k-step:not(:first-child) { padding-left: 40px; }
.k-step .num {
  width: 56px; height: 56px;
  background: var(--kd-accent); color: var(--kd-ink);
  font-family: var(--ff-display); font-weight: 400;
  font-size: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  margin-bottom: 22px;
}
.k-step h3 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 24px; line-height: 1.15;
  margin: 0 0 10px;
}
.k-step p { color: var(--kd-muted); font-size: 15px; margin: 0 0 16px; }
.k-step .dur {
  font-family: var(--ff-narrow); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kd-rebar); font-weight: 700;
}

/* ============================================================
   Quote intake wizard
   ============================================================ */
.k-quote {
  background: var(--kd-ink);
  color: #fff;
  padding: 120px 0;
}
.k-quote__grid {
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
  gap: 56px;
  align-items: start;
}
.k-quote__intro {
  position: sticky;
  top: 32px;
}
.k-quote--standalone {
  min-height: 100vh;
  padding: 20px 0;
}
.k-quote__solo {
  max-width: 1060px;
}
.k-quote__intro h1,
.k-quote__intro h2 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(46px, 5.2vw, 86px);
  line-height: 0.95;
  margin: 16px 0 22px;
  letter-spacing: -0.01em;
}
.k-quote__intro h1 .accent,
.k-quote__intro h2 .accent { color: var(--kd-accent); }
.k-quote__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--kd-line-dk);
  border-bottom: 1px solid var(--kd-line-dk);
  margin: 34px 0;
}
.k-quote__proof div {
  padding: 20px 16px 20px 0;
  border-right: 1px solid var(--kd-line-dk);
}
.k-quote__proof div:last-child { border-right: none; padding-left: 16px; }
.k-quote__proof div:nth-child(2) { padding-left: 16px; }
.k-quote__proof strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 30px;
  line-height: 1;
  color: var(--kd-accent);
  font-weight: 400;
}
.k-quote__proof span {
  display: block;
  font-family: var(--ff-narrow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-top: 8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.k-quote__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2px;
  border: 1px solid var(--kd-line-dk);
  background: rgba(255,255,255,0.06);
}
.k-quote__steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: #141414;
  color: rgba(255,255,255,0.58);
  font-family: var(--ff-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.k-quote__steps .n {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--kd-accent);
  font-size: 11px;
}
.k-quote__steps li.active {
  background: var(--kd-accent);
  color: var(--kd-ink);
}
.k-quote__steps li.active .n {
  border-color: rgba(14,14,14,0.24);
  color: var(--kd-ink);
}
.k-quote__steps li.done {
  color: rgba(255,255,255,0.86);
}
.k-quote__panel {
  background: var(--kd-paper);
  color: var(--kd-ink);
  border-radius: 4px;
  box-shadow: 0 34px 80px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.brn-form,
.brn-complete {
  padding: 36px;
}
.k-quote--standalone .brn-form,
.k-quote--standalone .brn-complete {
  padding: 26px 30px 22px;
}
.brn-form__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
}
.brn-form__eyebrow,
.brn-fieldset__label,
.brn-save-note,
.brn-form__count {
  font-family: var(--ff-narrow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.brn-form__eyebrow { color: var(--kd-rebar); }
.brn-form__top h2,
.brn-form__top h3,
.brn-complete h2,
.brn-complete h3 {
  font-family: var(--ff-display);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  margin: 8px 0 0;
}
.k-quote--standalone .brn-form__top h2,
.k-quote--standalone .brn-form__top h3,
.k-quote--standalone .brn-complete h2,
.k-quote--standalone .brn-complete h3 {
  font-size: clamp(30px, 3.2vw, 44px);
  margin-top: 5px;
}
.brn-form__count {
  background: var(--kd-cream);
  color: var(--kd-muted);
  border: 1px solid var(--kd-line);
  padding: 8px 10px;
  white-space: nowrap;
}
.brn-progress {
  height: 8px;
  background: var(--kd-cream);
  border: 1px solid var(--kd-line);
  margin: 26px 0 18px;
}
.k-quote--standalone .brn-progress {
  margin: 18px 0 14px;
}
.brn-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--kd-accent);
  transition: width 0.18s ease;
}
.brn-form__sub {
  color: var(--kd-muted);
  max-width: 68ch;
  margin: 0 0 28px;
}
.k-quote--standalone .brn-form__sub {
  margin-bottom: 18px;
}
.brn-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.k-quote--standalone .brn-fields {
  gap: 14px;
}
.brn-field,
.brn-fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brn-field--full,
.brn-fieldset--full {
  grid-column: 1 / -1;
}
.brn-field label,
.brn-fieldset__label {
  color: var(--kd-ink);
}
.brn-field label {
  font-weight: 700;
  font-size: 14px;
}
.brn-field small,
.brn-fieldset small {
  color: var(--kd-muted);
  font-size: 12px;
  line-height: 1.45;
}
.brn-field input,
.brn-field select,
.brn-field textarea {
  width: 100%;
  border: 1px solid var(--kd-line);
  border-radius: 3px;
  padding: 14px 14px;
  min-height: 50px;
  background: #fff;
  color: var(--kd-ink);
  font-family: var(--ff-body);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.k-quote--standalone .brn-field input,
.k-quote--standalone .brn-field select,
.k-quote--standalone .brn-field textarea {
  min-height: 46px;
  padding: 12px 13px;
}
.brn-field textarea {
  min-height: 132px;
  resize: vertical;
}
.brn-field input:focus,
.brn-field select:focus,
.brn-field textarea:focus {
  outline: none;
  border-color: var(--kd-accent-d);
  box-shadow: 0 0 0 3px rgba(245,195,64,0.2);
}
.brn-money-input {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  border: 1px solid var(--kd-line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.brn-money-input span {
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--kd-cream);
  border-right: 1px solid var(--kd-line);
  color: var(--kd-muted);
  font-weight: 800;
}
.brn-money-input input,
.k-quote--standalone .brn-money-input input {
  border: 0;
  min-height: 46px;
  padding-left: 12px;
}
.brn-money-input input:focus {
  box-shadow: none;
}
.brn-money-input:focus-within {
  border-color: var(--kd-accent-d);
  box-shadow: 0 0 0 3px rgba(245,195,64,0.2);
}
.brn-field.is-invalid input,
.brn-field.is-invalid select,
.brn-field.is-invalid textarea,
.brn-field.is-invalid .brn-money-input,
.brn-fieldset.is-invalid .brn-choice,
.brn-fieldset.is-invalid .brn-check {
  border-color: var(--kd-rebar);
}
.brn-error-text {
  display: none;
  color: var(--kd-rebar);
  font-size: 12px;
  font-weight: 700;
}
.is-invalid .brn-error-text { display: block; }
.brn-choice-grid,
.brn-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.brn-choice,
.brn-check {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 52px;
  padding: 14px;
  border: 1px solid var(--kd-line);
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.k-quote--standalone .brn-choice,
.k-quote--standalone .brn-check {
  min-height: 48px;
  padding: 12px;
}
.brn-choice input,
.brn-check input {
  margin: 2px 0 0;
  accent-color: var(--kd-accent);
}
.brn-choice span,
.brn-check span {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
}
.brn-choice em,
.brn-check em {
  display: block;
  margin-top: 3px;
  color: var(--kd-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
}
.brn-choice:has(input:checked),
.brn-check:has(input:checked) {
  background: rgba(245,195,64,0.16);
  border-color: var(--kd-accent-d);
  box-shadow: inset 0 0 0 1px var(--kd-accent-d);
}
.brn-form__errors {
  margin-top: 20px;
  background: rgba(232,123,46,0.1);
  border-left: 3px solid var(--kd-rebar);
  padding: 12px 14px;
  color: var(--kd-ink);
  font-weight: 700;
  font-size: 13px;
}
.brn-form__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--kd-line);
}
.k-quote--standalone .brn-form__actions {
  margin-top: 20px;
  padding-top: 18px;
}
.brn-form__actions .k-btn[hidden] { display: none; }
.brn-save-note {
  color: var(--kd-muted);
  margin-top: 14px;
  text-align: right;
}
.brn-complete__mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--kd-accent);
  color: var(--kd-ink);
  font-size: 28px;
  font-weight: 900;
  border-radius: 50%;
}
.brn-complete p {
  color: var(--kd-muted);
  max-width: 62ch;
  margin: 18px 0 28px;
}
.brn-complete .brn-complete__fine {
  margin-top: -12px;
  font-size: 14px;
}
.brn-complete__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Why Us
   ============================================================ */
.k-why { background: var(--kd-ink); color: #fff; padding: 120px 0; }
.k-why__grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 80px; align-items: start;
}
.k-why__head h2 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(44px, 5vw, 80px); line-height: 0.95;
  margin: 16px 0 22px; letter-spacing: -0.01em;
}
.k-why__head h2 .accent { color: var(--kd-accent); }
.k-lede--onDark {
  font-size: 18px; color: rgba(255,255,255,0.7);
  max-width: 46ch; margin: 0 0 32px;
}
.k-why__list {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--kd-line-dk);
}
.k-why__list li {
  display: grid; grid-template-columns: 60px 1fr 40px;
  gap: 20px; padding: 22px 0;
  border-bottom: 1px solid var(--kd-line-dk);
  align-items: start;
}
.k-why__list .num {
  font-family: var(--ff-narrow); font-size: 12px;
  letter-spacing: 0.14em; color: var(--kd-accent);
  font-weight: 700; padding-top: 4px;
}
.k-why__list h4 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 22px; margin: 0 0 4px; color: #fff;
}
.k-why__list p { color: rgba(255,255,255,0.65); font-size: 15px; margin: 0; }
.k-why__list .arr { color: var(--kd-accent); font-size: 22px; padding-top: 4px; text-align: right; }

/* ============================================================
   Testimonials
   ============================================================ */
.k-testimonials { background: var(--kd-cream); padding: 120px 0; }
.k-testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.k-testimonial {
  background: var(--kd-paper);
  padding: 32px;
  border-radius: 4px;
  border: 1px solid var(--kd-line);
  display: flex; flex-direction: column;
}
.k-testimonial .stars { color: var(--kd-accent); font-size: 16px; letter-spacing: 0.1em; margin-bottom: 16px; }
.k-testimonial q {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 22px; line-height: 1.3;
  color: var(--kd-ink);
  quotes: "\201C" "\201D";
  margin-bottom: 24px;
  display: block;
  flex: 1;
}
.k-testimonial footer { display: flex; gap: 14px; align-items: center; border-top: 1px solid var(--kd-line); padding-top: 18px; }
.k-testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--kd-concrete); flex-shrink: 0; }
.k-testimonial .name { font-weight: 700; font-size: 15px; }
.k-testimonial .role { font-size: 13px; color: var(--kd-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.k-faq { background: var(--kd-paper); padding: 120px 0; }
.k-faq__grid {
  display: grid; grid-template-columns: 0.75fr 1.25fr;
  gap: 80px; align-items: start;
}
.k-faq__grid h2 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(44px, 5vw, 80px); line-height: 0.95;
  margin: 16px 0 22px; letter-spacing: -0.01em;
}
.k-accordion { border-top: 1px solid var(--kd-line); }
.k-acc {
  border-bottom: 1px solid var(--kd-line);
  padding: 0;
}
.k-acc summary {
  padding: 22px 40px 22px 0;
  position: relative;
  cursor: pointer;
  list-style: none;
  font-family: var(--ff-display); font-weight: 400;
  font-size: 26px; line-height: 1.2;
  color: var(--kd-ink);
}
.k-acc summary::-webkit-details-marker { display: none; }
.k-acc summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--kd-cream);
  border-radius: 50%;
  font-weight: 400; font-size: 22px;
  transition: transform 0.2s, background 0.2s;
}
.k-acc[open] summary::after {
  content: "–";
  background: var(--kd-accent);
}
.k-acc .a {
  padding: 0 80px 28px 0;
  font-size: 15.5px; line-height: 1.65;
  color: var(--kd-muted);
}

/* ============================================================
   Final CTA
   ============================================================ */
.k-final {
  position: relative;
  padding: 140px 0;
  color: #fff;
  overflow: hidden;
}
.k-final__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=2400&q=80&auto=format&fit=crop');
  background-size: cover; background-position: center;
  filter: grayscale(0.3);
}
.k-final__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(14,14,14,0.6) 0%, rgba(14,14,14,0.95) 70%),
    linear-gradient(180deg, rgba(14,14,14,0.7), rgba(14,14,14,0.95));
}
.k-final__inner { position: relative; z-index: 2; text-align: center; }
.k-final__h {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(60px, 8vw, 140px); line-height: 0.95;
  margin: 18px 0 26px; letter-spacing: -0.02em;
}
.k-final__h .accent { color: var(--kd-accent); }
.k-final__sub {
  font-size: 19px; color: rgba(255,255,255,0.75);
  max-width: 56ch; margin: 0 auto 40px;
}
.k-final__ctas {
  display: flex; justify-content: center; margin-bottom: 48px;
}
.k-final__fine {
  display: flex; gap: 36px; justify-content: center; flex-wrap: wrap;
  font-family: var(--ff-narrow); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.k-final__fine span { display: inline-flex; gap: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.k-footer { background: #060606; color: rgba(255,255,255,0.7); padding: 80px 0 32px; }
.k-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.k-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.k-footer p { font-size: 14px; line-height: 1.6; max-width: 38ch; margin: 0 0 18px; }
.k-footer__badges { display: flex; gap: 14px; }
.k-footer__badges span {
  font-family: var(--ff-narrow); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  padding: 4px 8px; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px;
}
.k-footer nav { display: flex; flex-direction: column; gap: 10px; }
.k-footer nav h5 {
  font-family: var(--ff-narrow); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--kd-accent); margin: 0 0 6px; font-weight: 700;
}
.k-footer nav a { font-size: 14px; color: rgba(255,255,255,0.7); }
.k-footer nav a:hover { color: #fff; }
.k-footer__disclaimer {
  max-width: none !important;
  margin: 26px 0 0 !important;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.46);
  font-size: 12px !important;
  line-height: 1.65 !important;
}
.k-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; flex-wrap: wrap; gap: 14px;
  font-size: 13px;
}
.k-footer__bottom div { display: flex; gap: 20px; }

/* ============================================================
   Handoff Appendix sections
   ============================================================ */
.handoff-section { padding: 100px 0; background: var(--kd-paper); }
.handoff-section--ink { background: var(--kd-ink); color: #fff; }
.handoff-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.handoff-title h2 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: clamp(40px, 4.4vw, 68px);
  margin: 0; letter-spacing: -0.01em;
}
.handoff-section--ink .handoff-title h2 { color: #fff; }
.handoff-lede {
  font-size: 17px; color: var(--kd-muted); margin: 0 0 48px;
  max-width: 72ch;
}
.handoff-section--ink .handoff-lede { color: rgba(255,255,255,0.65); }

.handoff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.handoff-card {
  background: var(--kd-cream);
  padding: 28px;
  border-radius: 4px;
  border: 1px solid var(--kd-line);
}
.handoff-card--ink { background: #1a1a1a; border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.handoff-card--ink h4, .handoff-card--ink li strong { color: #fff; }
.handoff-card h4 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 22px; margin: 0 0 16px;
}
.handoff-card h5 {
  font-family: var(--ff-narrow); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--kd-rebar); margin: 0 0 10px; font-weight: 700;
}
.handoff-card ul { padding-left: 18px; margin: 0; font-size: 14px; line-height: 1.7; }
.handoff-card li { margin-bottom: 6px; }
.handoff-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.handoff-table td, .handoff-table th {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: left;
  vertical-align: middle;
}
.handoff-table th {
  font-family: var(--ff-narrow); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--kd-muted); font-weight: 700;
}
.handoff-table code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 2px;
}
.sw {
  display: inline-block; width: 22px; height: 22px; border-radius: 3px;
  vertical-align: middle;
}

/* Block list */
.handoff-blocks {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
  counter-reset: blocklist;
}
.handoff-blocks > li {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 24px; padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  align-items: start;
}
.handoff-blocks > li:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.handoff-blocks .step {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 40px; color: var(--kd-accent);
  line-height: 1;
}
.handoff-blocks h4 {
  font-family: var(--ff-display); font-weight: 400;
  font-size: 24px; margin: 0 0 10px; color: #fff;
}
.handoff-blocks h4 code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 15px; color: var(--kd-accent);
  background: rgba(245,195,64,0.12); padding: 2px 8px; border-radius: 2px;
  font-weight: 400;
}
.handoff-blocks p { color: rgba(255,255,255,0.75); font-size: 15px; line-height: 1.6; margin: 0 0 8px; }
.handoff-blocks ul { padding-left: 18px; margin: 8px 0 0; color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.7; }
.handoff-blocks code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 13px;
  background: rgba(255,255,255,0.08);
  padding: 2px 6px; border-radius: 2px;
  color: var(--kd-accent);
}
.handoff-note {
  margin-top: 12px !important;
  padding: 12px 14px;
  background: rgba(232,123,46,0.1);
  border-left: 3px solid var(--kd-rebar);
  font-size: 13px !important;
  border-radius: 0 3px 3px 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .k-header__nav { display: none; }
  .k-header .k-container { gap: 20px; }
  .k-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .k-section-head { grid-template-columns: 1fr; gap: 24px; }
  .k-quote__grid { grid-template-columns: 1fr; }
  .k-quote__intro { position: static; }
  .k-why__grid, .k-faq__grid { grid-template-columns: 1fr; gap: 40px; }
  .k-audience__grid { grid-template-columns: repeat(2, 1fr); }
  .k-how__rail { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .k-step { border-right: none; padding: 0 !important; }
  .k-tabs--vertical { grid-template-columns: 1fr; }
  .k-tabs__panels { padding: 32px; }
  .k-stats__grid { grid-template-columns: 1fr; }
  .handoff-grid { grid-template-columns: 1fr; }
  .k-footer__grid { grid-template-columns: 1fr 1fr; }
  .k-testimonials__grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .k-header__nav { display: none; }
  .k-hero {
    min-height: auto;
    padding: 150px 0 82px;
  }
  .k-hero__bg { background-position: 70% center; }
  .k-hero h1 { font-size: clamp(56px, 18vw, 86px); }
  .k-hero h1 .h1-line { white-space: normal; }
  .k-hero__ctas .k-btn {
    width: 100%;
    white-space: normal;
  }
  .k-hero__trust {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 22px;
  }
  .k-stat:nth-child(2) { border-right: none; }
  .k-stat {
    padding-right: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }
  .k-stat:nth-child(n+3) { border-bottom: none; }
  .k-trust-strip__row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .k-trust-strip .cell { border-right: none; padding: 8px 0; }
  .k-audience__grid { grid-template-columns: 1fr; }
  .k-how__rail { grid-template-columns: 1fr; }
  .k-quote { padding: 82px 0; }
  .k-quote--standalone {
    padding: 12px 0;
  }
  .k-quote__solo {
    padding-left: 12px;
    padding-right: 12px;
  }
  .k-quote__proof,
  .brn-fields,
  .brn-choice-grid,
  .brn-check-grid {
    grid-template-columns: 1fr;
  }
  .k-quote__proof div,
  .k-quote__proof div:nth-child(2),
  .k-quote__proof div:last-child {
    border-right: none;
    border-bottom: 1px solid var(--kd-line-dk);
    padding: 18px 0;
  }
  .k-quote__proof div:last-child { border-bottom: none; }
  .brn-form,
  .brn-complete {
    padding: 24px;
  }
  .k-quote--standalone .brn-form,
  .k-quote--standalone .brn-complete {
    padding: 18px;
  }
  .brn-form__top {
    flex-direction: column;
    gap: 12px;
  }
  .brn-form__actions {
    flex-direction: column-reverse;
  }
  .brn-form__actions .k-btn {
    width: 100%;
    white-space: normal;
  }
  .brn-save-note { text-align: left; }
  .k-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .handoff-bar__actions { gap: 6px; }
  .handoff-bar__actions .toggle span { display: none; }
}
