/* NeuroNet.dev homepage and pricing page styles.
   Loaded by index.html and pricing.html. Neither page loads css/style.css;
   this file carries the cookie-consent components for both pages. */

@font-face {
    font-family: 'Instrument Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/instrument-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Instrument Sans';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/instrument-sans-latin-italic.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f7f7f5;
    --surface: #fcfcfb;
    --tint: #eceeea;
    --ink: #16181c;
    --ink-2: #44474e;
    --ink-3: #686c75;
    --line: #d8d9d4;
    --line-strong: #b9bbb5;
    --accent: #0f6b5c;
    --accent-strong: #0b5347;
    --accent-soft: #d6e7e1;
    --accent-tint: #eef4f1;
    --button: #0f6b5c;
    --button-hover: #0b5347;
    --radius: 6px;
    --gutter: clamp(16px, 4vw, 32px);
    --measure: 62ch;
    --font: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    margin: 0;
    padding: 0;
    background: var(--bg);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

::selection {
    background: var(--accent-soft);
    color: var(--ink);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-3);
}

[hidden] {
    display: none !important;
}

a {
    color: var(--accent);
    text-decoration-color: var(--accent-soft);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

a:hover {
    color: var(--accent-strong);
    text-decoration-color: currentColor;
}

.accent {
    color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

h1, h2, h3, h4, p {
    margin: 0;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.25rem, 1.25rem + 3.2vw, 3.625rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
    max-width: 20ch;
}

h2 {
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.375rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

p {
    max-width: var(--measure);
}

.lede {
    font-size: 1.1875rem;
    color: var(--ink-2);
    max-width: 52ch;
}

.muted {
    color: var(--ink-3);
}

.container {
    width: min(1120px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: var(--gutter);
    z-index: 200;
    padding: 0.5rem 0.875rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
}

.skip-link:focus {
    top: 12px;
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0 1.375rem;
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    color: #fff;
    background: var(--button);
    border: 1px solid var(--button);
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.button:hover {
    color: #fff;
    background: var(--button-hover);
    border-color: var(--button-hover);
}

.button:active {
    transform: translateY(1px);
}

.button-small {
    min-height: 40px;
    padding: 0 1rem;
    font-size: 0.9375rem;
}

.text-link {
    font-weight: 500;
    color: var(--accent);
    text-decoration-color: var(--accent-soft);
}

.text-link:hover {
    color: var(--accent-strong);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 247, 245, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

@supports not (backdrop-filter: blur(8px)) {
    .site-header {
        background: var(--bg);
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand span {
    color: var(--accent);
    font-weight: 500;
}

.site-nav {
    display: none;
    align-items: center;
    gap: 1.75rem;
}

.site-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav a:hover {
    color: var(--accent-strong);
    border-bottom-color: var(--accent);
}

.site-nav .button,
.site-nav .button:hover {
    margin-left: 0.5rem;
    color: #fff;
    border-bottom: 1px solid var(--button);
}

.site-nav .button:hover {
    border-bottom-color: var(--button-hover);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: var(--radius);
    color: var(--ink);
    cursor: pointer;
}

.menu-toggle svg {
    display: block;
}

.menu-toggle .icon-close {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
}

.mobile-menu {
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1.25rem;
}

.mobile-menu li a:not(.button) {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.0625rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    background: none;
    border-bottom: 1px solid var(--line);
}

.mobile-menu li:last-child {
    padding-top: 1rem;
}

.mobile-menu .button {
    width: 100%;
}

@media (min-width: 1024px) {
    .site-nav {
        display: flex;
    }

    .menu-toggle,
    .mobile-menu {
        display: none !important;
    }
}

/* Sections */
.section {
    padding-block: clamp(4rem, 6vw + 1rem, 7rem);
}

.section + .section {
    border-top: 1px solid var(--line);
}

.section-heading {
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading h2::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-bottom: 1.25rem;
    background: var(--accent);
}

.section-heading p {
    margin-top: 1rem;
}

/* Hero */
.hero {
    padding-block: clamp(3.5rem, 8vw, 7.5rem) clamp(3rem, 5vw, 5rem);
}

.hero .lede {
    margin-top: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 2.25rem;
}

.hero-actions .text-link {
    font-size: 1rem;
}

/* Sub-page hero (pricing) */
.hero-page {
    padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.5rem, 4vw, 4rem);
}

.hero-page h1 {
    max-width: none;
}

.hero-page + .section {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.site-nav a[aria-current="page"] {
    color: var(--accent-strong);
    border-bottom-color: var(--accent);
}

.mobile-menu li a[aria-current="page"] {
    color: var(--accent-strong);
}

.offer-price {
    margin-bottom: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
}

.rung-text .offer-list {
    margin-top: 1rem;
}

/* Offer pages: the price line under the hero, and the card links to them */
.hero-price {
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}

.offer-more {
    margin-top: 1.25rem;
    font-size: 0.9375rem;
}

/* Price table (retainers) */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}

.price-table th,
.price-table td {
    padding: 1.125rem 1.5rem 1.125rem 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.price-table thead th {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}

.price-table tbody th {
    font-weight: 600;
    white-space: nowrap;
}

.price-table .price-cell {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent-strong);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.price-table td:last-child {
    color: var(--ink-2);
    min-width: 18rem;
}

/* Offers */
.offers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 3rem;
    border-top: 1px solid var(--line);
}

.offer {
    padding: 2.25rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
}

.offer h3 {
    margin-bottom: 0.875rem;
}

.offers > .offer:not(.offer-lead) h3 {
    color: var(--accent-strong);
}

.offer p + p {
    margin-top: 0.875rem;
}

.offer-lead {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 4rem;
    margin: 2rem 0 0;
    padding: 2rem var(--gutter) 2.25rem;
    background: var(--accent-tint);
    border: 0;
    border-radius: var(--radius);
}

.offer-lead + .offer {
    border-top: 0;
}

.offer-lead h3 {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.offer-lead .offer-text p {
    color: var(--ink-2);
}

.ladder {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rung;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem 1.25rem;
}

.ladder li {
    counter-increment: rung;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* The staircase: each step's tread is one rung taller than the last. */
.ladder li::before {
    content: "";
    display: block;
    width: 100%;
    height: calc(1rem + var(--rung) * 1.25rem);
    margin-bottom: 0.875rem;
    background: var(--accent-soft);
    border-top: 3px solid var(--accent);
    border-radius: 2px 2px 0 0;
}

.ladder li:nth-child(1) { --rung: 0; }
.ladder li:nth-child(2) { --rung: 1; }
.ladder li:nth-child(3) { --rung: 2; }
.ladder li:nth-child(4) { --rung: 3; }

.ladder h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
}

.ladder h4::before {
    content: counter(rung);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.ladder p {
    margin-top: 0.375rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ink-2);
}

@media (max-width: 767px) {
    .ladder li::before {
        width: calc(25% + var(--rung) * 25%);
    }
}

@media (min-width: 768px) {
    .ladder {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: end;
    }
}

.offer-list {
    margin: 1.125rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.offer-list li {
    position: relative;
    padding-left: 1.125rem;
}

.offer-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 0.4375rem;
    height: 1px;
    background: var(--accent);
}

@media (min-width: 768px) {
    .offers {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .offer-lead {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem 2.5rem 2.75rem;
    }

    .offer-lead .offer-text {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
        gap: 0 3rem;
        align-items: start;
    }

    .offer-lead .offer-text h3 {
        grid-row: 1 / span 2;
    }

    .offer-lead .offer-text p {
        max-width: 60ch;
    }

    .offer-lead .offer-text p + p {
        margin-top: 0.875rem;
    }

    .offer-lead .offer-text .offer-more {
        grid-column: 2;
    }
}

/* Work list */
.work-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 3rem;
    border-top: 1px solid var(--line);
}

.work-list li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}

.work-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

.work-list p {
    color: var(--ink-2);
    font-size: 0.9375rem;
    max-width: none;
}

.work-status {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-3);
}

.work-status.is-live {
    color: var(--accent);
}

.work-more {
    margin-top: 1.75rem;
}

@media (min-width: 768px) {
    .work-list {
        grid-template-columns: 1fr 1fr;
    }

    .work-list li {
        grid-template-columns: 1fr auto;
        grid-template-areas: "name status" "desc desc";
        align-items: baseline;
    }

    .work-name { grid-area: name; }
    .work-status { grid-area: status; }
    .work-list p { grid-area: desc; }
}

/* Where to start */
.start {
    background: var(--accent-tint);
}

.rungs {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--accent-soft);
}

.rungs > li {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 3rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--accent-soft);
}

.rung-price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent-strong);
    font-variant-numeric: tabular-nums;
}

.rung-price span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--accent);
}

