/* ------------------------------------------------------------------
   Brand tokens, taken from the logo.
------------------------------------------------------------------ */
:root {
  --color-ink: #0a0d11;
  --color-graphite: #1c2127;
  --color-steel: #8a9199;
  --color-paper: #e8ecef;
  --color-signal: #22d3ee;
  --color-signal-bright: #67e3f7;
  --color-signal-deep: #0e7490;
  --color-warn: #ffb4a2;

  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --edge: rgba(138, 145, 153, 0.22);
  --gut: clamp(20px, 5vw, 64px);
  --nav-h: 104px;
}

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0;
}
p { margin: 0; }
a { color: var(--color-signal); }
img { max-width: 100%; height: auto; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--color-signal); outline-offset: 2px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-signal); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--color-signal-deep); flex-shrink: 0; }

/* ---------------- nav ---------------- */
/* Sits transparent over the hero, then turns solid and slims once the page scrolls. */
.kd-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.kd-nav-scrolled, .kd-nav-open {
  background: rgba(10, 13, 17, 0.92); backdrop-filter: blur(10px);
  border-bottom-color: var(--edge);
}
.admin-bar .kd-nav { top: 32px; }
.kd-nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; height: var(--nav-h); gap: 20px; transition: height 0.25s ease;
}
.kd-mark { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.kd-mark img { display: block; width: auto; height: 76px; transition: height 0.25s ease; }
.kd-nav-scrolled .wrap { height: 84px; }
.kd-nav-scrolled .kd-mark img { height: 58px; }
.kd-links { display: flex; align-items: center; gap: 6px; }
.kd-link {
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  color: var(--color-paper); text-decoration: none; padding: 10px 13px;
  border: 1px solid transparent; background: none; cursor: pointer; white-space: nowrap;
  transition: color 0.15s;
}
.kd-link:hover { color: var(--color-signal); }
.kd-link[aria-current="page"] { color: var(--color-signal); border-bottom-color: var(--color-signal); }
.kd-cta {
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  color: var(--color-ink); background: var(--color-signal);
  text-decoration: none; padding: 12px 18px; white-space: nowrap;
  transition: background 0.15s;
}
.kd-cta:hover { background: var(--color-signal-bright); }
.kd-phone {
  font-family: var(--font-mono); font-size: 14px; color: var(--color-paper);
  text-decoration: none; padding: 10px 12px; white-space: nowrap;
}
.kd-phone:hover { color: var(--color-signal); }

.kd-drop { position: relative; }
.kd-drop-panel {
  position: absolute; top: calc(100% + 14px); left: 0; min-width: 310px;
  background: var(--color-graphite); border: 1px solid var(--edge);
  padding: 8px; display: none; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.kd-drop[data-open="true"] .kd-drop-panel { display: block; animation: kdIn 0.18s ease-out; }
.kd-drop-panel a {
  display: block; text-decoration: none; color: var(--color-paper);
  padding: 11px 13px; font-size: 15px; font-weight: 600; border-left: 2px solid transparent;
}
.kd-drop-panel a:hover { background: var(--color-ink); border-left-color: var(--color-signal); color: var(--color-signal); }
.kd-drop-panel a small { display: block; font-weight: 400; font-size: 12.5px; color: var(--color-steel); margin-top: 2px; }
.kd-drop-panel .kd-drop-all { border-top: 1px solid var(--edge); margin-top: 6px; }
.kd-burger {
  display: none; background: none; border: 1px solid var(--edge); color: var(--color-paper);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  padding: 11px 14px; cursor: pointer; text-transform: uppercase;
}

/* ---------------- buttons ---------------- */
.kd-btn {
  display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 16px;
  background: var(--color-signal); color: var(--color-ink); text-decoration: none;
  padding: 16px 28px; border: 1px solid var(--color-signal); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.kd-btn:hover { background: var(--color-signal-bright); border-color: var(--color-signal-bright); transform: translateY(-2px); }
.kd-btn:active { transform: none; }
.kd-btn-ghost { background: none; color: var(--color-paper); border-color: var(--color-paper); }
.kd-btn-ghost:hover { background: var(--color-paper); border-color: var(--color-paper); color: var(--color-ink); }
.kd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.kd-more {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; color: var(--color-signal); margin-top: 26px;
}
.kd-more::after { content: " →"; display: inline-block; transition: transform 0.2s; }
.kd-more:hover::after { transform: translateX(5px); }

/* ---------------- animated thread background ---------------- */
/* threads.js draws into this; the mask keeps it off the text on the left. */
.kd-threads {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 24%, #000 80%);
  mask-image: linear-gradient(90deg, transparent 24%, #000 80%);
}

/* ---------------- home hero ---------------- */
.kd-hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 190px;
  background:
    radial-gradient(ellipse 60% 70% at 85% 30%, rgba(14, 116, 144, 0.34), transparent 70%),
    var(--color-ink);
}
.kd-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; pointer-events: none;
  background: linear-gradient(transparent, var(--color-ink));
}
.kd-hero .wrap { position: relative; z-index: 1; width: 100%; }
.kd-hero h1 { font-size: clamp(40px, 6.3vw, 92px); margin: 26px 0 0; max-width: 11.5em; }
.kd-hero h1 em { font-style: normal; color: var(--color-signal); }
.kd-hero-sub { color: var(--color-paper); opacity: 0.78; font-size: clamp(18px, 1.6vw, 21px); margin-top: 28px; max-width: 31em; }
.kd-hero-terms { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-steel); margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.kd-hero-terms b { color: var(--color-paper); font-weight: 600; }

/* ---------------- service tiles (overlap the hero) ---------------- */
.kd-tiles-sec { position: relative; z-index: 2; margin-top: -120px; }
.kd-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kd-tile {
  display: flex; flex-direction: column; min-height: 340px; padding: 34px 32px 30px;
  background: var(--color-signal); color: var(--color-ink); text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}
.kd-tile:nth-child(even) { background: var(--color-signal-deep); color: var(--color-paper); }
.kd-tile:hover { transform: translateY(-8px); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); }
.kd-tile svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.kd-tile h3 { font-size: clamp(25px, 2.5vw, 32px); margin-top: 22px; max-width: 9em; }
.kd-tile-n { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; margin-top: 10px; opacity: 0.75; }
.kd-tile p { font-size: 15.5px; margin-top: 26px; flex-grow: 1; opacity: 0.9; }
.kd-tile-go { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 26px; }
.kd-tile-go::after { content: " →"; display: inline-block; transition: transform 0.2s; }
.kd-tile:hover .kd-tile-go::after { transform: translateX(6px); }

/* ---------------- sections ---------------- */
.kd-sec { padding: clamp(64px, 9vw, 128px) 0; }
.kd-sec-line { border-top: 1px solid var(--edge); }
.kd-sec h2 { font-size: clamp(30px, 4vw, 50px); margin-top: 18px; max-width: 15em; }
.kd-lead { color: var(--color-steel); margin-top: 18px; max-width: 42em; font-size: 18px; }

/* Text on the left, chat widget on the right. */
.kd-about { display: grid; grid-template-columns: 1fr minmax(320px, 400px); gap: clamp(36px, 7vw, 110px); align-items: center; }
.kd-about h2 { margin-top: 18px; }
.kd-widget {
  border: 1px solid var(--edge); background: var(--color-graphite);
  min-height: 560px; overflow: hidden; position: relative;
}
.kd-widget::before, .kd-widget::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--color-signal); z-index: 1; pointer-events: none; }
.kd-widget::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.kd-widget::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* Light band of headline numbers. */
.kd-stats { background: var(--color-paper); color: var(--color-ink); padding: clamp(48px, 6vw, 84px) 0; }
.kd-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.kd-stat { text-align: center; padding: 6px 18px; border-left: 1px solid rgba(10, 13, 17, 0.14); }
.kd-stat:first-child { border-left: 0; }
.kd-stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -0.03em; color: var(--color-signal-deep); }
.kd-stat-lab { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: #4b535c; margin-top: 14px; }

/* ---------------- demo video ---------------- */
.kd-sec-video { border-bottom: 1px solid var(--edge); }
.kd-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.kd-video-frame { position: relative; max-width: 980px; margin-top: 40px; border: 1px solid var(--edge); }
.kd-video-frame::before, .kd-video-frame::after { content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--color-signal); pointer-events: none; }
.kd-video-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.kd-video-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.kd-video-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--color-steel); margin-top: 14px; letter-spacing: 0.06em; }

