/* ============================================================
   EVERGREEN DESIGN TOKENS - locked per docs/business-plan/design-handoff-package.md.
   Do not change these values without founder sign-off; every design
   artifact under docs/business-plan/design-*-notes.md was built against
   this exact block.
   ============================================================ */
:root {
    color-scheme: light;
    --bg: #F6F9F6; --surface: #FFFFFF; --surface-2: #EDF3EE; --ink: #0E1912; --muted: #55645C;
    --border: #DCE3DD; --accent: #1B6E57; --accent-hover: #14563F; --accent-tint: #E1F0E7;
    --accent-glow: rgba(27,110,87,0.16); --error: #B3492F; --error-tint: #F5E7E2;
    --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
    --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --text-display: clamp(2.6rem, 5.2vw, 4.4rem);
    --text-h1: 2.3rem; --text-h2: 1.65rem; --text-h3: 1.2rem;
    --text-body-lg: 1.1rem; --text-body: 1rem; --text-small: 0.875rem; --text-caption: 0.75rem;
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
    --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-xl: 32px; --r-pill: 999px;
    --shadow-card: 0 1px 2px rgba(14,25,18,0.06), 0 8px 24px -12px rgba(14,25,18,0.12);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0B140F; --surface: #121D17; --surface-2: #17241C; --ink: #EAF3EC; --muted: #93A79B;
        --border: #223229; --accent: #5D9B82; --accent-hover: #7DB89F; --accent-tint: #1A2B22;
        --accent-glow: rgba(93,155,130,0.20); --error: #E08066; --error-tint: #2B1712;
        --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -14px rgba(0,0,0,0.55);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B140F; --surface: #121D17; --surface-2: #17241C; --ink: #EAF3EC; --muted: #93A79B;
    --border: #223229; --accent: #5D9B82; --accent-hover: #7DB89F; --accent-tint: #1A2B22;
    --accent-glow: rgba(93,155,130,0.20); --error: #E08066; --error-tint: #2B1712;
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -14px rgba(0,0,0,0.55);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ---------- shared buttons (Evergreen component sheet, #236) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--s2);
    min-height: 44px;
    padding: 0 var(--s5);
    border-radius: var(--r-pill);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-body);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-tint);
}

.btn-disabled,
.btn:disabled {
    background: var(--surface-2);
    color: var(--muted);
    border-color: var(--border);
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 0 var(--s6);
    font-size: var(--text-body-lg);
    min-height: 56px;
}

@media (max-width: 520px) {
    .btn-large {
        width: 100%;
    }
}

/* ---------- homepage: hero (#210, Evergreen "Webpages" artifact) ---------- */
.hero {
    position: relative;
    padding-block: var(--s8) var(--s7);
    overflow: hidden;
    text-align: center;
}

@media (max-width: 520px) {
    .hero {
        padding-block: var(--s6) var(--s5);
    }
}

.hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -30%;
    transform: translateX(-50%);
    width: min(900px, 140%);
    height: 420px;
    background: radial-gradient(closest-side, var(--accent-glow), transparent 72%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    padding-inline: var(--s5);
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 var(--s4);
}

.hero h1 {
    font-size: var(--text-display);
    color: var(--ink);
}

.hero-support {
    font-size: var(--text-body-lg);
    color: var(--muted);
    margin: var(--s4) auto 0;
    max-width: 58ch;
}

.hero-actions {
    margin-top: var(--s6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s3);
}

.hero-note {
    font-size: var(--text-small);
    color: var(--muted);
}

/* ---------- homepage: category card ---------- */
.categories {
    padding-block: var(--s7);
    border-top: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
    padding-inline: var(--s5);
}

.section-label {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 var(--s5);
}

.cat-card-single {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s7) var(--s6);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
    box-shadow: var(--shadow-card);
}

@media (max-width: 520px) {
    .cat-card-single {
        padding: var(--s5) var(--s4);
    }
}

