/* Klyros homepage + How it works. Matches the quiz funnel: light blue backdrop, white rounded cards, blue buttons, navy ink, bold Inter. */
:root {
  --sky: #d6ecff;
  --sky-2: #cfe9ff;
  --sky-3: #eaf4ff;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --ink: #0a1628;
  --ink-2: #334155;
  --mut: #5b6b82;
  --line: #dbe7f5;
  --white: #fff;
  --r: 22px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 12px 32px -12px rgba(10, 22, 40, .18);
  --shadow-lg: 0 2px 4px rgba(10, 22, 40, .05), 0 28px 60px -20px rgba(10, 22, 40, .28);
}
*, *::before, *::after { box-sizing: border-box; }
.kx {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.kx img { max-width: 100%; display: block; }
.kx a { color: inherit; text-decoration: none; }
:where(.kx) :where(h1, h2, h3, p) { margin: 0; }
.kx-wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 22px; }
.kx a:focus-visible, .kx summary:focus-visible, .kx button:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px;
}

/* ---------- buttons ---------- */
.kx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  background: var(--blue); color: #fff !important;
  border-radius: 999px; font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  box-shadow: 0 14px 28px -10px rgba(37, 99, 235, .65);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.kx-btn:hover { background: var(--blue-d); transform: translateY(-2px); box-shadow: 0 18px 32px -10px rgba(37, 99, 235, .7); }
.kx-btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .6); }
.kx-btn--white { background: #fff; color: var(--blue) !important; box-shadow: 0 14px 28px -12px rgba(10, 22, 40, .4); }
.kx-btn--white:hover { background: #f4f9ff; }
.kx-link { font-weight: 600; color: var(--blue); border-bottom: 2px solid rgba(37, 99, 235, .25); transition: border-color .15s; }
.kx-link:hover { border-color: var(--blue); }

/* ---------- header ---------- */
.kx-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.kx-head-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.kx-logo img { height: 34px; width: auto; }
.kx-nav { display: none; margin-left: auto; align-items: center; gap: 30px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.kx-nav a:hover, .kx-nav a[aria-current="page"] { color: var(--blue); }
.kx-nav .kx-phone { color: var(--mut); font-weight: 500; }
.kx-head-cta { margin-left: auto; }
.kx-menu { position: relative; }
.kx-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky-3); }
.kx-menu summary::-webkit-details-marker { display: none; }
.kx-menu summary span, .kx-menu summary span::before, .kx-menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; position: relative; }
.kx-menu summary span::before { position: absolute; top: -6px; }
.kx-menu summary span::after { position: absolute; top: 6px; }
.kx-menu-panel { position: absolute; right: 0; top: 54px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 10px; display: grid; }
.kx-menu-panel a { padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.kx-menu-panel a:hover { background: var(--sky-3); }
@media (min-width: 900px) {
  .kx-nav { display: flex; }
  .kx-head-cta { margin-left: 0; }
  .kx-menu { display: none; }
}
@media (max-width: 899px) { .kx-head-in { gap: 12px; } }

/* ---------- hero ---------- */
.kx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(700px 420px at 8% 45%, rgba(110, 185, 255, .50), transparent 70%),
    radial-gradient(700px 420px at 94% 55%, rgba(135, 145, 255, .38), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #eaf3ff 20%, #d3e7ff 48%, #e2eaff 76%, #ffffff 100%);
  padding: 44px 0 64px;
}
.kx-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 18, 32, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 18, 32, .055) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 95% 80% at 35% 40%, #000 15%, transparent 85%);
  mask-image: radial-gradient(ellipse 95% 80% at 35% 40%, #000 15%, transparent 85%);
}
@media (max-width: 640px) { .kx-hero::before { background-size: 44px 44px; } }
.kx-hero-grid { display: grid; gap: 40px; align-items: center; }
.kx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: #fff; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--blue);
  box-shadow: 0 6px 16px -8px rgba(10, 22, 40, .25); letter-spacing: .01em;
}
.kx-chip i { width: 8px; height: 8px; background: var(--blue); border-radius: 50%; display: inline-block; }
.kx-h1 { font-size: clamp(2.05rem, 5.6vw, 3.7rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 18px 0 18px; }
.kx-h1 { text-wrap: balance; }
.kx-h1 em { font-style: normal; color: var(--blue); }
.kx-sub { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-2); max-width: 34em; }
.kx-cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.kx-skip { font-size: 16px; }
.kx-micro { margin-top: 16px; font-size: 14px; color: var(--mut); }
.kx-trust { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.kx-trust li { display: flex; align-items: center; gap: 10px; }
.kx-trust svg { flex: 0 0 22px; width: 22px; height: 22px; padding: 4px; background: #fff; color: var(--blue); border-radius: 50%; }
@media (min-width: 640px) { .kx-trust { grid-template-columns: 1fr 1fr; gap: 12px 24px; } }

.kx-visual { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.kx-card-img {
  background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--sky-2);
}
.kx-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.kx-pill {
  position: absolute; background: #fff; border-radius: 16px; padding: 12px 16px; font-weight: 700; font-size: 14px; line-height: 1.25;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; max-width: 220px;
}
.kx-pill small { display: block; font-weight: 500; color: var(--mut); font-size: 12px; }
.kx-pill svg { flex: 0 0 28px; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--sky-3); color: var(--blue); }
.kx-pill--a { left: -6px; top: 8%; }
.kx-pill--b { right: -6px; bottom: 22%; }
@media (max-width: 520px) { .kx-pill--a { left: 0; } .kx-pill--b { right: 0; } }
@media (min-width: 960px) {
  .kx-hero { padding: 72px 0 96px; }
  .kx-hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
}

/* ---------- sections ---------- */
.kx-sec { padding: 72px 0; }
.kx-sec--sky { background: var(--sky-3); }
@media (min-width: 960px) { .kx-sec { padding: 104px 0; } }
.kx-eyebrow { font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.kx-h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 14px; }
.kx-lede { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.kx-center { text-align: center; }
.kx-center .kx-lede { margin-left: auto; margin-right: auto; }

.kx-steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: s; }
.kx-step { background: #fff; border-radius: var(--r); padding: 28px 26px; box-shadow: var(--shadow); position: relative; counter-increment: s; }
.kx-step::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  background: var(--blue); color: #fff; font-weight: 800; font-size: 20px; margin-bottom: 18px;
}
.kx-step h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.kx-step p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 760px) { .kx-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .kx-steps { grid-template-columns: repeat(4, 1fr); } }
.kx-more { margin-top: 28px; }

