/* k9.css: the v9 home (loaded after v5's tokens, site and light CSS, so the header, footer, buttons and dark mode are v5's).
   Calm and professional: real screens in browser frames, Geist, one accent, thin lines, generous space. Motion only where it
   explains (see k9.js); everything holds still under prefers-reduced-motion. */
.k9-eyebrow { margin: 0 0 12px; font: 600 12.5px/1 "Geist Mono", ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.k9-h2 { margin: 0 0 28px; font-size: clamp(30px, 2.2vw + 16px, 46px); line-height: 1.08; letter-spacing: -.025em; color: var(--heading); max-width: 22ch; text-wrap: balance; }
.k9-small { font-size: 14.5px; color: var(--muted); }
main section[class^="k9-"] { padding: clamp(64px, 8vw, 112px) 0; }
.k9-browser { margin: 0; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--raised);
  box-shadow: 0 1px 2px rgba(17, 27, 78, .06), 0 24px 48px -24px rgba(17, 27, 78, .28); }
.k9-browser img { display: block; width: 100%; height: auto; }
.k9-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.k9-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.k9-bar span { margin-left: 8px; font: 500 12px/1 "Geist Mono", ui-monospace, monospace; color: var(--muted); }

/* rise into place once, staggered within a group */
.k9-rise { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.k9-rise.in { opacity: 1; transform: none; }

/* ---- hero ---- */
.k9-hero { padding-top: clamp(48px, 6vw, 88px) !important; background: linear-gradient(180deg, var(--surface), var(--bg) 70%); }
.k9-hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.k9-hero h1 { margin: 0; font-size: clamp(38px, 3.6vw + 14px, 64px); line-height: 1.03; letter-spacing: -.035em; color: var(--heading); text-wrap: balance; }
.k9-lead { margin: 20px 0 0; font-size: clamp(17px, .4vw + 15px, 20px); line-height: 1.55; color: var(--text); max-width: 34rem; }
.k9-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.k9-facts { list-style: none; margin: 36px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.k9-facts b { display: block; font: 700 20px/1.1 "Geist", system-ui, sans-serif; color: var(--heading); letter-spacing: -.02em; }
.k9-facts span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.k9-hero-shot { position: relative; }
.k9-float { position: absolute; display: grid; gap: 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--raised);
  box-shadow: 0 18px 36px -18px rgba(17, 27, 78, .35); animation: k9-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.k9-float span { font-size: 12px; color: var(--muted); } .k9-float b { font: 700 19px/1 "Geist", system-ui; color: var(--heading); font-variant-numeric: tabular-nums; }
.k9-float-a { left: -28px; bottom: 18%; animation-delay: .5s; } .k9-float-b { right: -18px; top: 18%; animation-delay: .75s; }
.k9-float-c { right: 12%; bottom: -22px; animation-delay: 1s; } .k9-float-c b { color: var(--accent); }
@keyframes k9-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 960px) { .k9-hero-grid { grid-template-columns: 1fr; } .k9-facts { grid-template-columns: repeat(2, 1fr); } .k9-float-a { left: 8px; } .k9-float-b { right: 8px; } }

/* ---- where the money goes ---- */
.k9-leak-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.k9-leak { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.k9-leak-n { font: 600 12px/1 "Geist Mono", monospace; color: var(--muted); }
.k9-leak h3 { margin: 14px 0 12px; font-size: 19px; color: var(--heading); letter-spacing: -.01em; }
.k9-was { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.k9-was::before { content: "Today: "; font-weight: 600; }
.k9-now { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 15px; line-height: 1.5; color: var(--text); }
.k9-now::before { content: "With Keltory: "; font-weight: 600; color: var(--accent); }
@media (max-width: 1000px) { .k9-leak-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .k9-leak-grid { grid-template-columns: 1fr; } }

/* ---- scroll-driven sections share one frame: a tall section with a sticky screen inside ---- */
[data-k9-scroll] { position: relative; padding: 0 !important; }
.k9-sticky > * { min-width: 0; }
.k9-sticky { position: sticky; top: 64px; min-height: calc(100svh - 64px); display: grid; align-items: center; padding: 48px 0; }
.k9-flow { height: 520svh; background: var(--surface); }
.k9-owner { height: 380svh; }
.k9-floor { height: 320svh; background: var(--surface); overflow: clip; }
.k9-setup { height: 260svh; }

/* ---- one order, every department ---- */
.k9-flow-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.k9-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.k9-stages li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; transition: background .3s, color .3s; }
.k9-stages li::before { content: counter(s, decimal-leading-zero); font: 500 12px/1 "Geist Mono", monospace; }
.k9-stages li em { font-style: normal; font-size: 12px; color: var(--muted); }
.k9-stages li.done { color: var(--text); }
.k9-stages li.on { background: var(--raised); color: var(--heading); font-weight: 600; box-shadow: 0 1px 0 var(--line), 0 8px 20px -14px rgba(17, 27, 78, .4); }
.k9-stages li.on::before { color: var(--accent); }
.k9-doc-wrap { display: grid; gap: 16px; }
.k9-doc { padding: 24px 26px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--raised); box-shadow: 0 30px 60px -32px rgba(17, 27, 78, .45); }
.k9-doc header { display: flex; justify-content: space-between; align-items: center; }
.k9-doc-type { font: 600 13px/1 "Geist Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.k9-doc-status { padding: 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--tint); color: var(--accent); }
.k9-doc-no { margin: 14px 0 18px; font: 700 clamp(26px, 1.6vw + 14px, 34px)/1 "Geist", system-ui; letter-spacing: -.02em; color: var(--heading); font-variant-numeric: tabular-nums; }
.k9-doc-rows { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; font-size: 15px; }
.k9-doc-rows dt { color: var(--muted); } .k9-doc-rows dd { margin: 0; color: var(--heading); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.k9-doc-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 1.45; color: var(--text); }
.k9-doc-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.k9-doc-day { font-family: "Geist Mono", monospace; }
.k9-doc.swap { animation: k9-swap .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes k9-swap { from { opacity: .35; transform: translateY(10px); } }
.k9-who { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.k9-depts { display: flex; flex-wrap: wrap; gap: 6px; }
.k9-depts span { padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); transition: all .3s; }
.k9-depts span.on { border-color: var(--accent); background: var(--tint); color: var(--accent); font-weight: 600; }
.k9-track { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.k9-track-fill { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) {
  .k9-flow { height: auto; } .k9-flow .k9-sticky { position: static; min-height: 0; }
  .k9-flow-grid { grid-template-columns: 1fr; }
  .k9-stages { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; }
}

/* ---- your 9 am ---- */
.k9-owner-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.k9-checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.k9-checks li { padding: 12px 14px 12px 40px; position: relative; border-radius: 10px; color: var(--muted); transition: color .3s, background .3s; }
.k9-checks li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--line-strong); transition: all .3s; }
.k9-checks li.on { color: var(--heading); background: var(--surface); font-weight: 500; }
.k9-checks li.on::before { border-color: var(--accent); background: var(--accent); }
.k9-shot-box { position: relative; }
.k9-ring { position: absolute; border: 3px solid var(--accent); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(10, 16, 51, .22); transition: all .5s cubic-bezier(.2, .7, .2, 1); pointer-events: none; }
@media (max-width: 900px) { .k9-owner { height: auto; } .k9-owner .k9-sticky { position: static; min-height: 0; } .k9-owner-grid { grid-template-columns: 1fr; } .k9-ring { display: none; } }

/* ---- the floor: phones on a rail ---- */
.k9-floor .k9-sticky { align-content: center; gap: 20px; padding: 24px 0; }
.k9-floor .k9-h2 { margin-bottom: 0; }
.k9-rail { min-width: 0; max-width: 100vw; display: flex; gap: clamp(20px, 3vw, 40px); padding: 0 max(32px, calc((100vw - 1200px) / 2 + 32px)); will-change: transform; }
.k9-phone { flex: none; width: max-content; margin: 0; display: grid; gap: 14px; justify-items: start; }
.k9-phone img { width: auto; height: clamp(240px, calc(100svh - 64px - 400px), 540px); border-radius: 28px; border: 8px solid #111B4E; outline: 1px solid var(--line-strong); box-shadow: 0 30px 50px -28px rgba(17, 27, 78, .6); background: #fff; }
.k9-phone figcaption { width: 0; min-width: 100%; font-size: 14px; line-height: 1.45; color: var(--muted); }
.k9-phone figcaption b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--heading); }
@media (max-width: 900px) { .k9-phone img { height: 460px; } .k9-floor { height: auto; } .k9-floor .k9-sticky { position: static; min-height: 0; } .k9-rail { overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 12px; } .k9-phone { scroll-snap-align: start; } }

/* ---- modules: tabs ---- */
.k9-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 24px; flex-wrap: wrap; }
.k9-tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font: 500 15px/1 "Geist", system-ui; color: var(--muted); cursor: pointer; }
.k9-tabs button[aria-selected="true"] { background: var(--raised); color: var(--heading); box-shadow: 0 1px 2px rgba(17, 27, 78, .12); }
.k9-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; animation: k9-in .45s ease both; }
.k9-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.k9-panel li { padding-left: 16px; border-left: 2px solid var(--line-strong); color: var(--muted); font-size: 15px; line-height: 1.5; }
.k9-panel li b { display: block; color: var(--heading); font-size: 16.5px; margin-bottom: 2px; }
@media (max-width: 900px) { .k9-panel { grid-template-columns: 1fr; } }