.cat-tag {
    display: inline-flex;
    align-self: flex-start;
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-tint);
    padding: 5px var(--s3);
    border-radius: var(--r-sm);
}

.cat-card-single h2 {
    font-size: var(--text-h1);
    margin-top: var(--s2);
    color: var(--ink);
}

.cat-card-single > p {
    color: var(--muted);
    margin: 0;
    max-width: 60ch;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-chip {
    font-size: 11px;
    font-weight: 600;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 5px 11px;
    border-radius: var(--r-pill);
}

.cat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: var(--s3);
    margin-top: var(--s2);
    border-top: 1px solid var(--border);
    font-size: var(--text-small);
    color: var(--muted);
}

.cat-link {
    margin-top: var(--s3);
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

/* ---------- homepage: trust strip ---------- */
.trust {
    padding-block: var(--s7);
    padding-inline: var(--s5);
}

.trust-card {
    max-width: 760px;
    margin: 0 auto;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s6);
    text-align: center;
}

.trust-card p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-h3);
    color: var(--ink);
}

/* ---------- homepage: how it works ---------- */
.how {
    padding-block: var(--s7);
    border-top: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
    padding-inline: var(--s5);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

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

.how-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--s5);
}

.how-num {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--accent);
}

.how-step h3 {
    font-size: var(--text-h3);
    margin-top: var(--s3);
    color: var(--ink);
}

.how-step p {
    color: var(--muted);
    margin: var(--s2) 0 0;
}

.no-price-note {
    margin-top: var(--s4);
    padding: var(--s4);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    font-size: var(--text-small);
}

/* ---------- category page shell (#207/#233) - generic section chrome, reused
   verbatim for future categories (Cloud & DevOps etc.) with only the Razor
   page's copy changing, per docs/business-plan/design-quickbooks-category-notes.md ---------- */
.block {
    padding-block: var(--s7);
    border-top: 1px solid var(--border);
}

.section-head {
    max-width: 640px;
    margin: 0 auto var(--s6);
    text-align: center;
}

.section-head h2 {
    font-size: var(--text-h1);
    color: var(--ink);
}

.section-head p {
    color: var(--muted);
    margin: var(--s3) 0 0;
    font-size: var(--text-body-lg);
}

/* ---------- service grid ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s5);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.service-num {
    font-family: var(--font-mono);
    font-size: var(--text-small);
    color: var(--accent);
}

.service-card h3 {
    font-size: var(--text-h3);
    color: var(--ink);
}

.service-card p {
    color: var(--muted);
    margin: 0;
}

/* ---------- scope-boundary note ---------- */
.scope-note {
    max-width: 800px;
    margin: var(--s6) auto 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--r-md);
    padding: var(--s5);
}

.scope-note .scope-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-h3);
    margin: 0 0 var(--s2);
    color: var(--ink);
}

.scope-note p {
    margin: 0;
    color: var(--ink);
}

.scope-note p + p {
    margin-top: var(--s2);
}

.scope-note .muted {
    color: var(--muted);
    font-size: var(--text-small);
}

/* ---------- why xperters ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s5);
}

@media (max-width: 720px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s6) var(--s5);
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.why-card h3 {
    font-size: var(--text-h3);
    color: var(--ink);
}

.why-card p {
    color: var(--muted);
    margin: 0;
}

.specialist-card {
    display: flex;
    align-items: flex-start;
    gap: var(--s4);
}

.avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--r-pill);
    background: var(--accent-tint);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
}

.specialist-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-h3);
    margin: 0;
    color: var(--ink);
}

.specialist-role {
    color: var(--accent);
    font-size: var(--text-small);
    font-weight: 600;
    margin: 2px 0 0;
}

.placeholder-tag {
    display: inline-block;
    margin-top: var(--s2);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    padding: 3px 9px;
    border-radius: var(--r-sm);
}

.trust-line {
    max-width: 760px;
    margin: var(--s6) auto 0;
    background: var(--accent-tint);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--s5) var(--s6);
    text-align: center;
}

.trust-line p {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: var(--text-h3);
    color: var(--ink);
}

/* ---------- how it works (4-step variant) ---------- */
.how-callout {
    max-width: 700px;
    margin: var(--s6) auto 0;
    text-align: center;
    font-size: var(--text-small);
    color: var(--muted);
}

