/* ============================================================
   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;
}

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

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

.bridge-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;
}

.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);
}