:root {
    --ka-forest: #213f31;
    --ka-ink: #23382c;
    --ka-muted: #4c6054;
    --ka-cream: #fcfaf3;
    --ka-paper: #fffefa;
    --ka-sage: #e7efe2;
    --ka-edge: #d7e0d3;
    --ka-serif: "DM Serif Display", Georgia, serif;
    --ka-sans: Inter, system-ui, sans-serif;
}

.ka-page { background: var(--ka-paper); }
.ka-shell { color: var(--ka-ink); font-family: var(--ka-sans); }
.ka-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ka-section { padding-block: clamp(2.5rem, 6vw, 5.2rem); scroll-margin-top: 110px; }
.ka-shell h1, .ka-shell h2, .ka-shell h3, .ka-home-feature h2 {
    font-family: var(--ka-serif); color: var(--ka-forest); font-weight: 400; letter-spacing: -.027em;
}
.ka-shell h1 { font-size: clamp(2.65rem, 5.4vw, 5rem); line-height: .99; margin: 0 0 1.1rem; }
.ka-shell h2, .ka-home-feature h2 { font-size: clamp(2rem, 3.7vw, 3.3rem); line-height: 1.06; margin: 0 0 .75rem; }
.ka-shell h3 { font-size: clamp(1.35rem, 2.2vw, 1.78rem); line-height: 1.12; margin: .4rem 0 .7rem; }
.ka-shell p { line-height: 1.64; color: var(--ka-muted); }
.ka-shell a:focus-visible, .ka-promo a:focus-visible, .ka-home-feature a:focus-visible,
.ka-shell button:focus-visible, .ka-preview-dialog button:focus-visible {
    outline: 3px solid #967144; outline-offset: 4px;
}
.ka-kicker { display: block; margin: 0 0 .6rem; font: 700 .71rem/1.45 var(--ka-sans); letter-spacing: .075em; text-transform: uppercase; color: var(--ka-muted); }
.ka-mark { display: inline-grid; width: 1.85rem; height: 1.85rem; place-items: center; background: #dce8d8; border-radius: 50%; color: var(--ka-forest); margin-right: .35rem; }
.ka-hero .ka-kicker > span:last-child { margin-left: .3rem; color: #486252; font-weight: 600; letter-spacing: .01em; text-transform: none; }
.ka-lead { font-size: clamp(1rem, 1.5vw, 1.18rem); max-width: 61ch; margin-bottom: 1.1rem; }
.ka-hero { background: radial-gradient(ellipse at 82% 35%, #e4eddd, transparent 54%), #f6f5eb; border-bottom: 1px solid var(--ka-edge); }
.ka-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(12px, 3.6vw, 55px); padding-block: clamp(2rem, 6vw, 5.8rem); }
.ka-hero-copy { position: relative; z-index: 1; }
.ka-hero-copy h1 { max-width: 16ch; font-size: clamp(2.65rem,4.7vw,4.35rem); }
.ka-showcase {
    display: block; position: relative; isolation: isolate; overflow: hidden; margin: 0;
    aspect-ratio: 1.06; border-radius: 48% 48% 24% 24%; background: radial-gradient(ellipse at center, #f7f0db 0, #e1ead9 78%);
}
.ka-showcase::before { content: ""; position: absolute; z-index: -1; inset: 9% 9% 11%; border: 1px solid #b2c3ae; border-radius: 50%; }
.ka-stack { position: absolute; width: 28%; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 0 17px 22px -9px #173b3366, 3px 2px 0 #f1ebda; transform-origin: 50% 85%; }
.ka-stack-1 { top: 15%; left: 11%; transform: rotate(-20deg); }
.ka-stack-2 { top: 7%; left: 29%; transform: rotate(-10deg); }
.ka-stack-3 { top: 9%; left: 46%; transform: rotate(7deg); }
.ka-stack-4 { top: 16%; left: 64%; transform: rotate(19deg); }
.ka-stack-5 { top: 40%; left: 13%; transform: rotate(-12deg); }
.ka-stack-6 { top: 40%; left: 62%; transform: rotate(12deg); }
.ka-stack-premium { top: 26%; left: 34%; width: 33%; transform: rotate(-3deg); }
.ka-price { display: flex; gap: .6rem .85rem; align-items: center; flex-wrap: wrap; margin: 0 0 .95rem; }
.ka-price strong { font: 400 clamp(2rem, 4vw, 3.15rem)/1 var(--ka-serif); color: var(--ka-forest); }
.ka-price del { color: #55675a; font-size: .94rem; }
.ka-price > span { font: 700 .72rem/1.2 var(--ka-sans); color: #264634; background: #dce8d6; padding: .46rem .64rem; border-radius: 20px; }
.ka-actions { display: flex; align-items: center; gap: .8rem 1.1rem; flex-wrap: wrap; }
.ka-button {
    min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: .65rem; text-align: center;
    background: var(--ka-forest); color: white; border: 1px solid var(--ka-forest); padding: .72rem 1.18rem; border-radius: 9px;
    text-decoration: none; font: 700 .9rem/1.2 var(--ka-sans); transition: background .16s, border-color .16s;
}
.ka-button:hover { background: #315b46; border-color: #315b46; color: white; }
.ka-button--small { min-height: 40px; font-size: .82rem; padding-inline: .8rem; }
.ka-button--outline { background: transparent; color: var(--ka-forest); }
.ka-text-link { color: var(--ka-forest); font: 700 .875rem/1.4 var(--ka-sans); text-underline-offset: .22em; }
.ka-text-link:hover { color: #4b6652; }
.ka-availability { margin: .7rem 0 0; font-size: .78rem; }
.ka-trust { list-style: none; display: flex; flex-wrap: wrap; gap: .38rem .9rem; padding: 0; margin: .95rem 0 0; font-size: .79rem; color: var(--ka-muted); }
.ka-trust i { color: #34604a; margin-right: .2rem; }
.ka-section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.75rem; }
.ka-section-head h2 { margin: 0; }
.ka-section-head > p { max-width: 32ch; margin: 0; }
.ka-book-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.ka-book { border: 1px solid var(--ka-edge); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: white; }
.ka-book-cover { display: grid; place-items: center; padding: 1.25rem; background: radial-gradient(ellipse at center,#f1eee0,#e7eee6); }
.ka-book:nth-child(3n+2) .ka-book-cover { background: radial-gradient(ellipse at center,#f7f0d9,#edead9); }
.ka-book:nth-child(3n+3) .ka-book-cover { background: radial-gradient(ellipse at center,#f3edea,#ece5e9); }
.ka-book-cover img { display: block; width: clamp(105px,13vw,165px); max-height: 240px; height: auto; box-shadow: 8px 9px 17px #231d1829; border-radius: 2px 4px 4px 2px; }
.ka-book-body { padding: 1.25rem; display: flex; flex: 1; flex-direction: column; }
.ka-book-body h3 a { color: inherit; text-decoration: none; }
.ka-book-body h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ka-book-body > p:not(.ka-kicker), .ka-book-body li { font-size: .9rem; }
.ka-book-body ul { padding-left: 1.05rem; color: var(--ka-muted); margin: 0 0 1.1rem; }
.ka-book-body li + li { margin-top: .32rem; }
.ka-book-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .7rem; padding-top: .9rem; border-top: 1px solid var(--ka-edge); margin-top: auto; }
.ka-book-bottom strong { margin-right: auto; font: 400 1.4rem/1 var(--ka-serif); color: var(--ka-forest); }
.ka-book-bottom > a:last-child { font-size: .78rem; }
.ka-band { background: #f4f7ef; border-block: 1px solid var(--ka-edge); }
.ka-split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2rem 8%; align-items: start; }
.ka-offer {
    display: grid; grid-template-columns: minmax(100px, 19%) 1fr; gap: clamp(1rem,4vw,3rem); align-items: center;
    padding: clamp(1rem,4vw,3rem); border-radius: 18px; border: 1px solid var(--ka-edge); background: #eaf0e3;
}
.ka-offer img { width: 100%; max-width: 165px; height: auto; border-radius: 2px 4px 4px 2px; box-shadow: 7px 9px 14px #24372425; }
.ka-offer p:not(.ka-kicker) { max-width: 60ch; }
.ka-product { padding-top: 1.5rem; }
.ka-crumb { font-size: .82rem; color: var(--ka-muted); margin-bottom: 1.25rem; }
.ka-crumb a { color: var(--ka-forest); text-underline-offset: 3px; }
.ka-crumb span { margin-inline: .4rem; }
.ka-product-grid { display: grid; grid-template-columns: minmax(0,.84fr) minmax(0,1.16fr); align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.ka-product-art { display: grid; place-items: center; min-height: 450px; margin: 0; border-radius: 24px; background: radial-gradient(ellipse at center,#f5ecd5,#e4ece0 72%); padding: 1.4rem; }
.ka-product-art img { display: block; width: min(72%,285px); height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 12px 15px 35px #21352d37, 5px 2px 0 #e9e0c8; }
.ka-product-copy h1 { font-size: clamp(2.25rem,4.8vw,4.3rem); }
.ka-checks { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.ka-checks li { position: relative; padding-left: 1.48rem; margin: .42rem 0; color: var(--ka-muted); }
.ka-checks li::before { content: "✓"; color: #376b4c; font-weight: 800; position: absolute; left: 0; }
.ka-editorial { font-size: .76rem; font-weight: 700; }
.ka-chapters { list-style: none; counter-reset: chapter; margin: 0; padding: 0; border-top: 1px solid var(--ka-edge); }
.ka-chapters li { display: flex; align-items: baseline; gap: .8rem; padding-block: .78rem; border-bottom: 1px solid var(--ka-edge); counter-increment: chapter; }
.ka-chapters li::before { content: counter(chapter, decimal-leading-zero); color: #546c53; font: 700 .76rem var(--ka-sans); }
.ka-previews { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.1rem; }
.ka-previews figure { margin: 0; min-width: 0; }
.ka-previews figure a { position: relative; display: grid; place-items: center; background: #edece2; padding: .8rem; border-radius: 12px; border: 1px solid var(--ka-edge); }
.ka-previews figure img { width: 100%; height: auto; aspect-ratio: 230/325; object-fit: contain; filter: drop-shadow(2px 3px 4px #2033292c); }
.ka-previews figure i { position: absolute; bottom: .45rem; right: .45rem; padding: .38rem; border-radius: 6px; background: white; color: var(--ka-forest); }
.ka-previews figcaption { padding-top: .45rem; color: var(--ka-muted); font-size: .8rem; }
.ka-preview-dialog { border: 0; border-radius: 12px; padding: 0; max-width: min(94vw,650px); max-height: 95dvh; background: #f4f1e7; color: var(--ka-ink); }
.ka-preview-dialog::backdrop { background: #0d251bca; }
.ka-dialog-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: .4rem; position: sticky; top: 0; padding: .5rem; text-align: center; background: #f4f1e7; font: 700 .8rem var(--ka-sans); }
.ka-dialog-actions button { border: 0; border-radius: 6px; background: #e1eadd; color: var(--ka-forest); min-width: 42px; min-height: 42px; font-size: 1.25rem; }
.ka-preview-dialog > img { max-width: 100%; display: block; margin: 0 auto; }
.ka-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.ka-steps li { padding: 1rem 1.15rem; border-radius: 12px; background: var(--ka-paper); border: 1px solid var(--ka-edge); counter-increment: step; }
.ka-steps li::before { content: counter(step,decimal-leading-zero); display: block; color: #446249; font-weight: 700; font-size: .75rem; margin-bottom: .4rem; }
.ka-steps strong, .ka-steps span { display: block; }
.ka-steps span { color: var(--ka-muted); margin-top: .24rem; font-size: .92rem; }
.ka-faq details { border-bottom: 1px solid var(--ka-edge); padding: .9rem 0; }
.ka-faq details:first-child { border-top: 1px solid var(--ka-edge); }
.ka-faq summary { cursor: pointer; font-weight: 700; padding: .15rem 0; }
.ka-faq details p { margin: .5rem 0 .15rem; }
.ka-final { border-top: 1px solid var(--ka-edge); display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.ka-final h2 { margin: 0; max-width: 27ch; }
.ka-final .ka-button { flex-shrink: 0; }
.ka-sticky { display: none; }
.ka-checkout { max-width: 660px; min-height: 53vh; }
.ka-checkout > .ka-kicker { margin-top: 1.4rem; }
.ka-checkout h1 { font-size: clamp(2.25rem,5vw,3.8rem); }
.ka-checkout h2 { font-size: 1.75rem; margin-top: 1.5rem; }
.ka-checkout-product { padding: 1rem; display: grid; grid-template-columns: 65px 1fr auto; align-items: center; gap: .75rem; background: #f0f4eb; border-radius: 11px; margin: 1.4rem 0; }
.ka-checkout-product img { width: 100%; height: auto; }
.ka-checkout-product small { display: block; color: var(--ka-muted); margin-top: .3rem; }
.ka-checkout-product b { white-space: nowrap; }
.ka-checkout-form { display: grid; gap: .85rem; }
.ka-email-label { font-weight: 700; }
.ka-checkout-form input[type=email] { min-height: 49px; padding: .65rem .8rem; border: 1px solid #809384; border-radius: 8px; background: white; width: 100%; }
.ka-consent { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; }
.ka-consent input { margin-top: .2rem; accent-color: var(--ka-forest); width: 18px; height: 18px; flex: 0 0 18px; }
.ka-consent a { color: var(--ka-forest); text-underline-offset: 2px; }
.ka-checkout-form > small { color: var(--ka-muted); }
.ka-error { background: #fff3dd; border: 1px solid #ead5b0; padding: .85rem; border-radius: 9px; }
.ka-checkout-upsell { padding: 1.15rem; background: #f0f4eb; border-radius: 11px; margin-top: 1.5rem; }
.ka-checkout-upsell p { margin: .35rem 0; }

.ka-home-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: .9rem; color: #fff; font-weight: 700; text-underline-offset: .2em; }
.ka-home-link:hover { color: #e8efce; }
.ka-home-feature { padding-block: 2.5rem; }
.ka-home-feature .ka-offer { background: linear-gradient(112deg,#f0eedc,#e4efdf); font-family: var(--ka-sans); }
.ka-home-feature .ka-offer p { color: var(--ka-muted); }
.ka-promo {
    display: grid; grid-template-columns: 82px minmax(0,1fr); align-items: center; gap: 1.1rem;
    margin: 1.35rem 0; padding: clamp(.85rem,3vw,1.35rem); background: #f0f5eb; border: 1px solid var(--ka-edge);
    color: var(--ka-forest); border-radius: 14px; font-family: var(--ka-sans);
}
.ka-promo-cover img { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 4px 5px 9px #293a2f38; }
.ka-promo .ka-kicker { margin: 0 0 .25rem; font-size: .66rem; }
.ka-promo strong { display: block; font: 400 clamp(1.2rem,2vw,1.65rem)/1.13 var(--ka-serif); }
.ka-promo p { font: 400 .875rem/1.5 var(--ka-sans); color: var(--ka-muted); margin: .4rem 0 .6rem; }
.ka-promo--article_middle { background: #fbfaf4; }
.ka-promo--article_end { border-left: 3px solid #496f54; }
.ka-footer-analytics { font: 400 .78rem/1.45 var(--ka-sans); }
.ka-footer-analytics button { background: transparent; border: 0; color: inherit; padding: 0; text-underline-offset: 2px; text-decoration: underline; }

@media (max-width: 900px) {
    .ka-book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ka-product-art { min-height: 370px; }
}
@media (max-width: 700px) {
    .ka-wrap { width: min(100% - 32px, 580px); }
    .ka-section { padding-block: 2.6rem; scroll-margin-top: 95px; }
    .ka-hero-grid, .ka-product-grid, .ka-split { grid-template-columns: minmax(0,1fr); gap: 1.35rem; }
    .ka-hero-grid { padding-block: 1.5rem; }
    .ka-hero-copy h1 { font-size: clamp(2.25rem,8vw,3.7rem); max-width: 17ch; margin-bottom: .75rem; }
    .ka-hero .ka-lead { margin-bottom: .78rem; line-height: 1.45; }
    .ka-hero .ka-actions > .ka-button, .ka-product-copy .ka-actions > .ka-button, .ka-final .ka-button { width: 100%; }
    .ka-hero .ka-actions, .ka-product-copy .ka-actions { flex-direction: column; align-items: start; gap: .55rem; }
    .ka-hero .ka-price { margin-bottom: .72rem; }
    .ka-showcase { width: min(100%,480px); justify-self: center; }
    .ka-section-head { display: block; }
    .ka-section-head > p { max-width: 50ch; margin-top: .45rem; }
    .ka-book-grid { grid-template-columns: minmax(0,1fr); gap: .9rem; }
    .ka-book { display: grid; grid-template-columns: minmax(85px,30%) minmax(0,1fr); }
    .ka-book-cover { align-items: start; padding: .65rem; }
    .ka-book-cover img { width: 100%; }
    .ka-book-body { padding: .75rem .8rem; }
    .ka-book-body > p:not(.ka-kicker), .ka-book-body li { font-size: .82rem; line-height: 1.42; }
    .ka-book-body ul { margin-bottom: .5rem; }
    .ka-book-bottom { padding-top: .55rem; }
    .ka-book-bottom strong { font-size: 1.25rem; }
    .ka-offer { grid-template-columns: minmax(62px,22%) minmax(0,1fr); gap: .8rem; }
    .ka-offer h2 { font-size: clamp(1.5rem,6.8vw,2.2rem); }
    .ka-product { padding-top: 1rem; }
    .ka-product-copy { grid-row: 1; }
    .ka-product-copy h1 { margin-bottom: .8rem; }
    .ka-product-art { min-height: auto; padding: 1.3rem; }
    .ka-product-art img { width: min(50%,205px); }
    .ka-previews { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
    .ka-previews figure a { padding: .38rem; }
    .ka-steps { grid-template-columns: minmax(0,1fr); gap: .65rem; }
    .ka-final { flex-direction: column; align-items: stretch; }
    body.ka-sticky-visible { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .ka-sticky:not([hidden]) {
        display: flex; gap: .6rem; align-items: center; justify-content: space-between; position: fixed; inset: auto 0 0; z-index: 1000;
        background: #fffefa; padding: .58rem 1rem calc(.58rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--ka-edge);
        box-shadow: 0 -6px 22px #293a2c16;
    }
    .ka-sticky strong { font: 400 1.5rem var(--ka-serif); }
    .ka-sticky .ka-button { flex-basis: 66%; }
    .ka-checkout-product { grid-template-columns: 54px minmax(0,1fr); }
    .ka-checkout-product b { grid-column: 2; }
    .ka-promo { grid-template-columns: 60px minmax(0,1fr); gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) { .ka-button { transition: none; } }

.portal-archive-page .blog-layout:not(:has(.blog-sidebar-column)) { grid-template-columns: minmax(0, 1fr); }
.ka-chat-promo { margin-top: .65rem; padding-top: .55rem; border-top: 1px solid var(--ka-edge); }
.ka-chat-promo a { color: var(--ka-forest); font-weight: 700; text-underline-offset: 2px; }