.how-callout strong {
    color: var(--ink);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--s3);
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    background: transparent;
    border: none;
    text-align: left;
    padding: var(--s4) var(--s5);
    min-height: 44px;
    cursor: pointer;
    font-weight: 700;
    font-size: var(--text-body);
    color: var(--ink);
}

.faq-q .plus {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
    transition: transform .15s ease;
}

.faq-item[data-open="true"] .plus {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 var(--s5);
    color: var(--muted);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease, padding .2s ease;
}

.faq-item[data-open="true"] .faq-a {
    padding: 0 var(--s5) var(--s5);
    max-height: 320px;
}

.faq-a p {
    margin: 0;
}

/* ---------- closing cta ---------- */
.closing {
    padding-block: var(--s8);
    text-align: center;
}

.closing h2 {
    font-size: var(--text-h1);
    max-width: 20ch;
    margin: 0 auto;
    color: var(--ink);
}

.closing p {
    color: var(--muted);
    margin: var(--s3) auto 0;
    max-width: 52ch;
}

.closing .btn-large {
    margin-top: var(--s6);
}

/* ---------- theme toggle (persists to localStorage via theme.js) ---------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0 var(--s3);
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.theme-toggle .icon-dark {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-light {
    display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-dark {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-light {
        display: none;
    }

    :root:not([data-theme="light"]) .theme-toggle .icon-dark {
        display: inline;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--s4);
    max-width: 900px;
    margin: 0 auto;
    padding: var(--s4) var(--s5);
    border-bottom: 1px solid var(--border);
}

.site-brand {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: var(--text-h3);
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: var(--s5);
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: var(--text-small);
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.site-header nav a:hover,
.site-header nav a.active {
    color: var(--accent);
}

.nav-dropdown {
    position: relative;
    /* Stretches to the full header row height (not just the trigger text's
       own line height) so top:100% below lands right at the header's
       bottom edge, with no vertically-centered dead zone in between. */
    display: flex;
    align-items: center;
    align-self: stretch;
}

.nav-dropdown-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    /* Flush against the trigger (no margin-top gap) - a gap there is empty
       space, not part of any element, so moving the mouse through it drops
       out of .nav-dropdown:hover and the menu vanishes before the cursor
       ever reaches it. */
    top: 100%;
    left: 0;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: var(--s4);
    gap: var(--s4);
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-featured {
    display: flex;
    align-items: center;
    gap: var(--s3);
    padding: var(--s3);
    border-radius: var(--r-md);
    background: var(--surface-2);
}

.nav-dropdown-featured:hover {
    background: var(--accent-tint);
}

.nav-dropdown-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: var(--accent-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.nav-dropdown-featured-text {
    display: flex;
    flex-direction: column;
}

.nav-dropdown-featured-title {
    font-weight: 700;
    color: var(--ink);
}

.nav-dropdown-featured-sub {
    font-size: var(--text-small);
    color: var(--muted);
}

.nav-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s2);
}

.nav-dropdown-grid a {
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: var(--s2) var(--s3);
    border-radius: var(--r-sm);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--ink);
}

.nav-dropdown-grid a:hover {
    background: var(--surface-2);
    color: var(--accent);
}

.site-account {
    display: flex;
    align-items: center;
    gap: var(--s3);
}

.site-account-name {
    color: var(--muted);
    font-size: var(--text-small);
}

.site-footer {
    position: fixed;
    right: 1rem;
    bottom: 0.75rem;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    font-size: var(--text-caption);
    font-family: var(--font-mono);
    color: var(--ink);
    text-align: right;
    pointer-events: none;
}

