/* KeepDriving Traffic School — theme styles
   Wheel Blue / Navy / Signal Yellow / Asphalt grays.
   --kd-blue, --kd-navy, --kd-yellow are overridden from the Customizer. */

:root {
	--kd-blue: #1846B8;
	--kd-navy: #0E2A6B;
	--kd-yellow: #FFC53D;
	--kd-yellow-hover: #FFD666;
	--kd-blue-tint: #E8EEFB;
	--kd-blue-soft: #D6E0F7;
	--kd-blue-line: #7F9BDD;
	--kd-yellow-tint: #FFF4D1;
	--kd-yellow-ink: #6B4E00;
	--kd-ink: #141A26;
	--kd-asphalt: #232A36;
	--kd-slate: #4A5466;
	--kd-steel: #C5CCD8;
	--kd-line: #DDE2EA;
	--kd-mist: #EEF1F5;
	--kd-white: #ffffff;
	--kd-green: #13795B;
	--kd-green-ink: #0B5A43;
	--kd-green-tint: #E3F4EC;
	--kd-font-display: "Plus Jakarta Sans", "Figtree", system-ui, sans-serif;
	--kd-font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--kd-radius: 14px;
	--kd-radius-lg: 24px;
	--kd-wrap: 1152px;
	--kd-gutter: 64px;
	--kd-shadow: 0 18px 40px rgba(8, 22, 60, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--kd-mist); color: var(--kd-ink); font-family: var(--kd-font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--kd-blue); }
a:hover { color: var(--kd-navy); }
:focus-visible { outline: 3px solid var(--kd-yellow); outline-offset: 3px; border-radius: 6px; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kd-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--kd-yellow); color: var(--kd-ink); font-weight: 800; padding: 12px 18px; border-radius: 10px; text-decoration: none; }
.kd-skip:focus { top: 12px; }

.kd-wrap { width: 100%; max-width: calc(var(--kd-wrap) + var(--kd-gutter) * 2); margin: 0 auto; padding-left: var(--kd-gutter); padding-right: var(--kd-gutter); }
.kd-narrow { max-width: calc(860px + var(--kd-gutter) * 2); }
.kd-mt { margin-top: 20px; }
.kd-mb { margin-bottom: 24px; }

/* ---------- Type ---------- */
.kd-h1 { font-family: var(--kd-font-display); font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -0.025em; }
.kd-h2 { font-family: var(--kd-font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.04; letter-spacing: -0.02em; }
.kd-h3 { font-family: var(--kd-font-display); font-weight: 800; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.02em; }
.kd-muted { color: var(--kd-slate); }
.kd-yellow { color: var(--kd-yellow); }
.kd-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kd-slate); }
.kd-eyebrow--light { color: var(--kd-blue-soft); }
.kd-link-strong { font-weight: 700; }
.kd-link-plain { display: inline-flex; align-items: center; gap: 6px; color: var(--kd-ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.kd-link-plain:hover { color: var(--kd-blue); }
.kd-pill { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.kd-pill--navy { background: var(--kd-navy); color: var(--kd-white); }
.kd-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--kd-yellow); flex-shrink: 0; }
.kd-tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--kd-blue-tint); color: var(--kd-blue); font-size: 13px; font-weight: 700; }
.kd-count { font-size: 13px; font-weight: 700; color: var(--kd-slate); background: var(--kd-mist); border-radius: 999px; padding: 1px 9px; }

/* ---------- Buttons ---------- */
.kd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--kd-radius); font-weight: 800; font-size: 16px; line-height: 1.1; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.kd-btn:hover { transform: translateY(-1px); }
.kd-btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; font-weight: 700; border-radius: 12px; }
.kd-btn--lg { min-height: 58px; padding: 0 28px; font-size: 17px; }
.kd-btn--block { width: 100%; }
.kd-btn--yellow { background: var(--kd-yellow); color: var(--kd-ink); }
.kd-btn--yellow:hover { background: var(--kd-yellow-hover); color: var(--kd-ink); }
.kd-btn--blue { background: var(--kd-blue); color: var(--kd-white); }
.kd-btn--blue:hover { background: var(--kd-navy); color: var(--kd-white); }
.kd-btn--ink { background: var(--kd-ink); color: var(--kd-white); }
.kd-btn--ink:hover { background: var(--kd-asphalt); color: var(--kd-white); }
.kd-btn--ghost { border-color: var(--kd-blue-line); color: var(--kd-white); font-weight: 700; }
.kd-btn--ghost:hover { background: var(--kd-navy); color: var(--kd-white); }
.kd-btn--line { border-color: var(--kd-steel); color: var(--kd-ink); font-weight: 700; background: var(--kd-white); }
.kd-btn--line:hover { border-color: var(--kd-blue); color: var(--kd-blue); }
.kd-btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header ---------- */
.kd-header { background: var(--kd-white); position: relative; z-index: 30; border-bottom: 1px solid var(--kd-line); }
.kd-header__inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kd-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--kd-ink); flex-shrink: 0; }
.kd-brand:hover { color: var(--kd-ink); }
.kd-brand__logo { width: 42px; height: 42px; object-fit: contain; }
.kd-brand__text { display: flex; flex-direction: column; line-height: 1; }
.kd-brand__name { font-family: var(--kd-font-display); font-weight: 800; font-size: 25px; letter-spacing: -0.02em; }
.kd-brand__tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--kd-slate); margin-top: 4px; }
.kd-nav { display: flex; align-items: center; gap: 32px; }
.kd-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.kd-menu a { color: var(--kd-ink); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.kd-menu a:hover, .kd-menu a[aria-current] { color: var(--kd-blue); box-shadow: inset 0 -3px 0 var(--kd-yellow); }
.kd-nav__actions { display: flex; align-items: center; gap: 18px; }
.kd-lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--kd-mist); }
.kd-lang a { min-width: 40px; min-height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; font-weight: 800; color: var(--kd-slate); text-decoration: none; }
.kd-lang a[aria-current] { background: var(--kd-white); color: var(--kd-blue); box-shadow: 0 1px 3px rgba(20, 26, 38, .15); }
.kd-nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--kd-mist); color: var(--kd-ink); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Hero ---------- */
.kd-hero { background: var(--kd-blue); color: var(--kd-white); overflow: hidden; position: relative; }
.kd-hero::before { content: ""; position: absolute; right: -180px; top: -140px; width: 720px; height: 720px; border-radius: 50%; border: 90px solid rgba(255, 255, 255, .04); pointer-events: none; }
.kd-hero .kd-wrap { position: relative; }
.kd-hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-top: 44px; }
.kd-hero__copy { display: flex; flex-direction: column; gap: 18px; }
.kd-hero__title { font-family: var(--kd-font-display); font-weight: 800; font-size: clamp(42px, 5.6vw, 72px); line-height: 1.02; letter-spacing: -0.025em; }
.kd-hero__tagline { font-family: var(--kd-font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); color: var(--kd-yellow); margin-top: -6px; }
.kd-hero__lead { max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--kd-blue-soft); }
.kd-hero__points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.kd-hero__points li { display: flex; align-items: center; gap: 8px; }
.kd-hero__points .kd-icon { color: var(--kd-yellow); }
.kd-hero__visual { display: flex; justify-content: center; }
.kd-hero__wheel { position: relative; width: 100%; max-width: 330px; margin: 10px 0; }
.kd-wheel { display: block; width: 100%; height: auto; }
.kd-hero__wheel .kd-wheel { filter: drop-shadow(0 30px 40px rgba(6, 18, 52, .45)); }
.kd-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--kd-white); color: var(--kd-ink); border-radius: 14px; padding: 10px 14px 10px 10px; box-shadow: var(--kd-shadow); white-space: nowrap; }
.kd-chip strong { display: block; font-size: 14px; line-height: 1.2; }
.kd-chip small { display: block; font-size: 12px; color: var(--kd-slate); font-weight: 600; }
.kd-chip--top { left: -70px; top: 6px; }
.kd-chip--bottom { right: -44px; bottom: 16px; }
.kd-chip--mid { left: -96px; bottom: 96px; }
.kd-chip__icon--yellow { background: var(--kd-yellow-tint); color: var(--kd-yellow-ink); }
.kd-chip__icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--kd-blue-tint); color: var(--kd-blue); flex-shrink: 0; }
.kd-chip__icon--green { background: var(--kd-green-tint); color: var(--kd-green); }

/* ---------- Course finder ---------- */
.kd-finder--hero { padding: 32px 0 40px; }
.kd-finder__form { background: var(--kd-white); color: var(--kd-ink); border-radius: 22px; padding: 22px 24px 18px; box-shadow: 0 26px 60px rgba(6, 18, 52, .35); }
.kd-finder--band .kd-finder__form { box-shadow: none; border: 1px solid var(--kd-line); }
.kd-finder__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.kd-finder__title { display: flex; align-items: center; gap: 10px; font-family: var(--kd-font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.kd-finder__title .kd-icon { color: var(--kd-blue); }
.kd-finder__meta { font-size: 14px; font-weight: 600; color: var(--kd-slate); }
.kd-finder__bar { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto; border: 2px solid var(--kd-line); border-radius: 16px; overflow: hidden; background: var(--kd-white); }
.kd-finder__field { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 8px; border-right: 2px solid var(--kd-line); position: relative; min-width: 0; }
.kd-finder__field:focus-within { background: var(--kd-blue-tint); }
.kd-finder__label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kd-slate); }
.kd-finder__label svg { color: var(--kd-blue); }
.kd-finder__field select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 4px 28px 4px 0; font-size: 18px; font-weight: 700; color: var(--kd-ink); width: 100%; cursor: pointer; min-height: 36px; text-overflow: ellipsis; }
.kd-finder__field select:focus { outline: none; }
.kd-finder__field::after { content: ""; position: absolute; right: 18px; bottom: 20px; width: 9px; height: 9px; border-right: 2.5px solid var(--kd-ink); border-bottom: 2.5px solid var(--kd-ink); transform: rotate(45deg); pointer-events: none; }
.kd-finder__field select:disabled { color: var(--kd-slate); cursor: not-allowed; font-weight: 600; }
.kd-finder__go { border-radius: 0; min-height: 76px; padding: 0 30px; font-size: 18px; }
.kd-finder__foot { margin-top: 12px; font-size: 14px; color: var(--kd-slate); }
.kd-finder__foot a { font-weight: 700; }
.kd-finder__fallback p { margin: 10px 0 18px; color: var(--kd-slate); max-width: 640px; }

