/* ==========================================================================
   Yiakliresi · 00 tokens: the only CSS a sister site changes (with
   inc/concept.php, the photos and the logo). Powder-sky desk, navy board,
   mint flag, sky / mint / amber / coral / periwinkle divider tints.
   ========================================================================== */

:root {
    --desk: #d8e6f6;
    --desk-2: #c1d5ee;
    --sheet: #fbfdff;
    --sheet-2: #eef4fb;
    --cover: #18345c;
    --ink: #0f2241;
    --ink-2: #3b4f6e;
    --line: rgba(15, 34, 65, .14);
    --line-2: rgba(15, 34, 65, .28);
    --accent: #3cb383;
    --accent-2: #2e9e70;
    --accent-ink: #04210f;
    --hl: #ffd66b;
    --metal: #b4c0cf;
    --c1: #aecbf1;
    --c2: #a3ddc2;
    --c3: #ffd98c;
    --c4: #f6baab;
    --c5: #cbc3f3;
    --ok: #1d6b4c;
    --bad: #b23a2a;
    --focus: rgba(60, 179, 131, .5);
}
/* ==========================================================================
   Kliball binder · 01 base: type, layout, header tabs, buttons, sheets,
   photos, reveals, the phone index, modal.
   Shared by every Kliball webshop; colours live in 00-tokens.css.
   ========================================================================== */

:root {
    --f-display: 'Bricolage Grotesque', 'Schibsted Grotesk', system-ui, sans-serif;
    --f-mono: 'Fragment Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --f-body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1240px;
    --sheetw: 1340px;
    --r-tab: 12px;
    --r-sheet: 20px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.kb-body {
    margin: 0;
    background-color: var(--desk);
    background-image: var(--desk-img, none);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.kb-main { overflow-x: clip; }

body.kb-body img { max-width: 100%; height: auto; display: block; }
body.kb-body .kb-logo__img { width: auto; height: 42px; }
body.kb-body a { color: inherit; }
body.kb-body h1, body.kb-body h2, body.kb-body h3, body.kb-body h4 {
    margin: 0;
    color: var(--ink);
    font-family: var(--f-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.02em;
}
body.kb-body p { margin: 0; }
body.kb-body ul, body.kb-body ol { margin: 0; padding: 0; list-style: none; }
body.kb-body button { font: inherit; color: inherit; }
body.kb-body code, body.kb-body pre, body.kb-body kbd, .kb-mono { font-family: var(--f-mono); font-variant-ligatures: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.kb-skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--sheet) !important; border-radius: 8px; text-decoration: none; }
.kb-skip:focus { top: 12px; }

.kb-wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.kb-wrap--narrow { width: min(860px, 100% - 48px); }
.kb-wrap--wide { width: min(1400px, 100% - 32px); }

/* ---------- type helpers ---------- */

.kb-label,
.kb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 12px 6px 10px;
    background: var(--sheet);
    border: 1.5px solid var(--line-2);
    border-radius: 6px 6px 6px 0;
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 12.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.kb-label::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 2px var(--accent-ink); }
.kb-eyebrow .kb-ico { color: var(--ink-2); }

.kb-title { font-size: clamp(34px, 4.2vw, 58px); max-width: 18ch; }
.kb-lead { max-width: 58ch; margin-top: 18px !important; color: var(--ink-2); font-size: 19px; line-height: 1.6; }

.kb-head { margin-bottom: 48px; }
.kb-head--center { text-align: center; }
.kb-head--center .kb-title, .kb-head--center .kb-lead { margin-left: auto; margin-right: auto; }
.kb-head--row { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: 24px; }
.kb-head--row .kb-label { justify-self: start; margin-top: 8px; }

.kb-hl { position: relative; z-index: 0; padding: 0 .08em; background: none; color: inherit; white-space: nowrap; }
.kb-hl::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: -.04em; right: -.04em;
    bottom: .06em;
    height: .42em;
    background: var(--hl);
    border-radius: 4px 10px 6px 12px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .9s .35s var(--ease);
}
.is-in .kb-hl::after, .no-js .kb-hl::after { transform: scaleX(1); }

/* ---------- divider tints ---------- */

.kb-c1 { --tint: var(--c1); }
.kb-c2 { --tint: var(--c2); }
.kb-c3 { --tint: var(--c3); }
.kb-c4 { --tint: var(--c4); }
.kb-c5 { --tint: var(--c5); }

/* ---------- buttons: index tabs ---------- */

.kb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px 12px 24px;
    border: 0;
    border-radius: var(--r-tab) var(--r-tab) 3px 3px;
    background: var(--accent);
    color: var(--accent-ink) !important;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16);
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .25s var(--ease), background-color .2s;
}
.kb-btn .kb-ico { transition: transform .25s var(--ease); }
.kb-btn:hover { background: var(--accent-2); transform: translateY(-3px); }
.kb-btn:hover .kb-ico { transform: translateX(3px); }
.kb-btn--lg { min-height: 58px; padding: 14px 26px 14px 28px; font-size: 17px; }
.kb-btn--sm { min-height: 42px; padding: 8px 16px; font-size: 14.5px; }
.kb-btn--sm .kb-ico { display: none; }
.kb-btn--full { width: 100%; }
.kb-btn--ink { background: var(--ink); color: var(--sheet) !important; }
.kb-btn--ink:hover { background: var(--cover); }
.kb-btn--sheet { background: var(--sheet); color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--line-2), inset 0 -4px 0 var(--line); }
.kb-btn--sheet:hover { background: var(--sheet-2); }

.kb-textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(var(--hl), var(--hl)) left bottom / 100% 6px no-repeat;
    padding-bottom: 1px;
}
.kb-textlink:hover { background-size: 100% 100%; }

.kb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.kb-round {
    display: inline-grid;
    place-items: center;
    width: 50px; height: 50px;
    border: 1.5px solid var(--line-2);
    border-radius: 50%;
    background: var(--sheet);
    color: var(--ink);
    cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s;
}
.kb-round:hover { background: var(--hl); transform: translateY(-2px); }

.kb-checks { display: grid; gap: 10px; }
.kb-checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.kb-checks .kb-ico { width: 22px; height: 22px; padding: 3px; margin-top: 2px; border-radius: 6px; background: var(--ink); color: var(--sheet); }

/* ---------- header: folder tabs on the first sheet ---------- */

.kb-top { position: relative; z-index: 40; padding-top: 18px; }
.kb-top__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 28px;
    width: min(var(--sheetw), 100% - 32px);
    padding: 0 18px;
}
.kb-logo { display: inline-flex; align-items: center; align-self: center; padding-bottom: 14px; text-decoration: none; }
.kb-logo__img { width: auto; height: 42px; }

.kb-tabs { align-self: end; min-width: 0; }
.kb-tabs .header-menu { display: flex; align-items: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
.kb-tabs .menu-item { margin: 0; }
.kb-tabs .menu-item > a {
    position: relative;
    display: block;
    padding: 11px 18px 12px;
    background: var(--desk-2);
    border-radius: var(--r-tab) var(--r-tab) 0 0;
    color: var(--ink) !important;
    font-family: var(--f-mono);
    font-size: 13px;
    letter-spacing: .03em;
    text-transform: uppercase;
    text-decoration: none !important;
    white-space: nowrap;
    transform: translateY(5px);
    transition: transform .25s var(--ease), background-color .2s;
}
.kb-tabs .menu-item > a:hover { background: var(--hl); transform: translateY(0); }
.kb-tabs .current-menu-item > a,
.kb-tabs .menu-item > a[aria-current="page"] { background: var(--sheet); transform: translateY(0); padding-bottom: 17px; }
.kb-tabs .sub-menu { display: none; }

.kb-top__act { display: flex; align-items: center; gap: 14px; padding-bottom: 12px; align-self: end; }
.kb-toplink { display: inline-flex; align-items: center; gap: 7px; padding: 8px 4px; color: var(--ink) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.kb-toplink:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.kb-flagbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 30px 0 18px;
    background: var(--accent);
    color: var(--accent-ink) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%);
    border-radius: 6px 0 0 6px;
    transition: transform .25s var(--ease), background-color .2s;
}
.kb-flagbtn:hover { background: var(--accent-2); transform: translateX(4px); }

.kb-indexbtn {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--r-tab) var(--r-tab) 3px 3px;
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 13px;
    text-transform: uppercase;
    cursor: pointer;
}
.kb-indexbtn__lines { display: grid; gap: 3px; }
.kb-indexbtn__lines i { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
.kb-indexbtn__lines i:nth-child(2) { width: 11px; }

.kb-lang { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); font-family: var(--f-mono); font-size: 12.5px; cursor: pointer; }
.kb-lang:hover { background: var(--sheet); }

/* the first sheet: tabs above join it */
.kb-sheet--first {
    position: relative;
    z-index: 1;
    width: min(var(--sheetw), 100% - 32px);
    margin: 0 auto;
    background: var(--sheet);
    border-radius: 6px var(--r-sheet) var(--r-sheet) var(--r-sheet);
    box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(0, 0, 0, .35);
}

/* ---------- phone index (stacked tabs) ---------- */

