.nestor-page {
    --paper: #fff;
    --paper-cool: #f8fafc;
    --paper-warm: #fff7ed;
    --ink: #0f172a;
    --ink-soft: #334155;
    --muted: #475569;
    --navy: #0f172a;
    --navy-light: #1e293b;
    --brand: #c2410c;
    --brand-dark: #9a3412;
    --success: #15803d;
    --line: #cbd5e1;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--paper);
}

.nestor-page p { max-width: 62ch; font-size: 1rem; line-height: 1.6; }
.nestor-page .eyebrow { font-size: .875rem; }
.nestor-page .page-hero .eyebrow { color: #fdba74; }
.nestor-page .page-hero__lead { color: #e2e8f0; }
.nestor-page :is(.section--white, .section--cool) { color: var(--ink); }
.nestor-page :is(.section--white, .section--cool) a:not(.button, .card) { color: var(--brand); }
.nestor-page :is(.section--white, .section--cool) a:not(.button, .card):hover { color: var(--brand-dark); }
.nestor-page .button:not(.button--ghost, .button--light):hover { box-shadow: 0 10px 24px #c2410c33; }
.nestor-page .section-heading p { max-width: 62ch; }
.nestor-page .card p { font-size: 1rem; }
.nestor-page .cta p { max-width: 62ch; }
.nestor-page .cta .button { white-space: normal; }
.nestor-page #jak-funguje .nestor-art { border-color: var(--line); box-shadow: var(--shadow); }
.nestor-page #jak-funguje .check-list { color: var(--ink-soft); }
.nestor-page #jak-funguje .eyebrow { color: var(--brand); }
.nestor-page .page-hero .button--ghost { color: #fff; }


.nestor-page [id] { scroll-margin-top: 6rem; }
.nestor-page .nestor-hero__grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: center; gap: clamp(2rem,5vw,4rem); }
.nestor-page .nestor-art { overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); background: var(--navy-light); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.nestor-page .nestor-art img { width: 100%; height: auto; }
.nestor-page .nestor-motion { --nestor-art-extension: clamp(3rem, 10vw, 10rem); }
.nestor-page .nestor-motion .nestor-art { display: block; width: calc(100% + var(--nestor-art-extension)); margin-inline-start: calc(-1 * var(--nestor-art-extension)); border: 0; border-radius: 0; background: none; box-shadow: none; }
.nestor-page .nestor-motion img { aspect-ratio: 2 / 1; object-fit: cover; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 17%, #000 83%, transparent); mask-composite: intersect; }
.nestor-page .nestor-hero--home { position: relative; isolation: isolate; }
.nestor-page .nestor-hero__sources { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.nestor-page .nestor-hero__copy { position: relative; z-index: 2; }
.nestor-page .nestor-hero--home .nestor-hero__copy { container-type: inline-size; }
.nestor-page .nestor-hero__headline { font-size: min(3.35rem, 7.1cqi); white-space: nowrap; }
.nestor-hero__verbs { display: inline-grid; }
.nestor-hero__leads { display: grid; }
:is(.nestor-hero__verbs, .nestor-hero__leads) > * { grid-area: 1 / 1; }
:is(.nestor-hero__verbs, .nestor-hero__leads) > * + * { opacity: 0; }
.nestor-hero__verbs strong { color: #fdba74; font-weight: inherit; }

@media screen and (prefers-reduced-motion: no-preference) {
    :is(.nestor-hero__verbs, .nestor-hero__leads) > * { animation: nestor-headline-cycle 25s ease infinite; }
    :is(.nestor-hero__verbs, .nestor-hero__leads) > :nth-child(2) { animation-delay: -20s; }
    :is(.nestor-hero__verbs, .nestor-hero__leads) > :nth-child(3) { animation-delay: -15s; }
    :is(.nestor-hero__verbs, .nestor-hero__leads) > :nth-child(4) { animation-delay: -10s; }
    :is(.nestor-hero__verbs, .nestor-hero__leads) > :nth-child(5) { animation-delay: -5s; }
}

@keyframes nestor-headline-cycle {
    0%, 19.2%, 100% { opacity: 1; }
    20%, 99.2% { opacity: 0; }
}

.nestor-page .nestor-source-icon { position: absolute; top: 0; left: 0; width: clamp(2.25rem, 5vw, 4.65rem); aspect-ratio: 1; background-image: url('./nestor-zdroje-ikony.webp'); background-size: 400% 200%; background-repeat: no-repeat; }
.nestor-page .nestor-hero--home { padding-block: clamp(3.5rem,6vw,5rem); }
.nestor-page .nestor-link { font-weight: 700; text-decoration-color: var(--brand); text-underline-offset: .22em; }
.nestor-page .nestor-link:hover { text-decoration-thickness: 2px; }
.nestor-page .nestor-breadcrumb { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; color: #d8dbe4; }
.nestor-page .nestor-breadcrumb a { text-underline-offset: .2em; }
.nestor-page .nestor-hero--detail { padding-top: clamp(2rem,4vw,3.5rem); background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--module-accent) 17%, var(--navy)), var(--navy) 69%); }
.nestor-page .nestor-module-heading { display: flex; align-items: center; gap: clamp(.85rem,2vw,1.35rem); }
.nestor-page .nestor-module-heading .nestor-module-icon { flex: 0 0 auto; width: clamp(3rem,7vw,4.45rem); height: clamp(3rem,7vw,4.45rem); padding: clamp(.6rem,1.3vw,.95rem); border-radius: .95rem; color: var(--module-accent); background: color-mix(in srgb, var(--module-accent) 16%, var(--navy)); border: 1px solid color-mix(in srgb, var(--module-accent) 55%, var(--navy)); }
.nestor-page .nestor-module-heading h1 { text-wrap: initial; }
.nestor-page .nestor-module-promise { margin: 1.35rem 0 0; color: var(--module-accent); font-size: clamp(1.48rem,2.8vw,2.12rem); font-weight: 600; line-height: 1.15; text-wrap: balance; }
.nestor-page .nestor-hero--detail .nestor-evidence { border-top: 3px solid var(--module-accent); }
.nestor-page .nestor-hero--detail .nestor-evidence h2 { color: var(--module-accent); }
.nestor-page [data-module="jadro"] { --module-accent: #85e2dd; }
.nestor-page [data-module="e-maily"] { --module-accent: #9ad3ff; }
.nestor-page [data-module="dokumenty"] { --module-accent: #cbd5e1; }
.nestor-page [data-module="manazer"] { --module-accent: #ffb09b; }
.nestor-page [data-module="crm"] { --module-accent: #f8b4d4; }
.nestor-page [data-module="verejne-zakazky"] { --module-accent: #fbd584; }
.nestor-page [data-module="nabor"] { --module-accent: #b9d9a8; }
.nestor-page [data-module="personalistika"] { --module-accent: #a0ded0; }
.nestor-page [data-module="workbase"] { --module-accent: #ffc6a0; }
.nestor-page [data-module="timetracker"] { --module-accent: #b6c4ff; }
.nestor-page [data-module="vyroba"] { --module-accent: #b9e68b; }
.nestor-page [data-module="fakturace"] { --module-accent: #ffd087; }
.nestor-page [data-module="financni-rizeni"] { --module-accent: #ade5ac; }
.nestor-page [data-module="pravni-expert"] { --module-accent: #a5bef7; }
.nestor-page .nestor-evidence h2 { margin: 0 0 .75rem; color: #fff; font-size: 1.22rem; line-height: 1.25; }
.nestor-page .nestor-evidence dl { margin: 0; }
.nestor-page .nestor-evidence dl div { padding: .75rem 0; border-top: 1px solid rgba(255,255,255,.16); }
.nestor-page .nestor-evidence dl div:last-child { padding-bottom: 0; }
.nestor-page .nestor-evidence dt { color: #c6cad5; font-weight: 600; }
.nestor-page .nestor-evidence dd { margin: .15rem 0 0; color: #fff; font-size: 1.12rem; }

.nestor-page .nestor-examples { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.nestor-page .nestor-examples__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: 1rem clamp(1.1rem,3vw,2rem); border-bottom: 1px solid var(--line); }
.nestor-page .nestor-examples__header .tabs__list { flex-wrap: wrap; padding: 0; border: 0; overflow: visible; }
.nestor-page .nestor-examples__header .tabs__button::after { display: none; }
.nestor-page .nestor-examples__header p { margin: 0; }
.nestor-page .nestor-examples__header p { color: var(--muted); font-size: .92rem; }
.nestor-page .nestor-example {
    margin-top: 0;
    padding: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 4vw, 3rem);
}
.nestor-page .nestor-example:not([hidden]) {
    display: grid;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
}
.nestor-page .nestor-example--reverse:not([hidden]) { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); }
.nestor-example--reverse .nestor-demo-copy { grid-area: 1 / 2; }
.nestor-example--reverse .nestor-demo-preview { grid-area: 1 / 1; }
.nestor-example h3 { margin: 0 0 .65rem; font-size: clamp(1.55rem, 2.8vw, 2.2rem); line-height: 1.13; }
.nestor-example h4, .nestor-example p, .nestor-example dl, .nestor-example dd { margin: 0; }
.nestor-example p { color: var(--ink-soft); }
.nestor-demo-preview { min-width: 0; }
.nestor-demo-preview .nestor-demo-context { margin-bottom: .35rem; font-size: .84rem; color: var(--muted); }
.nestor-example .nestor-demo-note { margin-top: .8rem; font-size: .9rem; color: var(--muted); }
.nestor-demo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .45rem .8rem;
    border: 1px solid #a8b9d4;
    border-radius: .5rem;
    background: #fff;
    font: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.nestor-page #ukazky .nestor-demo-action { color: #21375d; }
.nestor-page #ukazky .nestor-demo-action--primary { background: #203a65; border-color: #203a65; color: #fff; }
.nestor-demo-action:not(:disabled):hover { outline: 2px solid #9ab1d2; outline-offset: -2px; }
.nestor-demo-action:disabled { opacity: .5; cursor: default; }
.nestor-demo-action[hidden] { display: none; }
.nestor-demo-action svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.nestor-demo-badge { display: inline-block; width: fit-content; padding: .15rem .55rem; border-radius: .45rem; background: #e9eff8; color: #233e67; font-size: .85rem; }
.nestor-demo-badge--success { background: #dcfce7; color: #14532d; }
.nestor-demo-badge--warning { background: #fff0dc; color: #873711; }
.nestor-demo-status { color: #285344; font-size: .9rem; }

.nestor-demo-offer, .nestor-demo-pdf { background: #eef3fa; }
.nestor-demo-app {
    padding: 0 .65rem .65rem;
    border: 1px solid #d5dfef;
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 .45rem 1.4rem #263e6310;
}
.nestor-demo-app__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .2rem .6rem;
    margin: 0 -.65rem .6rem;
    padding: .55rem .75rem;
    border-bottom: 1px solid #d5dfef;
    border-radius: .7rem .7rem 0 0;
    background: #f6f8fb;
}
.nestor-demo-app__bar span { color: #536987; font-size: .82rem; }
.nestor-demo-app .nestor-demo-app__prompt { margin: 0 0 .55rem auto; padding: .45rem .65rem; border-radius: .55rem; background: #ecf3ff; color: #183255; }
.nestor-demo-app__answer { padding: .65rem .75rem; border-radius: .55rem; background: #f5f7fa; }
.nestor-demo-app__answer h4 { margin: 0 0 .25rem; font-size: 1.13rem; line-height: 1.25; }
.nestor-demo-app__answer h5 { margin: .48rem 0 .05rem; font-size: .96rem; }
.nestor-demo-app__answer p, .nestor-demo-app .nestor-demo-app__prompt { font-size: .92rem; line-height: 1.45; }
.nestor-demo-app__answer .nestor-demo-app__sources { margin-top: .55rem; font-size: .85rem; font-style: italic; }
.nestor-demo-app__answer .nestor-demo-action { min-height: 36px; margin-top: .55rem; font-size: .9rem; }
.nestor-demo-format { color: #42649b; font-size: .78rem; font-weight: 700; letter-spacing: .08em; }
.nestor-demo-pdf__slide h4 { margin: .35rem 0; font-size: clamp(1.12rem, 2vw, 1.45rem); }
.nestor-demo-task__card dl { display: flex; flex-wrap: wrap; gap: .55rem 1.5rem; margin-top: .85rem; }
.nestor-demo-task__card dt, .nestor-demo-metrics dt { font-size: .85rem; color: var(--muted); }
.nestor-demo-task__card dd, .nestor-demo-metrics dd { font-weight: 700; }

.nestor-demo-mail, .nestor-demo-editor { overflow: hidden; max-width: 56rem; border: 1px solid #cdd9e9; border-radius: .7rem; background: #fff; }
.nestor-demo-mail__top, .nestor-demo-editor__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .7rem; padding: .55rem .85rem; background: #243651; color: #fff; }
.nestor-demo-mail__top span, .nestor-demo-editor__top span { font-size: .85rem; color: #e2e8f0; }
.nestor-demo-mail .nestor-demo-mail__headers { padding: .45rem .85rem; background: #f3f6fa; border-bottom: 1px solid #dbe3ee; }
.nestor-demo-mail__headers div { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); }
.nestor-demo-mail__headers dt { color: var(--muted); }
.nestor-demo-mail__headers dd { overflow-wrap: anywhere; }
.nestor-demo-mail__body { padding: .75rem .85rem; }
.nestor-demo-mail__body p + p { margin-top: .45rem; }
.nestor-demo-mail__bottom, .nestor-demo-editor__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .85rem; padding: 0 .85rem .7rem; }
.nestor-demo-mail__bottom:has(button[hidden]) { display: none; }

.nestor-demo-task { background: #f2f7f3; }
.nestor-demo-task__card { padding: .9rem clamp(.75rem, 2vw, 1.25rem); border: 1px solid #ccded4; border-radius: .65rem; background: #fff; }
.nestor-demo-task__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .45rem; }
.nestor-demo-task__head h4 { font-size: 1.16rem; }
.nestor-demo-task__head + p { margin-top: .45rem; }
.nestor-demo-task__card .nestor-demo-action { margin-top: .85rem; }
.nestor-demo-avatar { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; margin-right: .25rem; border-radius: 50%; background: #dceee3; color: #244b36; font-size: .8rem; }

.nestor-demo-edit { background: #faf8f5; }
.nestor-demo-editor__diff { padding: .65rem .85rem; }
.nestor-demo-editor__diff p { display: grid; gap: .12rem; max-width: none; margin: 0 0 .5rem; }
.nestor-demo-editor__diff p > span { color: var(--muted); font-size: .82rem; }
.nestor-demo-editor__diff :is(del, ins) { padding: .25rem .45rem; border-radius: .25rem; }
.nestor-demo-editor__diff del { background: #f9e9e8; color: #802e27; }
.nestor-demo-editor__diff ins, .nestor-demo-editor__applied { background: #e4f3e8; color: #1d5836; text-decoration: none; }
.nestor-demo-editor .nestor-demo-editor__applied { max-width: none; margin: .65rem .85rem; padding: .5rem; }

.nestor-demo-hours { background: #f0f5fb; }
.nestor-demo-table-scroll { overflow-x: auto; margin: .55rem 0; border: 1px solid #d5dfef; border-radius: .35rem; background: #fff; }
.nestor-demo-invoices.nestor-demo-hours-table { min-width: 24rem; font-size: .86rem; white-space: nowrap; }
.nestor-demo-hours-table tfoot { background: #edf2f7; font-weight: 700; }

.nestor-demo-report { padding: .75rem; border: 1px solid #d5dfef; border-radius: .65rem; background: #fff; }
.nestor-demo-report h4 { font-size: 1.14rem; }
.nestor-demo-billing .nestor-demo-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: .65rem 0 .7rem; max-width: 54rem; }
.nestor-demo-metrics > div { padding: .55rem .7rem; border-radius: .55rem; background: #f1f5f9; }
.nestor-demo-invoices { width: 100%; max-width: 54rem; border-collapse: collapse; font-size: .95rem; }
.nestor-demo-invoices th, .nestor-demo-invoices td { padding: .45rem .55rem; border-bottom: 1px solid #dde5ee; text-align: left; }
.nestor-demo-invoices thead { background: #edf2f7; }
.nestor-demo-invoices td:nth-child(2), .nestor-demo-invoices thead th:nth-child(2) { text-align: right; }

.nestor-demo-pdf__slide { padding: clamp(.85rem, 2.5vw, 1.6rem); border-radius: .65rem; background: #243651; color: #fff; }
.nestor-demo-pdf__slide .nestor-demo-format, .nestor-demo-pdf__slide p { color: #d7e4f3; }
.nestor-demo-pdf__numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin-top: .65rem; }
.nestor-demo-pdf__numbers > div { display: grid; padding: .3rem .45rem; border-radius: .4rem; background: #354b6c; }
.nestor-demo-pdf__numbers strong { font-size: 1.4rem; line-height: 1.12; }
.nestor-demo-pdf__numbers span { font-size: .83rem; }

@media (max-width: 760px) {
    .nestor-page .nestor-example:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
    .nestor-example--reverse :is(.nestor-demo-copy, .nestor-demo-preview) { grid-area: auto; }
}
@media (max-width: 430px) {
    .nestor-demo-metrics > div { padding-inline: .4rem; }
    .nestor-demo-invoices th, .nestor-demo-invoices td { padding-inline: .3rem; }
}

.nestor-page .nestor-module-group + .nestor-module-group { margin-top: clamp(2rem, 4vw, 3.4rem); }
.nestor-page .nestor-module-group h3 { margin: 0 0 1rem; font-size: clamp(1.3rem, 2vw, 1.65rem); }
.nestor-page .nestor-module-card { display: block; padding: clamp(1.25rem, 2.2vw, 1.8rem); text-decoration: none; }
.nestor-page .nestor-module-card:hover, .nestor-page .nestor-module-card:focus-visible { border-color: var(--brand-dark); background: var(--paper-warm); }
.nestor-page .nestor-module-card:hover h4, .nestor-page .nestor-module-card:focus-visible h4 { text-decoration: underline; text-decoration-color: var(--brand-dark); text-underline-offset: .2em; }
.nestor-page .nestor-module-card h4 { margin: .85rem 0 .4rem; color: var(--ink); font-size: 1.35rem; line-height: 1.23; }
.nestor-page .nestor-module-card p { color: var(--ink-soft); }
.nestor-page #obory .nestor-module-icon + h3 { margin-top: .8rem; }
.nestor-page #obory [data-industry] { isolation: isolate; }
.nestor-page #obory [data-industry]::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: var(--industry-photo) right center / cover no-repeat;
    opacity: .17;
    mask-image: linear-gradient(to right, transparent 0%, transparent 12%, rgba(0,0,0,.22) 48%, #000 100%);
}
.nestor-page #obory [data-industry="advokacie"] { --industry-photo: url("./obory/foto/advokacie.webp"); }
.nestor-page #obory [data-industry="vyroba"] { --industry-photo: url("./obory/foto/vyroba.webp"); }
.nestor-page #obory [data-industry="projekty-a-servis"] { --industry-photo: url("./obory/foto/projekty-a-servis.webp"); }
.nestor-page #obory [data-industry="ucetnictvi-a-finance"] { --industry-photo: url("./obory/foto/ucetnictvi-a-finance.webp"); }
.nestor-page #obory [data-industry="nabor-a-hr"] { --industry-photo: url("./obory/foto/nabor-a-hr.webp"); }
.nestor-page #obory [data-industry="obchod-a-distribuce"] { --industry-photo: url("./obory/foto/obchod-a-distribuce.webp"); }
.nestor-page .nestor-module-icon { display: block; width: 2.65rem; height: 2.65rem; padding: .5rem; border-radius: .65rem; background: var(--paper-warm); color: var(--brand-dark); fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nestor-page .nestor-story { margin-bottom: 0; }
.nestor-page .nestor-story .nestor-audience { margin-top: 1.25rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.nestor-page .nestor-story .nestor-audience strong { color: var(--ink); }
.nestor-page .cta p { color: #fff; font-weight: 600; }
.nestor-page .cta h2 { color: #fff; }

@media (max-width: 980px) {
    .nestor-page .nestor-hero__grid { grid-template-columns: 1fr; }
    .nestor-page .nestor-art { max-width: 38rem; }
    .nestor-page .nestor-motion { --nestor-art-extension: 0px; width: min(100%, 44rem); }
    .nestor-page .nestor-motion .nestor-art { max-width: none; }
}

@media (max-width: 660px) {
    .nestor-page .nestor-hero { padding-block: 3rem; }
}

.nestor-page .legal-library__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding: clamp(1.5rem, 5vw, 3.75rem);
    border-radius: 1.35rem;
    background: #0f172a;
    color: #fff;
}
.nestor-page .legal-library__hero h2 { max-width: 22ch; margin: 0; color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.05; }
.nestor-page .legal-library__hero p { margin: .9rem 0 1.2rem; color: #e2e8f0; }
.nestor-page .legal-library__hero .eyebrow { margin: 0 0 .75rem; color: #fdba74; }
.nestor-page .legal-library__hero .button { width: fit-content; }
.nestor-page .legal-library__total { display: grid; gap: .3rem; margin: 0; padding-inline-start: 1.25rem; border-inline-start: 3px solid #fb923c; color: #e2e8f0; }
.nestor-page .legal-library__total strong { color: #fff; font-size: clamp(2.6rem, 6vw, 5.3rem); line-height: .95; letter-spacing: -.045em; }
.nestor-page .legal-library__total span { max-width: 30ch; font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.nestor-page .legal-library__block { margin-block-start: clamp(1.8rem, 4vw, 3rem); }
.nestor-page .legal-library__block h3 { margin: 0 0 .4rem; font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.12; }
.nestor-page .legal-library__block p { margin: 0 0 1rem; color: var(--ink-soft); }
.nestor-page .legal-library__areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.nestor-page .legal-library__areas > div { display: grid; gap: .12rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--paper); }
.nestor-page .legal-library__areas dt { color: var(--ink-soft); font-weight: 600; }
.nestor-page .legal-library__areas dd { grid-row: 1; margin: 0; color: #1e3a8a; font-size: 1.7rem; font-weight: 600; line-height: 1.12; }
.nestor-page .legal-library__note { margin-top: .6rem; color: var(--muted); }
.nestor-page .legal-library__panels { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.nestor-page .legal-library__panels > article { padding: clamp(1rem, 2.5vw, 1.65rem); border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); min-width: 0; }
.nestor-page .legal-library__panels details { border-top: 1px solid var(--line); }
.nestor-page .legal-library__panels summary { padding: .72rem .1rem; color: var(--ink); font-weight: 600; cursor: pointer; }
.nestor-page .legal-library__panels summary:hover { color: var(--brand-dark); }
.nestor-page .legal-library__list { display: grid; gap: .35rem; margin: 0 0 .9rem; padding-left: 1.25rem; color: var(--ink-soft); }
.nestor-page .legal-library__list li { overflow-wrap: anywhere; }
.nestor-page .legal-library__list a { font-weight: 600; text-underline-offset: .17em; }

@media (max-width: 760px) {
    .nestor-page .legal-library__hero, .nestor-page .legal-library__panels { grid-template-columns: minmax(0, 1fr); }
}

.nestor-page .legal-library__block .legal-library__subtitle {
    margin: 0 0 .45rem;
    color: #1e3a8a;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    line-height: 1.35;
}
.nestor-page .legal-library__areas dd, .nestor-page .legal-library__total strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 850px) {
    .nestor-page .legal-library__areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 340px) {
    .nestor-page .legal-library__areas { grid-template-columns: minmax(0, 1fr); }
}

.nestor-page .nestor-hero__decision { margin: .75rem 0 0; color: #fff; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; }
.nestor-page .nestor-flow {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #64748b;
    border-radius: 1.1rem;
    background: #17233b;
    list-style: none;
}
.nestor-page .nestor-flow li { position: relative; display: grid; gap: .2rem; padding: .75rem 1rem; border: 1px solid #526581; border-radius: .55rem; background: #0f172a; }
.nestor-page .nestor-flow li + li::before { position: absolute; top: -1.05rem; left: 1.1rem; color: #fdba74; content: '↓'; line-height: 1; }
.nestor-page .nestor-flow li strong { color: #fff; font-size: 1.08rem; }
.nestor-page .nestor-flow li span { color: #e2e8f0; }
.nestor-page .nestor-flow li:last-child { border-color: #fb923c; }
.nestor-page .nestor-faq > details { padding: .8rem 0; border-top: 1px solid var(--line); }
.nestor-page .nestor-faq > details:last-child { border-bottom: 1px solid var(--line); }
.nestor-page .nestor-faq summary { font-size: 1.15rem; font-weight: 600; cursor: pointer; }
.nestor-page .nestor-faq summary:hover { color: var(--brand-dark); }
.nestor-page .nestor-faq details > p { margin: .45rem 0 .15rem 1.1rem; color: var(--ink-soft); }
.nestor-page .nestor-faq .nestor-module-group { margin: 0; }
.nestor-page .nestor-module-group summary span { display: block; margin: 0 0 0 1.1rem; color: var(--ink-soft); font-size: 1rem; font-weight: 400; }
.nestor-page .nestor-module-group .card-grid { margin: .85rem 0 .3rem; }
.nestor-page .nestor-deployment li { margin: .75rem 0; padding-inline-start: .4rem; }
.nestor-page .nestor-deployment p { margin: .3rem 0; color: var(--ink-soft); }
.nestor-page .nestor-quick-demo { padding-block: 1.15rem; }
.nestor-page .nestor-quick-demo h2 { margin: 0 0 .4rem; font-size: 1.35rem; }
.nestor-page .nestor-quick-demo details > details { margin: .45rem 0 .15rem 1.1rem; }
.nestor-page .nestor-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.nestor-page .nestor-compare > div { padding: .7rem; border: 1px solid var(--line); border-radius: .55rem; background: #f8fafc; }
.nestor-page .nestor-compare p { margin: .3rem 0 0; }
.nestor-page .nestor-cash-chart { display: grid; gap: .5rem; padding: 1rem; }
.nestor-page .nestor-cash-chart > div { display: grid; gap: .25rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.nestor-page .nestor-cash-chart span { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: .35rem; align-items: center; }
.nestor-page .nestor-cash-chart b { box-sizing: border-box; width: fit-content; min-width: min(100%, var(--bar)); padding: .3rem .45rem; border-radius: .3rem; }
.nestor-page .nestor-cash-chart .cash-positive { background: #dcfce7; color: #14532d; }
.nestor-page .nestor-cash-chart .cash-negative { background: #ffe4e6; color: #881337; }
.nestor-page .nestor-cash-chart .cash-neutral { background: #f1f5f9; color: #334155; }

.nestor-chat-showcase { background: #f1f4fa; }
.nestor-chat-window {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: #fff;
    box-shadow: 0 .65rem 1.8rem #17233b0b;
}
.nestor-chat-controls {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: .5rem;
    padding: 0 .65rem .65rem;
}
.nestor-chat-controls[hidden] { display: none; }
.nestor-chat-picker { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; min-width: 0; }
.nestor-chat-controls button {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: .45rem;
    background: #f4f5f7;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}
.nestor-chat-controls button:hover { border-color: var(--brand); }
.nestor-chat-toggle { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; }
.nestor-chat-picker button { width: 1.85rem; height: 1.85rem; font-size: .87rem; font-weight: 600; }
.nestor-chat-picker button[aria-current="true"] { border-color: #97a3b3; background: #e1e5ea; color: var(--ink); }
.nestor-chat-deck { min-width: 0; }
.nestor-chat-thread {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(.7rem, 1.4vw, 1.25rem);
    min-width: 0;
    padding: clamp(.85rem, 2.5vw, 2rem);
}
.nestor-chat-thread h3 { margin: 0; font-size: 1.18rem; }
.nestor-chat-card__prompt, .nestor-chat-card__reply {
    width: fit-content;
    max-width: min(86%, 80rem);
    padding: .68rem .95rem;
    border: 1px solid;
    overflow-wrap: anywhere;
}
.nestor-chat-card__prompt { align-self: flex-end; border-color: #f5d6da; border-radius: .8rem .8rem .2rem .8rem; background: #fff4f4; }
.nestor-chat-card__reply { border-color: #d8e0ee; border-radius: .8rem .8rem .8rem .2rem; background: #f5f7fa; }
.nestor-chat-thread :is(.nestor-chat-card__prompt, .nestor-chat-card__reply) p { max-width: 88ch; margin: 0; }
.nestor-chat-thread .nestor-chat-card__speaker { margin-bottom: .22rem; color: #9b303a; font-size: .81rem; font-weight: 700; }
.nestor-chat-card__reply .nestor-chat-card__speaker { color: #243651; }
.nestor-chat-card__prompt [data-chat-question] { display: grid; color: var(--ink); }
.nestor-chat-card__prompt [data-chat-question] > span { grid-area: 1 / 1; }
.nestor-chat-card__prompt [data-chat-typing] { display: none; }
.nestor-chat-thread .nestor-chat-card__sources { margin-top: .45rem; color: var(--ink-soft); font-size: .88rem; font-style: italic; }
.nestor-chat-card__sources a { color: #253f6b; text-decoration: underline; text-underline-offset: .16em; }
.nestor-chat-attachments { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .55rem; }
.nestor-chat-attachments a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .55rem;
    border: 1px solid #d2dcef;
    border-radius: .35rem;
    background: #fff;
    color: #243651;
    font-size: .875rem;
    text-decoration: none;
}
.nestor-chat-attachments a:hover { border-color: #758eb5; background: #eef3fa; }

@media screen {
    [data-chat-ready] .nestor-chat-deck { display: grid; overflow: hidden; }
    [data-chat-ready] .nestor-chat-thread { grid-area: 1 / 1; }
    [data-chat-ready] .nestor-chat-thread[inert] { visibility: hidden; }
}

@media screen and (prefers-reduced-motion: no-preference) {
    .nestor-chat-thread [data-chat-message="pending"] { opacity: 0; }
    .nestor-chat-thread [data-chat-message="pending"] a { visibility: hidden; }
    .nestor-chat-thread [data-chat-message="typing"] [data-chat-question] > span:first-child { opacity: 0; }
    .nestor-chat-thread [data-chat-message="typing"] [data-chat-typing] { display: block; }
    .nestor-chat-thread [data-chat-message="typing"] [data-chat-typing]::after { display: inline-block; height: 1em; margin-inline-start: 2px; border-inline-end: 2px solid var(--brand-dark); vertical-align: -.1em; content: ""; }
    .nestor-chat-card__reply[data-chat-message="shown"] { animation: nestor-chat-appear .32s both; }
}

@keyframes nestor-chat-appear {
    from { opacity: 0; transform: translateY(.3rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 550px) {
    .nestor-page .nestor-compare, .nestor-page .nestor-cash-chart span { grid-template-columns: minmax(0, 1fr); }
    .nestor-chat-card__prompt, .nestor-chat-card__reply { max-width: 94%; }
}

@media print {
    .nestor-chat-controls { display: none; }
    body[data-page="nestor"] :is(.site-header, .story-nav, .hero__actions, .tabs__list) { display: none; }
    .nestor-page [id] { scroll-margin: 0; }
    .nestor-page :is(.section, .story-panel, .story-collection, .page-hero) { padding-block: 12pt; break-inside: auto; }
    .nestor-page :is(.story-panel__layout, .story-panel--reverse .story-panel__layout, .story-collection__grid, .nestor-hero__grid, .nestor-example:not([hidden])) { display: block; }
    .nestor-page .story-window { margin-block: 8pt; width: 100%; box-shadow: none; }
    .nestor-page .app-preview__scroll { overflow: visible; }
    .nestor-page .app-preview__table { min-width: 0; }
    .nestor-page .app-preview__table th { white-space: normal; }
    .nestor-page .app-preview__table tr, .nestor-page .story-outcome { break-inside: avoid; }
    .nestor-page :is(h1, h2, h3, figcaption) { break-after: avoid; }
    .nestor-page .nestor-example[hidden] { display: block !important; }
    .nestor-page .nestor-faq details::details-content, .nestor-page .legal-library__panels details::details-content { content-visibility: visible; height: auto; }
}