.kx-prods { margin-top: 44px; display: grid; gap: 24px; }
.kx-prod { background: #fff; border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.kx-prod-img { background: linear-gradient(180deg, #fff, var(--sky-3)); aspect-ratio: 16 / 11; display: grid; place-items: center; }
.kx-prod-img img { width: 78%; height: 90%; object-fit: contain; }
.kx-prod-body { padding: 26px 28px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kx-tag { align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--sky-3); padding: 6px 12px; border-radius: 999px; }
.kx-prod h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; }
.kx-prod p { color: var(--ink-2); }
.kx-price { margin-top: 6px; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.kx-price small { font-size: 1rem; font-weight: 600; color: var(--mut); letter-spacing: 0; }
.kx-both { font-size: 15px; color: var(--mut); font-weight: 600; margin-top: -6px; }
.kx-prod-cta { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.kx-note { margin-top: 26px; font-size: 15px; color: var(--mut); }
@media (min-width: 860px) { .kx-prods { grid-template-columns: 1fr 1fr; } }

.kx-why { margin-top: 44px; display: grid; gap: 18px; }
.kx-why > div { background: #fff; border-radius: var(--r); padding: 28px 26px; box-shadow: var(--shadow); }
.kx-why svg { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--sky-3); color: var(--blue); margin-bottom: 16px; }
.kx-why h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.kx-why p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 860px) { .kx-why { grid-template-columns: repeat(3, 1fr); } }

.kx-faq { margin-top: 36px; display: grid; gap: 12px; max-width: 820px; margin-left: auto; margin-right: auto; }
.kx-faq details { background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); padding: 0 22px; }
.kx-faq summary { list-style: none; cursor: pointer; padding: 20px 28px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.kx-faq summary::-webkit-details-marker { display: none; }
.kx-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--blue); font-weight: 600; }
.kx-faq details[open] summary::after { content: "\2212"; }
.kx-faq details p { padding: 0 0 20px; color: var(--ink-2); }
.kx-faq a { color: var(--blue); font-weight: 600; }

