/* ═══════════════════════════════════════════════════════════════════════════
   site.css — public website + sign-in / sign-up pages for every brand.
   Contains NO colours of its own: everything comes from the --k-* tokens in
   assets/css/brands/<brand>.css. Scoped under .ks-site / .ks-auth so it never
   leaks into the console.
   ═══════════════════════════════════════════════════════════════════════════ */

body.ks-body { background: var(--k-bg); margin: 0; }

body.ks-body { overflow-x: hidden; }
.ks-site, .ks-auth {
    font-family: var(--k-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--k-text);
    -webkit-font-smoothing: antialiased;
}
.ks-site *, .ks-auth * { box-sizing: border-box; }
.ks-site h1, .ks-site h2, .ks-site h3, .ks-site h4,
.ks-auth h1, .ks-auth h2, .ks-auth h3 {
    font-family: var(--k-font-head);
    color: var(--k-ink);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -.015em;
}
.ks-site p, .ks-auth p { margin: 0; }
.ks-site a, .ks-auth a { color: var(--k-primary); text-decoration: none; }
.ks-site a:hover, .ks-auth a:hover { color: var(--k-primary-hover); }
.ks-site img { max-width: 100%; }
.ks-site svg.feather, .ks-auth svg.feather { width: 1em; height: 1em; stroke-width: 2; vertical-align: -.125em; }

.ks-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.ks-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--k-font-body); font-weight: 600; font-size: .95rem; line-height: 1;
    padding: 14px 22px; border-radius: 10px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    white-space: nowrap;
}
.ks-btn:hover { transform: translateY(-1px); }
.ks-btn:focus-visible { outline: 3px solid var(--k-accent-2); outline-offset: 2px; }
.ks-btn-primary { background: var(--k-primary); color: var(--k-primary-ink) !important; box-shadow: 0 6px 20px -6px var(--k-primary); }
.ks-btn-primary:hover { background: var(--k-primary-hover); }
.ks-btn-ghost { background: transparent; color: var(--k-ink) !important; border-color: var(--k-border); }
.ks-btn-ghost:hover { border-color: var(--k-primary); color: var(--k-primary) !important; }
.ks-btn-light { background: #fff; color: var(--k-navy) !important; }
.ks-btn-outline-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.35); }
.ks-btn-outline-light:hover { border-color: #fff; }
.ks-btn-sm { padding: 10px 16px; font-size: .88rem; }
.ks-btn-block { width: 100%; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.ks-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--k-bg) 88%, transparent);
    backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .2s;
}
.ks-header.is-scrolled { border-bottom-color: var(--k-border); }
.ks-header .ks-wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.ks-brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ks-brand img { height: 38px; width: auto; }
.ks-brand .ks-wordmark { font-size: 1.15rem; }
.ks-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.ks-nav > a, .ks-nav-drop > button {
    color: var(--k-text) !important; font-weight: 500; font-size: .93rem; padding: 8px 12px; border-radius: 8px;
    background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
}
.ks-nav > a:hover, .ks-nav-drop > button:hover, .ks-nav-drop.is-open > button { background: var(--k-bg-alt); color: var(--k-ink) !important; }
.ks-header-cta { display: flex; align-items: center; gap: 10px; }
.ks-header-cta .ks-signin { color: var(--k-ink) !important; font-weight: 600; font-size: .93rem; padding: 8px 10px; }

/* Products mega menu */
.ks-nav-drop { position: relative; }
.ks-mega {
    position: absolute; top: calc(100% + 10px); left: -120px; width: min(880px, 92vw);
    background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 16px; box-shadow: 0 24px 60px -12px rgba(4,26,64,.22);
    padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px 18px;
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s ease;
}
.ks-nav-drop.is-open .ks-mega { opacity: 1; visibility: visible; transform: none; }
.ks-mega h6 { font-family: var(--k-font-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); margin: 6px 0 6px; font-weight: 600; }
.ks-mega a { display: block; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--k-ink) !important; font-size: .9rem; font-weight: 500; line-height: 1.3; }
.ks-mega a small { display: block; color: var(--k-muted); font-weight: 400; font-size: .78rem; }
.ks-mega a:hover { background: var(--k-bg-alt); }