/* ---- going live ---- */
.k9-week { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.k9-week li { padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); opacity: .45; transform: translateY(8px); transition: opacity .4s, transform .4s, border-color .4s; }
.k9-week li.on { opacity: 1; transform: none; border-color: var(--accent); }
.k9-week b { display: block; font: 600 13px/1 "Geist Mono", monospace; color: var(--accent); margin-bottom: 10px; }
.k9-week span { font-size: 14px; line-height: 1.45; color: var(--text); }
.k9-week-line { margin-top: 24px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.k9-week-line i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1000px) { .k9-setup { height: auto; } .k9-setup .k9-sticky { position: static; min-height: 0; } .k9-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k9-week li { opacity: 1; transform: none; } .k9-week-line { display: none; } }

/* ---- comparison ---- */
.k9-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.k9-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.k9-table th, .k9-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.k9-table thead th { font: 600 13px/1.3 "Geist", system-ui; color: var(--muted); background: var(--surface); }
.k9-table tbody th { font-weight: 500; color: var(--heading); width: 28%; }
.k9-table td { color: var(--muted); }
.k9-table .k9-us { color: var(--heading); font-weight: 600; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.k9-table thead .k9-us { color: var(--accent); }
.k9-table tr:last-child th, .k9-table tr:last-child td { border-bottom: 0; }

/* ---- trust ---- */
.k9-trust { background: var(--surface); }
.k9-trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.k9-trust-grid > div { padding: 26px; background: var(--raised); }
.k9-trust-grid h3 { margin: 0 0 8px; font-size: 17px; color: var(--heading); } .k9-trust-grid p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 900px) { .k9-trust-grid { grid-template-columns: 1fr; } }