.kd-play { display: inline-flex; align-items: center; gap: 12px; }
.kd-play span { color: var(--color-signal); font-size: 13px; transition: color 0.15s; }
.kd-play:hover span { color: var(--color-ink); }
.kd-play small { font-family: var(--font-mono); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }

.kd-video-modal { width: min(1100px, 92vw); padding: 0; border: 1px solid var(--edge); background: #000; overflow: visible; }
.kd-video-modal::backdrop { background: rgba(5, 7, 10, 0.88); backdrop-filter: blur(4px); }
.kd-video-close {
  position: absolute; top: -48px; right: 0; width: 40px; height: 40px;
  background: none; border: 1px solid var(--edge); color: var(--color-paper);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.kd-video-close:hover { border-color: var(--color-signal); color: var(--color-signal); }

/* ---------------- stages ---------------- */
.kd-stages { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border: 1px solid var(--edge); }
.kd-stages-bar {
  position: absolute; top: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--color-signal); transform: scaleX(0); transform-origin: left center;
}
.kd-stage { padding: 30px 28px; border-right: 1px solid var(--edge); }
.kd-stage:last-child { border-right: 0; }
.kd-stage-n { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-signal); letter-spacing: 0.14em; }
.kd-stage h3 { font-size: 28px; margin: 12px 0 10px; }
.kd-stage p { color: var(--color-steel); font-size: 15.5px; }
.kd-stage-then { font-family: var(--font-mono); font-size: 11.5px; color: var(--color-steel); margin-top: 16px; padding-top: 14px; border-top: 1px dotted var(--edge); }