.site-footer-contact {
    pointer-events: auto;
    color: inherit;
    opacity: 0.85;
}

.site-footer-build {
    opacity: 0.45;
}

.site-footer-build a {
    pointer-events: auto;
    color: inherit;
}

.page-shell {
    max-width: 640px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

/* Homepage visual design pass (#132) - iA Writer/Linear-inspired restraint:
   generous whitespace, confident typography, one clear CTA, nothing
   decorative competing for attention. See #131/#132's comment threads for
   the reference research this follows. */
.homepage-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-section {
    padding: 5rem 0 1rem;
    text-align: center;
}

.hero-section h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 1.25rem;
    color: var(--ink);
}

.hero-subheadline {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
}

.value-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.value-section > h2 {
    font-size: 1.6rem;
    text-align: center;
    margin: 0 0 2.5rem;
    color: var(--ink);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.value-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
    color: var(--ink);
}

.value-item p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

.cta-section {
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: var(--accent-tint);
    border-radius: var(--r-lg);
    margin: 1rem 0 4rem;
}

.cta-section h2 {
    font-size: 1.6rem;
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.cta-section p {
    color: var(--muted);
    max-width: 480px;
    line-height: 1.6;
    margin: 0 auto 1.75rem;
}

.cta-section .cta-button {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.9rem 2.25rem;
    border-radius: var(--r-pill);
    box-shadow: var(--shadow-card);
}

.jobs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.job-item {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.job-id {
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.job-title {
    flex: 1;
    font-weight: 500;
    color: var(--ink);
}

.job-date {
    color: var(--muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.error-banner {
    background: var(--error-tint);
    color: var(--error);
    border: 1px solid var(--error);
    border-radius: var(--r-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
}

.product-note {
    background: var(--accent-tint);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.spinner {
    width: 2.5rem;
    height: 2.5rem;
    margin: 2rem auto 0;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.registration-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* The get-started honeypot (#376): off-screen rather than display:none, so
   form-filling bots still treat it as a real field. */
.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.register-explainer {
    list-style: none;
    margin: 1.25rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.register-explainer li {
    padding: 0.9rem 1.1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--ink);
}

.register-explainer strong {
    color: var(--accent);
}

.page-shell textarea {
    width: 100%;
    font: inherit;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    resize: vertical;
}

.clarification-field {
    display: grid;
    gap: var(--s3);
    margin: var(--s5) 0 var(--s6);
}

.clarification-field label {
    display: block;
    line-height: 1.5;
}

.clarification-field textarea {
    display: block;
    margin: 0;
    box-sizing: border-box;
}

.page-shell .actions {
    margin-top: 1.25rem;
    display: flex;
    gap: 0.75rem;
}

.page-shell button {
    font: inherit;
    padding: 0.6rem 1.4rem;
    border-radius: var(--r-pill);
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.page-shell button:hover:not(:disabled) {
    background: var(--accent-hover);
}

.page-shell button:disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

.page-shell button.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}

.cta-banner {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--accent-tint);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
}

.cta-banner h2 {
    margin-top: 0;
    color: var(--ink);
}

.cta-button {
    display: inline-block;
    margin-top: 0.5rem;
    font: inherit;
    padding: 0.6rem 1.4rem;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.cta-button:hover {
    background: var(--accent-hover);
}
/* Three-service discovery:  reuse the existing palette, type and card treatment. */
.service-categories {
    max-width:  1200px;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: var(--s4);
}
.service-choice {
    padding: var(--s5);
    min-width: 0;
}
.service-choice h2 {
    font-size: var(--text-h3);
    line-height: 1.2;
}
.service-choice-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: var(--s4);
}
.service-choice .btn {
    white-space: normal;
    line-height: 1.4;
    text-align: center;
    padding: var(--s3);
}
.service-search {
    margin-bottom: var(--s4);
}
.service-search label {
    display: block;
    font-weight: 600;
    margin-bottom: var(--s2);
}
.search-controls {
    display: flex;
    gap: var(--s3);
}
.search-controls input {
    flex: 1;
    min-width: 0;
    padding: var(--s3);
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.service-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin-block: var(--s4);
}
.service-filter {
    padding: var(--s3) var(--s4);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    color: var(--ink);
    text-decoration: none;
}
.service-filter.selected, .service-filter:hover {
    background: var(--accent-tint);
    border-color: var(--accent);
    color: var(--accent);
}
.service-faq-list details {
    padding: var(--s4);
    border-bottom: 1px solid var(--border);
}
.service-faq-list summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
}
.service-faq-list p {
    color: var(--muted);
    line-height: 1.7;
}
.service-label {
    color: var(--accent);
    font-weight: 600;
}
#navigation-error {
    padding: var(--s4);
    border: 1px solid var(--accent);
    max-width: 900px;
    margin: auto;
}
.htmx-request {
    cursor: progress;
}
.htmx-request .category-grid {
    opacity: .65;
}
#main-content:focus {
    outline: none;
}
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}
.site-header {
    max-width: 1200px;
    flex-wrap: wrap;
}
.site-account {
    min-width: 0;
    flex-wrap: wrap;
}
.site-account-name {
    overflow-wrap: anywhere;
}
.btn {
    max-width: 100%;
    box-sizing: border-box;
}
.hero-actions {
    flex-wrap: wrap;
}
@media(max-width: 900px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    .site-header nav {
        gap: var(--s3);
        flex-wrap: wrap;
    }
}
@media(max-width: 600px) {
    .site-header {
        gap: var(--s3);
    }
    .site-header nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: var(--s2);
    }
    .site-account {
        margin-left: auto;
        max-width: 70%;
    }
    .hero-actions {
        width: 100%;
    }
    .hero-actions .btn {
        white-space: normal;
        line-height: 1.4;
        padding: var(--s3);
    }
    .search-controls {
        flex-wrap: wrap;
    }
    .service-filters {
        gap: var(--s2);
    }
    .service-filter {
        padding: var(--s2) var(--s3);
    }
}
.site-footer {
    position: static;
    max-width: 1200px;
    margin: var(--s6) auto 0;
    padding: var(--s5);
    border-top: 1px solid var(--border);
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: left;
    pointer-events: auto;
    overflow-wrap: anywhere;
}
.page-shell .category-grid {
    grid-template-columns: 1fr;
}

/* Native disclosure keeps the service navigation usable without JavaScript. */
.service-menu { position: relative; }
.service-menu summary {
    cursor: pointer;
    color: var(--muted);
    font-size: var(--text-small);
    font-weight: 600;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: var(--s2);
    list-style: none;
}
.service-menu summary::-webkit-details-marker { display: none; }
.service-menu summary::after { content: "⌄"; }
.service-menu[open] summary::after { content: "⌃"; }
.service-menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    width: 320px;
    box-sizing: border-box;
    padding: var(--s3);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}
.site-header .service-menu-panel a {
    display: flex;
    padding: var(--s2) var(--s3);
    border-radius: var(--r-sm);
    color: var(--ink);
}
.site-header .service-menu-panel a:hover { background: var(--accent-tint); }
.service-menu-overview { border-top: 1px solid var(--border); }
@media (max-width: 600px) {
    .site-header { position: relative; }
    .service-menu { position: static; }
    .service-menu-panel { left: var(--s4); right: var(--s4); width: auto; }
}

/* Introductory-call booking: server-rendered calendar, htmx date/slot updates. */
.booking-page { max-width: 1200px; margin: 0 auto; padding: var(--s5); }
.booking-page > h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
.booking-intro { color: var(--muted); max-width: 780px; margin-bottom: var(--s6); }
.booking-layout { display: grid; grid-template-columns: .85fr 1.25fr .75fr; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.booking-layout > * { padding: var(--s5); min-width: 0; }
.booking-layout h2 { font-size: 1.3rem; }
.booking-overview { border-right: 1px solid var(--border); }
.booking-overview p { line-height: 1.65; margin: 0 0 var(--s4); }
.booking-overview h2 { margin: 0 0 var(--s3); }
.booking-overview .service-label { padding-top: var(--s3); border-top: 1px solid var(--border); }
.booking-plan { margin-top: var(--s4); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); padding: var(--s4); }
.booking-plan > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.booking-plan > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.booking-plan-content { max-width: 72ch; margin: var(--s4) auto 0; overflow-wrap: anywhere; }
.booking-plan-content h2 { font-size: 1.25rem; line-height: 1.45; margin-bottom: var(--s4); }
.booking-plan-content p { line-height: 1.7; margin: 0 0 var(--s4); white-space: pre-line; }
.calendar-month { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.calendar-month h3 { font-size: 1.1rem; }
.calendar-month > a, .calendar-month > span { width: 44px; height: 44px; display: grid; place-items: center; font-size: 2rem; color: var(--accent); text-decoration: none; }
.calendar-month > span { opacity: .3; }
.calendar-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; }
.calendar-grid th { font-size: .8rem; font-weight: 600; padding: var(--s2) 0; }
.calendar-grid td { text-align: center; height: 44px; padding: 0; }
.calendar-grid td a, .calendar-grid td span { display: grid; place-items: center; min-height: 44px; border-radius: 50%; }
.calendar-grid td a { color: var(--accent); background: var(--accent-tint); text-decoration: none; font-weight: 600; }
.calendar-grid td span { color: var(--muted); opacity: .5; }
.calendar-grid td a.selected, .booking-slot.selected { color: var(--surface); background: var(--accent); }
.booking-zone { margin-top: var(--s4); }
.booking-zone label, .booking-details label { display: block; font-weight: 600; margin: var(--s3) 0 var(--s2); }
.booking-zone select, .booking-details select, .booking-details textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); padding: var(--s3); font: inherit; }
.booking-zone button { margin-top: var(--s2); padding: var(--s2) var(--s3); white-space: normal; }
.booking-slot-list { display: flex; flex-direction: column; gap: var(--s3); max-height: 430px; overflow-y: auto; padding: 4px; }
.booking-slot { border: 1px solid var(--accent); border-radius: var(--r-sm); padding: var(--s3); min-height: 44px; box-sizing: border-box; text-align: center; color: var(--accent); text-decoration: none; font-weight: 600; }
.booking-slot:hover { outline: 2px solid var(--accent); }
.booking-details, .booking-confirmation { max-width: 720px; margin: var(--s5) auto; padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.booking-confirmation { overflow-wrap: anywhere; }
.booking-details .btn, .booking-confirmation .btn { white-space: normal; margin: var(--s2) 0; }
@media (max-width: 1000px) { .booking-layout { grid-template-columns: 1.4fr 1fr; } .booking-overview { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--border); } }
@media (max-width: 600px) { .booking-page { padding: var(--s3); } .booking-layout { grid-template-columns: 1fr; } .booking-layout > * { padding: var(--s4); } .booking-slot-list { display: grid; grid-template-columns: 1fr 1fr; } .booking-details { padding: var(--s4); } }