.kx-final { background: var(--blue); color: #fff; padding: 80px 0; text-align: center; position: relative; overflow: hidden; }
.kx-final::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 320px at 50% -20%, rgba(255, 255, 255, .22), transparent 70%); }
.kx-final .kx-wrap { position: relative; }
.kx-final h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.kx-final p { margin: 14px auto 0; max-width: 34em; color: rgba(255, 255, 255, .88); font-size: 1.15rem; }
.kx-final .kx-cta-row { justify-content: center; margin-top: 30px; }
.kx-final .kx-link { color: #fff; border-color: rgba(255, 255, 255, .45); }
.kx-final .kx-link:hover { border-color: #fff; }

/* ---------- footer ---------- */
.kx-foot { background: var(--ink); color: rgba(255, 255, 255, .78); padding: 56px 0 40px; font-size: 15px; }
.kx-foot-grid { display: grid; gap: 32px; }
.kx-foot h4 { margin: 0 0 14px; color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.kx-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kx-foot a:hover { color: #fff; }
.kx-foot-brand p { margin-top: 12px; max-width: 34ch; }
.kx-foot-brand img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.kx-foot-legal { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 14px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.kx-foot-legal p { max-width: 100ch; }
@media (min-width: 860px) { .kx-foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- mobile sticky CTA ---------- */
.kx-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.kx-dock .kx-btn { min-height: 52px; font-size: 17px; width: 100%; }
.kx-dock a.kx-dock-shop { font-weight: 700; font-size: 14px; color: var(--blue); padding: 0 6px; text-align: center; line-height: 1.2; }
@media (min-width: 900px) { .kx-dock { display: none; } }

/* ---------- How it works page ---------- */
.kx-page-hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%); padding: 56px 0 64px; }
.kx-page-hero .kx-h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 16em; }
.kx-roles { margin-top: 36px; display: grid; gap: 16px; }
.kx-role { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.kx-role h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; color: var(--blue); letter-spacing: -.01em; }
.kx-role p { color: var(--ink-2); font-size: 16px; }
@media (min-width: 860px) { .kx-roles { grid-template-columns: repeat(4, 1fr); } }
.kx-timeline { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: t; max-width: 860px; }
.kx-timeline li { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 26px 26px 26px 86px; position: relative; counter-increment: t; }
.kx-timeline li::before { content: counter(t); position: absolute; left: 24px; top: 24px; width: 44px; height: 44px; border-radius: 14px; background: var(--blue); color: #fff; font-weight: 800; font-size: 20px; display: grid; place-items: center; }
.kx-timeline h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.kx-timeline p { color: var(--ink-2); font-size: 16px; }
.kx-prose { max-width: 760px; }
.kx-prose p + p { margin-top: 14px; }
.kx-small { font-size: 13px; color: var(--mut); max-width: 90ch; margin-top: 28px; }
@media (prefers-reduced-motion: reduce) { .kx-btn { transition: none; } }

/* ---------- offer strip ---------- */
.kx-strip { background: var(--sky-2); font-size: 13px; font-weight: 600; color: var(--ink); }
.kx-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.kx-strip p { display: flex; align-items: center; gap: 10px; }
.kx-strip a:hover { text-decoration: underline; }
.kx-strip-full { display: none !important; }
.kx-strip-go { color: var(--blue); font-weight: 800; }
@media (min-width: 700px) { .kx-strip-full { display: flex !important; } .kx-strip-short { display: none !important; } }

/* ---------- products dropdown ---------- */
.kx-drop { position: relative; }
.kx-drop summary { list-style: none; cursor: pointer; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kx-drop summary::-webkit-details-marker { display: none; }
.kx-drop summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.kx-drop[open] summary { color: var(--blue); }
.kx-drop-panel { position: absolute; top: 40px; left: -16px; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 8px; display: grid; }
.kx-drop-panel a { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 10px; color: var(--ink); }
.kx-drop-panel a:hover { background: var(--sky-3); }
.kx-drop-panel b { font-weight: 700; }
.kx-drop-panel span { color: var(--mut); font-weight: 500; text-align: right; line-height: 1.35; }
.kx-drop-panel .kx-drop-cmp { color: var(--blue); font-weight: 700; justify-content: flex-start; }

/* ---------- dark band ---------- */
.kx-dark { background: radial-gradient(900px 420px at 50% -10%, rgba(37, 99, 235, .35), transparent 65%), var(--ink); color: #fff; }
.kx-dark .kx-eyebrow { color: #8fc2ff; }
.kx-dark .kx-why > div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); box-shadow: none; }
.kx-dark .kx-why svg { background: rgba(255, 255, 255, .1); color: #8fc2ff; }
.kx-dark .kx-why p { color: rgba(255, 255, 255, .78); }

.kx-dock { transition: transform .25s ease; }
.kx-dock.kx-dock--wait { transform: translateY(110%); }
@media (max-width: 640px) { .kx-hero { padding: 28px 0 56px; } .kx-h1 { margin: 14px 0 12px; } .kx-sub { font-size: 1.02rem; } .kx-cta-row { margin-top: 20px; } .kx-trust { margin-top: 22px; } }
@media (prefers-reduced-motion: reduce) { .kx-dock { transition: none; } }

/* hero: white -> blue -> white */
.kx-hero { padding-bottom: 96px; }
@media (max-width: 640px) { .kx-hero { padding-bottom: 80px; } }
.kx-h1 em { display: block; }

/* ---------- impression kit ---------- */
.kx-kit { background: var(--sky-3); }
@media (max-width: 959px) { .kx-kit { padding: 48px 0; } }
.kx-kit-h, .kx-kit-lede { text-align: center; }
.kx-kit-lede { margin: 0 auto !important; }
.kx-kit-tiles { margin: 26px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kx-kit-tiles li { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kx-kit-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--sky-3); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.kx-kit-ic svg { width: 36px; height: 36px; }
.kx-kit-tiles b { font-weight: 800; font-size: 17px; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
.kx-kit-tiles li > span:last-child { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.kx-kit-redo { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 20px; padding: 18px 18px; display: flex; align-items: center; gap: 14px; }
.kx-kit-redo svg { flex: 0 0 28px; width: 28px; height: 28px; color: #8fc2ff; }
.kx-kit-redo p { font-size: 16px; line-height: 1.4; color: rgba(255,255,255,.86); }
.kx-kit-redo b { color: #fff; font-weight: 800; }
@media (min-width: 960px) {
  .kx-kit-tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
  .kx-kit-tiles li { padding: 28px 26px; gap: 8px; }
  .kx-kit-ic { width: 68px; height: 68px; margin-bottom: 10px; }
  .kx-kit-ic svg { width: 42px; height: 42px; }
  .kx-kit-tiles b { font-size: 20px; }
  .kx-kit-tiles li > span:last-child { font-size: 16px; }
  .kx-kit-redo { margin-top: 20px; padding: 24px 30px; justify-content: center; }
  .kx-kit-redo p { font-size: 19px; }
}

/* ---------- mobile + desktop polish pass ---------- */
.section-title, .kx-h2 { text-wrap: balance; }
.faq-link { display: inline-block; padding: 13px 8px; font-size: 16px; }
.footer-cta-sub { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.hub-price { font-size: 13px; }
@media (max-width: 599px) {
  .why-klyros-grid { grid-template-columns: 1fr; }
  .why-card { border-right: 0; border-bottom: 1px solid rgba(215,236,255,0.1); padding: 24px 6px; }
  .why-card:last-child { border-bottom: 0; }
}

/* ---------- homepage only (#root): one font, Inter, to match the hero and the quiz ---------- */
#root, #root * { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif !important; }
#root .section-title { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.08; letter-spacing: -.03em; color: #0a1628; }
#root .section-title em, #root .footer-cta-big em { font-style: normal; color: #2563eb; }
#root .section-title em::after, #root .footer-cta-big em::after { content: none; }
#root .hub-card h3 { font-weight: 800; font-size: 1.5rem; letter-spacing: -.025em; line-height: 1.15; color: #0a1628; }
#root .hub-card { border-radius: 22px; box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 12px 32px -12px rgba(10,22,40,.18); border-color: #dbe7f5; padding: 26px 24px 24px; }
#root .hub-price { font-weight: 800; letter-spacing: .08em; color: #2563eb; }
#root .hub-more { font-weight: 700; color: #2563eb; }
#root .footer-cta { background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 45%, #d6ecff 100%); padding: 72px 0 80px; }
#root .footer-cta-big { font-weight: 800; font-size: clamp(2.05rem, 5.6vw, 3.7rem); line-height: 1.04; letter-spacing: -.035em; color: #0a1628; }
#root .footer-cta-btn { background: #2563eb; color: #fff; font-weight: 700; font-size: 17px; min-height: 56px; padding: 0 30px; border-radius: 999px; box-shadow: 0 14px 28px -12px rgba(37,99,235,.6); }
#root .footer-cta-btn span { font-size: 17px !important; }
#root .footer-cta-sub, #root .footer-cta-trust { font-weight: 700; letter-spacing: .04em; }
@media (min-width: 900px) { #root .footer-cta { padding: 110px 0 120px; } }
/* dead space under the options cards */
#products { padding-bottom: 28px; }
@media (min-width: 900px) { #products { padding-bottom: 48px; } }
#root .footer-cta-sub { min-height: 0; padding: 14px 2px 4px; }

/* ---------- still have a question ---------- */
.kx-h2 em { font-style: normal; color: var(--blue); }
#root .kx-ask { padding: 40px 0 56px; background: #fff; }
.kx-ask-card { max-width: 1040px; margin: 0 auto; background: #f3f6fc; border: 1.5px solid #dbe3f0; border-radius: 28px; padding: 30px 20px 26px; text-align: center; }
.kx-ask-h { font-size: clamp(1.6rem, 4.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.kx-ask-p { margin-top: 8px !important; font-size: 1.08rem; color: var(--ink-2); max-width: 24em; margin-left: auto !important; margin-right: auto !important; }
.kx-ask-rows { margin-top: 20px; display: grid; gap: 12px; text-align: left; }
.kx-ask-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid #dbe3f0; border-radius: 18px; padding: 14px 16px; min-height: 72px; }
.kx-ask-row:hover { border-color: #8ec2f7; }
.kx-ask-ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #e3ecff; color: var(--blue); display: grid; place-items: center; }
.kx-ask-ic svg { width: 22px; height: 22px; }
.kx-ask-row b { display: block; font-weight: 800; font-size: 17px; line-height: 1.25; color: var(--ink); }
.kx-ask-v { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--blue); overflow-wrap: anywhere; }
.kx-ask-links { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.kx-ask-links a { font-weight: 600; font-size: 15px; color: var(--ink-2) !important; text-decoration: underline !important; text-decoration-color: #b9c4d6 !important; text-underline-offset: 4px; padding: 8px 0; }
@media (min-width: 860px) {
  #root .kx-ask { padding: 56px 0 80px; }
  .kx-ask-card { padding: 44px 40px 34px; }
  .kx-ask-rows { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* blue accent only in the hero; other headings stay one color */
#root .section-title em, #root .footer-cta-big em, .kx-h2 em { color: inherit; }

/* ---------- hero before/after ---------- */
.kx-ba-card { margin: 0; background: #fff; border-radius: 26px; padding: 10px 10px 0; box-shadow: var(--shadow-lg); }
.kx-ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kx-ba-img { position: relative; border-radius: 18px; overflow: hidden; background: #e9c6c0; }
.kx-ba-img img { width: 100%; height: 100%; aspect-ratio: 820 / 680; object-fit: cover; }
.kx-ba-tag { position: absolute; top: 8px; right: 8px; padding: 4px 11px; border-radius: 999px; color: #fff; font-weight: 800; font-size: 13px; line-height: 1.3; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.kx-ba-tag--b { background: #c62828; }
.kx-ba-tag--a { background: #15803d; }
.kx-ba-card figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px 13px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.kx-ba-card figcaption svg { width: 20px; height: 20px; color: #15803d; }
@media (min-width: 960px) {
  .kx-visual.kx-ba { max-width: 640px; }
  .kx-ba-card { padding: 12px 12px 0; }
  .kx-ba-pair { gap: 8px; }
  .kx-ba-tag { top: 12px; right: 12px; font-size: 15px; padding: 5px 14px; }
  .kx-ba-card figcaption { font-size: 17px; padding: 14px 8px 16px; }
}

/* ---------- mobile menu: short list + one button ---------- */
.kx-menu-panel { width: min(300px, calc(100vw - 32px)); padding: 12px; border-radius: 20px; }
.kx-menu-panel a { font-size: 17px; padding: 13px 14px; }
.kx-menu-panel a.kx-menu-cta { margin-top: 8px; justify-content: center; color: #fff; min-height: 52px; border-radius: 999px; font-weight: 700; }
.kx-menu-panel a.kx-menu-cta:hover { background: var(--blue-d); }
.kx-menu-panel a.kx-menu-text { text-align: center; font-size: 15px; font-weight: 600; color: var(--mut); padding: 12px 14px 6px; }

/* still-have-a-question: white box on the footer's dark color */
#root .kx-ask { background: #0A1220; padding: 44px 0 20px; }
.kx-ask-card { background: #fff; border-color: #fff; }
.kx-ask-row { background: #f5f8fd; }
@media (min-width: 860px) { #root .kx-ask { padding: 72px 0 32px; } }
#root .kx-ask + footer { border-top: 0; }

/* footer CTA: fade its glow in from the top so there's no hard line against the white above */
#root .footer-cta-grid { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 240px); mask-image: linear-gradient(180deg, transparent 0, #000 240px); }
#root .footer-cta { background: linear-gradient(180deg, #ffffff 0%, #ffffff 60px, #eaf4ff 55%, #d6ecff 100%); }

/* kit section: fade in and out of white so there's no hard edge above or below */
.kx-kit { background: linear-gradient(180deg, #ffffff 0%, #eaf4ff 26%, #eaf4ff 68%, #ffffff 100%); }
#products { padding-top: 16px; }
@media (min-width: 960px) { .kx-kit { padding-bottom: 80px; } #products { padding-top: 24px; } }

/* ---------- hero buttons: Start my smile / See my options / How it works ---------- */
html { scroll-behavior: smooth; }
#products, #how, #fit, #kit { scroll-margin-top: 84px; }
.kx-btn--line { box-shadow: inset 0 0 0 2px rgba(37, 99, 235, .35), 0 10px 22px -14px rgba(10, 22, 40, .35); }
.kx-how-link { font-size: 17px; }
@media (max-width: 899px) {
  .kx-home .kx-head-cta { display: none; }
  .kx-home .kx-menu { margin-left: auto; }
  .kx-cta-stack { flex-direction: column; align-items: stretch; gap: 12px; }
  .kx-cta-stack .kx-btn { width: 100%; }
  .kx-cta-stack .kx-how-link { align-self: center; padding: 6px 2px 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 959px) { .kx-hero-grid { gap: 22px; } }
#root .footer-cta-lede { margin-bottom: 28px; }
#root .footer-cta { padding-bottom: 64px; }
#root .footer-cta-faq { text-transform: none; letter-spacing: 0; font-size: 16px; font-weight: 600; color: var(--blue); border-color: rgba(37,99,235,.35); }

/* partial cards: easier-to-read tooth-count tag and body */
#root .hub-price { align-self: flex-start; font-size: 15px; letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; background: var(--sky-3); color: var(--blue); }
#root .hub-card p { font-size: 17px; line-height: 1.5; }
#root .hub-more { font-size: 16px; padding: 6px 0; }
@media (min-width: 960px) { #root .hub-card h3 { font-size: 1.75rem; } }

/* ---------- financing section ---------- */
.kx-pay-tag { display: inline-block; margin-bottom: 14px; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--blue); font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px -10px rgba(10,22,40,.35); }
.kx-pay-steps { list-style: none; margin: 0 auto 28px; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 420px; text-align: left; }
.kx-pay-steps li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 1px 2px rgba(10,22,40,.04), 0 10px 24px -14px rgba(10,22,40,.25); font-weight: 700; font-size: 17px; color: var(--ink); }
.kx-pay-steps b { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 15px; font-weight: 800; }
@media (min-width: 860px) {
  .kx-pay-steps { grid-template-columns: repeat(3, 1fr); max-width: 860px; gap: 16px; }
  .kx-pay-steps li { font-size: 16px; }
}

/* hero sub line: bigger and darker on phones */
@media (max-width: 640px) { .kx-sub { font-size: 18.5px; line-height: 1.5; color: #1e293b; } }