/* ---------------- terms ---------------- */
.kd-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--edge); border: 1px solid var(--edge); margin-top: 44px; }
.kd-term { background: var(--color-ink); padding: 30px 28px; }
.kd-term h3 { font-size: 20px; margin-bottom: 10px; }
.kd-term p { color: var(--color-steel); font-size: 15px; }

/* ---------------- inner page hero ---------------- */
.kd-page-head {
  position: relative; overflow: hidden;
  min-height: 64vh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 70px) 0 clamp(48px, 6vw, 84px);
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(14, 116, 144, 0.3), transparent 70%),
    var(--color-ink);
  border-bottom: 1px solid var(--edge);
}
.kd-page-head .wrap { position: relative; z-index: 1; width: 100%; }
.kd-page-head h1 { font-size: clamp(44px, 8vw, 116px); margin-top: 20px; letter-spacing: -0.035em; }
.kd-page-head h1 em { font-style: normal; color: var(--color-signal); }
.kd-page-head .kd-lead { color: var(--color-paper); font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2vw, 25px); line-height: 1.3; max-width: 24em; margin: 30px 0 0 clamp(0px, 24vw, 330px); }
.kd-page-head .kd-lead em { font-style: normal; color: var(--color-signal); }
.kd-page-head .kd-actions { margin-left: clamp(0px, 24vw, 330px); }
.kd-back { font-family: var(--font-mono); font-size: 12px; color: var(--color-steel); text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; }
.kd-back:hover { color: var(--color-signal); }

/* ---------------- services list ---------------- */
.kd-rows { margin-top: 20px; border-top: 1px solid var(--edge); }
.kd-row {
  display: grid; grid-template-columns: 130px 1fr 1.1fr auto; gap: clamp(18px, 3vw, 44px); align-items: center;
  padding: clamp(28px, 4vw, 52px) 0; border-bottom: 1px solid var(--edge);
  text-decoration: none; color: var(--color-paper); transition: background 0.25s, padding 0.25s;
}
.kd-row:hover { background: var(--color-graphite); padding-left: 22px; padding-right: 22px; }
.kd-row-n { font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 6vw, 84px); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--color-signal-deep); transition: color 0.25s; }
.kd-row:hover .kd-row-n { color: var(--color-signal); -webkit-text-stroke-color: var(--color-signal); }
.kd-row h3 { font-size: clamp(24px, 2.8vw, 36px); }
.kd-row p { color: var(--color-steel); font-size: 16px; }
.kd-row-go { font-family: var(--font-mono); font-size: 22px; color: var(--color-signal); transition: transform 0.2s; }
.kd-row:hover .kd-row-go { transform: translateX(6px); }