.kb-index { position: fixed; inset: 0; z-index: 120; display: none; }
.kb-index.is-open { display: block; }
.kb-index__panel { position: absolute; inset: 0; overflow-y: auto; padding: 18px 16px 32px; background: var(--desk); animation: kb-slide-in .35s var(--ease) both; }
.kb-index__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.kb-index__head .kb-logo { padding: 0; }
.kb-index__close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--sheet); color: var(--ink); cursor: pointer; }
.kb-index__nav .header-menu { display: grid; margin: 0; padding: 0; list-style: none; }
.kb-index__nav .menu-item { margin-top: -8px; }
.kb-index__nav .menu-item:first-child { margin-top: 0; }
.kb-index__nav .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 12px 20px 20px;
    background: var(--c1);
    border-radius: 16px 16px 0 0;
    color: var(--ink) !important;
    font-family: var(--f-display);
    font-size: 26px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 -1px 0 var(--line-2);
}
.kb-index__nav .menu-item:nth-child(5n+2) > a { background: var(--c2); }
.kb-index__nav .menu-item:nth-child(5n+3) > a { background: var(--c3); }
.kb-index__nav .menu-item:nth-child(5n+4) > a { background: var(--c4); }
.kb-index__nav .menu-item:nth-child(5n+5) > a { background: var(--c5); }
.kb-index__nav .menu-item:last-child > a { border-radius: 16px; padding-bottom: 14px; }
.kb-index__nav .menu-item > a::after { content: '→'; font-family: var(--f-mono); font-size: 18px; }
.kb-index__nav .sub-menu { display: none; }
.kb-index__actions { display: grid; gap: 12px; margin-top: 26px; }
body.kb-locked { overflow: hidden; }

/* ---------- photos: label holders + mask reveal ---------- */

.kb-photo { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: var(--desk-2); }
.kb-photo img { width: 100%; height: 100%; object-fit: cover; }
.js .kb-photo[data-kb-reveal] { opacity: 1; transform: none; }
.js .kb-photo[data-kb-reveal]::after { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--desk-2); transform-origin: center bottom; transition: transform 1s var(--ease); pointer-events: none; }
.js .kb-photo[data-kb-reveal].is-in::after { transform: scaleY(0); }

/* ---------- reveals ---------- */

.js [data-kb-reveal] { opacity: 0; transform: translateX(-22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-kb-reveal].is-in { opacity: 1; transform: none; }

.js [data-kb-deal] > * { opacity: 0; transform: translateX(-60px) rotate(-3deg); transition: opacity .7s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-kb-deal].is-in > * { opacity: 1; transform: none; }

@keyframes kb-slide-in { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

/* ---------- language modal ---------- */

.kb-modal { position: fixed; inset: 0; z-index: 140; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 24, 16, .45); }
.kb-modal.is-open, .kb-modal.show, .kb-modal[aria-hidden="false"] { display: flex; }
.kb-modal__card { position: relative; width: min(420px, 100%); padding: 30px 28px 28px; background: var(--sheet); border-radius: 4px var(--r-sheet) var(--r-sheet) var(--r-sheet); color: var(--ink); animation: kb-slide-in .35s var(--ease) both; }
.kb-modal__tab { position: absolute; left: 0; top: -34px; padding: 8px 18px 10px; background: var(--sheet); border-radius: var(--r-tab) var(--r-tab) 0 0; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }
.kb-modal .image-close { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.kb-modal__logo { height: 32px; width: auto; }
.kb-modal__x { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: var(--sheet-2); color: var(--ink); cursor: pointer; }
.kb-modal__title { margin-bottom: 14px !important; font-size: 26px; }
.kb-select { width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--sheet); color: var(--ink); font: inherit; }
/* ==========================================================================
   Kliball binder · 02 sections: hero binder, dividers, demo bench (all five
   demo types), reel, steps, notes holder, pricing, FAQ, footer index,
   inner pages and the auth sheet.
   ========================================================================== */

.kb-section { padding: 120px 0; }
.kb-section--tight { padding: 64px 0 110px; }

/* ---------- hero ---------- */

.kb-hero { padding: 72px 0 84px; }
.kb-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.kb-hero__title { font-size: clamp(44px, 5.3vw, 82px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
.kb-hero__lead { max-width: 46ch; margin: 26px 0 34px !important; color: var(--ink-2); font-size: 19.5px; }

.kb-hero__stage { position: relative; display: flex; flex-direction: column; padding: 30px 0 0; }

.kb-binder {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    padding: 20px 0 20px 46px;
    background: var(--cover);
    border-radius: 24px;
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .06), 0 30px 50px -36px rgba(0, 0, 0, .6);
}
.kb-binder__rings { position: absolute; left: 22px; top: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; justify-content: space-evenly; pointer-events: none; }
.kb-binder__rings i { display: block; width: 46px; height: 18px; border: 5px solid var(--metal); border-radius: 12px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }

.kb-app { position: relative; z-index: 2; min-height: 420px; padding: 0 0 18px; background: var(--sheet); border-radius: 8px 4px 4px 8px; }
.kb-app__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px 14px 34px; border-bottom: 1.5px dashed var(--line-2); }
.kb-app__label { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.kb-app__example { padding: 3px 9px; border-radius: 5px; background: var(--hl); font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; }
.kb-app__panes { padding: 24px 26px 0 34px; }
.kb-app__pane[hidden] { display: none; }
.kb-app__pane { animation: kb-slide-in .35s var(--ease) both; }
.kb-app__head { font-size: 28px; }
.kb-app__sub { margin-top: 4px !important; color: var(--ink-2); font-size: 15px; }
.kb-app__foot { display: flex; align-items: center; gap: 12px; margin-top: 16px !important; color: var(--ink-2); font-family: var(--f-mono); font-size: 12.5px; }
.kb-app__foot:empty { display: none; }
.kb-app__meter { position: relative; flex: 1; height: 8px; overflow: hidden; border-radius: 6px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--line); }
.kb-app__meter i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .5s var(--ease); }