/* ---- price and questions ---- */
.k9-price-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.k9-price-card { padding: 32px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--raised); }
.k9-amt { margin: 0 0 12px; font: 700 clamp(40px, 3vw + 16px, 56px)/1 "Geist", system-ui; letter-spacing: -.03em; color: var(--heading); }
.k9-amt small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.k9-faq details { border-bottom: 1px solid var(--line); }
.k9-faq summary { padding: 18px 0; cursor: pointer; font-weight: 600; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.k9-faq summary::after { content: "+"; font: 400 22px/1 "Geist", system-ui; color: var(--muted); transition: transform .25s; }
.k9-faq details[open] summary::after { transform: rotate(45deg); }
.k9-faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .k9-price-grid { grid-template-columns: 1fr; } }

.k9-close { background: var(--navy-900); }
.k9-close-in { text-align: center; display: grid; justify-items: center; gap: 16px; }
.k9-close h2 { margin: 0; color: #fff; font-size: clamp(30px, 2vw + 18px, 44px); letter-spacing: -.025em; }
.k9-close p { margin: 0; color: #C9D2F2; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  .k9-rise { opacity: 1; transform: none; transition: none; }
  .k9-float, .k9-panel, .k9-doc.swap { animation: none; }
  .k9-flow, .k9-owner, .k9-floor, .k9-setup { height: auto; }
  .k9-sticky { position: static; min-height: 0; }
  .k9-week li { opacity: 1; transform: none; } .k9-ring { display: none; }
  .k9-rail { overflow-x: auto; }
}
.k9-flow-grid > *, .k9-owner-grid > *, .k9-hero-grid > *, .k9-price-grid > *, .k9-panel > * { min-width: 0; }