/* ---------------- service detail ---------------- */
.kd-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.kd-does { list-style: none; padding: 0; margin: 26px 0 0; }
.kd-does li { padding: 16px 0 16px 26px; border-top: 1px solid var(--edge); position: relative; color: var(--color-steel); }
.kd-does li::before { content: ""; position: absolute; left: 0; top: 27px; width: 12px; height: 1px; background: var(--color-signal); }
.kd-does li b { color: var(--color-paper); display: block; font-weight: 800; font-family: var(--font-display); font-size: 19px; margin-bottom: 3px; }
.kd-benefit { border: 1px solid var(--color-signal-deep); background: var(--color-graphite); padding: 30px 28px; position: sticky; top: 110px; }
.kd-benefit h3 { font-size: 21px; color: var(--color-signal); margin-bottom: 14px; }
.kd-benefit p { color: var(--color-paper); font-size: 16px; }
.kd-benefit p + p { margin-top: 12px; color: var(--color-steel); }
.kd-inc { font-family: var(--font-mono); font-size: 12px; color: var(--color-steel); margin-top: 22px; padding-top: 18px; border-top: 1px dotted var(--edge); letter-spacing: 0.08em; }
.kd-inc b { color: var(--color-signal); font-weight: 600; }

/* ---------------- pricing ---------------- */
/* Fits on one screen: compact heading, then single services and bundles in two tight rows. */
.kd-price-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 2px) 0 30px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 5%, rgba(14, 116, 144, 0.26), transparent 70%),
    var(--color-ink);
  border-bottom: 1px solid var(--edge);
}
.kd-price-hero .wrap { position: relative; z-index: 1; }
.kd-price-hero .kd-threads { opacity: 0.35; }
.kd-price-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.kd-price-head h1 { font-size: clamp(38px, 3.8vw, 52px); margin-top: 8px; letter-spacing: -0.035em; }
.kd-price-head .kd-lead { color: var(--color-paper); font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0 0 6px; max-width: 26em; }

.kd-price-group { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--edge); }
.kd-price-group-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-signal); }
.kd-price-group-line { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--color-paper); }