.ks-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--k-border); border-radius: 10px; padding: 8px 10px; color: var(--k-ink); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.ks-hero { position: relative; overflow: hidden; padding: 72px 0 88px; background: linear-gradient(180deg, var(--k-bg) 0%, var(--k-bg-alt) 100%); }
.ks-hero::before, .ks-hero::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.ks-hero::before { width: 620px; height: 620px; right: -160px; top: -220px; background: var(--k-glow-1); }
.ks-hero::after { width: 460px; height: 460px; left: -180px; bottom: -220px; background: var(--k-glow-2); }
.ks-hero-grid {
    position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image: linear-gradient(var(--k-border) 1px, transparent 1px), linear-gradient(90deg, var(--k-border) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
}
.ks-hero .ks-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.ks-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--k-primary); background: var(--k-primary-soft); padding: 7px 12px; border-radius: 999px; margin-bottom: 22px;
}
.ks-eyebrow i, .ks-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--k-accent); display: inline-block; }
.ks-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.9rem); font-weight: 800; margin-bottom: 22px; }
.ks-grad-text { background: var(--k-grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ks-hero-sub { font-size: 1.14rem; color: var(--k-muted); max-width: 560px; margin-bottom: 32px !important; }
.ks-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.ks-hero-note { font-size: .86rem; color: var(--k-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.ks-hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.ks-hero-note svg { color: var(--k-accent-2); }

/* Hero console mock — live resize demo */
.ks-mock {
    position: relative; background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 18px;
    box-shadow: 0 30px 80px -20px rgba(4, 26, 64, .30), 0 2px 6px rgba(4,26,64,.05); overflow: hidden;
}
.ks-mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--k-border); background: var(--k-bg-alt); }
.ks-mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--k-border); display: inline-block; }
.ks-mock-bar span { margin-left: 10px; font-size: .78rem; color: var(--k-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.ks-mock-body { padding: 22px; }
.ks-vm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ks-vm-name { font-weight: 700; color: var(--k-ink); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.ks-vm-name small { display: block; font-weight: 500; color: var(--k-muted); font-size: .76rem; }
.ks-vm-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--k-grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.ks-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.ks-pill-ok { background: rgba(34, 197, 94, .12); color: #15803d; }
.ks-pill-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.ks-meter { margin-bottom: 16px; }
.ks-meter-top { display: flex; justify-content: space-between; font-size: .82rem; margin-bottom: 7px; color: var(--k-muted); }
.ks-meter-top b { color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ks-meter-track { height: 9px; background: var(--k-bg-alt); border-radius: 99px; overflow: hidden; border: 1px solid var(--k-border); }
.ks-meter-fill { height: 100%; border-radius: 99px; background: var(--k-grad); width: 40%; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.ks-mock-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.ks-stat { background: var(--k-bg-alt); border: 1px solid var(--k-border); border-radius: 12px; padding: 10px 12px; }
.ks-stat small { display: block; font-size: .7rem; color: var(--k-muted); text-transform: uppercase; letter-spacing: .05em; }
.ks-stat b { font-size: 1rem; color: var(--k-ink); font-variant-numeric: tabular-nums; }
.ks-toast {
    position: absolute; right: 18px; bottom: 18px; background: var(--k-ink); color: #fff; font-size: .8rem; padding: 10px 14px; border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(8px); transition: all .35s ease;
}
.ks-toast.show { opacity: 1; transform: none; }
.ks-toast svg { color: #4ade80; }

/* ── Capability strip ─────────────────────────────────────────────────────── */
.ks-strip { border-top: 1px solid var(--k-border); border-bottom: 1px solid var(--k-border); background: var(--k-bg); }
.ks-strip .ks-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.ks-strip-item { padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; border-left: 1px solid var(--k-border); }
.ks-strip-item:first-child { border-left: 0; padding-left: 0; }
.ks-strip-item svg { font-size: 22px; color: var(--k-primary); flex-shrink: 0; margin-top: 2px; }
.ks-strip-item b { display: block; color: var(--k-ink); font-size: .95rem; }
.ks-strip-item span { font-size: .85rem; color: var(--k-muted); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.ks-section { padding: 96px 0; }
.ks-section.alt { background: var(--k-bg-alt); }
.ks-head { max-width: 720px; margin-bottom: 48px; }
.ks-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.ks-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--k-accent); margin-bottom: 12px !important; display: block; }
.ks-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; margin-bottom: 14px; }
.ks-head p { font-size: 1.08rem; color: var(--k-muted); }

/* Products explorer */
.ks-explorer { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.ks-tabs { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.ks-tab {
    text-align: left; background: none; border: 0; padding: 12px 14px; border-radius: 10px; cursor: pointer; font-family: inherit;
    color: var(--k-text); font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 12px; transition: background .15s, color .15s;
}
.ks-tab svg { font-size: 18px; color: var(--k-muted); }
.ks-tab:hover { background: var(--k-surface); }
.ks-tab.is-active { background: var(--k-surface); color: var(--k-primary); box-shadow: var(--k-shadow); }
.ks-tab.is-active svg { color: var(--k-primary); }
.ks-panel { display: none; }
.ks-panel.is-active { display: block; animation: ksFade .35s ease; }
.ks-panel-blurb { color: var(--k-muted); margin-bottom: 20px !important; font-size: 1rem; }
.ks-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ks-card {
    background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); padding: 24px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; position: relative;
}
.ks-card:hover { transform: translateY(-3px); box-shadow: var(--k-shadow); border-color: color-mix(in srgb, var(--k-primary) 35%, var(--k-border)); }
.ks-card-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k-primary); margin-bottom: 8px !important; display: block; }
.ks-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; }
.ks-card p { font-size: .93rem; color: var(--k-muted); margin-bottom: 14px !important; }
.ks-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.ks-card li { font-size: .88rem; color: var(--k-text); display: flex; gap: 8px; align-items: flex-start; }
.ks-card li::before { content: ""; flex-shrink: 0; margin-top: 7px; width: 6px; height: 6px; border-radius: 2px; background: var(--k-accent); }
.ks-soon { position: absolute; top: 18px; right: 18px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; background: var(--k-bg-alt); color: var(--k-muted); border: 1px solid var(--k-border); }

/* Deep (dark) band */
.ks-deep { background: var(--k-deep); color: var(--k-on-deep); position: relative; overflow: hidden; }
.ks-deep::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -320px; background: var(--k-glow-1); filter: blur(100px); opacity: .8; }
.ks-deep h2, .ks-deep h3 { color: #fff; }
.ks-deep .ks-head p { color: var(--k-on-deep-muted); }
.ks-deep .ks-kicker { color: var(--k-accent); }
.ks-diff { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--k-deep-border); border: 1px solid var(--k-deep-border); border-radius: 18px; overflow: hidden; position: relative; }
.ks-diff-item { background: var(--k-deep); padding: 30px 28px; transition: background .2s; }
.ks-diff-item:hover { background: var(--k-deep-2); }
.ks-diff-icon { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid var(--k-deep-border); font-size: 20px; color: var(--k-accent-2); margin-bottom: 18px; }
.ks-diff-item h3 { font-size: 1.12rem; margin-bottom: 10px; }
.ks-diff-item p { font-size: .92rem; color: var(--k-on-deep-muted); }

/* Comparison */
.ks-compare { margin-top: 56px; position: relative; background: rgba(255,255,255,.03); border: 1px solid var(--k-deep-border); border-radius: 18px; padding: 28px; }
.ks-compare h3 { font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.ks-compare-row { display: grid; grid-template-columns: 220px 1fr 32px; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--k-deep-border); font-size: .94rem; }
.ks-compare-row:first-of-type { border-top: 0; }
.ks-compare-row b { color: #fff; font-weight: 600; }
.ks-compare-row span { color: var(--k-on-deep-muted); }
.ks-compare-row.self b { color: var(--k-accent); }
.ks-compare-row.self span { color: var(--k-on-deep); }
.ks-yes, .ks-no { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.ks-yes { background: rgba(74, 222, 128, .16); color: #4ade80; }
.ks-no { background: rgba(255,255,255,.06); color: var(--k-on-deep-muted); }
.ks-compare-note { font-size: .78rem; color: var(--k-on-deep-muted); margin-top: 14px !important; }

/* AI assistant showcase */
.ks-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ks-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ks-list li { display: flex; gap: 12px; align-items: flex-start; }
.ks-list li svg { flex-shrink: 0; font-size: 20px; color: var(--k-primary); margin-top: 2px; }
.ks-list li b { color: var(--k-ink); display: block; }
.ks-list li span { color: var(--k-muted); font-size: .94rem; }
.ks-chat { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 18px; box-shadow: var(--k-shadow); overflow: hidden; }
.ks-chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--k-border); font-weight: 700; color: var(--k-ink); font-size: .95rem; }
.ks-chat-head .ks-vm-icon { width: 30px; height: 30px; font-size: 15px; border-radius: 8px; }
.ks-chat-head small { display: block; font-weight: 500; color: var(--k-muted); font-size: .74rem; }
.ks-chat-body { padding: 20px 18px; display: grid; gap: 14px; background: var(--k-bg-alt); min-height: 330px; }
.ks-msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; opacity: 0; transform: translateY(8px); transition: all .4s ease; }
.ks-msg.in { opacity: 1; transform: none; }
.ks-msg.user { justify-self: end; background: var(--k-primary); color: #fff; border-bottom-right-radius: 4px; }
.ks-msg.ai { justify-self: start; background: var(--k-surface); border: 1px solid var(--k-border); color: var(--k-text); border-bottom-left-radius: 4px; }
.ks-action { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--k-border); border-radius: 10px; padding: 10px 12px; background: var(--k-bg-alt); }
.ks-action b { font-size: .84rem; color: var(--k-ink); }
.ks-action small { display: block; color: var(--k-muted); font-size: .74rem; }
.ks-action button { font-size: .78rem; padding: 7px 12px; border-radius: 8px; border: 0; background: var(--k-primary); color: #fff; font-weight: 600; }

/* Solutions */
.ks-sol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ks-sol .ks-card { padding: 30px; display: flex; gap: 20px; }
.ks-sol-icon { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; background: var(--k-primary-soft); color: var(--k-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.ks-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ks-chip { font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--k-bg-alt); border: 1px solid var(--k-border); color: var(--k-text); }

/* Regions */
.ks-regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.ks-region { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.ks-region svg { color: var(--k-accent); font-size: 18px; flex-shrink: 0; }
.ks-region b { display: block; color: var(--k-ink); font-size: .95rem; }
.ks-region small { color: var(--k-muted); font-size: .8rem; }

/* Security */
.ks-sec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ks-sec-item { padding: 6px 0; }
.ks-sec-item svg { font-size: 24px; color: var(--k-primary); margin-bottom: 14px; }
.ks-sec-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.ks-sec-item p { color: var(--k-muted); font-size: .92rem; }

/* Pricing */
.ks-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.ks-price .ks-card h3 { display: flex; align-items: center; gap: 10px; }
.ks-price .ks-card h3 span { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--k-grad); color: #fff; font-size: .85rem; font-family: var(--k-font-body); }
.ks-price-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

/* FAQ */
.ks-faq { max-width: 860px; margin: 0 auto; }
.ks-faq details { border-bottom: 1px solid var(--k-border); padding: 4px 0; }
.ks-faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; color: var(--k-ink); font-size: 1.04rem; }
.ks-faq summary::-webkit-details-marker { display: none; }
.ks-faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--k-primary); transition: transform .2s; }
.ks-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ks-faq details p { color: var(--k-muted); padding: 0 40px 20px 0; }

/* CTA band */
.ks-cta { padding: 0 0 96px; }
.ks-cta-box { border-radius: 24px; padding: 64px 48px; background: var(--k-grad); color: #fff; text-align: center; position: relative; overflow: hidden; }
.ks-cta-box::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 60%, transparent); opacity: .5; pointer-events: none; }
.ks-cta-box h2 { color: #fff; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 14px; position: relative; z-index: 1; }
.ks-cta-box p { color: rgba(255,255,255,.88); font-size: 1.08rem; margin-bottom: 30px !important; position: relative; z-index: 1; }
.ks-cta-box .ks-hero-ctas { justify-content: center; margin: 0; position: relative; z-index: 1; }

/* Footer */
.ks-footer { background: var(--k-deep); color: var(--k-on-deep-muted); padding: 72px 0 32px; font-size: .9rem; }
.ks-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; margin-bottom: 48px; }
.ks-footer h5 { font-family: var(--k-font-body); color: #fff; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px; }
.ks-footer a { display: block; color: var(--k-on-deep-muted) !important; margin-bottom: 10px; }
.ks-footer a:hover { color: #fff !important; }
.ks-footer-about img { height: auto; width: auto; max-height: 64px; max-width: 220px; margin-bottom: 16px; }
.ks-footer-about p { max-width: 300px; }
.ks-footer-bottom { border-top: 1px solid var(--k-deep-border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.ks-footer-bottom nav { display: flex; gap: 20px; }
.ks-footer-bottom nav a { display: inline; margin: 0; }
/* "© 2026 <Company>. All rights reserved." stays on one line; the company name links to its site */
.ks-copy a { display: inline !important; margin: 0 !important; padding: 0 !important; color: inherit !important; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.ks-copy a:hover { text-decoration-color: currentColor; }

/* Reveal on scroll */
.ks-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ks-reveal.in { opacity: 1; transform: none; }
@keyframes ksFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .ks-reveal, .ks-msg, .ks-meter-fill, .ks-toast { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    .ks-mega { grid-template-columns: repeat(3, 1fr); left: -60px; }
    .ks-sec { grid-template-columns: repeat(2, 1fr); }
    .ks-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .ks-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
    .ks-nav, .ks-header-cta .ks-signin { display: none; }
    .ks-burger { display: inline-flex; }
    .ks-header.menu-open .ks-nav {
        display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0;
        background: var(--k-bg); border-bottom: 1px solid var(--k-border); padding: 12px 24px 20px; box-shadow: 0 20px 40px rgba(0,0,0,.08);
    }
    .ks-header.menu-open .ks-nav-drop .ks-mega { position: static; width: auto; box-shadow: none; border: 0; padding: 4px 8px; grid-template-columns: 1fr 1fr; display: none; opacity: 1; visibility: visible; transform: none; }
    .ks-header.menu-open .ks-nav-drop.is-open .ks-mega { display: grid; }
    .ks-header .ks-wrap { gap: 12px; }
    .ks-header-cta { margin-left: auto; }
    .ks-burger { margin-left: 0; }
    .ks-hero .ks-wrap, .ks-split { grid-template-columns: 1fr; gap: 48px; }
    .ks-strip .ks-wrap { grid-template-columns: 1fr 1fr; }
    .ks-strip-item { border-left: 0; padding-left: 0; }
    .ks-explorer { grid-template-columns: 1fr; }
    .ks-tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .ks-tab { white-space: nowrap; }
    .ks-diff { grid-template-columns: 1fr 1fr; }
    .ks-price { grid-template-columns: 1fr; }
    .ks-sol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ks-wrap { padding: 0 16px; }
    .ks-header .ks-wrap { height: 64px; }
    .ks-header.menu-open .ks-nav { top: 64px; padding: 12px 16px 20px; }
    .ks-header-cta .ks-btn { padding: 10px 14px; font-size: .85rem; }
    .ks-brand img { height: 32px; }
    .ks-brand .ks-wordmark { font-size: 1rem; }
    .ks-brand .ks-wordmark b { display: none; }
    .ks-header .ks-wrap { gap: 8px; }
    .ks-header-cta { gap: 6px; }
    .ks-section { padding: 72px 0; }
    .ks-hero { padding: 48px 0 64px; }
    .ks-strip .ks-wrap, .ks-cards, .ks-diff, .ks-sec { grid-template-columns: 1fr; }
    .ks-compare-row { grid-template-columns: 1fr 32px; }
    .ks-compare-row b { grid-column: 1 / -1; }
    .ks-compare-row span { grid-column: 1; }
    .ks-mock-foot { grid-template-columns: 1fr 1fr; }
    .ks-sol .ks-card { flex-direction: column; }
    .ks-cta-box { padding: 48px 22px; }
    .ks-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Pricing page (/home?c=pricing) ───────────────────────────────────────── */
.ks-hero-sm { padding: 64px 0 56px; }
.ks-hero-sm .ks-wrap.ks-wrap-block { display: block; }
.ks-hero-sm h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 820px; }
.ks-section-tight { padding-top: 40px; }
.ks-filters { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; align-items: flex-end; }
.ks-filters label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--k-muted); text-transform: uppercase; letter-spacing: .05em; min-width: 150px; }
.ks-filters label.grow { flex: 1; min-width: 200px; }
.ks-site .ks-select {
    height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--k-border); background: var(--k-surface);
    color: var(--k-ink); font: 500 .92rem var(--k-font-body); text-transform: none; letter-spacing: 0; outline: none;
}
.ks-site .ks-select:focus { border-color: var(--k-primary); box-shadow: 0 0 0 4px var(--k-primary-soft); }
.ks-table-card { background: var(--k-surface); border: 1px solid var(--k-border); border-radius: var(--k-radius); box-shadow: var(--k-shadow); overflow: hidden; }
.ks-table-scroll { overflow-x: auto; }
.ks-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 760px; }
.ks-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--k-muted); font-weight: 700; background: var(--k-bg-alt); padding: 12px 16px; border-bottom: 1px solid var(--k-border); white-space: nowrap; }
.ks-table td { padding: 13px 16px; border-bottom: 1px solid var(--k-border); color: var(--k-text); vertical-align: middle; }
.ks-table td b { color: var(--k-ink); }
.ks-table tbody tr:hover td { background: var(--k-bg-alt); }
.ks-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ks-table-msg { text-align: center; color: var(--k-muted); padding: 40px 16px !important; }
.ks-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; font-size: .88rem; color: var(--k-muted); }
.ks-pager > div { display: flex; align-items: center; gap: 8px; }
.ks-pagesize { display: inline-flex; align-items: center; gap: 8px; margin-right: 6px; }
.ks-pagesize .ks-select { height: 36px; }
.ks-btn:disabled { opacity: .45; cursor: default; transform: none; }
.ks-fineprint { font-size: .8rem; color: var(--k-muted); margin: 14px 0 0 !important; }
.ks-price-below { margin-top: 48px; }
@media (max-width: 640px) {
    .ks-filters label { min-width: calc(50% - 7px); }
    .ks-filters label.grow { min-width: 100%; }
}