/* Legal pages and cookie consent (#318). Design tokens only, so light and
   dark themes follow automatically. */
.legal-document { max-width: 760px; line-height: 1.6; }
.legal-document h2 { font-size: var(--text-h3); margin-top: var(--s6); scroll-margin-top: var(--s5); }
.legal-document table { width: 100%; border-collapse: collapse; margin: var(--s4) 0; font-size: var(--text-small); }
.legal-document th, .legal-document td { text-align: left; vertical-align: top; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); }
.legal-document th { color: var(--muted); font-weight: 600; }
@media (max-width: 600px) { .legal-document table { display: block; overflow-x: auto; } }

.site-footer-legal { display: flex; gap: var(--s4); align-items: baseline; pointer-events: auto; }
.site-footer-legal a, .site-footer-link { color: inherit; opacity: 0.85; font: inherit; }
.site-footer-link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }

.cookie-consent {
    position: fixed; z-index: 1000; left: var(--s4); right: var(--s4); bottom: var(--s4);
    max-width: 720px; margin: 0 auto; padding: var(--s4) var(--s5);
    display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap;
    background: var(--surface); color: var(--ink); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow-card); font-size: var(--text-small);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0; flex: 1 1 320px; }
.cookie-consent a { color: var(--accent); }
.cookie-consent-actions { display: flex; gap: var(--s2); }