/* Road stripe */
.kd-road { height: 16px; background: var(--kd-asphalt); position: relative; overflow: hidden; }
.kd-road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 3px; background: repeating-linear-gradient(90deg, var(--kd-yellow) 0 18px, transparent 18px 30px); }

/* ---------- Trust ---------- */
.kd-trust { background: var(--kd-white); border-bottom: 1px solid var(--kd-line); }
.kd-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
.kd-trust__item { display: flex; gap: 14px; align-items: flex-start; }
.kd-trust__item strong { display: block; font-size: 16px; }
.kd-trust__item span:not(.kd-icon-tile) { display: block; font-size: 14px; line-height: 1.45; color: var(--kd-slate); margin-top: 3px; }
.kd-icon-tile { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--kd-blue-tint); color: var(--kd-blue); display: flex; align-items: center; justify-content: center; }

/* ---------- Sections ---------- */
.kd-section { padding-top: 80px; padding-bottom: 88px; }
.kd-section--tight { padding-top: 56px; padding-bottom: 56px; }
.kd-section--flush-top { padding-top: 0; }
.kd-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.kd-section__aside { max-width: 400px; font-size: 17px; }

/* States grid */
.kd-states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kd-state { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 18px; text-decoration: none; color: var(--kd-ink); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.kd-state:hover { border-color: var(--kd-blue); color: var(--kd-ink); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(20, 26, 38, .08); }
.kd-state__code { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--kd-blue); color: var(--kd-yellow); display: flex; align-items: center; justify-content: center; font-family: var(--kd-font-display); font-weight: 800; font-size: 18px; }
.kd-state__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kd-state__body strong { font-size: 18px; }
.kd-state__body span { font-size: 14px; color: var(--kd-slate); font-weight: 600; }
.kd-state .kd-icon { color: var(--kd-blue); flex-shrink: 0; }

/* Steps */
.kd-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kd-step { background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.kd-step h3 { font-size: 23px; font-weight: 800; line-height: 1.2; }
.kd-step p { color: var(--kd-slate); font-size: 16px; }
.kd-step__top { display: flex; align-items: center; justify-content: space-between; color: var(--kd-blue); }
.kd-step__num { font-family: var(--kd-font-display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--kd-steel); }
.kd-step--dark { background: var(--kd-ink); border-color: var(--kd-ink); color: var(--kd-white); }
.kd-step--dark p { color: var(--kd-steel); }
.kd-step--dark .kd-step__top, .kd-step--dark .kd-step__num { color: var(--kd-yellow); }
.kd-turn-left { transform: rotate(-35deg); }
.kd-turn-right { transform: rotate(35deg); }

/* Split / why / FAQ preview */
.kd-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.kd-why { background: var(--kd-blue); color: var(--kd-white); border-radius: var(--kd-radius-lg); padding: 44px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.kd-why--compact { padding: 28px; gap: 12px; }
.kd-why__lead { color: var(--kd-blue-soft); }
.kd-checklist { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 17px; }
.kd-checklist li { display: flex; gap: 12px; align-items: flex-start; }
.kd-checklist .kd-icon { color: var(--kd-yellow); flex-shrink: 0; margin-top: 2px; }
.kd-checklist--ink .kd-icon { color: var(--kd-green); }
.kd-checklist--sm { font-size: 15px; gap: 10px; }
.kd-quick { display: flex; flex-direction: column; gap: 12px; }
.kd-quick .kd-h2 { margin-bottom: 8px; }
.kd-faq-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.kd-faq { background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 16px; padding: 0; }
.kd-faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; }
.kd-faq summary::-webkit-details-marker { display: none; }
.kd-faq summary::after { content: "+"; font-family: var(--kd-font-display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--kd-blue); flex-shrink: 0; }
.kd-faq[open] summary::after { content: "–"; }
.kd-faq__answer { padding: 0 22px 20px; font-size: 16px; color: var(--kd-slate); }

.kd-cta { background: var(--kd-yellow); }
.kd-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 60px; padding-bottom: 60px; }
.kd-cta__title { font-family: var(--kd-font-display); font-weight: 800; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.02em; color: var(--kd-ink); }

/* ---------- Inner page hero ---------- */
.kd-page-hero { background: var(--kd-blue); color: var(--kd-white); padding: 36px 0 56px; }
.kd-page-hero--short { padding-bottom: 44px; }
.kd-page-hero__inner { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.kd-page-hero__title { font-family: var(--kd-font-display); font-weight: 800; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.025em; max-width: 960px; }
.kd-page-hero--short .kd-page-hero__title { font-size: clamp(34px, 4.4vw, 54px); }
.kd-page-hero__lead { max-width: 680px; font-size: 19px; color: var(--kd-blue-soft); }
.kd-page-hero .kd-btn-row { margin-top: 8px; }
.kd-crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 600; }
.kd-crumbs li { display: flex; align-items: center; gap: 6px; color: var(--kd-blue-soft); }
.kd-crumbs li + li::before { content: "›"; opacity: .7; }
.kd-crumbs a { color: var(--kd-white); text-decoration: none; }
.kd-crumbs a:hover { color: var(--kd-yellow); text-decoration: underline; }
.kd-crumbs span[aria-current] { color: var(--kd-blue-soft); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cards ---------- */
.kd-card { background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: var(--kd-radius-lg); padding: 28px; }
.kd-card--lg { padding: 40px; }

/* ---------- Catalog ---------- */
.kd-catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.kd-catalog__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.kd-statenav { display: flex; flex-direction: column; gap: 2px; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 18px; padding: 12px; max-height: 70vh; overflow: auto; }
.kd-statenav__head { display: block; padding: 6px 10px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kd-slate); }
.kd-statenav a, .kd-topics a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; text-decoration: none; color: var(--kd-ink); }
.kd-statenav a:hover, .kd-topics a:hover { background: var(--kd-mist); color: var(--kd-blue); }
.kd-statenav a[aria-current] { background: var(--kd-blue); color: var(--kd-white); }
.kd-statenav a[aria-current] .kd-count { background: var(--kd-navy); color: var(--kd-yellow); }
.kd-catalog__main { display: flex; flex-direction: column; gap: 48px; }
.kd-state-group__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.kd-course-list { display: flex; flex-direction: column; gap: 14px; }
.kd-course { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 20px; padding: 26px 28px; transition: border-color .15s ease, box-shadow .15s ease; }
.kd-course:hover { border-color: var(--kd-blue-line); box-shadow: 0 12px 28px rgba(20, 26, 38, .07); }
.kd-course__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.kd-course__fact { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--kd-slate); }
.kd-course__title { font-family: var(--kd-font-display); font-weight: 800; font-size: 23px; line-height: 1.15; letter-spacing: -0.01em; }
.kd-course__title a { color: var(--kd-ink); text-decoration: none; }
.kd-course__title a:hover { color: var(--kd-blue); }
.kd-course__excerpt { margin-top: 8px; color: var(--kd-slate); font-size: 16px; }
.kd-course__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 150px; }
.kd-course__price { font-family: var(--kd-font-display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.kd-course__side .kd-btn { width: 100%; }
.kd-course__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none; }
.kd-help-card { background: var(--kd-ink); color: var(--kd-white); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.kd-help-card strong { font-family: var(--kd-font-display); font-weight: 800; font-size: 21px; }
.kd-help-card span { font-size: 15px; color: var(--kd-steel); }
.kd-help-card a { color: var(--kd-yellow); font-weight: 700; }

/* ---------- Course detail ---------- */
.kd-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.kd-detail__main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.kd-detail__side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
.kd-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px; }
.kd-facts li { background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kd-facts span { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--kd-slate); }
.kd-facts strong { font-size: 18px; }
.kd-enroll-card { background: var(--kd-blue); color: var(--kd-white); border-radius: var(--kd-radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.kd-enroll-card__price { font-family: var(--kd-font-display); font-weight: 800; font-size: 64px; line-height: .9; letter-spacing: -0.02em; }
.kd-enroll-card__foot { font-size: 14px; color: var(--kd-blue-soft); }
.kd-enroll-card__foot a { color: var(--kd-yellow); font-weight: 700; }
.kd-check-card__title { font-family: var(--kd-font-display); font-weight: 800; font-size: 21px; margin-bottom: 12px; }
.kd-check-card ol { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--kd-slate); }
.kd-detail__faq .kd-h2 { margin-bottom: 0; }
.kd-mobile-enroll { display: none; }

/* ---------- Prose ---------- */
.kd-prose { font-size: 17px; line-height: 1.7; }
.kd-prose > * + * { margin-top: 1em; }
.kd-prose h2 { font-family: var(--kd-font-display); font-weight: 800; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; margin-top: 1.5em; }
.kd-prose h2:first-child, .kd-prose h3:first-child { margin-top: 0; }
.kd-prose h3 { font-size: 20px; font-weight: 800; margin-top: 1.4em; }
.kd-prose ul, .kd-prose ol { padding-left: 1.3em; }
.kd-prose li + li { margin-top: .35em; }
.kd-prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-radius: 14px; background: var(--kd-yellow-tint); }
.kd-prose img { border-radius: 14px; }
.kd-prose .wp-block-button__link { background: var(--kd-yellow); color: var(--kd-ink); font-weight: 800; border-radius: var(--kd-radius); }

/* ---------- How it works ---------- */
.kd-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.kd-timeline__item { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: var(--kd-radius-lg); padding: 32px 40px; }
.kd-timeline__wheel { background: var(--kd-blue); border-radius: 22px; padding: 20px; display: flex; justify-content: center; }
.kd-timeline__wheel .kd-wheel { width: 120px; }
.kd-timeline__body { display: flex; flex-direction: column; gap: 10px; }
.kd-timeline__body > p { color: var(--kd-slate); max-width: 680px; }
.kd-timeline__body .kd-step__num { font-size: 32px; color: var(--kd-blue); }
.kd-timeline__body .kd-checklist { flex-direction: row; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; font-weight: 600; margin-top: 4px; }

/* ---------- FAQ page ---------- */
.kd-faq-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: start; }
.kd-faq-layout__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.kd-search { display: flex; align-items: center; gap: 10px; background: var(--kd-white); border: 2px solid var(--kd-line); border-radius: 14px; padding: 0 14px; color: var(--kd-slate); }
.kd-search:focus-within { border-color: var(--kd-blue); }
.kd-search input { border: 0; outline: none; background: transparent; min-height: 50px; width: 100%; font-size: 16px; color: var(--kd-ink); }
.kd-topics { display: flex; flex-direction: column; gap: 2px; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 18px; padding: 10px; }
.kd-faq-layout__main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.kd-faq-group { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 24px; }
.kd-faq-group .kd-h3 { margin-bottom: 6px; }
.kd-faq-empty { background: var(--kd-yellow-tint); border-radius: 14px; padding: 16px 20px; font-weight: 600; }