.kb-rows { margin-top: 18px !important; border-top: 1px solid var(--line); }
.kb-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 54px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent 0 0, transparent 0) ; }
.kb-row__btn { display: contents; cursor: pointer; }
.kb-row__box { width: 22px; height: 22px; border: 2px solid var(--ink); border-radius: 6px; background: var(--sheet); transition: background-color .2s; }
.kb-row__t { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; transition: color .2s; }
.kb-row__m { padding: 3px 9px; border-radius: 5px; background: var(--sheet-2); color: var(--ink-2); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.kb-row.is-done .kb-row__box { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.kb-row.is-done .kb-row__t { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.kb-rows button.kb-row { width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.kb-rows button.kb-row:hover .kb-row__box { background-color: var(--hl); }
.kb-rows button.kb-row.is-done:hover .kb-row__box { background-color: var(--ink); }
.kb-row__bar { grid-column: 2 / 4; height: 6px; margin: -10px 0 12px; overflow: hidden; border-radius: 4px; background: var(--sheet-2); }
.kb-row__bar i { display: block; height: 100%; background: var(--tint, var(--accent)); transform-origin: left; transform: scaleX(var(--p, 0)); }

.kb-app__tabs { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; padding-top: 70px; }
.kb-app__tab {
    min-height: 54px;
    margin-left: -8px;
    padding: 0 10px 0 30px;
    border: 0;
    border-radius: 0 14px 14px 0;
    background: var(--tint);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 12.5px;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transform: translateX(-12px);
    transition: transform .25s var(--ease);
}
.kb-app__tab:hover { transform: translateX(-4px); }
.kb-app__tab[aria-selected="true"] { transform: translateX(0); box-shadow: inset 4px 0 0 var(--ink); }

.kb-flags { order: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 14px; margin: 22px 110px 0 0 !important; pointer-events: none; }
.kb-flag span {
    display: inline-block;
    max-width: 190px;
    padding: 9px 14px 9px 22px;
    background: var(--tint, var(--c3));
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 12px;
    line-height: 1.35;
    clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
    box-shadow: 0 1px 0 var(--line-2);
}
.kb-flag--1 span { --tint: var(--c3); transform: rotate(-3deg); }
.kb-flag--2 span { --tint: var(--c2); transform: rotate(2deg); }
.kb-flag--3 span { --tint: var(--c4); transform: rotate(-1deg); }
.js .kb-flag { opacity: 0; transform: translateX(-30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .kb-flags.is-in .kb-flag { opacity: 1; transform: none; }
.js .kb-flags.is-in .kb-flag--2 { transition-delay: .15s; }
.js .kb-flags.is-in .kb-flag--3 { transition-delay: .3s; }

.kb-note {
    position: absolute;
    right: 46px;
    top: -26px;
    z-index: 6;
    width: 196px;
    padding: 22px 16px 16px;
    background: var(--hl);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 12.5px;
    line-height: 1.45;
    transform: translate(var(--dx, 0), var(--dy, 0)) rotate(3deg);
    box-shadow: 0 14px 18px -14px rgba(0, 0, 0, .45);
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.kb-note.is-drag { cursor: grabbing; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(0deg) scale(1.03); }
.kb-note__pin { position: absolute; left: 50%; top: -9px; width: 34px; height: 18px; margin-left: -17px; background: rgba(255, 255, 255, .55); border-radius: 2px; transform: rotate(-4deg); box-shadow: 0 0 0 1px var(--line); }

/* ---------- dividers ---------- */

.kb-set { position: relative; }
.kb-set__tabs { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; padding-right: 8%; }
.kb-set__tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: var(--tint);
    color: var(--ink);
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transform: translateY(10px);
    transition: transform .25s var(--ease);
    margin-left: calc(var(--i) * 2%);
}
.kb-set__tab:hover { transform: translateY(4px); }
.kb-set__tab[aria-selected="true"] { transform: none; padding-bottom: 6px; }
.kb-set__num { font-family: var(--f-mono); font-size: 12px; font-weight: 400; opacity: .8; }
.kb-set__sheet {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 40px;
    background: var(--tint);
    border-radius: 0 var(--r-sheet) var(--r-sheet) var(--r-sheet);
    animation: kb-slide-in .45s var(--ease) both;
}
.kb-set__sheet[hidden] { display: none; }
.kb-set__sheet .kb-photo { aspect-ratio: 4 / 3; border: 8px solid var(--sheet); border-radius: 18px; }
.kb-set__body { padding-right: 20px; }
.kb-set__title { font-size: clamp(28px, 2.8vw, 40px); }
.kb-set__text { margin: 16px 0 26px !important; font-size: 18px; line-height: 1.6; }
.kb-set .kb-checks li { font-weight: 600; }

/* ---------- demo bench ---------- */

.kb-demo { background: var(--sheet-2); }
.kb-demo__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.kb-demo__head { position: sticky; top: 30px; margin: 0; }
.kb-demo__example { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px !important; padding: 6px 12px; border-radius: 6px; background: var(--hl); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }

.kb-bench {
    position: relative;
    min-height: 420px;
    padding: 34px 34px 34px 74px;
    background-color: var(--sheet);
    background-image: repeating-linear-gradient(to bottom, transparent 0 35px, var(--line) 35px 36px);
    border-radius: 6px var(--r-sheet) var(--r-sheet) 6px;
    box-shadow: 0 1px 0 var(--line-2), 0 26px 40px -34px rgba(0, 0, 0, .45);
}
.kb-bench::before { content: ''; position: absolute; left: 54px; top: 0; bottom: 0; width: 2px; background: var(--c4); }
.kb-bench__holes { position: absolute; left: 18px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-around; }
.kb-bench__holes i { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--sheet-2); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25), 0 0 0 4px var(--desk-2); }
.kb-bench__noscript { color: var(--ink-2); }

.kb-field { display: grid; gap: 7px; }
.kb-field > span, .kb-fieldlab { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.kb-input, .kb-bench select.kb-input {
    width: 100%;
    min-height: 50px;
    padding: 10px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: 10px;
    background: var(--sheet);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}
.kb-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus); }
.kb-input::placeholder { color: var(--ink-2); opacity: .85; }

.kb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kb-chip {
    min-height: 38px;
    padding: 6px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: 9px 9px 3px 3px;
    background: var(--sheet);
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s;
}
.kb-chip:hover { background: var(--tint, var(--c3)); transform: translateY(-2px); }
.kb-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

.kb-stepper { display: inline-grid; grid-template-columns: 46px 74px 46px auto; align-items: center; }
.kb-stepper button { height: 50px; border: 1.5px solid var(--line-2); background: var(--sheet-2); color: var(--ink); font-size: 20px; cursor: pointer; }
.kb-stepper button:first-child { border-radius: 10px 0 0 10px; }
.kb-stepper button:nth-child(3) { border-radius: 0 10px 10px 0; }
.kb-stepper input { height: 50px; border: 1.5px solid var(--line-2); border-left: 0; border-right: 0; background: var(--sheet); color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; text-align: center; -moz-appearance: textfield; }
.kb-stepper input::-webkit-inner-spin-button, .kb-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.kb-stepper .kb-unit { padding-left: 12px; color: var(--ink-2); font-family: var(--f-mono); font-size: 13px; }

.kb-demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; }
.kb-demo-form { display: grid; gap: 20px; align-content: start; }
.kb-demo-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: end; }
.kb-demo-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; }
.kb-linkbtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 2px; border: 0; background: none; color: var(--ink); font-size: 14.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.kb-linkbtn:hover { text-decoration-color: var(--accent); }

.kb-progress { display: grid; gap: 8px; margin-bottom: 14px; }
.kb-progress p { font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-2); }

.kb-lines { display: grid; }
.kb-line { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); animation: kb-slide-in .35s var(--ease) both; }
.kb-line__tick { width: 28px; height: 28px; border: 2px solid var(--ink); border-radius: 7px; background: var(--sheet); cursor: pointer; }
.kb-line__tick:hover { background: var(--hl); }
.kb-line.is-done .kb-line__tick { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 17px no-repeat; }
.kb-line__name { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.kb-line__name small { display: block; color: var(--ink-2); font-family: var(--f-mono); font-size: 12px; font-weight: 400; }
.kb-line.is-done .kb-line__name { color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 2px; }
.kb-line__tag { padding: 4px 9px; border-radius: 6px; background: var(--tint, var(--c2)); font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.kb-line__x { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.kb-line__x:hover { background: var(--sheet-2); color: var(--bad); }
.kb-empty { padding: 22px 0; color: var(--ink-2); }

/* ledger bars */
.kb-bars { display: grid; gap: 16px; }
.kb-bar__top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.kb-bar__top span:last-child { font-family: var(--f-mono); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
.kb-bar__track { position: relative; height: 14px; margin-top: 6px; overflow: hidden; border-radius: 8px; background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--line); }
.kb-bar__fill { position: absolute; inset: 0; background: var(--tint, var(--c2)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .6s var(--ease); }
.kb-bar.is-warn .kb-bar__fill { background: var(--c3); box-shadow: inset -4px 0 0 var(--accent); }
.kb-bar.is-over .kb-bar__fill { background: var(--bad); }
.kb-bar__note { margin-top: 4px !important; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.kb-bar.is-warn .kb-bar__note, .kb-bar.is-over .kb-bar__note { color: var(--bad); }

/* prompt (spreadsheet) */
.kb-prompt { display: grid; gap: 22px; }
.kb-prompt__card { padding: 20px 22px; border-radius: 6px 16px 16px 16px; background: var(--tint, var(--c5)); }
.kb-prompt__card p { font-size: 17px; line-height: 1.55; }
.kb-prompt__who { display: block; margin-bottom: 6px; font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
.kb-sheetgrid { overflow-x: auto; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--sheet); }
.kb-fx { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; border-bottom: 1.5px solid var(--line-2); font-family: var(--f-mono); font-size: 14px; font-variant-ligatures: none; }
.kb-fx b { padding: 10px; border-right: 1.5px solid var(--line-2); font-style: italic; text-align: center; }
.kb-fx code { padding: 10px 14px; overflow-x: auto; white-space: nowrap; }
.kb-fx button { margin: 0 6px; }
.kb-sheetgrid table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.kb-sheetgrid th, .kb-sheetgrid td { padding: 8px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.kb-sheetgrid th { background: var(--sheet-2); color: var(--ink-2); font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-align: center; }
.kb-sheetgrid td.is-hit { background: var(--c3); }
.kb-sheetgrid td.is-out { background: var(--hl); font-weight: 800; box-shadow: inset 0 0 0 2px var(--ink); }
.kb-why { color: var(--ink-2); font-size: 15.5px; }

/* scenario + bug */
.kb-quiz { display: grid; gap: 20px; }
.kb-quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-2); }
.kb-quiz__q { font-family: var(--f-display); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.25; }
.kb-opts { display: grid; gap: 10px; }
.kb-opt {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border: 1.5px solid var(--line-2);
    border-radius: 12px 12px 4px 12px;
    background: var(--sheet);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
    cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s;
}
.kb-opt:hover:not(:disabled) { background: var(--tint, var(--c3)); transform: translateX(4px); }
.kb-opt__k { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--sheet-2); font-family: var(--f-mono); font-size: 13px; }
.kb-opt:disabled { cursor: default; }
.kb-opt.is-good { background: var(--c2); border-color: var(--ok); }
.kb-opt.is-meh { background: var(--sheet-2); opacity: .8; }
.kb-opt.is-picked:not(.is-good) { background: var(--c4); border-color: var(--bad); opacity: 1; }
.kb-feedback { padding: 18px 20px; border-left: 5px solid var(--ok); border-radius: 4px 12px 12px 4px; background: var(--sheet-2); animation: kb-slide-in .35s var(--ease) both; }
.kb-feedback.is-bad { border-left-color: var(--bad); }
.kb-feedback strong { display: block; margin-bottom: 4px; font-family: var(--f-display); font-size: 19px; }
.kb-feedback .kb-skilltag { display: inline-block; margin-top: 10px; padding: 3px 9px; border-radius: 5px; background: var(--tint, var(--c5)); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }

.kb-code { overflow: hidden; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--sheet); font-family: var(--f-mono); font-size: 14.5px; font-variant-ligatures: none; }
.kb-code__file { padding: 9px 14px; border-bottom: 1.5px solid var(--line-2); background: var(--sheet-2); color: var(--ink-2); font-size: 12.5px; }
.kb-code ol { counter-reset: ln; }
.kb-code li { counter-increment: ln; }
.kb-code__line { display: grid; grid-template-columns: 44px 1fr; width: 100%; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.kb-code__line::before { content: counter(ln); padding: 6px 10px 6px 0; color: var(--ink-2); text-align: right; border-right: 1px solid var(--line); }
.kb-code__line code { padding: 6px 14px; white-space: pre; overflow-x: auto; }
.kb-code__line:hover:not(:disabled) { background: var(--hl); }
.kb-code__line:disabled { cursor: default; }
.kb-code__line.is-good { background: var(--c2); }
.kb-code__line.is-picked:not(.is-good) { background: var(--c4); }
.kb-fix { margin-top: 10px !important; padding: 10px 14px; border-radius: 8px; background: var(--sheet); font-family: var(--f-mono); font-size: 14px; font-variant-ligatures: none; white-space: pre-wrap; box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* ---------- reel ---------- */

.kb-reel { padding-bottom: 100px; }
.kb-reel__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.kb-reel__top .kb-head { margin: 0; }
.kb-reel__nav { display: flex; gap: 10px; }
body.kb-body .kb-reel__strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 300px;
    gap: 26px;
    padding: 10px max(24px, calc((100vw - var(--wrap)) / 2)) 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2));
    scrollbar-width: thin;
    scrollbar-color: var(--ink-2) transparent;
}
.kb-card { scroll-snap-align: start; }
.kb-card .kb-photo { aspect-ratio: 4 / 5; border-radius: 16px; }
.kb-card__tag {
    position: absolute;
    left: 14px; top: 14px;
    padding: 6px 12px;
    border: 3px solid var(--metal);
    border-radius: 6px;
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 12px;
    text-transform: uppercase;
    box-shadow: 0 0 0 1px var(--line-2);
}
.kb-card__title { margin-top: 18px !important; font-size: 24px; }
.kb-card__title::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 3px; background: var(--tint); box-shadow: 0 0 0 1.5px var(--ink); vertical-align: 2px; }
.kb-card__text { margin-top: 6px !important; color: var(--ink-2); font-size: 16px; }