.rung-text h3 {
    margin-bottom: 0.5rem;
}

.rung-text p {
    color: var(--ink-2);
}

@media (min-width: 768px) {
    .rungs > li {
        grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
        padding: 2.25rem 0;
    }
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 4rem;
}

.about-grid h2 {
    margin-bottom: 1.5rem;
}

.about-grid p + p {
    margin-top: 1rem;
}

.facts {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.facts div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.facts dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    padding-top: 0.125rem;
}

.facts dd {
    margin: 0;
    color: var(--ink);
}

.facts address {
    font-style: normal;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
    }

    .facts {
        margin-top: 0.75rem;
    }
}

/* FAQ */
.faq {
    border-top: 1px solid var(--line);
    max-width: 52rem;
}

.faq details {
    border-bottom: 1px solid var(--line);
}

.faq summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    list-style: none;
    color: var(--ink);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary:hover {
    color: var(--accent-strong);
}

.faq-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 0.3rem;
    color: var(--accent);
    transition: transform 0.2s ease;
    filter: none;
}

.faq details[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 0 1.5rem;
    color: var(--ink-2);
}

.faq-answer p + p {
    margin-top: 0.75rem;
}

/* Contact */
.contact {
    background: var(--tint);
    border-top: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 4rem;
}

.contact-grid h2 {
    margin-bottom: 1rem;
}