/* ---------- About ---------- */
.kd-split--about { align-items: center; grid-template-columns: 1.2fr 0.8fr; }
.kd-about-wheel { background: var(--kd-blue); border-radius: var(--kd-radius-lg); padding: 40px; display: flex; justify-content: center; }
.kd-about-wheel .kd-wheel { max-width: 300px; }
.kd-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kd-values li { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Contact ---------- */
.kd-contact { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.kd-contact__side { display: flex; flex-direction: column; gap: 20px; }
.kd-form { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.kd-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kd-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; }
.kd-form input, .kd-form textarea { border: 1.5px solid var(--kd-steel); border-radius: 12px; padding: 12px 14px; font-size: 16px; color: var(--kd-ink); background: var(--kd-white); min-height: 50px; }
.kd-form input:focus, .kd-form textarea:focus { outline: none; border-color: var(--kd-blue); box-shadow: 0 0 0 3px var(--kd-blue-tint); }
.kd-form__note { font-size: 13px; color: var(--kd-slate); }
.kd-form .kd-btn { align-self: flex-start; }
.kd-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kd-alert { margin-top: 16px; border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.kd-alert--good { background: var(--kd-green-tint); color: var(--kd-green-ink); }
.kd-alert--warn { background: var(--kd-yellow-tint); color: #5C4300; }
.kd-contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kd-contact-list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.kd-contact-list .kd-icon { color: var(--kd-blue); flex-shrink: 0; }
.kd-link-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--kd-ink); }
.kd-link-card:hover { border-color: var(--kd-blue); color: var(--kd-ink); }
.kd-link-card > span { flex: 1; display: flex; flex-direction: column; }
.kd-link-card small { color: var(--kd-slate); font-size: 14px; }
.kd-link-card .kd-icon { color: var(--kd-blue); flex-shrink: 0; }

/* Contact cards */
.kd-contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.kd-contact-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--kd-ink); }
a.kd-contact-card:hover { border-color: var(--kd-blue); color: var(--kd-ink); }
.kd-contact-card strong { font-family: var(--kd-font-display); font-weight: 800; font-size: 22px; line-height: 1.2; }
.kd-contact-card .kd-contact-card__email { font-size: 18px; word-break: normal; overflow-wrap: normal; }
.kd-contact-card small { color: var(--kd-slate); font-size: 14px; }
.kd-contact-card--blue { padding: 28px; gap: 10px; }
.kd-contact-card--blue strong { color: var(--kd-white); }
.kd-contact-card--blue .kd-btn { margin-top: auto; }

/* ---------- Legal ---------- */
.kd-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.kd-legal__toc { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 24px; }
.kd-legal__toc a { padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--kd-slate); font-weight: 600; font-size: 15px; }
.kd-legal__toc a:hover { background: var(--kd-white); color: var(--kd-blue); }
.kd-legal article { max-width: 820px; }

/* ---------- Blog ---------- */
.kd-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kd-post-card { display: flex; flex-direction: column; gap: 10px; }
.kd-post-card h2 a { color: var(--kd-ink); text-decoration: none; }