.kd-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; align-items: stretch; }
.kd-prices-4 { grid-template-columns: repeat(4, 1fr); }
.kd-price-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--edge); background: var(--color-graphite); padding: 14px 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.kd-price-card:hover { border-color: var(--color-signal-deep); transform: translateY(-3px); }
.kd-price-featured, .kd-price-featured:hover { border-color: var(--color-signal); }
.kd-price-tag {
  position: absolute; top: -1px; right: -1px; background: var(--color-signal); color: var(--color-ink);
  font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; padding: 4px 9px;
}
.kd-price-card h3 { font-size: 18px; letter-spacing: -0.015em; }
.kd-price-featured h3 { padding-right: 84px; }
/* Some bundle names wrap to two lines; reserve two on all so the prices line up. */
.kd-prices-4 .kd-price-card h3 { min-height: 2.25em; line-height: 1.12; }
.kd-price { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -0.03em; margin-top: 8px; }
.kd-price small { font-family: var(--font-mono); font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--color-steel); margin-left: 3px; }
.kd-price-save { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-signal); margin-top: 6px; }
.kd-price-save sup { font-size: 10px; }
.kd-price-note { color: var(--color-steel); font-size: 13px; line-height: 1.35; margin-top: 4px; min-height: 2.8em; }
.kd-price-card ul { list-style: none; margin: 6px 0 8px; padding: 0; flex-grow: 1; }
.kd-price-card li { position: relative; padding: 3px 0 3px 18px; border-top: 1px dotted var(--edge); color: var(--color-steel); font-size: 13.5px; line-height: 1.4; }
.kd-price-card li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 1px; background: var(--color-signal); }
.kd-price-card li b { color: var(--color-paper); font-weight: 600; }
.kd-price-actions { display: flex; align-items: center; gap: 14px; }
.kd-price-actions .kd-price-cta { flex: 1; }
.kd-price-more { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-signal); text-decoration: none; white-space: nowrap; }
.kd-price-more::after { content: " →"; }
.kd-price-cta {
  text-align: center; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 14.5px;
  padding: 9px; border: 1px solid var(--color-signal); color: var(--color-signal);
  transition: background 0.15s, color 0.15s;
}
.kd-price-cta:hover, .kd-price-featured .kd-price-cta { background: var(--color-signal); color: var(--color-ink); }
.kd-price-featured .kd-price-cta:hover { background: var(--color-signal-bright); border-color: var(--color-signal-bright); }
.kd-price-foot { color: var(--color-steel); font-size: 13px; margin-top: 10px; }
/* Pay now: filled so it reads as the main action; the smaller links stack beside it. */
.kd-price-cta.kd-price-pay { background: var(--color-signal); color: var(--color-ink); }
.kd-price-cta.kd-price-pay:hover { background: var(--color-signal-bright); border-color: var(--color-signal-bright); }
.kd-price-links { display: flex; flex-direction: column; gap: 6px; }
.kd-price-cta { white-space: nowrap; }
/* Bundle cards are narrow: button on top, small links in a row underneath. */
.kd-prices-4 .kd-price-actions { flex-direction: column; align-items: stretch; gap: 10px; }
.kd-prices-4 .kd-price-links { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
@media (max-width: 1100px) {
  .kd-prices-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- book ---------------- */
/* One screen: heading and steps on the left, calendar on the right, no separate page header. */
.kd-book-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 12px) 0 40px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 10%, rgba(14, 116, 144, 0.26), transparent 70%),
    var(--color-ink);
  border-bottom: 1px solid var(--edge);
}
.kd-book-hero .wrap { position: relative; z-index: 1; }
/* Fainter threads here: they run behind the steps text. */
.kd-book-hero .kd-threads { opacity: 0.4; }
.kd-book { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.kd-book-hero h1 { font-size: clamp(40px, 4.6vw, 64px); margin-top: 14px; letter-spacing: -0.035em; }
.kd-book-hero .kd-lead { color: var(--color-paper); font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.35; margin-top: 12px; max-width: 22em; }
.kd-book-steps { list-style: none; counter-reset: step; padding: 0; margin: 26px 0 0; }
.kd-book-steps li { counter-increment: step; position: relative; padding: 13px 0 13px 46px; border-top: 1px solid var(--edge); color: var(--color-steel); font-size: 15.5px; line-height: 1.5; }
.kd-book-steps li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 15px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--color-signal);
}
.kd-book-steps li b { display: block; color: var(--color-paper); font-family: var(--font-display); font-weight: 800; font-size: 17px; margin-bottom: 1px; }
.kd-book-alt { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--edge); color: var(--color-steel); font-size: 15.5px; }
.kd-book-alt a { font-family: var(--font-mono); color: var(--color-signal); text-decoration: none; white-space: nowrap; }
/* The calendar draws its own dark panel (brand/ghl-calendar.css). */
.kd-book-cal { position: relative; min-height: 560px; }
.kd-book-cal iframe { display: block; min-height: 560px; }

/* ---------------- service page ---------------- */
/* One screen: compact heading, then the list (two columns) beside the reasons. */
.kd-svc-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 0px) 0 32px;
  background:
    radial-gradient(ellipse 60% 80% at 85% 5%, rgba(14, 116, 144, 0.26), transparent 70%),
    var(--color-ink);
}
.kd-svc-hero .wrap { position: relative; z-index: 1; }
.kd-svc-hero .kd-threads { opacity: 0.35; }
.kd-svc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-top: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--edge); }
.kd-svc-head h1 { font-size: clamp(36px, 3.8vw, 52px); letter-spacing: -0.035em; }
.kd-svc-head > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; flex: 1; }
.kd-svc-head .kd-lead { color: var(--color-paper); font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; margin: 0 0 4px; max-width: 26em; }
/* With the video: title and line stacked on the left, video on the right. */
.kd-svc-head-video { align-items: center; flex-wrap: nowrap; }
.kd-svc-head-video > div:first-child { display: block; }
.kd-svc-head-video .kd-lead { margin-top: 12px; }

.kd-svc-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(24px, 3.5vw, 48px); align-items: start; margin-top: 16px; }
.kd-svc-does { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.kd-svc-does li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--edge); color: var(--color-steel); font-size: 14.5px; line-height: 1.45; }
.kd-svc-does li::before { content: ""; position: absolute; left: 0; top: 20px; width: 11px; height: 1px; background: var(--color-signal); }
.kd-svc-does li b { display: block; color: var(--color-paper); font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.25; margin-bottom: 2px; }

.kd-svc-why { position: static; padding: 20px 22px; }
.kd-svc-why h3 { font-size: 18px; margin-bottom: 10px; }
.kd-svc-why p { font-size: 14px; line-height: 1.5; }
.kd-svc-why p + p { margin-top: 9px; }
.kd-svc-cta { display: block; text-align: center; margin-top: 14px; padding: 10px 18px; font-size: 15px; }