.contact-grid .button {
    margin-top: 1.75rem;
}

.contact-details {
    margin: 0;
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.contact-details dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.125rem;
}

.contact-details dd {
    margin: 0;
    font-size: 1.0625rem;
}

.contact-details a {
    color: var(--ink);
    text-decoration-color: var(--line-strong);
}

.contact-details a:hover {
    color: var(--accent-strong);
}

.contact-details address {
    font-style: normal;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        align-items: start;
    }

    .contact-details {
        padding-top: 0.5rem;
    }
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    padding: 2.5rem 0 3rem;
    font-size: 0.9375rem;
    color: var(--ink-3);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.footer-row + .footer-row {
    margin-top: 1.25rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    text-decoration: none;
    color: var(--ink-3);
}

.footer-links a:hover {
    color: var(--accent-strong);
}

/* The footer "Cookie settings" control: a button styled like the links */
.footer-button {
    padding: 0;
    font: inherit;
    color: var(--ink-3);
    background: none;
    border: 0;
    cursor: pointer;
}

.footer-button:hover {
    color: var(--accent-strong);
}

/* Sub-page layouts (contact, ROI calculator, healthcare, AI audit, legal) */
.container-narrow {
    width: min(760px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.page-meta {
    margin-top: 1rem;
    font-size: 0.9375rem;
    color: var(--ink-3);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem 4rem;
}

@media (min-width: 900px) {
    .two-col {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        align-items: start;
    }

    .two-col-even {
        grid-template-columns: 1fr 1fr;
    }
}

.panel {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.panel > h2 {
    font-size: 1.375rem;
    letter-spacing: -0.015em;
    margin-bottom: 1.5rem;
}

.inline-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    font-size: 1rem;
}

.subhead {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.block-gap {
    margin-top: 2.5rem;
}

.block-title {
    margin-bottom: 1.25rem;
}

.block-gap .lede {
    margin-top: 0.75rem;
}

/* Forms */
.form {
    display: grid;
    gap: 1.25rem;
}

.form-section {
    display: grid;
    gap: 1.25rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line);
}

.form-section:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.form-section > h2 {
    font-size: 1.375rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.25rem;
}

.form-section > h3 {
    font-size: 1.0625rem;
    margin-top: 0.5rem;
}

.form-section > p {
    color: var(--ink-2);
}

.field {
    display: grid;
    gap: 0.5rem;
    align-content: start;
    min-width: 0;
}

.field > label,
.field-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
}

.required {
    color: var(--accent);
}

.hint {
    font-size: 0.875rem;
    color: var(--ink-3);
}

.field-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.form select,
.form textarea {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0.75rem 0.875rem;
    font: inherit;
    line-height: 1.4;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.form textarea {
    min-height: 8rem;
    resize: vertical;
}

.form select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2344474e' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    border-color: var(--accent);
}

.form ::placeholder {
    color: var(--ink-3);
    opacity: 1;
}

.choices {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .choices-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.choice:hover {
    border-color: var(--line-strong);
}

.choice input {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0.15em 0 0;
    accent-color: var(--accent);
}

.choice:has(input:checked) {
    background: var(--accent-tint);
    border-color: var(--accent);
}

.choice:has(input:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-top: 0.5rem;
}

.form-note {
    font-size: 0.875rem;
    color: var(--ink-3);
}

.button:disabled {
    opacity: 0.6;
    cursor: progress;
}

.button-full {
    width: 100%;
}

/* Range inputs (ROI calculator) */
.form input[type="range"] {
    width: 100%;
    margin: 0.5rem 0 0;
    accent-color: var(--accent);
}

.range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--ink-3);
}

.range-scale output {
    font-weight: 600;
    color: var(--accent);
}

/* Notices */
.notice {
    padding: 1rem 1.125rem;
    font-size: 0.9375rem;
    color: var(--ink-2);
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
}

.notice-success {
    background: var(--accent-tint);
    border-color: var(--accent-soft);
    border-left-color: var(--accent);
}

/* Figures (ROI results) */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.stats > div {
    padding: 1.5rem;
    background: var(--surface);
}

.stats dt {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
}

.stats dd {
    margin: 0.375rem 0 0;
    font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.stats dd small {
    margin-left: 0.25rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink-2);
}

.stats .stat-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink-3);
}

