.root-home {
    --content: 1200px;
    --gutter: clamp(1.125rem, 4vw, 3rem);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --surface: #fff;
    --paper: #f7f7f0;
    --line: #d8dfd6;
    --accent: #e5bb64;
    --accent-dark: #6f4b12;
    --home-gap: clamp(1.25rem, 2.6vw, 2.25rem);
    --home-pad: clamp(1.125rem, 3vw, 2.125rem);
    --home-edge: max(var(--gutter), calc((100% - var(--content)) / 2));
    --shadow: 0 12px 36px rgb(16 41 37 / 7%);
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--paper);
}

.root-home .section {
    width: min(var(--content), 100% - 2 * var(--gutter));
    padding-block: clamp(3.25rem, 6.5vw, 6rem);
}

.root-home h2 {
    font-size: clamp(2rem, 4vw, 3.375rem);
    letter-spacing: -.05em;
    text-wrap: balance;
}

.root-home .eyebrow { margin-bottom: .875rem; }
.root-home .button, .root-home .header-cta { border-radius: .625rem; font-weight: 740; }
.root-home .header-cta { white-space: nowrap; max-width: none; }
.root-home .button.secondary:hover { background: #e9eee5; border-color: #a4b3a9; }
.root-home .section-heading { margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.root-home .section-heading > p:last-child { color: #435951; }

.root-home .site-header {
    gap: 1.25rem;
    min-height: 75px;
    padding: .625rem var(--home-edge);
    color: #fff;
    background: #102925;
    border-bottom-color: #34534a;
    backdrop-filter: none;
}

.root-home .brand-mark {
    background: #173a31;
    border: 1px solid #587166;
    border-radius: .65rem;
    width: 42px;
    height: 42px;
}

.root-home .brand small { display: block; color: #c6d3cb; }
.root-home .nav { gap: clamp(.25rem, 1vw, .875rem); }

.root-home .nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: clamp(.5rem, 1vw, .875rem);
    color: #f4f6f2;
    font-size: .925rem;
    font-weight: 620;
    white-space: nowrap;
    border-radius: .5rem;
}

.root-home .nav a:hover { background: #21423a; text-decoration: none; }
.root-home .nav a[aria-current="location"] { color: #ffe1a0; background: #28493e; }
.root-home :is(.site-header, .crm-hero-product, .recommendation-panel, .final-cta, .site-footer) :focus-visible { outline-color: #f7ce78; }

.root-home .home-hero {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    column-gap: clamp(1.5rem, 5vw, 4.5rem);
    row-gap: clamp(1.5rem, 3.5vw, 3.25rem);
    min-height: 0;
    padding-block: clamp(2.25rem, 5.4vw, 5rem) clamp(2.5rem, 5vw, 4.25rem);
}

.root-home .crm-hero h1 {
    font-size: clamp(2.55rem, 5vw, 5rem);
    letter-spacing: -.072em;
    line-height: 1.02;
    margin-bottom: 1.25rem;
    text-wrap: balance;
}

.root-home .crm-hero .lede {
    color: #435951;
    font-size: clamp(1.025rem, 1.55vw, 1.18rem);
    line-height: 1.55;
    margin-bottom: .85rem;
}

.root-home .crm-hero .hero-intro { color: #1e352d; }
.root-home .hero-actions { gap: .65rem; margin-top: 1.5rem; }

.root-home .crm-hero-product {
    min-width: 0;
    margin: 0;
    padding: clamp(.625rem, 1.45vw, 1.25rem);
    border-radius: 1.125rem;
    background: #122d27;
    box-shadow: 0 18px 40px rgb(16 41 37 / 14%);
}

.root-home .crm-preview-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    min-height: 44px;
    margin: 0 0 .55rem;
}

.root-home .demo-label {
    margin: 0;
    padding: 0 .35rem;
    color: #ffdc93;
    background: transparent;
    font-size: .75rem;
    letter-spacing: .075em;
}

.root-home .crm-preview-arrows { display: flex; gap: .375rem; }
.root-home .crm-preview-arrows button,
.root-home .crm-hero-modules button {
    color: #f1f5ef;
    background: #1d3b33;
    border: 1px solid #45655a;
    border-radius: .5rem;
    font-family: inherit;
    cursor: pointer;
}

.root-home .crm-preview-arrows button {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 1.45rem;
    line-height: 1;
}

.root-home .crm-preview {
    aspect-ratio: 1.53;
    border-color: #537267;
    border-radius: .65rem;
    background: #eaf0eb;
}

.root-home .crm-preview-slide {
    object-position: center top;
    object-fit: contain;
    transition: none;
}

.root-home .crm-hero-modules { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .375rem; margin-top: .625rem; }
.root-home .crm-hero-modules button { min-height: 44px; padding: .35rem .15rem; font-size: clamp(.715rem, 1.2vw, .9rem); font-weight: 650; }
.root-home :is(.crm-preview-arrows, .crm-hero-modules) button:hover { background: #315448; }
.root-home .crm-hero-modules button[aria-pressed="true"] { color: #ffe2a1; border-color: #c49b52; background: #31493b; }

.root-home .crm-hero-benefits {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: .875rem;
    background: #fdfdf8;
}

.root-home .crm-hero-benefits li {
    display: flex;
    gap: .6rem;
    align-items: center;
    min-height: 58px;
    padding: .7rem clamp(.7rem, 1.6vw, 1.25rem);
    font-size: clamp(.875rem, 1.25vw, 1rem);
    line-height: 1.35;
    font-weight: 630;
    border-bottom: 1px solid var(--line);
}

.root-home .crm-hero-benefits li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.root-home .crm-hero-benefits li:nth-last-child(-n + 3) { border-bottom: 0; }
.root-home .crm-hero-benefits li::before { position: static; flex: 0 0 1.25rem; height: 1.25rem; color: #3d2910; background: #f5e6bd; }

.root-home .work-section { padding-top: clamp(2.75rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.root-home .split-heading { gap: var(--home-gap); }
.root-home .project-grid { gap: var(--home-gap); }
.root-home .project-card { display: flex; flex-direction: column; min-width: 0; border-radius: .95rem; }
.root-home .project-meta { justify-content: start; align-items: center; flex-direction: row; gap: .625rem; padding: .875rem 1rem; }
.root-home .project-meta span:first-child { color: var(--accent-dark); }
.root-home .project-preview { border-radius: .625rem; }
.root-home .project-preview:focus-visible { outline-offset: 3px; }
.root-home .project-preview__bar { height: 30px; background: #f2f5ef; }
.root-home .project-preview__bar b { color: #4f6259; font-size: .75rem; }
.root-home .project-preview__viewport { aspect-ratio: 16 / 9; }
.root-home .project-preview img { transition: none; }
.root-home .project-preview:hover img, .root-home .project-preview:focus-visible img { transform: none; }
.root-home .project-copy { display: flex; flex: 1; flex-direction: column; align-items: start; justify-content: start; padding: var(--home-pad); }
.root-home .project-copy h3 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.root-home .project-copy > p { flex: 1; margin-bottom: .25rem; }
.root-home .project-copy .tag-list { margin-block: .875rem 1.125rem; }
.root-home .project-copy .tag-list li { font-size: .775rem; border-radius: .4rem; background: #f1f4ee; }
.root-home .project-copy .text-link { min-height: 44px; align-items: center; gap: .45rem; text-decoration: underline; text-underline-offset: .22em; }

.root-home .systems-guide { border-top: 1px solid var(--line); }
.root-home .guide-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--home-gap); align-items: start; margin-bottom: var(--home-gap); }
.root-home .guide-intro .section-heading { margin: 0; }
.root-home .guide-transition { padding: var(--home-pad); border: 1px solid var(--line); border-radius: .875rem; background: #eaf0e7; }
.root-home .guide-transition h3 { font-size: clamp(1.15rem, 2.1vw, 1.6rem); margin-bottom: .65rem; }
.root-home .guide-transition p:last-child { color: #435951; margin: 0; }
.root-home .guide-layout { grid-template-columns: minmax(245px, .68fr) minmax(0, 1.32fr); gap: var(--home-gap); }
.root-home .problem-selector { grid-template-columns: minmax(0, 1fr); padding: .5rem; gap: .3rem; background: #eaf0e7; border: 1px solid var(--line); border-radius: .9rem; }
.root-home .problem-option { min-height: 56px; grid-template-columns: 1.45rem 1fr; padding: .65rem .8rem; gap: .45rem; border-color: transparent; border-radius: .55rem; font-size: .95rem; }
.root-home .problem-option:not(.is-selected):hover { background: #fff; border-color: var(--line); }
.root-home .problem-option.is-selected { background: #173830; border-color: #173830; }

.root-home .guidance-panel { border-radius: .95rem; }
.root-home .guidance-panel > header { padding: var(--home-pad); color: #122d27; background: #eaf0e7; }
.root-home .guidance-panel > header h3 { font-size: clamp(1.35rem, 2.8vw, 2.25rem); }
.root-home .guidance-panel > header p:last-child { color: #435951; }
.root-home .guidance-kicker { color: var(--accent-dark); }
.root-home .guidance-modules summary,
.root-home .package-reference > summary { min-height: 52px; padding-block: .85rem; font-weight: 680; }
.root-home .guidance-modules summary:focus-visible,
.root-home .package-reference > summary:focus-visible { outline-offset: -4px; }
.root-home .guidance-modules details[open] > summary { color: #244e3f; }
.root-home .guidance-modules #process:target > summary { background: #f7efda; }

.root-home .package-selector { width: 100%; padding-inline: var(--home-edge); background: #eaf0e7; border-block: 1px solid var(--line); }
.root-home .selector-layout { grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr); gap: var(--home-gap); }
.root-home .selector-form { gap: 1rem; }
.root-home .selector-form fieldset { padding: .75rem 1rem 1rem; border-radius: .75rem; }
.root-home .selector-form legend { padding: 0 .375rem; font-weight: 750; }
.root-home .selector-form legend span {
    display: inline-grid;
    place-items: center;
    min-width: 1.85rem;
    height: 1.85rem;
    margin-right: .35rem;
    color: #5f4b2d;
    background: #f1e6cc;
    border-radius: .35rem;
    font-variant-numeric: tabular-nums;
}

.root-home .selector-form fieldset[data-answered] legend span { color: #ffe3a4; background: #205043; }
.root-home .selector-options { margin-top: .15rem; gap: .4rem; }
.root-home .selector-card { min-height: 44px; gap: .525rem; padding: .5rem .6rem; border-color: #dfe5dc; border-radius: .5rem; font-size: .9rem; font-weight: 600; }
.root-home .selector-card input { margin: 0; accent-color: #254d3d; }
.root-home .selector-card:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.root-home .selector-card.is-selected, .root-home .selector-card:has(input:checked) { color: #16392d; background: #e9f2e8; border-color: #668a77; }
.root-home .selector-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.root-home .selector-help { margin: 0; font-size: .9rem; }
.root-home .selector-results { min-width: 0; }
.root-home .recommendation-panel { min-height: 0; padding: var(--home-pad); background: #13362e; border-radius: .875rem; scroll-margin-top: 0; }
.root-home .recommendation-panel h3 { font-size: clamp(1.35rem, 2.75vw, 2.15rem); }
.root-home .recommendation-panel .is-secondary h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
.root-home .recommendation-empty p:last-child { margin-bottom: 0; }
.root-home .recommendation-cta strong, .root-home .recommendation-cta small { display: block; }
.root-home .recommendation-cta small { margin-top: .25rem; }
.root-home .recommendation-lead-form label { min-width: 0; font-size: .9rem; }
.root-home .recommendation-lead-form :is(input[type="text"], input[type="email"]) {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: .6rem .7rem;
    border: 1px solid #839c8f;
    border-radius: .5rem;
    font: inherit;
}
.root-home .recommendation-lead-form input[type="checkbox"] { accent-color: var(--accent); }
.root-home .package-reference { margin-top: .875rem; border-radius: .75rem; overflow: hidden; }
.root-home .package-reference-grid { grid-template-columns: 1fr; }

.root-home .final-cta { margin: 0; padding: 0; background: #102925; border-radius: 0; box-shadow: none; }
.root-home .closing-layout { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: var(--home-gap); align-items: center; }
.root-home .closing-layout h2 { max-width: 24ch; text-wrap: wrap; }
.root-home .closing-layout p:last-child { max-width: 63ch; margin-bottom: 0; color: #d6e1dc; }

.root-home .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 1.25rem var(--home-edge);
    gap: .7rem 1.5rem;
    border-top: 1px solid #39554b;
}

.root-home .footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.root-home .footer-actions a { display: inline-flex; min-height: 44px; align-items: center; }
.root-home [data-privacy-panel-slot] { grid-column: 1 / -1; }
.root-home [data-privacy-panel-slot]:empty { display: none; }

.root-home [data-privacy-choices-slot] button {
    min-height: 44px;
    padding: .4rem .675rem;
    color: #fff;
    background: #19392f;
    border: 1px solid #6a8479;
    border-radius: .5rem;
    font-weight: 650;
    cursor: pointer;
}

.root-home #nf-privacy-choice {
    width: min(100%, 43rem);
    padding: .9rem 1rem;
    color: #142d25;
    background: #edf3ea;
    border: 1px solid #b3c5bc;
    border-radius: .625rem;
}
.root-home #nf-privacy-choice p { margin: 0 0 .4rem; }
.root-home #nf-privacy-choice button { min-height: 44px; }
.root-home #nf-privacy-choice button:focus-visible { outline-color: #6f4b12; }

@media (min-width: 901px) {
    .root-home .selector-results:has([data-recommendation-empty]:not([hidden])):not(:has(details[open])) { position: sticky; top: 6rem; }
}

@media (max-width: 960px) {
    .root-home .site-header { gap: .75rem; }
    .root-home .nav { gap: .2rem; }
    .root-home .nav a { padding-inline: .45rem; font-size: .86rem; }
    .root-home .header-cta { padding-inline: .7rem; font-size: .86rem; }
    .root-home .selector-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .root-home .closing-layout { grid-template-columns: 1fr; justify-items: start; }
}

@media (max-width: 760px) {
    .root-home .site-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: .5rem .65rem; min-height: 62px; }
    .root-home .brand { min-width: 0; gap: .5rem; }
    .root-home .brand small { line-height: 1.2; font-size: .66rem; }
    .root-home .menu-toggle { grid-column: auto; margin: 0; width: 44px; height: 44px; border-radius: .5rem; box-shadow: none; }
    .root-home .header-cta { min-height: 44px; font-size: .76rem; }
    .root-home .nav { top: calc(100% + 1px); left: var(--gutter); right: var(--gutter); padding: .5rem; background: #15352e; border-color: #466358; border-radius: 0 0 .65rem .65rem; }
    .root-home .nav a { justify-content: start; padding: .5rem .75rem; background: transparent; border: 0; }
    .root-home .home-hero,
    .root-home .guide-intro,
    .root-home .guide-layout,
    .root-home .selector-layout,
    .root-home .site-footer { grid-template-columns: minmax(0, 1fr); }
    .root-home .home-hero { gap: 1.375rem; }
    .root-home .crm-hero h1 { font-size: clamp(2.4rem, 9vw, 4.25rem); }
    .root-home .crm-hero .hero-actions { flex-direction: row; align-items: flex-start; }
    .root-home .hero-actions .button { width: auto; }
    .root-home .crm-hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .root-home .crm-hero-benefits li:nth-child(n) { border-right: 0; border-bottom: 1px solid var(--line); }
    .root-home .crm-hero-benefits li:nth-child(odd) { border-right: 1px solid var(--line); }
    .root-home .crm-hero-benefits li:nth-last-child(-n + 2) { border-bottom: 0; }
    .root-home .guide-layout { gap: 1rem; }
    .root-home .selector-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .root-home .closing-layout > a { width: auto; }
    .root-home .site-footer { flex-direction: initial; }
}

@media (max-width: 430px) {
    .root-home .brand-mark { width: 42px; height: 42px; }
    .root-home .hero-actions .button { padding-inline: .75rem; }
    .root-home .selector-options { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 365px) {
    html:has(.root-home) { scroll-padding-top: 125px; }
    .root-home .site-header { grid-template-columns: minmax(0, 1fr) auto; }
    .root-home .header-cta { grid-column: 1 / -1; }
}

@media (max-width: 345px) {
    .root-home .crm-hero-benefits { grid-template-columns: minmax(0, 1fr); }
    .root-home .crm-hero-benefits li:nth-child(odd) { border-right: 0; }
    .root-home .crm-hero-benefits li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .root-home .crm-hero-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