/* ---------- 404 ---------- */
.kd-hero--404 { padding: 72px 0; }
.kd-404 { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.kd-404__wheel { color: var(--kd-yellow); transform: rotate(-25deg); }

/* ---------- Admin API notice ---------- */
.kd-admin-note { margin-top: 18px; border: 2px dashed #B42318; background: #FDECEA; color: #5B1610; border-radius: 12px; padding: 14px 16px; font-size: 14px; text-align: left; }
.kd-admin-note ul { margin: 8px 0; padding-left: 18px; }
.kd-admin-note code { white-space: pre-wrap; word-break: break-word; font-size: 13px; }
.kd-admin-note p { margin-top: 6px; }


/* ---------- Homepage SEO sections ---------- */
.kd-center { text-align: center; }
.kd-section--white { background: var(--kd-white); border-top: 1px solid var(--kd-line); border-bottom: 1px solid var(--kd-line); }
.kd-split--what { grid-template-columns: 1.25fr 0.75fr; gap: 56px; }
.kd-what .kd-h1 { margin-bottom: 8px; }
.kd-what p { color: var(--kd-slate); font-size: 18px; }
.kd-reasons { background: var(--kd-blue); color: var(--kd-white); border-radius: var(--kd-radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 20px; }
.kd-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kd-type { border: 1px solid var(--kd-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 12px; background: var(--kd-mist); }
.kd-type h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.kd-type p { font-size: 15px; color: var(--kd-slate); }
.kd-types__more { margin-top: 28px; }
.kd-learn { display: flex; flex-direction: column; gap: 14px; }
.kd-learn__lead { color: var(--kd-slate); }
.kd-topic-grid { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kd-topic-grid li { display: flex; align-items: center; gap: 10px; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: 15px; }
.kd-topic-grid svg { color: var(--kd-blue); flex-shrink: 0; }
.kd-compare-wrap { display: flex; flex-direction: column; gap: 20px; }
.kd-compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--kd-white); border: 1px solid var(--kd-line); border-radius: 20px; overflow: hidden; font-size: 15px; }
.kd-compare th, .kd-compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--kd-line); vertical-align: top; }
.kd-compare tr:last-child th, .kd-compare tr:last-child td { border-bottom: 0; }
.kd-compare thead th { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kd-slate); }
.kd-compare thead th:nth-child(2) { background: var(--kd-blue); color: var(--kd-white); }
.kd-compare tbody th { font-weight: 800; }
.kd-compare__us { background: var(--kd-blue-tint); font-weight: 700; }
.kd-finder__none { margin: 12px 0 4px; font-size: 18px; font-weight: 700; color: var(--kd-slate); }
@media (max-width: 960px) {
	.kd-split--what { grid-template-columns: 1fr; gap: 28px; }
	.kd-types { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.kd-types, .kd-topic-grid { grid-template-columns: 1fr; }
	.kd-reasons { padding: 24px; }
	.kd-compare { font-size: 14px; }
	.kd-compare th, .kd-compare td { padding: 10px; }
}

/* ---------- Footer ---------- */
.kd-footer { background: var(--kd-asphalt); color: var(--kd-steel); }
.kd-footer__grid { display: grid; grid-template-columns: 1.3fr 1.4fr 0.8fr 0.8fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.kd-footer__brand { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.kd-footer__name { font-family: var(--kd-font-display); font-weight: 800; font-size: 26px; color: var(--kd-white); }
.kd-footer__logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 4px; }
.kd-footer__logo .kd-mark rect { stroke: rgba(255,255,255,.15); stroke-width: 1; }
.kd-footer__tag { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--kd-steel); margin-top: 3px; }
.kd-footer__contact { display: inline-flex; align-items: center; gap: 8px; color: var(--kd-white); text-decoration: none; font-weight: 600; }
.kd-footer__contact:hover { color: var(--kd-yellow); }
.kd-footer__head { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--kd-yellow); margin-bottom: 14px; }
.kd-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kd-footer__list--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.kd-footer__list a, .kd-footer__legal a { color: var(--kd-steel); text-decoration: none; font-size: 15px; }
.kd-footer__list a:hover, .kd-footer__legal a:hover { color: var(--kd-white); }
.kd-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid #343C4A; font-size: 14px; }
.kd-footer__legal { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.kd-footer__legal a { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
	:root { --kd-gutter: 40px; }
	.kd-menu { gap: 20px; }
	.kd-nav { gap: 22px; }
	.kd-nav__actions { gap: 14px; }
	.kd-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kd-footer__grid { grid-template-columns: 1fr 1fr; }
	.kd-detail { grid-template-columns: minmax(0, 1fr) 320px; }
	.kd-chip--top { left: -20px; }
	.kd-chip--bottom { right: -10px; }
	.kd-chip--mid { left: -30px; }
}

@media (max-width: 960px) {
	.kd-nav-toggle { display: inline-flex; }
	.kd-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; background: var(--kd-white); padding: 8px var(--kd-gutter) 24px; border-top: 1px solid var(--kd-line); box-shadow: 0 18px 30px rgba(20, 26, 38, .12); }
	.kd-nav.is-open { display: flex; }
	.kd-menu { flex-direction: column; gap: 0; }
	.kd-menu a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--kd-mist); }
	.kd-menu a:hover, .kd-menu a[aria-current] { box-shadow: none; }
	.kd-nav__actions { flex-wrap: wrap; justify-content: space-between; }
	.kd-nav__actions .kd-btn { flex: 1 1 100%; }
	.kd-hero__grid { grid-template-columns: 1fr; padding-top: 40px; gap: 24px; }
	.kd-hero__visual { display: none; }
	.kd-finder--hero { padding: 28px 0 40px; }
	.kd-finder__bar { grid-template-columns: 1fr; }
	.kd-finder__field { border-right: 0; border-bottom: 2px solid var(--kd-line); }
	.kd-finder__go { min-height: 60px; }
	.kd-steps, .kd-split, .kd-split--about, .kd-post-grid, .kd-values, .kd-contact { grid-template-columns: 1fr; }
	.kd-section__head { flex-direction: column; align-items: flex-start; }
	.kd-catalog, .kd-faq-layout, .kd-detail, .kd-legal { grid-template-columns: 1fr; }
	.kd-catalog__side, .kd-faq-layout__side, .kd-detail__side, .kd-legal__toc { position: static; }
	.kd-catalog__side { order: 2; }
	.kd-statenav { max-height: none; }
	.kd-cta__inner { flex-direction: column; align-items: flex-start; }
	.kd-timeline__item { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
	.kd-timeline__wheel { justify-self: start; padding: 14px; }
	.kd-timeline__wheel .kd-wheel { width: 88px; }
	.kd-mobile-enroll { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; gap: 12px; padding: 10px var(--kd-gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--kd-white); border-top: 1px solid var(--kd-line); box-shadow: 0 -8px 24px rgba(20, 26, 38, .1); }
	.kd-mobile-enroll span { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.kd-course-page .kd-footer { padding-bottom: 70px; }
}

@media (max-width: 640px) {
	:root { --kd-gutter: 20px; }
	body { font-size: 16px; }
	.kd-header__inner { min-height: 68px; }
	.kd-brand__name { font-size: 22px; }
	.kd-brand__tag { display: none; }
	.kd-hero__lead { font-size: 17px; }
	.kd-finder__form { padding: 18px 16px 14px; }
	.kd-finder__head { flex-direction: column; gap: 2px; }
	.kd-btn-row { flex-direction: column; align-items: stretch; }
	.kd-btn-row .kd-btn { width: 100%; }
	.kd-trust__grid { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
	.kd-section { padding-top: 56px; padding-bottom: 60px; }
	.kd-section--tight { padding-top: 36px; padding-bottom: 40px; }
	.kd-step, .kd-why, .kd-card--lg { padding: 24px; }
	.kd-course { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
	.kd-course__side { flex-direction: row; align-items: center; flex-wrap: wrap; min-width: 0; }
	.kd-course__side .kd-btn { width: auto; flex: 1; }
	.kd-course__price { font-size: 28px; }
	.kd-form__row { grid-template-columns: 1fr; }
	.kd-state-group__head { flex-direction: column; }
	.kd-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.kd-cta .kd-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.kd-btn, .kd-state { transition: none; }
	.kd-btn:hover, .kd-state:hover { transform: none; }
}

/* ---------- Dark "asphalt" band: course topics + online vs classroom ---------- */
.kd-section--dark { background: var(--kd-ink); color: var(--kd-white); position: relative; }
.kd-section--dark::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--kd-yellow) 0 18px, transparent 18px 30px); opacity: .9; }
.kd-on-dark { color: var(--kd-steel); }
.kd-topic-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #2E3645; }
.kd-topic-list li { display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 26px 0; border-bottom: 1px solid #2E3645; font-size: 18px; font-weight: 700; line-height: 1.3; }
.kd-topic-list li:not(:nth-child(4n+1)) { padding-left: 24px; border-left: 1px solid #2E3645; }
.kd-topic-list__num { font-family: var(--kd-font-display); font-weight: 800; font-size: 15px; color: var(--kd-yellow); letter-spacing: .06em; }
.kd-vs__title { margin: 0 0 32px; }
.kd-vs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.kd-vs__card { border-radius: var(--kd-radius-lg); padding: 30px 32px; background: var(--kd-asphalt); color: var(--kd-steel); }
.kd-vs__card--online { background: var(--kd-blue); color: var(--kd-white); box-shadow: 0 20px 44px rgba(0, 0, 0, .35); }
.kd-vs__head { display: flex; align-items: center; gap: 12px; font-family: var(--kd-font-display); font-weight: 800; font-size: 22px; margin-bottom: 8px; color: var(--kd-white); }
.kd-vs__card--online .kd-vs__head svg { color: var(--kd-yellow); }
.kd-vs__rows { margin: 0; }
.kd-vs__rows > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.kd-vs__rows dt { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .75; padding-top: 2px; }
.kd-vs__rows dd { margin: 0; font-size: 17px; font-weight: 600; }
.kd-vs__card--online dd { font-weight: 700; }
@media (max-width: 960px) {
	.kd-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kd-topic-list li:not(:nth-child(4n+1)) { padding-left: 0; border-left: 0; }
	.kd-topic-list li:nth-child(2n) { padding-left: 20px; border-left: 1px solid #2E3645; }
	.kd-vs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.kd-topic-list li { font-size: 16px; padding: 18px 12px 18px 0; }
	.kd-topic-list li:nth-child(2n) { padding-left: 14px; }
	.kd-vs__card { padding: 22px; }
	.kd-vs__rows > div { grid-template-columns: 1fr; gap: 2px; }
}


/* ---------- v2.4 refined layout ---------- */
:root {
	--kd-wrap: 1180px;
	--kd-radius-lg: 22px;
	--kd-shadow-soft: 0 14px 36px rgba(8, 22, 60, .10);
}

body { background: #f4f6f9; }
.kd-header { position: sticky; top: 0; box-shadow: 0 1px 0 rgba(14,42,107,.04); }
.kd-header__inner { min-height: 76px; }
.kd-menu a { font-weight: 700; }
.kd-nav__actions { gap: 14px; }

.kd-hero { background: linear-gradient(118deg, #1949bf 0%, var(--kd-blue) 48%, #10358f 100%); }
.kd-hero::before { right: -220px; top: -245px; width: 760px; height: 760px; border-width: 74px; opacity: .75; }
.kd-hero__grid { grid-template-columns: minmax(0,1.12fr) minmax(300px,.68fr); gap: 64px; padding-top: 34px; padding-bottom: 4px; }
.kd-hero__copy { gap: 13px; }
.kd-hero__title { max-width: 760px; font-size: clamp(44px, 5.25vw, 70px); line-height: .99; }
.kd-hero__tagline { font-size: clamp(19px, 1.8vw, 24px); margin-top: 0; }
.kd-hero__lead { max-width: 650px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.84); }
.kd-hero__points { margin-top: 3px; gap: 9px 20px; color: rgba(255,255,255,.94); }
.kd-hero__points .kd-icon { color: var(--kd-yellow); }
.kd-hero__wheel { max-width: 300px; }
.kd-chip { box-shadow: 0 14px 34px rgba(6,18,52,.24); }
.kd-chip--top { left: -54px; top: 14px; }
.kd-chip--bottom { right: -28px; bottom: 20px; }

.kd-finder--hero { padding: 16px 0 24px; }
.kd-finder__form { border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(6,18,52,.22); }
.kd-finder__head { margin-bottom: 12px; }
.kd-finder__title { font-size: 22px; }
.kd-finder__bar { border-width: 1px; border-radius: 14px; }
.kd-finder__field { border-right-width: 1px; padding: 10px 15px 8px; }
.kd-finder__go { min-height: 72px; }
.kd-finder__fallback { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 28px; }
.kd-finder__fallback .kd-finder__title { grid-column: 1; }
.kd-finder__fallback .kd-finder__none { grid-column: 1; margin: 0; max-width: 720px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.kd-finder__fallback-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 18px; }

.kd-road { height: 10px; }
.kd-trust__grid { gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.kd-trust__item { gap: 12px; }
.kd-icon-tile { width: 42px; height: 42px; }

.kd-section { padding-top: 72px; padding-bottom: 76px; }
.kd-section__head { margin-bottom: 30px; }
.kd-h1 { font-size: clamp(34px, 4.35vw, 54px); line-height: 1.04; }
.kd-section__aside { line-height: 1.55; }

.kd-state, .kd-type, .kd-step, .kd-card, .kd-faq { box-shadow: 0 1px 0 rgba(14,42,107,.03); }
.kd-state { padding: 16px 18px; border-radius: 16px; }
.kd-state__code { width: 44px; height: 44px; }
.kd-split--what { gap: 44px; }
.kd-what p { font-size: 17px; line-height: 1.66; }
.kd-reasons { padding: 32px; box-shadow: var(--kd-shadow-soft); }
.kd-types { gap: 16px; }
.kd-type { padding: 24px; background: #fff; border-radius: 18px; }
.kd-type p { line-height: 1.55; }

.kd-section--learn { background: #edf2fb; border-top: 1px solid #dce5f5; border-bottom: 1px solid #dce5f5; }
.kd-split--learn { grid-template-columns: .78fr 1.22fr; gap: 52px; align-items: center; }
.kd-learn__title { margin: 8px 0 14px; }
.kd-learn__lead { max-width: 470px; font-size: 17px; line-height: 1.6; }
.kd-topic-grid { margin: 0; gap: 10px; }
.kd-topic-grid li { background: rgba(255,255,255,.9); border-color: #dce3ef; min-height: 58px; box-shadow: 0 5px 16px rgba(8,22,60,.035); }

.kd-steps { gap: 18px; }
.kd-step { padding: 28px; border-radius: 18px; }
.kd-step__num { font-size: 38px; }
.kd-step h3 { font-size: 21px; }
.kd-section--dark::before { height: 2px; opacity: .7; }
.kd-vs { gap: 16px; }
.kd-vs__card { padding: 28px 30px; }
.kd-faq-stack { margin-top: 26px; }
.kd-faq summary { padding: 17px 20px; }
.kd-cta__inner { padding-top: 50px; padding-bottom: 50px; }

@media (max-width: 960px) {
	.kd-header { position: relative; }
	.kd-hero__grid { padding-top: 28px; padding-bottom: 2px; }
	.kd-finder__fallback { grid-template-columns: 1fr; }
	.kd-finder__fallback .kd-finder__title,
	.kd-finder__fallback .kd-finder__none,
	.kd-finder__fallback-actions { grid-column: 1; grid-row: auto; }
	.kd-finder__fallback-actions { margin-top: 8px; }
	.kd-split--learn { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
	.kd-hero__title { font-size: clamp(39px, 12vw, 52px); }
	.kd-hero__points { display: grid; grid-template-columns: 1fr; }
	.kd-finder__form { padding: 17px 16px; }
	.kd-finder__fallback-actions { align-items: stretch; flex-direction: column; gap: 12px; }
	.kd-finder__fallback-actions .kd-link-strong { text-align: center; padding: 6px; }
	.kd-trust__grid { padding-top: 24px; padding-bottom: 24px; }
	.kd-section { padding-top: 52px; padding-bottom: 56px; }
	.kd-section__head { margin-bottom: 24px; }
	.kd-type, .kd-step { padding: 22px; }
}

/* ==========================================================
   KeepDriving 2.6 — light, crisp, refined system
   ========================================================== */
:root {
	/* Keep the original brand blue/yellow vivid. Use them as accents, not washes. */
	--kd-blue: #1846B8;
	--kd-navy: #102A56;
	--kd-yellow: #FFC53D;
	--kd-yellow-hover: #FFD15C;
	--kd-blue-tint: #EDF4FF;
	--kd-blue-soft: #D9E7FA;
	--kd-blue-line: #B9CBE8;
	--kd-yellow-tint: #FFF8E2;
	--kd-yellow-ink: #654A00;
	--kd-ink: #17263A;
	--kd-asphalt: #28384B;
	--kd-slate: #53667A;
	--kd-steel: #CBD5E1;
	--kd-line: #DCE5EF;
	--kd-mist: #F7FAFD;
	--kd-green: #238267;
	--kd-green-ink: #17634E;
	--kd-green-tint: #E8F6F1;
	--kd-radius: 13px;
	--kd-radius-lg: 22px;
	--kd-shadow: 0 18px 46px rgba(21, 48, 84, .10);
}

body { background: #F8FAFC; color: var(--kd-ink); }
.kd-header { background: rgba(255,255,255,.98); box-shadow: 0 1px 0 rgba(16,42,86,.04); }
.kd-brand__name { color: #17263A; }
.kd-brand__tag { color: #63758A; }
.kd-menu a { color: #1D2D42; font-weight: 650; }
.kd-menu a:hover, .kd-menu a[aria-current] { color: var(--kd-blue); box-shadow: inset 0 -2px 0 var(--kd-yellow); }
.kd-lang { background: #F2F6FA; }
.kd-lang a { color: #5A6A7D; }
.kd-lang a[aria-current] { color: var(--kd-blue); }
.kd-btn { border-radius: 12px; box-shadow: none; }
.kd-btn--blue { background: #173D6B; color: #fff; }
.kd-btn--blue:hover { background: #102F56; color: #fff; }
.kd-btn--yellow { background: #F6B72C; color: #342600; }
.kd-btn--yellow:hover { background: #FFC53D; color: #2A2104; }

/* Hero: compact, bright and high contrast. */
.kd-hero {
	background:
		radial-gradient(circle at 82% 28%, rgba(255,255,255,.98) 0 17%, rgba(255,255,255,0) 44%),
		linear-gradient(118deg, #F8FCFF 0%, #EEF6FC 58%, #FFF9EC 100%);
	color: var(--kd-ink);
	border-bottom: 1px solid #E2EAF2;
}
.kd-hero::before {
	right: -155px;
	top: -235px;
	width: 650px;
	height: 650px;
	border: 68px solid rgba(24,70,184,.045);
}
.kd-hero__grid {
	grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr);
	gap: 32px;
	padding-top: 32px;
	padding-bottom: 0;
}
.kd-hero__copy { gap: 11px; align-self: center; }
.kd-pill { padding: 6px 12px; }
.kd-pill--navy { background: #F0F5FB; color: #274B73; border: 1px solid #D8E4EF; }
.kd-dot { background: #2F9B77; }
.kd-hero__title {
	max-width: 720px;
	font-size: clamp(40px, 4.45vw, 58px);
	line-height: 1.01;
	color: #14263A;
}
.kd-yellow { color: #B66D00; }
.kd-hero__tagline { margin-top: 0; color: #173D6B; font-size: clamp(18px, 1.7vw, 23px); }
.kd-hero__lead { max-width: 610px; font-size: 18px; line-height: 1.48; color: #4C6175; }
.kd-hero__points { margin-top: 2px; gap: 8px 20px; color: #33495F; }
.kd-hero__points .kd-icon { color: #238267; }
.kd-hero__visual { align-self: stretch; align-items: center; overflow: visible; }
.kd-hero__wheel {
	max-width: 465px;
	width: min(100%, 465px);
	margin: -4px auto -20px;
	cursor: ew-resize;
	user-select: none;
	touch-action: pan-y;
}
.kd-hero__wheel .kd-wheel {
	filter: drop-shadow(0 22px 30px rgba(24, 49, 77, .14));
	transform-origin: 50% 50%;
	animation: kd-wheel-idle 7.5s ease-in-out infinite;
	will-change: transform;
}
.kd-hero__wheel.is-interacting .kd-wheel {
	animation: none;
	transition: transform .10s linear;
}
.kd-hero__wheel.is-returning .kd-wheel {
	animation: none;
	transition: transform .9s cubic-bezier(.18,.75,.18,1);
}
@keyframes kd-wheel-idle {
	0%,100% { transform: rotate(0deg); }
	50% { transform: rotate(3.5deg); }
}

/* Preserve the wheel's stronger original contrast rather than washing it out. */
.kd-hero__wheel .kd-wheel path[stroke="#232A36"],
.kd-hero__wheel .kd-wheel circle[stroke="#232A36"] { stroke: #263444; }
.kd-hero__wheel .kd-wheel circle[fill="#141A26"] { fill: #17263A; }
.kd-hero__wheel .kd-wheel circle[fill="#C5CCD8"] { fill: #D7E0E9; }

/* Hero's single guided three-step selector. */
.kd-finder--hero { padding: 18px 0 30px; }
.kd-finder__form {
	background: #fff;
	color: var(--kd-ink);
	border: 1px solid #DDE7F0;
	border-radius: 20px;
	padding: 18px 20px 14px;
	box-shadow: 0 18px 46px rgba(29, 60, 92, .11);
}
.kd-finder--hero .kd-finder__form { max-width: 860px; }
.kd-finder__steps {
	display: grid;
	grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr) 34px minmax(0,1fr);
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
}
.kd-finder__stephead { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kd-finder__stephead > b {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex: 0 0 38px;
	background: #EAF0F8;
	color: #183A63;
	font-family: var(--kd-font-display);
	font-size: 17px;
	font-weight: 800;
}
.kd-finder__stephead:first-child > b { background: #1846B8; color: #fff; }
.kd-finder__stephead span { display: flex; flex-direction: column; min-width: 0; }
.kd-finder__stephead strong { color: #19324F; font-size: 14px; line-height: 1.2; }
.kd-finder__stephead small { color: #60758A; font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.kd-finder__connector { height: 2px; border-radius: 9px; background: #D9E3ED; }
.kd-finder__head { margin-bottom: 12px; }
.kd-finder__title { color: #1A2F46; font-size: 22px; }
.kd-finder__title .kd-icon { color: #1846B8; }
.kd-finder__meta { color: #617589; font-weight: 600; }
.kd-finder__bar {
	grid-template-columns: minmax(0,.9fr) minmax(0,1.25fr) auto;
	border: 1px solid #D7E2ED;
	border-radius: 13px;
	background: #fff;
}
.kd-finder__field {
	gap: 3px;
	padding: 10px 15px 8px;
	border-right: 1px solid #D7E2ED;
	background: #fff;
}
.kd-finder__field:focus-within { background: #F7FAFF; }
.kd-finder__label { color: #536A82; font-size: 11px; letter-spacing: .06em; }
.kd-finder__step {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #EAF0F8;
	color: #173D6B;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0;
	flex: 0 0 22px;
}
.kd-finder__field select { color: #1E3248; font-size: 16px; font-weight: 700; }
.kd-finder__field select:disabled { color: #6E8092; }
.kd-finder__go { min-width: 176px; border-radius: 0; padding-inline: 22px; }
.kd-finder__step--button { background: rgba(255,255,255,.72); color: #654A00; }
.kd-finder__foot { color: #627589; }

/* Secondary selectors belong farther down the page / on course pages. */
.kd-section--finder-repeat {
	padding-top: 54px;
	padding-bottom: 56px;
	background: linear-gradient(180deg, #F5F9FD 0%, #FFFFFF 100%);
	border-top: 1px solid #E5EDF5;
	border-bottom: 1px solid #E5EDF5;
}
.kd-section--finder-repeat .kd-finder__form { box-shadow: 0 14px 34px rgba(29,60,92,.07); }
.kd-finder--band .kd-finder__form { background: #fff; border-color: #DDE7F0; }

/* Light, readable section treatment throughout. */
.kd-trust { background: #fff; }
.kd-reasons { background: #EFF5FB; color: #17263A; border: 1px solid #DCE7F1; }
.kd-reasons .kd-checklist .kd-icon { color: #238267; }
.kd-type { background: #fff; border-color: #E0E8F0; }
.kd-section--learn { background: #F3F8FC; }
.kd-section--dark { background: #20344B; }
.kd-footer { background: #1F3042; }
.kd-cta { background: #FFF1BF; color: #17263A; }
.kd-muted { color: #53667A; }

@media (max-width: 1100px) {
	.kd-hero__grid { grid-template-columns: minmax(0,1fr) minmax(330px,.78fr); gap: 20px; }
	.kd-hero__wheel { max-width: 420px; }
}

@media (max-width: 960px) {
	.kd-hero__grid { padding-top: 30px; }
	.kd-finder__steps { grid-template-columns: 1fr; gap: 8px; }
	.kd-finder__connector { display: none; }
	.kd-finder__stephead small { display: none; }
	.kd-finder__bar { grid-template-columns: 1fr; }
	.kd-finder__field { border-right: 0; border-bottom: 1px solid var(--kd-line); }
	.kd-finder__go { border-radius: 0 0 12px 12px; min-height: 58px; }
}

@media (max-width: 760px) {
	.kd-hero__grid { grid-template-columns: 1fr; padding-top: 28px; gap: 18px; }
	.kd-hero__visual { display: none; }
	.kd-hero__title { font-size: clamp(39px, 11vw, 52px); }
	.kd-hero__lead { font-size: 17px; }
	.kd-hero__points { display: grid; grid-template-columns: 1fr; }
	.kd-finder--hero { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.kd-hero__wheel .kd-wheel { animation: none !important; transition: none !important; }
}

/* ==========================================================
   KeepDriving 2.7 — brighter contrast + larger hero wheel
   ========================================================== */
:root {
	--kd-blue: #1846B8;
	--kd-navy: #0B285F;
	--kd-yellow: #FFC53D;
	--kd-yellow-hover: #FFD45F;
	--kd-blue-tint: #EEF5FF;
	--kd-blue-soft: #DCE9FF;
	--kd-blue-line: #9CB7E8;
	--kd-yellow-tint: #FFF8DE;
	--kd-yellow-ink: #493600;
	--kd-ink: #10233A;
	--kd-asphalt: #23364B;
	--kd-slate: #40566F;
	--kd-steel: #AEBCCC;
	--kd-line: #D4E0EC;
	--kd-mist: #F6FAFF;
	--kd-green: #16765C;
	--kd-green-ink: #0C5844;
	--kd-green-tint: #E7F6F0;
	--kd-shadow: 0 18px 42px rgba(17, 53, 96, .10);
}

body { background: #F7FAFE; color: #10233A; }
.kd-muted { color: #40566F; }
.kd-eyebrow { color: #40566F; }
.kd-contact-card--blue .kd-eyebrow--light {
    color: #fff !important;
}
.kd-header { background: #FFFFFF; border-bottom-color: #DCE6F0; box-shadow: 0 1px 8px rgba(16,35,58,.035); }
.kd-brand__name { color: #10233A; }
.kd-brand__tag { color: #40566F; }
.kd-brand__logo, .kd-brand .kd-mark { filter: none !important; opacity: 1 !important; }
.kd-menu a { color: #142A43; }
.kd-lang { background: #F1F5FA; }
.kd-lang a { color: #42576F; }
.kd-btn--blue { background: #123D78; color: #FFFFFF; }
.kd-btn--blue:hover { background: #0B2B5A; }
.kd-btn--yellow { background: #FFC53D; color: #2D2200; }
.kd-btn--yellow:hover { background: #FFD45F; color: #231B00; }

/* Hero is intentionally bright white/blue rather than beige or gray. */
.kd-hero {
	background:
		radial-gradient(circle at 83% 32%, rgba(225,239,255,.78) 0 18%, rgba(225,239,255,0) 45%),
		linear-gradient(112deg, #FFFFFF 0%, #F6FBFF 58%, #EDF6FF 100%);
	color: #10233A;
	border-bottom: 1px solid #DDE8F3;
}
.kd-hero::before {
	right: -160px;
	top: -220px;
	width: 680px;
	height: 680px;
	border: 72px solid rgba(24,70,184,.055);
}
.kd-hero .kd-wrap { position: relative; }
.kd-hero__grid {
	position: relative;
	display: block;
	padding-top: 34px;
	min-height: 338px;
}
.kd-hero__copy {
	width: min(58%, 690px);
	gap: 10px;
	position: relative;
	z-index: 2;
}
.kd-pill--navy { background: #EAF3FF; color: #1E4677; border: 1px solid #C9DBEF; }
.kd-dot { background: #16765C; }
.kd-hero__title {
	max-width: 680px;
	font-size: clamp(43px, 4.7vw, 64px);
	line-height: .99;
	color: #0E223A;
	text-wrap: balance;
}
/* Saturated brand blue reads cleaner than the brown/gold used in 2.6. */
.kd-hero__title .kd-yellow { color: #1846B8; }
.kd-hero__tagline { color: #123D78; font-size: clamp(19px, 1.8vw, 24px); }
.kd-hero__lead { max-width: 620px; color: #40566F; font-size: 18px; line-height: 1.46; }
.kd-hero__points { color: #263F59; font-weight: 650; }
.kd-hero__points .kd-icon { color: #16765C; }

/* Large wheel: it no longer determines hero height, so the hero can stay compact. */
.kd-hero__visual {
	position: absolute;
	right: 25px;
	top: 12px;
	width: min(48%, 600px);
	height: 520px;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	z-index: 1;
	pointer-events: none;
}
.kd-hero__wheel {
	width: min(100%, 590px);
	max-width: 590px;
	margin: 0;
	cursor: ew-resize;
	pointer-events: auto;
}
.kd-hero__wheel .kd-wheel {
	filter: drop-shadow(0 22px 30px rgba(16,48,84,.16));
	transition: none;
}
.kd-hero__wheel.is-interacting .kd-wheel { transition: transform .09s linear; }
.kd-hero__wheel.is-returning .kd-wheel { transition: transform 1.55s cubic-bezier(.16,.78,.2,1); }

/* The hero selector matches the approved preview: three numbered columns,
   each with its own control directly beneath the heading. */
.kd-finder--hero {
	position: relative;
	z-index: 4;
	padding: 12px 0 28px;
}
.kd-finder--hero .kd-finder__form {
	width: min(100%, 845px);
	max-width: 845px;
	padding: 18px 20px 13px;
	border: 1px solid #D4E1EE;
	border-radius: 18px;
	box-shadow: 0 16px 36px rgba(21,55,95,.11);
}
.kd-finder__hero-grid {
	display: grid;
	grid-template-columns: minmax(0,1fr) minmax(0,1.18fr) minmax(190px,.72fr);
	gap: 16px;
	align-items: stretch;
}
.kd-finder__hero-step { min-width: 0; }
.kd-finder__hero-head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	margin-bottom: 9px;
}
.kd-finder__hero-head > b {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex: 0 0 40px;
	background: #E7EEF7;
	color: #173A68;
	font-family: var(--kd-font-display);
	font-size: 17px;
	font-weight: 800;
}
.kd-finder__hero-step:first-child .kd-finder__hero-head > b { background: #1846B8; color: #FFFFFF; }
.kd-finder__hero-head span { display: flex; flex-direction: column; min-width: 0; }
.kd-finder__hero-head strong { color: #102A48; font-size: 14px; line-height: 1.18; }
.kd-finder__hero-head small { color: #4A6078; font-size: 11.5px; line-height: 1.25; margin-top: 2px; }
.kd-finder__hero-control {
	height: 56px;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	padding: 0 14px;
	background: #FFFFFF;
	border: 1.5px solid #C9D8E8;
	border-radius: 11px;
	color: #1846B8;
}
.kd-finder__hero-control:focus-within { border-color: #1846B8; box-shadow: 0 0 0 3px rgba(24,70,184,.10); }
.kd-finder__hero-control::after {
	content: "";
	position: absolute;
	right: 15px;
	top: 21px;
	width: 8px;
	height: 8px;
	border-right: 2px solid #173A68;
	border-bottom: 2px solid #173A68;
	transform: rotate(45deg);
	pointer-events: none;
}
.kd-finder__hero-control select {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	outline: 0;
	background: transparent;
	width: 100%;
	min-width: 0;
	padding: 0 28px 0 0;
	font-size: 15px;
	font-weight: 700;
	color: #17304D;
	cursor: pointer;
	text-overflow: ellipsis;
}
.kd-finder__hero-control select:disabled { color: #536A82; cursor: not-allowed; }
.kd-finder__hero-go { width: 100%; height: 56px; min-height: 56px; padding-inline: 18px; font-size: 16px; }
.kd-finder--hero .kd-finder__foot { margin-top: 10px; color: #40566F; }
.kd-finder--hero .kd-finder__foot a { color: #1846B8; }

/* Secondary selector remains farther down the page; not duplicated in the hero. */
.kd-section--finder-repeat {
	background: #F0F7FF;
	border-color: #D9E6F2;
}
.kd-section--finder-repeat .kd-finder__form,
.kd-finder--band .kd-finder__form { border-color: #CEDCE9; }
.kd-finder__meta, .kd-finder__foot, .kd-finder__label { color: #40566F; }
.kd-finder__field select:disabled { color: #526982; }

/* Readability pass for cards, muted copy and dark areas. */
.kd-trust__item span:not(.kd-icon-tile),
.kd-state__body span,
.kd-step p,
.kd-faq__answer { color: #40566F; }
.kd-icon-tile { background: #EAF3FF; color: #1846B8; }
.kd-reasons { background: #EEF6FF; border-color: #D3E2F0; }
.kd-section--learn { background: #F0F7FF; }
.kd-section--dark { background: #17304C; color: #FFFFFF; }
.kd-footer { background: #13283E; color: #FFFFFF; }
.kd-cta { background: #FFF3C8; }
.kd-page-hero { background: #123D78; }
.kd-page-hero__lead, .kd-crumbs li, .kd-crumbs span[aria-current] { color: #DCE9FF; }

@media (max-width: 1180px) {
	.kd-hero__copy { width: 57%; }
	.kd-hero__visual { right: 28px; width: 47%; }
	.kd-hero__wheel { max-width: 540px; }
	.kd-finder--hero .kd-finder__form { max-width: 790px; }
}

@media (max-width: 1020px) {
	.kd-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(330px,.78fr); gap: 20px; min-height: 0; }
	.kd-hero__copy { width: auto; }
	.kd-hero__visual { position: static; width: auto; height: auto; }
	.kd-hero__wheel { max-width: 455px; }
	.kd-finder--hero .kd-finder__form { max-width: none; }
}

@media (max-width: 760px) {
	.kd-hero__grid { grid-template-columns: 1fr; padding-top: 28px; }
	.kd-hero__visual { max-height: 330px; overflow: hidden; }
	.kd-hero__wheel { max-width: 385px; margin: -8px auto -38px; }
	.kd-finder--hero { padding-top: 14px; }
	.kd-finder__hero-grid { grid-template-columns: 1fr; gap: 12px; }
	.kd-finder__hero-head { min-height: auto; margin-bottom: 6px; }
	.kd-finder__hero-head small { display: none; }
	.kd-finder__hero-step--go .kd-finder__hero-head { display: none; }
}

/* ========================================================================== 
   FINAL REFINEMENT PASS — contrast, conversion flow, inner-page hierarchy
   ========================================================================== */

:root {
	--kd-blue: #1846B8;
	--kd-navy: #0B285A;
	--kd-yellow: #FFC53D;
	--kd-yellow-hover: #FFD55F;
	--kd-ink: #0C2038;
	--kd-slate: #3D536B;
	--kd-line: #D7E3EF;
	--kd-mist: #F5F9FD;
	--kd-blue-tint: #EDF5FF;
	--kd-shadow: 0 18px 46px rgba(12, 45, 86, .09);
}

body { background: #F8FBFE; color: var(--kd-ink); }
.kd-section { padding-top: 72px; padding-bottom: 72px; }
.kd-section--tight { padding-top: 52px; padding-bottom: 52px; }
.kd-section__head { align-items: end; }
.kd-section__aside { color: #41566D; }
.kd-h1, .kd-h2, .kd-h3 { color: #0C2038; }

/* Keep the original logo vivid and untouched by the softer page palette. */
.kd-brand__logo, .kd-brand .kd-mark { filter: none !important; opacity: 1 !important; }
.kd-brand__name { color: #0C2038; }
.kd-brand__tag { color: #476078; }

/* Homepage hero: crisp white/blue, shorter, with an intentionally oversized wheel. */
.kd-hero {
	background:
		radial-gradient(circle at 82% 28%, rgba(210,230,255,.82) 0 19%, rgba(210,230,255,0) 44%),
		linear-gradient(112deg, #FFFFFF 0%, #F7FBFF 54%, #EAF4FF 100%);
	border-bottom: 1px solid #D7E5F2;
}
.kd-hero::before { border-color: rgba(24,70,184,.055); opacity: 1; }
.kd-hero__grid { min-height: 320px; padding-top: 28px; }
.kd-hero__copy { width: min(57%, 675px); gap: 9px; }
.kd-hero__title { font-size: clamp(43px, 4.65vw, 64px); color: #0B2038; }
.kd-hero__title .kd-yellow { color: #1846B8; }
.kd-hero__tagline { color: #0E3C76; }
.kd-hero__lead { color: #3D536B; }
.kd-hero__points { color: #203A55; }
.kd-hero__visual { right: 8px; top: -18px; width: min(52%, 665px); height: 565px; }
.kd-hero__wheel { width: min(100%, 650px); max-width: 650px; }
.kd-hero__wheel .kd-wheel {
	animation: none !important;
	transform-origin: 50% 50%;
	filter: drop-shadow(0 24px 32px rgba(10,39,73,.16));
}
.kd-hero__wheel.is-interacting .kd-wheel { transition: transform .10s linear; }
.kd-hero__wheel.is-returning .kd-wheel { transition: transform 1.45s cubic-bezier(.16,.78,.2,1); }

/* Hero selector: one clear three-step selector in the hero, no duplicate beside it. */
.kd-finder--hero { padding: 8px 0 26px; }
.kd-finder--hero .kd-finder__form {
	width: min(100%, 880px);
	max-width: 880px;
	padding: 18px 20px 12px;
	background: rgba(255,255,255,.98);
	border-color: #C9D9E9;
	box-shadow: 0 18px 42px rgba(13,49,88,.12);
}
.kd-finder__hero-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.12fr) minmax(188px,.74fr); gap: 14px; }
.kd-finder__hero-head strong { color: #102A48; }
.kd-finder__hero-head small { color: #486079; }
.kd-finder__hero-control { border-color: #BED0E2; }
.kd-finder__hero-control select { color: #132D49; }
.kd-finder__hero-go { background: #1846B8; color: #FFFFFF; }
.kd-finder__hero-go:hover { background: #0B2F80; color: #FFFFFF; }

/* Trust row becomes a compact bridge to the action-oriented middle content. */
.kd-trust { border-bottom: 1px solid #DCE7F1; }
.kd-trust__grid { padding-top: 26px; padding-bottom: 26px; gap: 26px; }
.kd-trust__item strong { color: #102A48; }
.kd-trust__item span:not(.kd-icon-tile) { color: #465D74; }
.kd-icon-tile { background: #EAF3FF; color: #1846B8; border: 1px solid #D4E5F8; }

/* Homepage middle flow: process first, then browse, then supporting education. */
.kd-section--home-process {
	background: linear-gradient(180deg, #FFFFFF 0%, #F4F9FF 100%);
	border-bottom: 1px solid #DFEAF4;
}
.kd-section--home-process .kd-section__head { margin-bottom: 28px; }
.kd-steps { gap: 18px; }
.kd-step {
	position: relative;
	min-height: 245px;
	border-color: #D4E1ED;
	box-shadow: 0 14px 34px rgba(18,55,94,.06);
	background: #FFFFFF;
}
.kd-step::after {
	content: "";
	position: absolute;
	left: 28px;
	right: 28px;
	bottom: 0;
	height: 4px;
	border-radius: 4px 4px 0 0;
	background: #1846B8;
	opacity: .9;
}
.kd-step--dark { background: #102A48; border-color: #102A48; color: #FFFFFF; }
.kd-step--dark::after { background: #FFC53D; }
.kd-step--dark h3 { color: #FFFFFF; }
.kd-step--dark p { color: #D7E5F3; }
.kd-step__num { color: #1846B8; }

.kd-section--states { background: #FFFFFF; }
.kd-state {
	background: #FFFFFF;
	border-color: #D7E3EF;
	box-shadow: 0 8px 22px rgba(14,49,86,.045);
}
.kd-state:hover { border-color: #8DB1E7; box-shadow: 0 14px 28px rgba(14,49,86,.08); }
.kd-state__code { background: #EAF3FF; color: #1846B8; }

.kd-section--what { background: #F5F9FD; border-top: 1px solid #E1EAF3; border-bottom: 1px solid #E1EAF3; }
.kd-split--what { align-items: stretch; }
.kd-what { background: #FFFFFF; border: 1px solid #D8E4EF; border-radius: 22px; padding: 34px 36px; box-shadow: 0 12px 30px rgba(17,51,88,.05); }
.kd-reasons {
	background: #EAF3FF;
	border: 1px solid #CFE0F2;
	border-radius: 22px;
	padding: 34px 36px;
}
.kd-reasons .kd-h3 { color: #0D2D55; }

.kd-section--white { background: #FFFFFF; }
.kd-type { border-color: #D8E4EF; box-shadow: 0 8px 24px rgba(14,49,86,.045); }
.kd-type h3 { color: #102A48; }
.kd-type p { color: #435A72; }
.kd-types__more { margin-top: 30px; }

.kd-section--finder-repeat {
	background: linear-gradient(135deg, #EAF4FF 0%, #F8FBFF 100%);
	border-top: 1px solid #D8E6F3;
	border-bottom: 1px solid #D8E6F3;
}
.kd-section--finder-repeat .kd-finder__form { background: #FFFFFF; box-shadow: 0 16px 38px rgba(19,57,96,.08); }
.kd-finder--band .kd-finder__go { background: #1846B8; color: #FFFFFF; }
.kd-finder--band .kd-finder__go:hover { background: #0B2F80; }

.kd-section--learn { background: #FFFFFF; border-top: 0; border-bottom: 1px solid #E0EAF3; }
.kd-topic-grid li { background: #F4F8FC; border: 1px solid #D9E5EF; color: #18324F; }

/* Comparison section is dark but no longer muddy; all copy meets strong contrast. */
.kd-section--dark { background: #0F2945; color: #FFFFFF; }
.kd-section--dark .kd-h1 { color: #FFFFFF; }
.kd-vs__card { background: #183651; color: #E8F0F8; }
.kd-vs__card--online { background: #1846B8; color: #FFFFFF; box-shadow: 0 20px 42px rgba(5,24,49,.24); }
.kd-vs__rows dt { color: #D9E6F3; opacity: 1; }
.kd-vs__rows dd { color: #FFFFFF; }

/* Closing CTA / "Hands on the wheel" — vivid brand blue, not beige. */
.kd-cta { background: linear-gradient(110deg, #0F45B9 0%, #1846B8 62%, #0B347F 100%); color: #FFFFFF; }
.kd-cta__title { color: #FFFFFF; }
.kd-cta .kd-btn--ink { background: #FFC53D; color: #241A00; }
.kd-cta .kd-btn--ink:hover { background: #FFD55F; color: #201800; }

/* Inner-page heroes: light, high contrast, and consistent across How It Works, FAQs,
   Courses, Contact, About and legal pages. */
.kd-page-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at 78% 20%, rgba(199,224,255,.75) 0 16%, rgba(199,224,255,0) 42%),
		linear-gradient(112deg, #FFFFFF 0%, #F3F9FF 64%, #E8F3FF 100%);
	color: #0C2038;
	padding: 34px 0 52px;
	border-bottom: 1px solid #D9E6F2;
}
.kd-page-hero::after {
	content: "";
	position: absolute;
	right: -130px;
	top: -210px;
	width: 620px;
	height: 620px;
	border-radius: 50%;
	border: 66px solid rgba(24,70,184,.055);
	pointer-events: none;
}
.kd-page-hero__inner { position: relative; z-index: 1; gap: 13px; }
.kd-page-hero__title { color: #0B2038; max-width: 920px; font-size: clamp(42px,5vw,64px); }
.kd-page-hero__title .kd-yellow { color: #1846B8; }
.kd-page-hero__lead { color: #40566F; max-width: 760px; }
.kd-page-hero .kd-pill--navy { background: #E7F2FF; color: #164074; border-color: #C7DBF0; }
.kd-page-hero .kd-crumbs, .kd-page-hero .kd-crumbs a, .kd-page-hero .kd-crumbs li, .kd-page-hero .kd-crumbs span[aria-current] { color: #31516F; }
.kd-page-hero + .kd-road { height: 7px; background: #18324F; }
.kd-page-hero + .kd-road::after { height: 2px; background: repeating-linear-gradient(90deg,#FFC53D 0 18px,transparent 18px 32px); }

/* How It Works: three scannable cards -> selector -> readiness. */
.kd-section--process { background: #F7FAFE; }
.kd-section-intro { max-width: 790px; margin: 0 auto 32px; }
.kd-section-intro .kd-muted { max-width: 680px; margin: 12px auto 0; }
.kd-process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.kd-process-card {
	background: #FFFFFF;
	border: 1px solid #D6E3EF;
	border-radius: 22px;
	padding: 26px;
	box-shadow: 0 12px 32px rgba(15,50,88,.06);
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.kd-process-card__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kd-process-card__num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #E8F2FF; color: #1846B8; font-family: var(--kd-font-display); font-weight: 800; }
.kd-process-card__wheel { width: 92px; height: 92px; display: grid; place-items: center; }
.kd-process-card__wheel .kd-wheel { width: 92px; filter: drop-shadow(0 8px 14px rgba(11,42,78,.12)); }
.kd-process-card > p { color: #40566F; }
.kd-process-card .kd-checklist { margin-top: auto; gap: 8px; font-size: 14px; }
.kd-process-card .kd-checklist .kd-icon { color: #13795B; }
.kd-section--action-band { background: linear-gradient(135deg,#EAF4FF 0%,#F7FBFF 100%); border-top: 1px solid #D7E6F3; border-bottom: 1px solid #D7E6F3; }
.kd-action-band__head { margin-bottom: 20px; max-width: 760px; }
.kd-action-band__head p:last-child { color: #40566F; margin-top: 8px; }
.kd-split--ready { align-items: stretch; }
.kd-ready-card { border-color: #D5E2EE; box-shadow: 0 12px 28px rgba(14,49,86,.05); }
.kd-why--refined { background: #102F58; color: #FFFFFF; }
.kd-why--refined .kd-h2 { color: #FFFFFF; }
.kd-why--refined .kd-eyebrow { color: #AFC7E1; }
.kd-why--refined .kd-why__lead { color: #D9E6F3; }

/* FAQ page: stronger hierarchy, lighter sidebar and clearer scan path. */
.kd-faq-layout { grid-template-columns: 290px minmax(0,1fr); gap: 36px; }
.kd-search { border: 1.5px solid #C8D8E7; box-shadow: 0 6px 18px rgba(17,52,90,.04); }
.kd-search:focus-within { border-color: #1846B8; box-shadow: 0 0 0 3px rgba(24,70,184,.10); }
.kd-topics { border-color: #D6E3EF; box-shadow: 0 8px 22px rgba(17,52,90,.04); padding: 8px; }
.kd-topics a { color: #294863; border-radius: 10px; }
.kd-topics a:hover { background: #EEF5FC; color: #1846B8; }
.kd-help-card { background: #EAF4FF; color: #0C294D; border: 1px solid #CCE0F2; box-shadow: 0 10px 26px rgba(17,52,90,.055); }
.kd-help-card strong { color: #0C294D; }
.kd-help-card span { color: #405A73; }
.kd-help-card a { color: #1846B8; }
.kd-faq-layout__main { gap: 32px; }
.kd-faq-group .kd-h3 { color: #102A48; }
.kd-faq { border-color: #D6E2EE; box-shadow: 0 4px 14px rgba(17,52,90,.03); }
.kd-faq summary { color: #102A48; }
.kd-faq__answer { color: #3D536B; }

/* Generic cards/readability on inner pages. */
.kd-card, .kd-course, .kd-facts li { border-color: #D5E2EE; }
.kd-card p, .kd-course__excerpt, .kd-check-card ol { color: #40566F; }
.kd-enroll-card { background: #123F8D; }
.kd-enroll-card__foot { color: #DDEAFF; }
.kd-enroll-card__foot a { color: #FFD055; }

@media (max-width: 1180px) {
	.kd-hero__visual { right: -16px; width: 51%; }
	.kd-hero__wheel { max-width: 590px; }
}
@media (max-width: 1020px) {
	.kd-hero__grid { min-height: 0; }
	.kd-hero__visual { position: static; width: auto; height: auto; }
	.kd-hero__wheel { max-width: 455px; }
	.kd-process-grid { grid-template-columns: 1fr; }
	.kd-process-card { min-height: 0; }
}
@media (max-width: 760px) {
	.kd-section { padding-top: 52px; padding-bottom: 52px; }
	.kd-hero__copy { width: auto; }
	.kd-hero__visual { max-height: 310px; }
	.kd-hero__wheel { max-width: 380px; margin: -8px auto -45px; }
	.kd-page-hero { padding: 28px 0 40px; }
	.kd-page-hero__title { font-size: clamp(38px,11vw,50px); }
	.kd-faq-layout { grid-template-columns: 1fr; }
	.kd-faq-layout__side { position: static; }
}

/* ========================================================================== 
   KeepDriving 2.9 — hero breathing room + compact hero selector
   ========================================================================== */

/* Give the hero a little more air without returning to the old oversized height. */
@media (min-width: 1021px) {
	.kd-hero__grid {
		padding-top: 42px;
		min-height: 372px;
	}
	.kd-hero__copy {
		gap: 12px;
		width: min(56%, 670px);
	}
	.kd-hero__title {
		max-width: 665px;
		font-size: clamp(42px, 4.55vw, 62px);
	}
	.kd-hero__lead {
		max-width: 590px;
		line-height: 1.5;
	}
.kd-hero__visual {
	right: -18px;
	top: 20px;
	width: min(47%, 590px);
	height: 505px;
}
	.kd-hero__wheel {
		width: min(100%, 565px);
		max-width: 565px;
	}

	/* Keep the hero selector intentionally shorter than the copy/wheel span. */
	.kd-finder--hero {
		padding-top: 18px;
		padding-bottom: 34px;
	}
	.kd-finder--hero .kd-finder__form {
		width: min(100%, 760px);
		max-width: 760px;
		padding: 17px 18px 12px;
	}
	.kd-finder__hero-grid {
		grid-template-columns: minmax(0,.98fr) minmax(0,1.08fr) minmax(170px,.72fr);
		gap: 13px;
	}
	.kd-finder__hero-head {
		min-height: 44px;
		margin-bottom: 8px;
		gap: 9px;
	}
	.kd-finder__hero-head > b {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
		font-size: 16px;
	}
	.kd-finder__hero-control,
	.kd-finder__hero-go {
		height: 52px;
		min-height: 52px;
	}

	/* When no course API data is available, don't let the fallback become a huge empty bar. */
	.kd-finder--hero .kd-finder__fallback {
		width: min(100%, 620px);
		max-width: 620px;
		padding: 16px 18px;
	}
	.kd-finder--hero .kd-finder__fallback .kd-finder__title {
		margin-bottom: 4px;
	}
}

@media (min-width: 1021px) and (max-width: 1180px) {
	.kd-hero__copy { width: 55%; }
	.kd-hero__visual { right: 8px; width: 46%; }
	.kd-hero__wheel { max-width: 520px; }
	.kd-finder--hero .kd-finder__form { max-width: 720px; }
}

/* KeepDriving 2.10 — fluid multi-turn pointer steering. JS handles interpolation
   frame-by-frame, so CSS transitions must not compete with the wheel transform. */
.kd-hero__wheel.is-interacting .kd-wheel,
.kd-hero__wheel.is-returning .kd-wheel {
	transition: none !important;
}
.kd-hero__wheel .kd-wheel {
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	transform: translateZ(0);
}
.home .kd-hero {
    padding-top: 25px;
    padding-bottom: 25px;
}