/* AI Receptionist: the demo video sits above the list. */
.kd-svc-video { margin: 0; width: min(440px, 42%); flex-shrink: 0; }

/* ---------------- page content ---------------- */
.kd-legal { max-width: 68ch; }
.kd-legal h2 { font-size: 26px; margin-top: 44px; max-width: none; }
.kd-legal > h2:first-child { margin-top: 0; }
.kd-legal h3 { font-size: 18px; margin-top: 26px; letter-spacing: -0.01em; }
.kd-legal p, .kd-legal li { color: var(--color-steel); margin-top: 12px; line-height: 1.7; }
.kd-legal ul { padding-left: 1.2em; }
.kd-legal a { color: var(--color-signal); }

/* ---------------- closing call to action ---------------- */
.kd-band { position: relative; overflow: hidden; background: var(--color-signal); color: var(--color-ink); padding: clamp(56px, 8vw, 110px) 0; }
.kd-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.kd-band h2 { font-size: clamp(30px, 4.4vw, 58px); max-width: 13em; }
.kd-band p { font-size: 18px; margin-top: 14px; max-width: 34em; opacity: 0.85; }
.kd-band .kd-btn { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); font-size: 18px; padding: 20px 34px; }
.kd-band .kd-btn:hover { background: var(--color-graphite); border-color: var(--color-graphite); }

/* ---------------- footer ---------------- */
.kd-foot { padding: clamp(48px, 6vw, 84px) 0 0; }
.kd-foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 70px); }
.kd-foot-brand img { display: block; width: auto; height: 104px; }
.kd-foot-brand p { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--color-signal); margin-top: 14px; }
.kd-foot h3 { font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-steel); margin-bottom: 16px; }
.kd-foot-col a, .kd-foot-col span { display: block; color: var(--color-paper); text-decoration: none; font-size: 16px; padding: 4px 0; }
.kd-foot-col a:hover { color: var(--color-signal); }
.kd-foot-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  margin-top: clamp(36px, 5vw, 64px); padding: 22px 0 30px; border-top: 1px solid var(--edge);
  font-family: var(--font-mono); font-size: 12.5px; color: var(--color-steel);
}
.kd-foot-base a { color: var(--color-steel); text-decoration: none; }
.kd-foot-base a:hover { color: var(--color-signal); }

/* ---------------- motion ---------------- */
/* Set by the inline script in <head>; motion.js reveals these. Without it, everything is simply visible. */
.kd-anim [data-reveal],
.kd-anim [data-hero],
.kd-anim [data-split] { visibility: hidden; }

/* Each headline word sits in a clipping box and slides up into it. */
.kd-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.kd-word-in { display: inline-block; will-change: transform; }

