/* Kashly landing page: light take on the "Cordon" layout (pill nav, mono labels, giant headline over a globe). */

:root {
    --bg: #f6f7fb;
    --surface: #ffffff;
    --ink: #0a1022;
    --ink-2: #2a3247;
    --muted: #5b6478;
    --line: #e3e7ef;
    --line-2: #d4dae6;
    --blue: #2f5bff;
    --blue-deep: #1f3fd9;
    --blue-soft: #eef2ff;
    --green: #16a34a;
    --green-soft: #e8f7ee;
    --red: #dc2626;
    --radius: 14px;
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --gutter: clamp(16px, 4vw, 48px);
    --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.k {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.k-skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.k-skip:focus { left: 8px; }

/* ───────── Buttons ───────── */
.k-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 44px; padding: 0 20px;
    font: 500 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
    border: 1px solid transparent; border-radius: 4px; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.k-btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(47, 91, 255, .7); }
.k-btn--primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.k-btn--ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--ink); }
.k-btn--ghost:hover { background: var(--ink); color: #fff; }

/* ───────── Nav ───────── */
.k-nav {
    position: sticky; top: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
    padding: 14px var(--gutter);
    background: rgba(246, 247, 251, .78);
    backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s ease;
}
.k-nav.is-scrolled { border-bottom-color: var(--line); }
.k-nav__left, .k-nav__right { display: flex; align-items: center; gap: 22px; }
.k-nav__right { justify-content: flex-end; }
.k-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 15px/1 var(--mono); letter-spacing: .28em; }
.k-brand img { width: 26px; height: 26px; }
.k-status { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--mono); letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.k-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); animation: k-pulse 2s infinite; }
@keyframes k-pulse { 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

.k-nav__pill {
    display: flex; gap: 4px; padding: 5px;
    background: rgba(255, 255, 255, .85); border: 1px solid var(--line); border-radius: 999px;
}
.k-nav__pill a {
    padding: 9px 16px; border-radius: 999px; text-decoration: none;
    font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2);
    transition: background .2s ease, color .2s ease;
}
.k-nav__pill a:hover { background: var(--blue-soft); color: var(--blue); }
.k-clock { font: 400 12px/1 var(--mono); letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.k-clock b { color: var(--ink); font-weight: 500; }

.k-burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.k-burger span { display: block; width: 18px; height: 1.5px; margin: 5px auto; background: var(--ink); transition: transform .25s ease; }
.k-burger[aria-expanded=true] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.k-burger[aria-expanded=true] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.k-drawer { grid-column: 1 / -1; display: grid; gap: 4px; padding: 8px 0 12px; }
.k-drawer[hidden] { display: none; }
.k-drawer a:not(.k-btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.k-drawer .k-btn { margin-top: 10px; }

/* ───────── Hero ───────── */
.k-hero {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    min-height: calc(100svh - 73px); padding: clamp(56px, 10vh, 120px) var(--gutter) 96px;
    overflow: hidden;
}
.k-hero::after {
    content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; z-index: -2;
    background: radial-gradient(60% 60% at 50% 100%, rgba(47, 91, 255, .22), rgba(47, 91, 255, 0) 70%);
    pointer-events: none;
}
.k-globe { position: absolute; z-index: -1; left: 50%; top: 50%; width: min(620px, 92vw); aspect-ratio: 1; transform: translate(-50%, -54%); }
.k-hero__title { display: flex; flex-direction: column; font-size: clamp(42px, 9.4vw, 132px); font-weight: 500; letter-spacing: -0.055em; line-height: .95; }
.k-hero__title span { display: block; text-shadow: 0 1px 0 rgba(246, 247, 251, .6), 0 0 32px rgba(246, 247, 251, .9); }
.k-hero__lead { max-width: 560px; margin-top: 36px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--ink-2); text-shadow: 0 0 18px rgba(246, 247, 251, 1); }
.k-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.k-log { position: absolute; z-index: 1; font: 400 12px/1.75 var(--mono); color: var(--muted); text-align: left; pointer-events: none; }
.k-log b { color: var(--green); font-weight: 500; }
.k-log p { white-space: nowrap; }
.k-log--top { right: calc(50% - 330px); top: clamp(40px, 8vh, 96px); }
.k-log--bottom { left: calc(50% + 300px); top: 60%; }

/* ───────── Ticker ───────── */
.k-ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.k-ticker__track { display: flex; width: max-content; animation: k-marquee 42s linear infinite; }
.k-ticker span { padding: 18px 28px; font: 400 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.k-ticker span::before { content: "◆"; margin-right: 28px; color: var(--blue); font-size: 8px; vertical-align: 2px; }
@keyframes k-marquee { to { transform: translateX(-50%); } }

/* ───────── Stats ───────── */
.k-stats { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.k-stat { padding: 40px 24px; border-right: 1px solid var(--line); }
.k-stat:last-child { border-right: 0; }
.k-stat b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.k-stat span { display: block; margin-top: 10px; font: 400 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ───────── Sections ───────── */
.k-section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 11vw, 140px) var(--gutter) 0; }
.k-section--narrow { max-width: 860px; }
.k-section__head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.k-section__head--left { margin-inline: 0; text-align: left; }
.k-section__head h2 { font-size: clamp(32px, 5vw, 60px); }
.k-section__head p:not(.k-eyebrow) { margin-top: 18px; font-size: 18px; color: var(--muted); }
.k-eyebrow { margin-bottom: 18px !important; font: 400 12px/1 var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--blue) !important; }

/* ───────── Live run ───────── */
.k-run {
    display: grid; grid-template-columns: 320px 1fr; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 30px 60px -40px rgba(10, 16, 34, .25);
    overflow: hidden;
}
.k-run__controls { display: grid; align-content: start; gap: 26px; padding: 28px; border-right: 1px solid var(--line); background: #fbfcfe; }
.k-field { display: grid; gap: 12px; }
.k-field > span { display: flex; justify-content: space-between; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.k-field b { color: var(--ink); font-weight: 500; }
.k-field input[type=range] { width: 100%; accent-color: var(--blue); height: 28px; }
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.k-chips legend { width: 100%; margin-bottom: 12px; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.k-chips label {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
    font-size: 13px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.k-chips label em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.k-chips input { position: absolute; opacity: 0; pointer-events: none; }
.k-chips label:has(input:checked) { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-deep); }
.k-chips label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.k-run__chart { position: relative; padding: 28px; min-width: 0; }
.k-run__figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.k-run__figures span { display: block; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.k-run__figures b { display: block; margin-top: 8px; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.k-run__figures small { display: block; margin-top: 4px; font: 400 11px/1 var(--mono); color: var(--muted); }
.k-run__figures .is-neg { color: var(--red); }
.k-run svg { width: 100%; height: 240px; overflow: visible; }
.k-run__grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.k-run__area { fill: url(#k-area); }
.k-run__line { fill: none; stroke: var(--blue); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.k-run__zero { stroke: var(--red); stroke-width: 1; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; opacity: 0; }
.k-run__zero.is-visible { opacity: .7; }
.k-run__low { fill: var(--surface); stroke: var(--green); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.k-run__low.is-neg { stroke: var(--red); }
.k-run__months { display: grid; grid-template-columns: repeat(12, 1fr); margin-top: 8px; font: 400 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.k-run__log {
    margin-top: 20px; padding: 14px 16px; height: 118px; overflow: hidden;
    font: 400 12px/1.75 var(--mono); color: var(--ink-2); background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px;
}
.k-run__log p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-run__log .in { color: var(--green); }
.k-run__log .out { color: var(--ink-2); }
.k-run__log .warn { color: var(--red); }

/* ───────── Feature grid ───────── */
.k-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.k-card { padding: 32px 28px 36px; background: transparent; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.k-card:hover { background: var(--surface); }
.k-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; color: var(--blue); }
.k-card__top span { font: 400 11px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.k-card h3 { font-size: 24px; }
.k-card p { margin-top: 12px; color: var(--muted); }

/* ───────── How it works ───────── */
.k-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.k-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.k-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.k-steps li > span { font: 500 13px/1.9 var(--mono); color: var(--blue); }
.k-steps h3 { font-size: 22px; }
.k-steps p { margin-top: 8px; color: var(--muted); }

.k-phone {
    justify-self: center; width: min(320px, 100%); padding: 12px;
    background: var(--ink); border-radius: 44px;
    box-shadow: 0 50px 80px -40px rgba(31, 63, 217, .55), 0 0 0 1px rgba(10, 16, 34, .08);
}
.k-phone__screen { padding: 18px 18px 22px; background: var(--bg); border-radius: 34px; }
.k-phone__bar { display: flex; justify-content: space-between; font: 500 12px/1 var(--mono); color: var(--ink-2); padding: 4px 6px 18px; }
.k-phone__balance { padding: 18px; color: #fff; background: linear-gradient(135deg, #4f7bff, var(--blue-deep)); border-radius: 20px; }
.k-phone__balance small { display: block; font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.k-phone__balance b { display: block; margin: 10px 0 8px; font-size: 32px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.k-up { font: 400 11px/1 var(--mono); color: #b6f5cc; }
.k-phone__split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.k-phone__split div { padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.k-phone__split small, .k-phone__label { display: block; font: 400 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.k-phone__split b { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.k-phone__spark { width: 100%; height: 50px; margin: 14px 0; }
.k-phone__list { margin: 10px 0 0; padding: 0; list-style: none; }
.k-phone__list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.k-phone__list li:last-child { border-bottom: 0; }
.k-phone__list i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.k-phone__list i.in { background: var(--green); }
.k-phone__list small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.k-phone__list b { font-weight: 600; font-variant-numeric: tabular-nums; }
.k-phone__list b.in { color: var(--green); }

/* ───────── Demo ───────── */
.k-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.k-demo__card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.k-demo__card h3 { font-size: 26px; }
.k-demo__card > p:not(.k-eyebrow) { color: var(--muted); }
.k-demo__card .k-eyebrow { margin-bottom: 0 !important; }
.k-demo__card .k-btn { margin-top: auto; }
.k-demo__hint { font: 400 12px/1.4 var(--mono) !important; color: var(--muted); }
.k-cred { display: grid; gap: 8px; width: 100%; margin: 4px 0 0; }
.k-cred div { display: grid; grid-template-columns: 90px 1fr; align-items: center; padding: 10px 12px; background: #f7f8fc; border: 1px solid var(--line); border-radius: 10px; }
.k-cred dt { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.k-cred dd { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; min-width: 0; }
.k-cred code { font: 500 13px/1.3 var(--mono); overflow-wrap: anywhere; }
.k-copy { min-height: 32px; padding: 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--blue-soft); border: 0; border-radius: 6px; cursor: pointer; }
.k-stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* ───────── FAQ ───────── */
.k-faq { border-top: 1px solid var(--line); }
.k-faq details { border-bottom: 1px solid var(--line); }
.k-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; cursor: pointer; list-style: none;
}
.k-faq summary::-webkit-details-marker { display: none; }
.k-faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--blue); transition: transform .25s ease; }
.k-faq details[open] summary::after { transform: rotate(45deg); }
.k-faq details p { padding: 0 0 22px; max-width: 680px; color: var(--muted); }

/* ───────── Final CTA ───────── */
.k-cta {
    position: relative; isolation: isolate; overflow: hidden;
    margin-top: clamp(80px, 12vw, 160px); padding: clamp(80px, 12vw, 150px) var(--gutter);
    text-align: center; border-top: 1px solid var(--line);
    background: radial-gradient(50% 70% at 50% 100%, rgba(47, 91, 255, .16), transparent 70%);
}
.k-cta h2 { font-size: clamp(44px, 8vw, 112px); letter-spacing: -0.055em; line-height: .95; text-shadow: 0 0 32px rgba(246, 247, 251, .95); }
.k-globe--cta { width: min(520px, 90vw); top: 60%; opacity: .7; }

/* ───────── Footer ───────── */
.k-footer { padding: 40px var(--gutter) 32px; border-top: 1px solid var(--line); background: var(--surface); }
.k-footer__top, .k-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; max-width: var(--max); margin: 0 auto; }
.k-footer__top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.k-footer__top nav a { font: 400 12px/2 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted); }
.k-footer__top nav a:hover { color: var(--blue); }
.k-footer__bottom { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ───────── Reveal ───────── */
.k-js .k-reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.k-js .k-reveal.is-in { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1279px) {
    .k-log { display: none; }
}
@media (max-width: 1100px) {
    .k-clock, .k-status { display: none; }
}
@media (max-width: 900px) {
    .k-nav { grid-template-columns: 1fr auto; }
    .k-nav__pill { display: none; }
    .k-nav__right .k-btn { display: none; }
    .k-burger { display: block; }
    .k-stats { grid-template-columns: repeat(2, 1fr); }
    .k-stat:nth-child(2) { border-right: 0; }
    .k-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .k-run { grid-template-columns: 1fr; }
    .k-run__controls { border-right: 0; border-bottom: 1px solid var(--line); }
    .k-grid { grid-template-columns: 1fr 1fr; }
    .k-split { grid-template-columns: 1fr; }
    .k-demo { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .k-hero { min-height: auto; padding-top: 56px; }
    .k-globe { width: 118vw; }
    .k-hero__cta .k-btn { flex: 1 1 100%; }
    .k-stat { padding: 28px 12px; }
    .k-run__controls, .k-run__chart { padding: 20px 16px; }
    .k-run__figures { grid-template-columns: 1fr 1fr; }
    .k-run__figures > div:last-child { grid-column: 1 / -1; }
    .k-run svg { height: 180px; }
    .k-run__months span:nth-child(even) { visibility: hidden; }
    .k-grid { grid-template-columns: 1fr; }
    .k-card__top { margin-bottom: 24px; }
    .k-demo__card { padding: 24px 20px; }
    .k-cred div { grid-template-columns: 1fr; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