/* ---------- steps ---------- */

.kb-steps__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; counter-reset: s; }
.kb-step {
    position: relative;
    padding: 64px 30px 34px;
    background: var(--sheet);
    border-radius: 4px var(--r-sheet) var(--r-sheet) var(--r-sheet);
    box-shadow: 0 1px 0 var(--line-2);
}
.kb-step:nth-child(2) { margin-top: 36px; }
.kb-step:nth-child(3) { margin-top: 72px; }
.kb-step__tab { position: absolute; left: 0; top: -34px; padding: 8px 18px 10px; border-radius: var(--r-tab) var(--r-tab) 0 0; background: var(--tint); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }
.kb-step__holes { position: absolute; left: 30px; top: 22px; display: flex; gap: 14px; }
.kb-step__holes i { width: 14px; height: 14px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 2px 2px rgba(0, 0, 0, .2); }
.kb-step__title { font-size: 26px; }
.kb-step__text { margin-top: 10px !important; color: var(--ink-2); }
.kb-step::after { content: ''; position: absolute; right: 22px; top: 18px; width: 30px; height: 30px; border-radius: 8px; background: var(--tint); }

/* ---------- notes holder ---------- */

.kb-notes { padding-top: 40px; }
.kb-notes__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.kb-notes .kb-head { margin: 0; }
.kb-holder {
    position: relative;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 14px;
    padding: 18px;
    border: 6px solid var(--metal);
    border-radius: 16px;
    background: var(--desk-2);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), 0 1px 0 var(--line-2);
}
.kb-holder::before, .kb-holder::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--metal); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2); }
.kb-holder::before { left: -9px; }
.kb-holder::after { right: -9px; }
.kb-holder__card { padding: 26px 24px; border-radius: 10px; background: var(--sheet); }
.kb-holder__card ul { display: grid; gap: 14px; }
.kb-holder__card li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-weight: 600; }
.kb-holder__card .kb-ico { width: 24px; height: 24px; padding: 3px; border-radius: 6px; }
.kb-holder__card--yes .kb-ico { background: var(--c2); }
.kb-holder__card--no { background: var(--sheet-2); }
.kb-holder__card--no .kb-ico { background: var(--c4); }
.kb-holder__card--no li span { color: var(--ink-2); }

/* ---------- pricing ---------- */

.kb-pricing { padding-top: 90px; }
.kb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 54px 26px; max-width: 1120px; margin: 0 auto; padding-top: 30px; }
.kb-plans:has(> :only-child) { max-width: 420px; }
.kb-plan { position: relative; display: flex; flex-direction: column; }
.kb-plan__tab {
    align-self: flex-start;
    max-width: 82%;
    margin-left: calc(var(--i) * 22px) !important;
    padding: 10px 20px 12px;
    border-radius: var(--r-tab) var(--r-tab) 0 0;
    background: var(--tint);
    font-size: 19px !important;
    line-height: 1.2 !important;
}
.kb-plan__sheet { position: relative; display: flex; flex: 1; flex-direction: column; padding: 30px 28px 28px; border-radius: 0 var(--r-sheet) var(--r-sheet) var(--r-sheet); background: var(--sheet); box-shadow: inset 0 0 0 1.5px var(--line), 0 0 0 0 transparent; }
.kb-plan:nth-child(n) .kb-plan__sheet { border-top-left-radius: 0; }
.kb-plan.is-featured .kb-plan__sheet { background: var(--tint); box-shadow: inset 0 0 0 2px var(--ink); }
.kb-plan.is-featured .kb-plan__tab { background: var(--ink); color: var(--sheet) !important; }
.kb-plan__pick { position: absolute; right: 18px; top: -16px; padding: 6px 12px 6px 18px; background: var(--hl); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.kb-plan__price { font-family: var(--f-display); font-size: clamp(40px, 4vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kb-plan__per { margin-top: 8px !important; color: var(--ink-2); font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; }
.kb-plan__trial { display: inline-block; align-self: flex-start; margin-top: 14px !important; padding: 5px 10px; border-radius: 6px; background: var(--hl); font-size: 14.5px; font-weight: 700; }
.kb-plan__list { margin: 22px 0 26px !important; padding-top: 20px !important; border-top: 1.5px dashed var(--line-2); }
.kb-plan .kb-btn { margin-top: auto; }

/* ---------- FAQ ---------- */

.kb-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.kb-faq .kb-head { position: sticky; top: 30px; margin: 0; }
.kb-faq__list { display: grid; }
.kb-qa { position: relative; margin-top: -10px; border-radius: 16px 16px 0 0; background: var(--sheet); box-shadow: 0 -1px 0 var(--line-2); }
.kb-qa:first-child { margin-top: 0; }
.kb-qa:last-child { border-radius: 16px; }
.kb-qa summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 30px; align-items: center; gap: 14px; min-height: 76px; padding: 16px 22px 24px; list-style: none; cursor: pointer; }
.kb-qa summary::-webkit-details-marker { display: none; }
.kb-qa__n { display: grid; place-items: center; height: 32px; border-radius: 8px; background: var(--tint); font-family: var(--f-mono); font-size: 12.5px; }
.kb-qa__q { font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.25; }
.kb-qa__x { position: relative; width: 26px; height: 26px; }
.kb-qa__x::before, .kb-qa__x::after { content: ''; position: absolute; left: 4px; right: 4px; top: 12px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.kb-qa__x::after { transform: rotate(90deg); }
.kb-qa[open] .kb-qa__x::after { transform: rotate(0deg); }
.kb-qa[open] { background: var(--tint); }
.kb-qa p { max-width: 62ch; padding: 0 22px 30px 84px; font-size: 17px; animation: kb-slide-in .35s var(--ease) both; }

/* ---------- footer: mega index ---------- */

.kb-footer { padding: 90px 0 40px; border-top: 2px solid var(--ink); background: var(--desk); color: var(--ink); }
.kb-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 34px; border-bottom: 1.5px solid var(--line-2); }
.kb-footer__top .kb-logo { padding: 0; }
.kb-footer__tag { max-width: 40ch; color: var(--ink-2); font-size: 16px; }
.kb-footer__index { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; padding: 44px 0 30px; }
.kb-footer__cap { margin-bottom: 14px !important; font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; color: var(--ink-2); }
.kb-footer .footer-menu-list { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: idx; }
.kb-footer .footer-menu-list li { counter-increment: idx; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.kb-footer .footer-menu-list a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 6px 0;
    color: var(--ink) !important;
    font-family: var(--f-display);
    font-size: clamp(30px, 3.6vw, 54px);
    font-weight: 800;
    letter-spacing: -.03em;
    line-height: 1.1;
    text-decoration: none !important;
    transition: transform .25s var(--ease);
}
.kb-footer .footer-menu-list a::after {
    content: counter(idx, decimal-leading-zero);
    order: 3;
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}
.kb-footer .footer-menu-list a::before { content: ''; order: 2; flex: 1; min-width: 20px; border-bottom: 2px dotted var(--line-2); transform: translateY(-6px); }
.kb-footer .footer-menu-list a:hover { transform: translateX(10px); }
.kb-footer .footer-menu-list a:hover::after { background: var(--hl); padding: 0 4px; border-radius: 3px; }
.kb-footer__col--footer-menu .footer-menu-list a { font-size: clamp(19px, 1.7vw, 25px); font-weight: 700; letter-spacing: -.01em; padding: 9px 0; }
.kb-footer__help { display: flex; flex-wrap: wrap; gap: 12px 34px; padding: 22px 0; border-top: 1.5px solid var(--line-2); }
.kb-footer__help li { display: grid; gap: 2px; font-size: 15.5px; }
.kb-footer__help li > span:first-child { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-2); }
.kb-footer__help a { color: var(--ink) !important; font-weight: 700; }
.kb-footer__logout { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: var(--ink) !important; font-weight: 700; text-decoration: underline; text-decoration-color: var(--hl); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.kb-footer__fine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1.5px solid var(--line-2); color: var(--ink-2); font-size: 14px; }

/* ---------- inner pages ---------- */

.kb-pagehead { padding: 70px 0 74px; }
.kb-pagehead__title { max-width: 20ch; font-size: clamp(40px, 5vw, 72px); font-weight: 800; letter-spacing: -.035em; }
.kb-pagehead__text { max-width: 60ch; margin-top: 18px !important; color: var(--ink-2); font-size: 19px; }

.kb-panel { padding: 34px; border-radius: var(--r-sheet); background: var(--sheet); box-shadow: 0 1px 0 var(--line-2); }
.kb-panel--punched { position: relative; padding-left: 70px; }
.kb-panel--punched::before {
    content: '';
    position: absolute;
    left: 24px; top: 40px; bottom: 40px;
    width: 18px;
    background: radial-gradient(circle, var(--desk) 0 7px, transparent 8px) center top / 18px 120px repeat-y;
}
.kb-panel--ink { background: var(--cover); color: var(--sheet); }
.kb-panel--ink .kb-label { background: transparent; border-color: rgba(255, 255, 255, .35); color: var(--sheet); }
.kb-panel__title { margin-bottom: 18px !important; font-size: 28px; }
.kb-panel__text { margin: -8px 0 20px !important; color: var(--ink-2); }
.kb-stack { display: grid; gap: 12px; }

.kb-profile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 30px; align-items: start; }
.kb-profile__side { display: grid; gap: 24px; }