@keyframes kdIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .kd-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-graphite); border-bottom: 1px solid var(--edge);
    flex-direction: column; align-items: stretch; padding: 10px; gap: 2px;
    /* The bar is fixed, so a menu taller than the screen has to scroll itself. */
    max-height: calc(100vh - 100%); max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
  }
  .kd-links[data-open="true"] { display: flex; }
  .kd-drop-panel, .kd-drop[data-open="true"] .kd-drop-panel { position: static; display: block; border: 0; background: none; box-shadow: none; padding: 0 0 0 10px; animation: none; }
  .kd-drop > .kd-link { display: none; }
  .kd-burger { display: block; }
  .kd-cta { text-align: center; margin-top: 8px; }
}
@media (max-width: 860px) {
  :root { --nav-h: 88px; }
  .kd-nav .wrap, .kd-nav-scrolled .wrap { height: 88px; }
  .kd-mark img, .kd-nav-scrolled .kd-mark img { height: 60px; }
  .kd-tiles, .kd-stages, .kd-terms, .kd-split, .kd-about, .kd-foot-grid, .kd-prices, .kd-book, .kd-svc-body, .kd-svc-does { grid-template-columns: 1fr; }
  .kd-svc-head-video { flex-wrap: wrap; }
  .kd-svc-video { width: 100%; }
  .kd-price-note, .kd-prices-4 .kd-price-card h3 { min-height: 0; }
  .kd-hero { min-height: 0; padding-bottom: 170px; }
  .kd-threads { opacity: 0.55; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
  .kd-tile { min-height: 0; }
  .kd-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .kd-stat:nth-child(odd) { border-left: 0; }
  .kd-stages-bar { display: none; }
  .kd-stage { border-right: 0; border-bottom: 1px solid var(--edge); }
  .kd-stage:last-child { border-bottom: 0; }
  .kd-page-head { min-height: 0; }
  .kd-page-head .kd-lead, .kd-page-head .kd-actions { margin-left: 0; }
  .kd-row { grid-template-columns: 64px 1fr; }
  .kd-row p { grid-column: 2; }
  .kd-row-go { display: none; }
  .kd-benefit { position: static; }
  .kd-foot-brand img { height: 84px; }
}
@media (max-width: 782px) {
  .admin-bar .kd-nav { top: 46px; }
}
@media (max-width: 600px) {
  /* WordPress un-fixes the admin bar at this width, so it scrolls away. */
  .admin-bar .kd-nav { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------------- homepage copy preview (front-page-v2.php) ---------------- */
.kd-preview-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; text-align: center;
  background: #f5b301; color: #0a0d11; font-family: var(--font-mono); font-size: 13px; padding: 8px 12px;
}
.kd-preview-bar a { color: #0a0d11; font-weight: 600; }
.kd-micro-cta { margin-top: 18px; color: var(--color-steel); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.kd-micro-cta a { color: var(--color-signal); text-decoration: none; font-family: var(--font-mono); font-style: normal; }
.kd-micro-play { background: none; border: 0; padding: 0; cursor: pointer; color: var(--color-paper); font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.kd-micro-play span { color: var(--color-signal); margin-right: 4px; }
.kd-micro-play:hover { color: var(--color-signal); }
.kd-micro-sep { color: var(--edge); }
.kd-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 14px; color: var(--color-paper); }
.kd-trust b { font-weight: 600; }
.kd-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.kd-pillar { display: flex; flex-direction: column; border: 1px solid var(--edge); background: var(--color-graphite); padding: 26px 24px; }
.kd-pillar-n { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-signal); }
.kd-pillar h3 { font-size: 22px; line-height: 1.15; margin-top: 12px; }
.kd-pillar p { color: var(--color-steel); font-size: 15px; margin-top: 12px; }
.kd-pillar ul { list-style: none; padding: 0; margin: 16px 0 0; flex-grow: 1; }
.kd-pillar li { padding: 8px 0; border-top: 1px dotted var(--edge); font-size: 14.5px; color: var(--color-paper); }
.kd-pillar .kd-more { margin-top: 18px; }
.kd-stage-then b { color: var(--color-paper); }
@media (max-width: 860px) { .kd-pillars { grid-template-columns: 1fr; } }
/* Preview homepage: hero content fits in one screen. */
.kd-hero-fit { min-height: 0; padding: calc(var(--nav-h) + 14px) 0 40px; }
.kd-hero-fit::after { height: 120px; }
.kd-hero-fit h1 { font-size: clamp(32px, min(4.3vw, 7vh), 64px); margin-top: 14px; max-width: 17em; }
.kd-hero-fit .kd-hero-sub { font-size: clamp(16px, 1.3vw, 19px); margin-top: 16px; max-width: 40em; }
.kd-hero-fit .kd-actions { margin-top: 22px; }
.kd-hero-fit .kd-micro-cta { margin-top: 14px; }
.kd-hero-fit .kd-trust { margin-top: 16px; }
@media (max-width: 600px) {
  .kd-hero-fit h1 { font-size: 31px; }
  .kd-hero-fit .kd-hero-sub { font-size: 15.5px; }
  .kd-hero-fit .kd-actions .kd-btn { padding: 12px 16px; font-size: 15px; }
  .kd-hero-fit .kd-trust { font-size: 13px; gap: 6px 16px; }
}
/* Preview homepage, live-page size: the longer headline sits on 4 lines. */
.kd-hero-v2:not(.kd-hero-fit) h1 { font-size: clamp(36px, 5.6vw, 80px); max-width: none; }
/* Homepage: tighter spacing between sections. */
.kd-hero-v2 { min-height: 0; padding-bottom: 80px; }
.kd-hero-v2::after { height: 120px; }
.home .kd-sec { padding: clamp(44px, 5.5vw, 76px) 0; }
.home .kd-pillars, .home .kd-terms { margin-top: 28px; }
.home .kd-stages { margin-top: 32px; }

/* ---------------- Website Development page, proposed version (single-service-websites-v2.php) ---------------- */
/* Hero fills the first screen, so the next section starts below the fold. */
.kd-svcv2-hero { padding-bottom: 72px; }
.kd-svcv2-hero h1 { font-size: clamp(30px, min(4.6vw, 7vh), 68px); max-width: none; margin-top: 18px; }
.kd-svcv2-hero .kd-hero-sub { max-width: 40em; }
.kd-svcv2-hero h1 em { font-style: normal; color: var(--color-signal); }
.kd-svcv2-hero .kd-hero-sub b { color: var(--color-paper); }
.kd-svcv2-tag { margin-top: 18px; }
/* The blue phrase gets its own line, and the lines above it are kept even. */
.kd-h1-fit { text-wrap: balance; }
.kd-h1-fit em { display: block; }
/* Hero with the demo video beside the headline; stacks below 960px. */
.kd-svcv2-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.kd-svcv2-split h1 { font-size: clamp(30px, min(3.4vw, 6vh), 48px); }
.kd-svcv2-video { margin: 18px 0 0; max-width: none; }
@media (max-width: 960px) {
  .kd-svcv2-split { grid-template-columns: 1fr; }
  .kd-svcv2-video { max-width: 560px; }
}
.kd-svcv2-sec { padding: clamp(44px, 5.5vw, 76px) 0; }
/* A lighter band so each section reads as its own block, not one continuous page. */
.kd-svcv2-alt { background: #12181f; border-bottom: 1px solid var(--edge); }
.kd-svcv2-alt .kd-pvs { background: var(--color-ink); }
.kd-svcv2-sec h2 { margin-top: 14px; }

/* Manage your subscription page. */
.kd-manage-note { color: var(--color-steel); font-size: 15px; line-height: 1.55; margin-top: 16px; }
.kd-manage-list { list-style: none; padding: 0; margin: 0 0 22px; }
.kd-manage-list li { position: relative; padding: 11px 0 11px 30px; border-top: 1px solid var(--edge); color: var(--color-paper); font-size: 17px; }
.kd-manage-list li:last-child { border-bottom: 1px solid var(--edge); }
.kd-manage-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--color-signal); font-weight: 700; }
.kd-svcv2-why a { color: var(--color-signal); }

/* Problem vs. fix: two columns per row, with column headings above. */
.kd-pvs { margin-top: 28px; border: 1px solid var(--edge); }
.kd-pvs-head, .kd-pvs-row { display: grid; grid-template-columns: 1fr 1fr; }
.kd-pvs-head span { padding: 12px 22px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-steel); border-bottom: 1px solid var(--edge); }
.kd-pvs-head span + span { color: var(--color-signal); border-left: 1px solid var(--edge); }
.kd-pvs-row + .kd-pvs-row { border-top: 1px solid var(--edge); }
.kd-pvs-problem, .kd-pvs-fix { padding: 18px 22px; font-size: 15px; line-height: 1.5; color: var(--color-steel); }
.kd-pvs-fix { background: var(--color-graphite); border-left: 1px solid var(--edge); }
.kd-pvs-problem b, .kd-pvs-fix b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: var(--color-paper); margin-bottom: 4px; }

.kd-svcv2-why { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.kd-svcv2-why h2 { margin-top: 0; }
.kd-svcv2-why p { color: var(--color-steel); font-size: 17px; line-height: 1.6; }
.kd-svcv2-why p + p { margin-top: 14px; }
.kd-comply { margin-top: 18px; }
.kd-comply li { font-size: 16px; }
.kd-svcv2-why b, .kd-svcv2-why em, .kd-svcv2-why strong { color: var(--color-paper); }

.kd-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.kd-band-call { color: var(--color-ink); font-family: var(--font-mono); font-size: 14px; text-decoration: none; border-bottom: 1px solid rgba(10, 13, 17, 0.4); }
.kd-band-call:hover { border-bottom-color: var(--color-ink); }

@media (max-width: 860px) {
  .kd-pvs-head { display: none; }
  .kd-pvs-row, .kd-svcv2-why { grid-template-columns: 1fr; }
  .kd-pvs-fix { border-left: 0; border-top: 1px dotted var(--edge); }
}