@media (min-width: 640px) {
    .stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.chart-box {
    position: relative;
    height: 420px;
    margin-top: 1.5rem;
}

@media (max-width: 640px) {
    .chart-box {
        height: 320px;
    }
}

/* Numbered steps (thank-you pages, ROI next steps) */
.steps {
    display: grid;
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.steps > li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    counter-increment: step;
}

.steps > li::before {
    content: counter(step, decimal-leading-zero);
    padding-top: 0.2em;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent);
}

.steps h3,
.steps h4 {
    font-size: 1.0625rem;
    margin-bottom: 0.25rem;
}

.steps p {
    font-size: 0.9375rem;
    color: var(--ink-2);
}

/* Feature grid (healthcare) */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem 3rem;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: 1fr 1fr;
    }
}

.feature h3 {
    margin-bottom: 0.75rem;
    color: var(--accent-strong);
}

.feature p {
    color: var(--ink-2);
}

/* Long-form copy (legal pages) */
.prose {
    font-size: 1.0625rem;
    color: var(--ink-2);
}

.prose > * + * {
    margin-top: 0.875rem;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: 2.75rem;
    color: var(--ink);
}

.prose h3 {
    font-size: 1.125rem;
    margin-top: 1.75rem;
    color: var(--ink);
}

.prose h2 + *,
.prose h3 + * {
    margin-top: 0.75rem;
}

.prose ul,
.prose ol {
    display: grid;
    gap: 0.375rem;
    padding-left: 1.25rem;
}

.prose li::marker {
    color: var(--accent);
}

.prose strong {
    font-weight: 600;
    color: var(--ink);
}

.prose a {
    font-weight: 500;
}

.prose address {
    font-style: normal;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.prose th,
.prose td {
    padding: 0.625rem 0.75rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
}

.prose th {
    font-weight: 600;
    color: var(--ink);
}

/* Cookie consent. Same markup and ids as the other pages (js/consent.js
   drives it); styled here so the homepage does not need css/style.css. */
.consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -8px 30px rgba(22, 24, 28, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.consent-banner.show {
    transform: translateY(0);
}

.consent-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem var(--gutter);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}

.consent-banner-text {
    flex: 1;
    color: var(--ink-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.consent-banner-text strong {
    color: var(--ink);
}

.consent-banner-text a {
    color: var(--accent);
    text-decoration: underline;
}

.consent-banner-text a:hover {
    color: var(--accent-strong);
}

.consent-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.consent-btn {
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.consent-btn-accept {
    background: var(--button);
    border-color: var(--button);
    color: #fff;
}

.consent-btn-accept:hover {
    background: var(--button-hover);
    border-color: var(--button-hover);
}

.consent-btn-decline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.consent-btn-decline:hover {
    background: var(--tint);
    border-color: var(--ink-3);
}

.consent-btn-settings {
    background: transparent;
    color: var(--ink-3);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    padding: 0.7rem 0.75rem;
}

.consent-btn-settings:hover {
    color: var(--accent-strong);
}

.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(22, 24, 28, 0.5);
    padding: 1rem;
}

.consent-modal.show {
    display: flex;
}

.consent-modal-content {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 40px rgba(22, 24, 28, 0.16);
}

.consent-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.consent-modal-header h2 {
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.consent-modal-close {
    background: transparent;
    border: 0;
    color: var(--ink-3);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.consent-modal-close:hover {
    color: var(--ink);
}

.consent-modal-body {
    padding: 1.5rem;
}

.consent-modal-body > p {
    margin-bottom: 1.5rem;
    color: var(--ink-2);
    max-width: none;
}

.consent-option {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.consent-option-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.consent-option-header h3 {
    font-size: 1rem;
}

.consent-toggle {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 24px;
    padding: 0;
    font: inherit;
    background: var(--line-strong);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.consent-toggle.active {
    background: var(--accent);
}

.consent-toggle.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.consent-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.consent-toggle.active .consent-toggle-slider {
    transform: translateX(24px);
}

.consent-option-description {
    color: var(--ink-2);
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: none;
}

.consent-modal-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

@media (max-width: 768px) {
    .consent-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .consent-banner-buttons {
        flex-direction: column;
        gap: 0.625rem;
    }

    .consent-btn {
        width: 100%;
        text-align: center;
    }

    .consent-modal-footer {
        flex-direction: column;
    }

    .consent-modal-footer .consent-btn {
        width: 100%;
    }
}

/* Motion: keep it to hover and disclosure. */
@media (prefers-reduced-motion: reduce) {
    .faq-icon,
    .button,
    a,
    .site-nav a,
    .consent-banner,
    .consent-btn,
    .consent-toggle,
    .consent-toggle-slider {
        transition: none;
    }
}

@media print {
    .site-header,
    .mobile-menu,
    .consent-banner,
    .consent-modal {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