.kb-about__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.kb-about__grid .kb-photo { aspect-ratio: 4 / 3; border: 10px solid var(--sheet); border-radius: 20px; }
.kb-about__body { display: grid; gap: 18px; font-size: 19px; }
.kb-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 80px !important; }
.kb-value { padding: 28px; border-radius: 4px var(--r-sheet) var(--r-sheet) var(--r-sheet); background: var(--tint); }
.kb-value__title { margin-bottom: 8px !important; font-size: 23px; }

.kb-contact__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 34px; align-items: start; }
.kb-contact__card { position: relative; margin-top: 34px; padding: 30px 28px; border-radius: 0 var(--r-sheet) var(--r-sheet) var(--r-sheet); background: var(--c3); }
.kb-contact__tab { position: absolute; left: 0; top: -34px; padding: 8px 18px 10px; border-radius: var(--r-tab) var(--r-tab) 0 0; background: var(--c3); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; }
.kb-helplist { display: grid; gap: 18px; }
.kb-helplist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.kb-helplist small { display: block; font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; color: var(--ink-2); }
.kb-helplist a { color: var(--ink) !important; font-weight: 700; overflow-wrap: anywhere; }

.kb-appframe__inner { padding: 30px 0 60px; }

/* ---------- auth sheet ---------- */

.kb-auth { padding: 64px 0 120px; }
.kb-auth__wrap { width: min(600px, 100% - 32px); }
.kb-auth__tabs { display: flex; gap: 4px; padding-left: 6px; }
.kb-auth__tab {
    padding: 11px 18px 12px;
    border-radius: var(--r-tab) var(--r-tab) 0 0;
    background: var(--tint);
    color: var(--ink) !important;
    font-family: var(--f-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    transform: translateY(6px);
    transition: transform .25s var(--ease);
}
.kb-auth__tab:hover { transform: translateY(2px); }
.kb-auth__tab.is-current { background: var(--sheet); transform: none; padding-bottom: 17px; }
.kb-auth__sheet { position: relative; padding: 46px 44px 40px 82px; border-radius: 6px var(--r-sheet) var(--r-sheet) var(--r-sheet); background: var(--sheet); box-shadow: 0 1px 0 var(--line-2), 0 30px 50px -40px rgba(0, 0, 0, .5); animation: kb-slide-in .5s var(--ease) both; }
.kb-auth__holes { position: absolute; left: 26px; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.kb-auth__holes i { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--desk); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .22); }
.kb-auth__flag { position: absolute; right: -14px; top: 26px; padding: 8px 18px 8px 24px; background: var(--hl); font-family: var(--f-mono); font-size: 12.5px; text-transform: uppercase; clip-path: polygon(12px 0, 100% 0, 100% 100%, 12px 100%, 0 50%); }
.kb-auth__title { max-width: 16ch; font-size: clamp(32px, 3.6vw, 44px); font-weight: 800; }
.kb-auth__text { margin: 12px 0 28px !important; color: var(--ink-2); }
.kb-auth__links { margin-top: 24px !important; }
.page-404 .kb-auth__text { margin-bottom: 30px !important; }
/* ==========================================================================
   Kliball binder · 03 CRM / CF7 forms, tables, policy prose, cookie flag,
   responsive and reduced motion.
   ========================================================================== */


/* ---------- forms ---------- */

.kb-form form { display: flex; flex-direction: column; gap: 16px; width: 100%; text-align: left; }
.kb-form p { margin: 0; }
.kb-form label { display: block; margin-bottom: 7px; color: var(--ink); }

.kb-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.kb-form select,
.kb-form textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1.5px solid var(--line-2);
    border-radius: 10px;
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 16px;
    outline: none;
    box-shadow: none;
    transition: box-shadow .2s;
}
.kb-form input:focus, .kb-form select:focus, .kb-form textarea:focus { box-shadow: 0 0 0 4px var(--focus); }
.kb-form input[disabled], .kb-form input[readonly] { background: var(--sheet-2); color: var(--ink-2); }
.kb-form textarea { min-height: 140px; resize: vertical; }
.kb-form input::placeholder, .kb-form textarea::placeholder { color: var(--ink-2); opacity: 1; }
.kb-form input[type="checkbox"], .kb-form input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }

/* Autofill keeps the paper field and ink text on every form. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink) !important;
    -webkit-box-shadow: 0 0 0 1000px var(--sheet) inset !important;
    box-shadow: 0 0 0 1000px var(--sheet) inset !important;
    caret-color: var(--ink);
    transition: background-color 600000s 0s, color 600000s 0s;
}
input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--sheet) inset, 0 0 0 4px var(--focus) !important;
    box-shadow: 0 0 0 1000px var(--sheet) inset, 0 0 0 4px var(--focus) !important;
}
input:autofill, textarea:autofill, select:autofill { -webkit-text-fill-color: var(--ink) !important; }

.kb-form input[type="submit"],
.kb-form button[type="submit"],
.kb-form button.button,
.kb-form button.btn,
.kb-form .crm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 54px;
    padding: 12px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -3px 0 rgba(0, 0, 0, .16);
    cursor: pointer;
    transition: background-color .2s, transform .2s var(--ease);
}
.kb-form input[type="submit"]:hover,
.kb-form button[type="submit"]:hover,
.kb-form button.button:hover,
.kb-form button.btn:hover,
.kb-form .crm-btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }

.kb-form--quiet button[type="submit"],
.kb-form--quiet input[type="submit"] { background: var(--ink); color: var(--sheet); text-shadow: none; }

.kb-form a { color: var(--ink); font-weight: 600; }
.kb-form h1, .kb-form h2, .kb-form h3, .kb-form h4 { color: var(--ink); font-family: var(--f-display); font-weight: 400; }

.kb-form .wpcf7-not-valid-tip, .kb-form .error { color: var(--bad); font-size: 14px; }
.kb-form .crm-error { margin: 0; padding: 12px 16px; border: 2px solid var(--bad); border-radius: 10px; background: var(--sheet-2); color: var(--bad); }

.kb-form .wpcf7-response-output,
.kb-form .crm-message,
.kb-form .crm-auth-messages:not(:empty) { margin: 0; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--sheet); color: var(--ink); }
.kb-form .crm-auth-messages:empty { display: none; }
.kb-form .crm-button-loading { display: none; }

/* --- Contact Form 7 (contact + unsubscribe): match the parent's specificity. */
.kb-form .wpcf7 form.contact-form,
.kb-form .wpcf7 form.unsubscribe-form { max-width: none; margin: 0; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-family: inherit; }
.kb-form .wpcf7 form.contact-form label,
.kb-form .wpcf7 form.unsubscribe-form label { display: block; margin-bottom: 7px; color: var(--ink) !important; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.kb-form .wpcf7 form.contact-form input[type="text"],
.kb-form .wpcf7 form.contact-form input[type="email"],
.kb-form .wpcf7 form.contact-form input[type="tel"],
.kb-form .wpcf7 form.contact-form input[type="number"],
.kb-form .wpcf7 form.contact-form input[type="url"],
.kb-form .wpcf7 form.contact-form input[type="password"],
.kb-form .wpcf7 form.contact-form input[type="search"],
.kb-form .wpcf7 form.contact-form input[type="date"],
.kb-form .wpcf7 form.contact-form textarea,
.kb-form .wpcf7 form.contact-form select,
.kb-form .wpcf7 form.unsubscribe-form input[type="text"],
.kb-form .wpcf7 form.unsubscribe-form input[type="email"],
.kb-form .wpcf7 form.unsubscribe-form input[type="tel"],
.kb-form .wpcf7 form.unsubscribe-form textarea,
.kb-form .wpcf7 form.unsubscribe-form select {
    width: 100%;
    padding: 12px 14px;
    background: var(--sheet) !important;
    border: 1.5px solid var(--line-2) !important;
    border-radius: 10px !important;
    color: var(--ink) !important;
    font-family: inherit;
    font-size: 16px;
}
.kb-form .wpcf7 form.contact-form input::placeholder,
.kb-form .wpcf7 form.contact-form textarea::placeholder,
.kb-form .wpcf7 form.unsubscribe-form input::placeholder { color: var(--ink-2) !important; }
.kb-form .wpcf7 form.contact-form input:focus,
.kb-form .wpcf7 form.contact-form textarea:focus,
.kb-form .wpcf7 form.contact-form select:focus,
.kb-form .wpcf7 form.unsubscribe-form input:focus,
.kb-form .wpcf7 form.unsubscribe-form textarea:focus { box-shadow: 0 0 0 4px var(--focus) !important; outline: none; }
.kb-form .wpcf7 form.contact-form textarea,
.kb-form .wpcf7 form.unsubscribe-form textarea { min-height: 140px; }

.kb-form .wpcf7 form.contact-form input[type="submit"],
.kb-form .wpcf7 form.unsubscribe-form input[type="submit"] {
    display: block;
    width: 100%;
    min-height: 54px;
    padding: 12px 24px;
    background: var(--accent) !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: var(--ink) !important;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    cursor: pointer;
}
.kb-form .wpcf7 form.contact-form input[type="submit"]:hover,
.kb-form .wpcf7 form.unsubscribe-form input[type="submit"]:hover { background: var(--accent-2) !important; }
.kb-form--quiet .wpcf7 form.unsubscribe-form input[type="submit"],
.kb-form--quiet .wpcf7 form.contact-form input[type="submit"] { background: var(--ink) !important; color: var(--sheet) !important; }
.kb-form--quiet .wpcf7 form.unsubscribe-form input[type="submit"]:hover { background: var(--cover) !important; }

.kb-form .wpcf7 form.contact-form .wpcf7-not-valid-tip,
.kb-form .wpcf7 form.unsubscribe-form .wpcf7-not-valid-tip { color: var(--bad) !important; font-size: 13px; }
.kb-form .wpcf7 form.contact-form .wpcf7-response-output,
.kb-form .wpcf7 form.unsubscribe-form .wpcf7-response-output { margin: 4px 0 0 !important; border: 1.5px solid var(--line-2) !important; border-radius: 10px !important; background: var(--sheet) !important; color: var(--ink) !important; }
.kb-form .wpcf7 form.contact-form .wpcf7-mail-sent-ok,
.kb-form .wpcf7 form.unsubscribe-form .wpcf7-mail-sent-ok { background: var(--c2) !important; color: var(--ok) !important; }
.kb-form .wpcf7 form.contact-form .wpcf7-validation-errors,
.kb-form .wpcf7 form.unsubscribe-form .wpcf7-validation-errors { background: var(--sheet-2) !important; color: var(--bad) !important; }

.kb-form .captcha-cf7-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.kb-form .captcha-cf7-wrap > p { flex: 0 0 100%; margin: 0; }
.kb-form .captcha-cf7-wrap > p:empty { display: none; }
.kb-form .captcha-cf7-wrap .main-cf7-captcha { flex: 1 1 160px; }
.kb-form .captcha-cf7-wrap .main-cf7-captcha .wpcf7-form-control-wrap { display: block; }
.kb-form .wpcf7 form.contact-form #input-captcha-cf7 { margin: 0 !important; }
.kb-form .captcha-image-container { flex: 0 0 auto; margin: 0; gap: 10px; }
.kb-form .captcha-image-container img#captcha-image { height: 52px; width: auto; border: 1.5px solid var(--line-2) !important; border-radius: 10px !important; }
.kb-form a#reload_captcha {
    width: 52px !important;
    height: 52px !important;
    background: var(--sheet-2) !important;
    border: 1.5px solid var(--line-2) !important;
    border-radius: 10px !important;
    color: var(--ink) !important;
}
.kb-form a#reload_captcha:hover { background: var(--accent) !important; }
.kb-form a#reload_captcha img.emoji { width: 20px; height: 20px; }
.kb-form .wpcf7-spinner { margin: 0 auto; }
.page-unsubscribe .unsubscribe-form label { color: var(--ink) !important; }