/* UK trading disclosure (#226): its own full-width row under the footer's
   existing row, and a quiet line on /contact. */
.site-footer-disclosure { flex-basis: 100%; order: 1; margin: 0; opacity: 0.7; pointer-events: auto; }
.company-disclosure { margin-top: var(--s6); color: var(--muted); font-size: var(--text-small); }

/* Phone header (#334): one row - brand, theme toggle, log in/out, Menu - with
   the nav in a panel under it. Only applies once site-menu.js has set
   html.js-menu; without JavaScript the wrapped nav above stays as the
   fallback. Desktop is untouched. */
.site-menu-toggle { display: none; }
@media (max-width: 600px) {
    html.js-menu .site-header { flex-wrap: nowrap; position: relative; padding: var(--s3) var(--s4); }
    html.js-menu .site-menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        min-height: 44px; min-width: 44px; padding: 0 var(--s3);
        border-radius: var(--r-pill); border: 1px solid var(--border);
        background: var(--surface); color: var(--ink);
        font: 600 var(--text-small) var(--font-body); cursor: pointer; flex-shrink: 0;
    }
    html.js-menu .site-account { margin-left: auto; max-width: none; flex-wrap: nowrap; }
    html.js-menu .site-account .btn { padding: 0 var(--s4); }
    html.js-menu .site-account-name { max-width: 28vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    html.js-menu .site-header nav { display: none; }
    html.js-menu .site-header.menu-open nav {
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; top: 100%; left: 0; right: 0; z-index: 30; box-sizing: border-box;
        padding: var(--s2) var(--s4) var(--s3);
        background: var(--surface); border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgb(0 0 0 / 12%);
    }
    html.js-menu .site-header.menu-open nav > a,
    html.js-menu .site-header.menu-open .service-menu summary { font-size: var(--text-body); padding: 0 var(--s2); }
    html.js-menu .site-header.menu-open .service-menu-panel {
        position: static; width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 var(--s4);
    }
    html.js-menu .site-header.menu-open .service-menu-overview { border-radius: 0; }

    /* Hero: a little less air above the headline and the buttons on phones. */
    .hero { padding-block: var(--s5) var(--s5); }
    .hero .eyebrow { margin-bottom: var(--s3); }
    .hero .hero-actions { margin-top: var(--s5); }
    /* Phones only, founder-approved on #334: the locked --text-display token
       is unchanged; this just lets long headlines fit in fewer lines so the
       primary button clears the cookie banner on short phones. */
    .hero h1 { font-size: 2.15rem; }

    /* Cookie banner: same text, tighter on phones so it covers less of the
       first screen - buttons side by side, smaller type and padding. */
    .cookie-consent { left: var(--s2); right: var(--s2); bottom: var(--s2); padding: var(--s3); gap: var(--s2); font-size: var(--text-caption); line-height: 1.45; }
    .cookie-consent p { flex-basis: 100%; }
    .cookie-consent-actions { width: 100%; }
    .cookie-consent-actions .btn { flex: 1; min-height: 40px; padding: 0 var(--s3); font-size: var(--text-small); }
}

/* Category hero boundary line (#369): what the service doesn't do, above the
   buttons so it's on the first screen. Only QuickBooks sets one. */
.hero-boundary { font-size: var(--text-body); color: var(--ink); margin: var(--s4) auto 0; max-width: 58ch; }