/* ── Legal pages (/terms, /privacy) ───────────────────────────────────────── */
.ks-legal-hero { padding-bottom: 40px; }
.ks-legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.ks-legal-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.ks-legal-toc h6 { font-family: var(--k-font-body); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--k-muted); margin: 0 0 8px; font-weight: 700; }
.ks-legal-toc a { color: var(--k-text) !important; padding: 6px 10px; border-radius: 8px; line-height: 1.35; }
.ks-legal-toc a:hover { background: var(--k-bg-alt); color: var(--k-primary) !important; }
.ks-legal-toc .ks-legal-other { margin-top: 14px; color: var(--k-primary) !important; font-weight: 600; }
.ks-legal-body { max-width: 760px; }
.ks-legal-intro { font-size: 1.08rem; color: var(--k-ink); margin-bottom: 32px !important; }
.ks-legal-body section { scroll-margin-top: 96px; margin-bottom: 30px; }
.ks-legal-body h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.ks-legal-body p { color: var(--k-text); margin-bottom: 12px !important; line-height: 1.7; }
.ks-legal-body b { color: var(--k-ink); }
@media (max-width: 960px) {
    .ks-legal { grid-template-columns: 1fr; gap: 24px; }
    .ks-legal-toc { position: static; max-height: none; display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   AUTH PAGES — sign in, create account, free trial, refer, forgot / reset
   ═══════════════════════════════════════════════════════════════════════════ */
.ks-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; background: var(--k-bg); }
/* astd.css styles .auth-container for the legacy page — neutralise here */
.ks-auth.auth-container { padding-top: 0; font-size: 16px; color: var(--k-text); height: auto; overflow: visible; background: var(--k-bg); }

.ks-auth-side { position: relative; overflow: hidden; background: var(--k-deep); color: var(--k-on-deep); padding: 40px 48px; display: flex; flex-direction: column; }
.ks-auth-side::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -220px; top: -200px; background: var(--k-glow-1); filter: blur(90px); }
.ks-auth-side::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; left: -160px; bottom: -180px; background: var(--k-glow-2); filter: blur(90px); }
.ks-auth-side > * { position: relative; z-index: 1; }
.ks-auth-side .ks-hero-grid { z-index: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); }
.ks-auth-logo img { height: auto; width: auto; max-height: 120px; max-width: 280px; }
.ks-auth-pitch { margin-top: auto; margin-bottom: auto; padding: 40px 0; }
.ks-auth-pitch h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; margin-bottom: 26px; max-width: 460px; }
.ks-auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ks-auth-points li { display: flex; align-items: center; gap: 12px; color: var(--k-on-deep); font-size: .98rem; }
.ks-auth-points li span { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid var(--k-deep-border); color: var(--k-accent); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.ks-auth-side-foot { font-size: .8rem; color: var(--k-on-deep-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.ks-auth-side-foot a { color: var(--k-on-deep-muted) !important; }
.ks-auth-side-foot a:hover { color: #fff !important; }

.ks-auth-main { display: flex; flex-direction: column; padding: 28px 48px; }
.ks-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--k-muted); }
.ks-auth-top a.back { display: inline-flex; align-items: center; gap: 6px; color: var(--k-muted) !important; font-weight: 500; }
.ks-auth-top a.back:hover { color: var(--k-ink) !important; }
.ks-auth-mobile-brand { display: none; }
.ks-auth-card { width: 100%; max-width: 440px; margin: auto; padding: 32px 0; }
.ks-auth-card h1 { font-size: 1.85rem; font-weight: 800; margin-bottom: 8px; }
.ks-auth-card .lead { color: var(--k-muted); margin-bottom: 28px !important; font-size: 1rem; }
.ks-field { margin-bottom: 16px; }
.ks-field label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 600; color: var(--k-ink); margin-bottom: 7px; }
.ks-field label a { font-weight: 500; }
.ks-auth .ks-input {
    width: 100%; height: 48px; padding: 0 14px; font-size: .98rem; font-family: inherit; color: var(--k-ink);
    background: var(--k-surface); border: 1.5px solid var(--k-border); border-radius: 10px; transition: border-color .15s, box-shadow .15s; outline: none;
}
.ks-auth .ks-input::placeholder { color: #9AA6B8; }
.ks-auth .ks-input:focus { border-color: var(--k-primary); box-shadow: 0 0 0 4px var(--k-primary-soft); }
.ks-auth .ks-otp { letter-spacing: .5em; text-align: center; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.ks-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ks-auth-actions { margin-top: 22px; display: grid; gap: 12px; }
.ks-auth-alt { text-align: center; font-size: .92rem; color: var(--k-muted); margin-top: 22px !important; }
.ks-auth-alt a { font-weight: 600; }
.ks-divider { display: flex; align-items: center; gap: 12px; color: var(--k-muted); font-size: .8rem; margin: 22px 0; }
.ks-divider::before, .ks-divider::after { content: ""; height: 1px; background: var(--k-border); flex: 1; }
.ks-link-btn { background: none; border: 0; padding: 0; color: var(--k-primary); font-weight: 600; cursor: pointer; font-family: inherit; font-size: .92rem; }
.ks-note { font-size: .82rem; color: var(--k-muted); background: var(--k-bg-alt); border: 1px solid var(--k-border); border-radius: 10px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 18px !important; }
.ks-note svg { color: var(--k-primary); flex-shrink: 0; margin-top: 3px; }
.ks-terms { font-size: .8rem; color: var(--k-muted); margin-top: 14px !important; text-align: center; }

/* Organisation picker (filled by txn.js buildOrgs) */
.ks-orgs { border: 1px solid var(--k-border); border-radius: 14px; overflow: hidden; background: var(--k-surface); }
.ks-orgs-head { padding: 16px 18px; border-bottom: 1px solid var(--k-border); }
.ks-orgs-head h3 { font-size: 1.05rem; margin-bottom: 2px; }
.ks-orgs-head p { font-size: .85rem; color: var(--k-muted); }
.ks-orgs ul { list-style: none; margin: 0; padding: 6px; max-height: 320px; overflow-y: auto; }
.ks-orgs .list-group-item { border: 0; padding: 0; background: none; }
.ks-orgs .super-org- {
    display: flex !important; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; cursor: pointer;
    color: var(--k-ink) !important; font-weight: 600; font-size: .95rem;
}
.ks-orgs .super-org-:hover { background: var(--k-bg-alt); }
.ks-orgs .super-org- i { color: var(--k-primary) !important; font-size: .7rem; }
.ks-orgs-foot { padding: 10px 18px 14px; text-align: right; }

@media (max-width: 960px) {
    .ks-auth { grid-template-columns: 1fr; }
    .ks-auth-side { display: none; }
    .ks-auth-main { padding: 20px 20px 32px; }
    .ks-auth-mobile-brand { display: inline-flex; align-items: center; gap: 10px; }
    .ks-auth-mobile-brand img { height: 34px; }
    .ks-auth-mobile-brand .ks-wordmark { font-size: 1rem; }
    .ks-auth-top a.back { display: none; }
    .ks-auth-top > span { font-size: .85rem; text-align: right; }
    .ks-auth-card { padding-top: 40px; }
}
@media (max-width: 480px) {
    .ks-row2 { grid-template-columns: 1fr; gap: 0; }
    .ks-auth-card h1 { font-size: 1.55rem; }
}