/* --- CRM plugin forms: flatten the plugin's white card. */
.kb-form .crm-login-form,
.kb-form .crm-forgot-password-form,
.kb-form .crm-change-password-form,
.kb-form .crm-user-dashboard,
.kb-form .crm-user-profile-edit {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.kb-form--auth .crm-login-title,
.kb-form--auth .crm-forgot-password-title,
.kb-form--auth .crm-change-password-title { display: none; }

.kb-form .crm-field-group label,
.kb-form .crm-form-group label { color: var(--ink); }
.kb-form .crm-field-group,
.kb-form .crm-form-group { display: flex; flex-direction: column; width: 100%; margin-bottom: 0; }
.kb-form .crm-login-title,
.kb-form .crm-forgot-password-title,
.kb-form .crm-change-password-title { margin: 0; color: var(--ink); font-family: var(--f-display); font-size: 28px; font-weight: 400; line-height: 1.1; }
.kb-form .crm-forgot-password-description,
.kb-form .crm-change-password-description { margin: -4px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.kb-form .crm-field-hint { display: block; margin-top: 6px; color: var(--ink-2); font-size: 13px; }

.kb-form .login-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.kb-form .login-actions .form-input-wrapper { margin: 0; }
.kb-form label.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--ink); font-size: 14.5px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.kb-form label.inline input[type="checkbox"] { margin: 0; flex-shrink: 0; }

/* "I forgot my password" ships as a.button: keep it a link. */
.kb-form a.button,
.kb-form a.btn,
.kb-form .crm-back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
.kb-form a.button:hover, .kb-form a.btn:hover, .kb-form .crm-back-to-login:hover { background: none; color: var(--cover); }
.kb-form .crm-forgot-password-footer { margin-top: 4px; text-align: center; }

.kb-form .crm-btn-secondary,
.kb-form .crm-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.kb-form .crm-btn-secondary { border: 1.5px solid var(--line-2); background: var(--sheet); color: var(--ink); }
.kb-form .crm-btn-secondary:hover { background: var(--sheet-2); }
.kb-form .crm-btn-danger { border: 2px solid var(--bad); background: var(--sheet); color: var(--bad); }
.kb-form .crm-btn-danger:hover { background: var(--bad); color: #fff; }

.kb-form button:disabled,
.kb-form input[type="submit"]:disabled,
.kb-form .crm-login-button:disabled,
.kb-form .crm-reset-password-button:disabled,
.kb-form .crm-change-password-button:disabled { background: var(--sheet-2); color: var(--ink-2); text-shadow: none; box-shadow: none; cursor: not-allowed; transform: none; }

.kb-form .crm-form-actions,
.kb-form .crm-subscription-actions,
.kb-form .crm-dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.kb-form .crm-form-actions > *, .kb-form .crm-subscription-actions > * { flex: 1 1 auto; }

.kb-form .crm-profile-field,
.kb-form .crm-subscription-field {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    padding: 12px 0;
    border-bottom: 2px dotted var(--line-2);
}
.kb-form .crm-profile-field:last-child, .kb-form .crm-subscription-field:last-child { border-bottom: 0; }
.kb-form .crm-profile-field label, .kb-form .crm-subscription-field label { margin: 0; color: var(--ink-2); }
.kb-form .crm-profile-field span, .kb-form .crm-subscription-field span { color: var(--ink); font-size: 15px; font-weight: 700; text-align: right; word-break: break-word; }

.kb-form .crm-user-info-section,
.kb-form .crm-subscription-section,
.kb-form .crm-dashboard-header,
.kb-form .crm-info-item { margin-bottom: 8px; padding: 0; border: 0; background: transparent; }
.kb-form .crm-user-info-section h4,
.kb-form .crm-subscription-section h4,
.kb-form .crm-dashboard-header h3 { color: var(--ink); }
.kb-form .crm-info-item label { color: var(--ink-2); }
.kb-form .crm-info-item span { color: var(--ink); }
.kb-form .crm-access-badge { background: var(--accent); color: var(--ink); }

.kb-form .crm-subscription-item { padding: 20px; border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--sheet); }
.kb-form .crm-subscription-item + .crm-subscription-item { margin-top: 16px; }
.kb-form .crm-subscription-name { margin: 0 0 8px; color: var(--ink); font-family: var(--f-display); font-size: 28px; font-weight: 400; }
.kb-form .crm-subscription-field span.crm-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--sheet-2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.kb-form .crm-subscription-field span.crm-status-active { background: var(--c2); color: var(--ok); }
.kb-form .crm-subscription-field span.crm-status-cancelled,
.kb-form .crm-subscription-field span.crm-status-canceled,
.kb-form .crm-subscription-field span.crm-status-expired,
.kb-form .crm-subscription-field span.crm-status-inactive { background: var(--c4); color: var(--bad); }
.kb-form .crm-subscription-field span.crm-status-pending,
.kb-form .crm-subscription-field span.crm-status-trial { background: var(--c3); color: var(--ink); }

.kb-form .crm-login-required,
.kb-form .crm-no-access,
.kb-form .crm-logged-in-message,
.kb-form .crm-subscription-message,
.kb-form .crm-info { padding: 20px; border: 2px dashed var(--line-2); border-radius: 6px; background: var(--sheet); color: var(--ink-2); text-align: center; }
.kb-form .crm-login-required p, .kb-form .crm-no-access p { margin: 0 0 12px; }
.kb-form .crm-auth-message { margin: 0; }
.kb-form .crm-auth-warning { color: var(--ink); }
.kb-form .crm-auth-info { color: var(--ok); }

/* ---------- orders / invoice tables ---------- */

.kb-table { overflow-x: auto; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--sheet); }
.kb-table table { width: 100%; margin: 0; font-size: 15px; text-align: left; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.kb-table thead tr, .kb-table table tr:first-child th { background: var(--ink); color: var(--sheet); }
.kb-table th { padding: 14px 20px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.kb-table td { padding: 15px 20px; color: var(--ink); border-bottom: 1px dotted var(--line-2); }
.kb-table tbody tr:hover { background: var(--sheet-2); }
.kb-table .profile-orders { color: var(--ink); }
.kb-table .orders-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
.kb-table .orders-header h2, .kb-table .orders-header h3 { margin: 0; color: var(--ink); font-family: var(--f-display); font-size: 26px; font-weight: 400; }
.kb-table .orders-table-container { overflow-x: auto; }
.kb-table .orders-empty, .kb-table .crm-orders-empty { padding: 34px 20px; color: var(--ink-2); text-align: center; }
.kb-table .product-info { display: flex; flex-direction: column; gap: 2px; }
.kb-table .order-invoice { font-weight: 700; white-space: nowrap; }
.kb-table .order-date { white-space: nowrap; color: var(--ink-2); }
.kb-table .order-actions { white-space: nowrap; }
.kb-table a, .kb-table button { color: var(--ink); font-weight: 700; background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.kb-table .invoice-detail, .kb-table .invoice-container { padding: 24px; color: var(--ink); }

.kb-table .invoice-error, .kb-table .invoice-access-denied { padding: 30px 28px; color: var(--ink); }
.kb-table .invoice-error h2, .kb-table .invoice-access-denied h2, .kb-table .invoice-error h3 { margin: 0 0 8px; font-size: 26px; }
.kb-table .invoice-error p { margin: 0 0 14px; color: var(--ink-2); }
.kb-table .back-btn { display: inline-block; margin-top: 6px; }

/* ---------- policy prose ---------- */

.kb-prose, .kb-prose p, .kb-prose li, .kb-prose td, .kb-prose th { color: var(--ink); line-height: 1.75; }
.kb-prose { font-size: 16.5px; }
.kb-prose h1, .kb-prose h2, .kb-prose h3, .kb-prose h4 { margin: 1.6em 0 .6em; color: var(--ink); font-family: var(--f-display); font-weight: 400; line-height: 1.15; }
.kb-prose > :first-child, .kb-prose > div > :first-child { margin-top: 0; }
.kb-prose h1 { font-size: 34px; }
.kb-prose h2 { font-size: 28px; }
.kb-prose h3 { font-size: 22px; }
.kb-prose p { margin: 0 0 1em; }
.kb-prose ul, .kb-prose ol { margin: 0 0 1em 1.25em; padding: 0; list-style: revert; }
.kb-prose li::marker { color: var(--ink); }
.kb-prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.kb-prose table { width: 100%; margin: 0 0 1em; border-collapse: collapse; }
.kb-prose td, .kb-prose th { padding: 8px 12px; border: 1px solid var(--line-2); }

.kb-prose [style*="color"], .kb-prose [style*="COLOR"], .kb-prose font, .kb-prose span, .kb-prose section, .kb-prose article { color: inherit !important; }
.kb-prose [style*="background"], .kb-prose [style*="BACKGROUND"] { background: transparent !important; background-color: transparent !important; }
.kb-prose h1[style], .kb-prose h2[style], .kb-prose h3[style], .kb-prose h4[style], .kb-prose h5[style], .kb-prose h6[style],
.kb-prose h1 span, .kb-prose h2 span, .kb-prose h3 span, .kb-prose h4 span, .kb-prose h5 span, .kb-prose h6 span,
.kb-prose h1 font, .kb-prose h2 font, .kb-prose h3 font, .kb-prose h4 font, .kb-prose h5 font, .kb-prose h6 font { color: var(--ink) !important; }
.kb-prose strong, .kb-prose b { color: var(--ink); font-weight: 700; }
.kb-prose a, .kb-prose a[style], .kb-prose a span, .kb-prose a font { color: var(--ink) !important; }
.kb-prose .crm-privacy-policy, .kb-prose .crm-cookie-policy, .kb-prose .crm-subscription-policy, .kb-prose .crm-terms-of-service { max-width: none; color: var(--ink); background: transparent; }

/* CRM pricing table forces an inline white ground: style it as a light island. */
.kb-prose div.dataTables_wrapper { margin: 0 0 1.5em; padding: 18px !important; overflow-x: auto; border: 1.5px solid var(--line-2) !important; border-radius: 6px; font: inherit !important; }
.kb-prose div.dataTables_wrapper, .kb-prose div.dataTables_wrapper p, .kb-prose div.dataTables_wrapper li, .kb-prose div.dataTables_wrapper span, .kb-prose div.dataTables_wrapper div { color: var(--ink) !important; line-height: 1.6; }
.kb-prose div.dataTables_wrapper .product_name { margin: 0 0 14px; font-size: 20px; font-weight: 700; line-height: 1.3; }
.kb-prose div.dataTables_wrapper table { width: 100% !important; min-width: 560px; margin: 0 !important; border: 0 !important; border-collapse: collapse !important; }
.kb-prose div.dataTables_wrapper table th { padding: 11px 14px !important; border: 0 !important; background-color: var(--ink) !important; color: #fff !important; font-weight: 700 !important; text-align: left !important; vertical-align: middle !important; white-space: nowrap; width: auto !important; }
.kb-prose div.dataTables_wrapper table td { padding: 11px 14px !important; border: 0 !important; border-bottom: 1px solid var(--line) !important; color: var(--ink) !important; vertical-align: middle !important; }
.kb-prose div.dataTables_wrapper table tbody tr, .kb-prose div.dataTables_wrapper table tbody tr td { background: transparent !important; }

/* submit buttons read as index tabs */
.kb-form input[type="submit"],
.kb-form button[type="submit"],
.kb-form button.button,
.kb-form button.btn,
.kb-form .crm-btn-primary,
.kb-form .wpcf7 form.contact-form input[type="submit"],
.kb-form .wpcf7 form.unsubscribe-form input[type="submit"] {
    border-radius: var(--r-tab) var(--r-tab) 3px 3px !important;
    color: var(--accent-ink) !important;
    font-family: var(--f-body);
    letter-spacing: .02em;
    text-transform: none;
    font-size: 16px;
    text-shadow: none;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16);
}
.kb-form--quiet button[type="submit"],
.kb-form--quiet input[type="submit"],
.kb-form--quiet .wpcf7 form.unsubscribe-form input[type="submit"] { color: var(--sheet) !important; }
.kb-form label { font-family: var(--f-mono); font-size: 12px; font-weight: 400; letter-spacing: .04em; }

/* ---------- cookie notice: a page flag ---------- */

#cookie-modal.kb-cookie {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 90;
    width: min(390px, calc(100vw - 40px));
    padding: 26px 24px 22px;
    border-radius: 0 var(--r-sheet) var(--r-sheet) var(--r-sheet);
    background: var(--sheet);
    color: var(--ink);
    box-shadow: 0 0 0 1.5px var(--line-2), 0 24px 40px -28px rgba(0, 0, 0, .55);
    animation: kb-slide-in .45s var(--ease) both;
}
#cookie-modal.hide-cookie { display: none; }
#cookie-modal .kb-cookie__tab { position: absolute; left: 0; top: -32px; padding: 7px 16px 9px; border-radius: var(--r-tab) var(--r-tab) 0 0; background: var(--hl); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }
#cookie-modal .cookie-title { margin: 0 0 6px; color: var(--ink); font-family: var(--f-display); font-size: 22px; font-weight: 700; }
#cookie-modal p { margin: 0; color: var(--ink); font-size: 15px; }
#cookie-modal a { color: var(--ink); font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
#cookie-modal .cookie-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- admin-only notice ---------- */

.admin-notice { width: 100%; max-width: 900px; margin: 0 auto 30px; padding: 14px 18px; border: 2px dashed var(--line-2); border-radius: 10px; background: var(--sheet); color: var(--ink); font-size: 14px; }
.admin-notice a { color: var(--ink); font-weight: 700; }

/* ---------- WordPress bits ---------- */

.kb-entry + .kb-entry { margin-top: 40px; padding-top: 40px; border-top: 2px dashed var(--line-2); }
.kb-prose .nav-links { display: flex; gap: 12px; margin-top: 30px; }
.kb-prose .page-numbers { padding: 6px 12px; border: 1.5px solid var(--line-2); border-radius: 8px; text-decoration: none; }
.kb-prose .page-numbers.current { background: var(--accent); }
.kb-form fieldset.hidden-fields-container { display: none; }
.kb-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .kb-tabs .menu-item > a { padding: 11px 13px 12px; font-size: 12px; }
    .kb-top__inner { gap: 18px; }
    .kb-hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .kb-hero__stage { max-width: 820px; }
}

/* tablets and phones: the tabs fold into the Index */
@media (max-width: 1024px) {
    .kb-tabs, .kb-top__act .kb-toplink, .kb-top__act .kb-lang--top { display: none; }
    .kb-indexbtn { display: inline-flex; }
    .kb-top__inner { grid-template-columns: 1fr auto; }
    .kb-top__act { padding-bottom: 0; }
    .kb-logo--header { padding-bottom: 14px; }
    .kb-flagbtn { display: none; }
    .kb-sheet--first { border-radius: var(--r-sheet) 6px var(--r-sheet) var(--r-sheet); }

    .kb-section { padding: 90px 0; }
    .kb-demo__grid, .kb-faq__grid, .kb-notes__grid, .kb-about__grid, .kb-contact__grid, .kb-profile { grid-template-columns: 1fr; gap: 34px; }
    .kb-demo__head, .kb-faq .kb-head { position: static; }
    .kb-set__sheet { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
    .kb-set__tabs { padding-right: 0; }
    .kb-set__tab { margin-left: 0; font-size: 15px; padding: 0 12px; }
    .kb-steps__list { grid-template-columns: 1fr; gap: 56px; max-width: 620px; }
    .kb-step:nth-child(2), .kb-step:nth-child(3) { margin-top: 0; }
    .kb-step:nth-child(2) { margin-left: 30px; }
    .kb-step:nth-child(3) { margin-left: 60px; }
    .kb-head--row { grid-template-columns: 1fr; gap: 0; }
    .kb-footer__index { grid-template-columns: 1fr; gap: 34px; }
    .kb-values { grid-template-columns: 1fr; }
    .kb-demo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body.kb-body { font-size: 16px; }
    .kb-wrap, .kb-wrap--narrow { width: calc(100% - 32px); }
    .kb-top { padding-top: 12px; }
    .kb-top__inner { width: 100%; padding: 0 16px; }
    body.kb-body .kb-logo__img { height: 34px; }
    .kb-sheet--first { width: calc(100% - 16px); }
    .kb-section { padding: 72px 0; }
    .kb-section--tight { padding: 40px 0 72px; }
    .kb-head { margin-bottom: 34px; }
    .kb-lead { font-size: 17px; }

    .kb-hero { padding: 40px 0 46px; }
    .kb-hero .kb-wrap { width: calc(100% - 28px); }
    .kb-hero__lead { font-size: 17.5px; }
    .kb-hero__stage { padding: 0; }
    .kb-flags { justify-content: flex-start; gap: 8px; margin: 16px 0 0 !important; }
    .kb-flag span { transform: none !important; max-width: none; font-size: 11.5px; }
    .kb-binder { grid-template-columns: 1fr; padding: 12px 10px 10px 30px; border-radius: 18px; }
    .kb-binder__rings { left: 8px; }
    .kb-binder__rings i { width: 30px; height: 14px; border-width: 4px; }
    .kb-app { min-height: 0; }
    .kb-app__bar { padding: 12px 14px 12px 22px; }
    .kb-app__panes { padding: 18px 14px 0 22px; }
    .kb-app__head { font-size: 23px; }
    .kb-app__tabs { order: -1; flex-direction: row; gap: 4px; padding: 0 0 0; margin: 0 0 -2px; overflow-x: auto; }
    .kb-app__tab { flex: 1 1 0; min-width: 0; min-height: 42px; margin: 0; padding: 0 4px; border-radius: 10px 10px 0 0; font-size: 10.5px; letter-spacing: 0; text-align: center; transform: translateY(4px); }
    .kb-app__tab:hover { transform: translateY(2px); }
    .kb-app__tab[aria-selected="true"] { transform: none; box-shadow: inset 0 -4px 0 var(--ink); }
    .kb-app { border-radius: 4px 4px 8px 8px; }
    .kb-row { gap: 10px; min-height: 50px; }
    .kb-row__t { white-space: normal; font-size: 15px; }
    .kb-note { position: relative; right: auto; top: auto; width: auto; margin: 16px 6px 0; transform: rotate(-1deg); cursor: default; touch-action: auto; }

    .kb-set__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
    .kb-set__tab { flex: 0 0 auto; min-height: 50px; }
    .kb-set__sheet { padding: 18px; border-radius: 0 0 var(--r-sheet) var(--r-sheet); }
    .kb-set__body { padding: 0 4px 8px; }
    .kb-set__text { font-size: 16.5px; }

    .kb-bench { padding: 24px 18px 24px 46px; }
    .kb-bench::before { left: 34px; }
    .kb-bench__holes { left: 9px; }
    .kb-bench__holes i { width: 14px; height: 14px; }
    .kb-demo-row { grid-template-columns: 1fr; }
    .kb-stepper { grid-template-columns: 44px 64px 44px auto; }
    .kb-line { grid-template-columns: 32px minmax(0, 1fr) auto; }
    .kb-line__tag { grid-column: 2; justify-self: start; margin: -10px 0 10px; }
    .kb-line__x { grid-row: 1; grid-column: 3; }

    .kb-reel__top { flex-direction: column; align-items: flex-start; }
    body.kb-body .kb-reel__strip { grid-auto-columns: 78%; gap: 16px; padding-inline: 16px; scroll-padding-inline: 16px; }

    .kb-step { padding: 56px 22px 28px; }
    .kb-step:nth-child(2), .kb-step:nth-child(3) { margin-left: 0; }
    .kb-holder { grid-template-columns: 1fr; padding: 12px; }

    .kb-plans { gap: 48px; }
    .kb-plan__tab { margin-left: 0 !important; }
    .kb-plan__sheet { padding: 26px 20px 22px; }

    .kb-qa summary { grid-template-columns: 40px minmax(0, 1fr) 26px; gap: 10px; padding: 14px 16px 22px; }
    .kb-qa__q { font-size: 18px; }
    .kb-qa p { padding: 0 16px 24px 16px; font-size: 16px; }

    .kb-footer { padding-top: 60px; }
    .kb-footer .footer-menu-list a { font-size: 32px; }
    .kb-footer__col--footer-menu .footer-menu-list a { font-size: 18px; }

    .kb-pagehead { padding: 44px 0 48px; }
    .kb-panel { padding: 24px 18px; }
    .kb-panel--punched { padding-left: 46px; }
    .kb-panel--punched::before { left: 14px; }
    .kb-auth { padding: 40px 0 80px; }
    .kb-auth__sheet { padding: 40px 20px 30px 46px; }
    .kb-auth__holes { left: 14px; }
    .kb-auth__holes i { width: 14px; height: 14px; }
    .kb-auth__flag { right: -8px; top: -46px; font-size: 11.5px; }
    .kb-auth__tabs { padding-left: 0; overflow-x: auto; }
    .kb-auth__tab { padding: 10px 12px 11px; font-size: 11.5px; white-space: nowrap; }
    #cookie-modal.kb-cookie { left: 12px; bottom: 12px; width: calc(100vw - 24px); }
}

/* ==========================================================================
   Reduced motion: everything visible and still.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js [data-kb-reveal], .js [data-kb-deal] > *, .js .kb-flag { opacity: 1 !important; transform: none !important; }
    .js .kb-photo[data-kb-reveal]::after { display: none; }
    .kb-hl::after { transform: scaleX(1) !important; }
}
