:root {
    --blue: #0b6ec9;
    --purple-start: #0c2f61;
    --purple-end: #2f8df2;
    --navy: #0a2c52;
    --text: #0f1d2c;
    --muted: #50607a;
    --bg: #f6f8fc;
    --card: #ffffff;
    --border: #d9e5f3;
    --shadow: 0 10px 35px rgba(9, 54, 112, 0.1);
    --radius: 14px;
    --transition: 160ms ease;
    --header-height: 100px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

body.nav-open {
    overflow: hidden;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #000000;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.impersonation-banner {
    position: relative;
    z-index: 19;
    padding: 10px 0;
    color: #3b2700;
    background: #ffdc73;
    border-bottom: 1px solid #d6a410;
}

.impersonation-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.impersonation-banner form {
    margin: 0;
}

.impersonation-banner button {
    padding: 8px 14px;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    background: #0a2c52;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    position: relative;
    min-height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: clamp(300px, 52vw, 440px);
    height: auto;
    min-width: 280px;
    max-height: 92px;
    border-radius: 0;
    padding: 1px;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
}

.brand-tagline {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    cursor: pointer;
    padding: 10px;
    z-index: 2;
}

.hamburger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 999px;
    background: #793C97;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 14px;
    padding: 0;
    margin: 0;
}

.nav-link {
    padding: 6px 10px;
    display: block;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 17px;
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-btn,
.ghost-btn {
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--navy);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(135deg, #793C97, var(--purple-end));
    color: #ffffff;
    border: none;
    box-shadow: 0 12px 28px rgba(12, 47, 97, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.primary-btn:focus-visible,
.ghost-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(9, 54, 112, 0.2);
}

.ghost-btn {
    background: transparent;
    border-color: var(--border);
    color: var(--navy);
}

.site-header .ghost-btn {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
}

main {
    padding-top: 0;
}

.hero {
    padding: 72px 0 36px;
}

.hero-splash {
    background: #000000;
    color: #ffffff;
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.hero-splash > * {
    grid-area: 1 / 1;
}

.splash-inner {
    width: min(1180px, 96%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.hero-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.hero-mark::before {
    content: "";
    position: absolute;
    inset: -22%;
    background: url("../img/logo-c-glow.f2ee904e80c1.svg") center/contain no-repeat;
    opacity: 0.25;
    mix-blend-mode: screen;
    transform: scale(1.7);
}

.hero-mark img {
    width: min(90vw, 1150px);
    max-width: 1200px;
    min-width: 520px;
    opacity: .7;
    filter: drop-shadow(0 0 80px rgba(168, 207, 255, 0.3));
}

.headline-wordmark {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--hero-c-size);
    padding-left: calc(var(--hero-c-size) * 0.58);
}

.hero-head-c {
    position: absolute;
    left: 0;
    bottom: calc(var(--hero-c-size) * -0.08);
    height: var(--hero-c-size);
    width: auto;
    transform: translateX(-10%);
}

.headline-text {
    display: inline-block;
    position: relative;
    padding-left: calc(var(--hero-c-size) * -0.12);
}

.splash-headline {
    --hero-c-size: clamp(58px, 12vw, 80px);
    width: 100%;
    margin: 0 0 16px;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hero-statement {
    display: grid;
    justify-items: center;
    gap: clamp(6px, 1.2vw, 12px);
    width: min(1100px, 100%);
    max-width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: clamp(22px, 3.4vw, 34px);
    font-weight: 500;
    line-height: 1.25;
}

.hero-statement__prefix,
.hero-statement__suffix {
    display: block;
    max-width: 100%;
}

.hero-audience-stage {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 1.35em;
}

.hero-audience-static,
.hero-audience-cycle {
    grid-area: 1 / 1;
    width: 100%;
    max-width: 100%;
}

.hero-audience-cycle {
    display: none;
    place-items: center;
    min-height: 1.35em;
}

.hero-statement.is-rotating .hero-audience-static {
    display: none;
}

.hero-statement.is-rotating .hero-audience-cycle {
    display: grid;
}

.hero-audience-option {
    grid-area: 1 / 1;
    width: 100%;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.025em;
    opacity: 0;
    filter: blur(5px);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.48), 0 0 14px rgba(255, 255, 255, 0.12);
    transform: translateY(0.55em) scale(0.985);
    transition: opacity 460ms ease, filter 460ms ease, transform 540ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-audience-option.is-active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.hero-audience-option.is-leaving {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(-0.48em) scale(0.985);
}

.hero-route-origin {
    position: relative;
    display: inline-block;
    width: clamp(12px, 0.42em, 17px);
    height: clamp(12px, 0.42em, 17px);
    margin-left: 0.1em;
    border-radius: 50%;
    background: #2f8df2;
    color: transparent;
    line-height: 1;
    vertical-align: -0.34em;
    box-shadow: 0 0 0 4px rgba(47, 141, 242, 0.16), 0 0 16px rgba(47, 141, 242, 0.72);
    animation: none;
}

.hero-route-origin::after {
    content: "";
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(94, 179, 255, 0.92);
    border-bottom: 2px solid rgba(94, 179, 255, 0.92);
    display: none;
    transform: translate(-50%, -2px) rotate(45deg);
    animation: none;
}

.process-story.is-enhanced .hero-route-origin {
    animation: hero-route-origin-blink 1.8s ease-in-out infinite;
}

.process-story.is-enhanced .hero-route-origin::after {
    display: block;
    animation: hero-route-down-cue 1.8s ease-in-out infinite;
}

@keyframes hero-route-down-cue {
    0%,
    100% {
        opacity: 0.22;
        transform: translate(-50%, -3px) rotate(45deg);
    }

    50% {
        opacity: 0.92;
        transform: translate(-50%, 3px) rotate(45deg);
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(28px, 5vw, 36px);
    margin: 12px 0;
}

.hero-copy .lead {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 12px;
    color: var(--blue);
}

.lead,
.section-lead {
    color: var(--muted);
    line-height: 1.7;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 16px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #e7f1fd;
    color: var(--navy);
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 600;
    font-size: 13px;
}

.hero-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.panel-header h3 {
    margin: 6px 0 0;
}

.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simple-list li {
    padding: 12px;
    background: #f1f6fd;
    border-radius: 10px;
    border: 1px solid var(--border);
    line-height: 1.5;
}

.panel-footer {
    border-top: 1px solid var(--border);
    padding-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 32px;
}

.section-header h2 {
    margin: 8px 0 12px;
    font-size: clamp(24px, 4vw, 30px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    box-shadow: var(--shadow);
}

.comparison-table {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.comparison-row {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr 1.2fr;
    min-height: 72px;
}

.comparison-row > div {
    padding: 18px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

.comparison-row > div + div {
    border-left: 1px solid var(--border);
}

.comparison-heading {
    min-height: 68px;
    background: #000000;
    color: #ffffff;
    font-weight: 800;
}

.comparison-heading > div {
    border-top: 0;
    padding-top: 6px;
    padding-bottom: 6px;
}

.comparison-heading > div + div {
    border-left: 0;
}

/* Comparison table brand cells and status marks */
.comparison-brand-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 116px;
}

.comparison-brand-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 4px;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.comparison-brand-icon-cr {
    width: clamp(58px, 7vw, 78px);
    height: auto;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.comparison-brand-icon-rc {
    width: min(150px, 78%);
    height: auto;
    padding: 0;
}

.comparison-row:not(.comparison-heading) > div:nth-child(n + 2) {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-row:not(.comparison-heading) > div:first-child {
    font-weight: 800;
    color: var(--navy);
    background: #f8fbff;
}

.check-cell,
.x-cell {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

.check-cell {
    color: #146f2d;
}

.x-cell {
    color: #d21f2b;
}

.comparison-brand-icon-box {
    width: min(260px, calc(100% - 24px));
    margin: 4px 12px;
    padding: 6px 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e7f1fd;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
}

.section.muted {
    background: #eef2f8;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.copy-stack p {
    margin: 0 0 10px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 10px;
}

.checklist li {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f8fbff;
    line-height: 1.5;
}

.callout-stack {
    display: grid;
    gap: 12px;
}

.callout {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}

.callout h4 {
    margin: 0 0 8px;
}


.pricing-card {
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 6px);
    box-shadow: var(--shadow);
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: center;
}

.pricing-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(28px, 5vw, 40px);
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 10px;
}

.pricing-list li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    line-height: 1.5;
}

.pricing-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #146f2d;
    font-weight: 800;
}

.price-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: 0 16px 36px rgba(9, 54, 112, 0.14);
}

.price-kicker,
.price-unit {
    display: block;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.price-amount {
    display: block;
    margin: 6px 0;
    color: var(--navy);
    font-size: clamp(56px, 9vw, 84px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.price-panel__cta-title {
    margin: 0 0 24px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.price-panel p {
    color: var(--muted);
    line-height: 1.6;
    margin: 18px 0;
}

.contact {
    padding-bottom: 80px;
}

.contact-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    align-items: center;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.contact-email {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.contact-email a {
    font-weight: 700;
    color: var(--blue);
}

.site-footer {
    background: linear-gradient(92deg, #17181b 0%, #111216 100%);
    color: #ffffff;
    padding: 64px 0 22px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-shell {
    width: min(1180px, calc(100% - 48px));
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.9fr) repeat(4, minmax(120px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-contact h4 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.02em;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    font-size: 16px;
}

.footer-contact-link i,
.footer-addresses h5 i {
    color: #1392ff;
    font-size: 14px;
}

.footer-addresses {
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    padding-top: 16px;
}

.footer-addresses > div + div {
    border-left: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 18px;
}

.footer-addresses h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.footer-addresses p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.45;
    font-size: 15px;
    max-width: 22ch;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h5 {
    margin: 2px 0 6px;
    font-size: 16px;
    font-weight: 700;
    text-transform: none;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: color var(--transition);
}

.footer-logout-form {
    margin: 0;
}

.footer-logout-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
}

.footer-column a:hover,
.footer-column a:focus-visible,
.footer-logout-form button:hover,
.footer-logout-form button:focus-visible,
.footer-policy-links a:hover,
.footer-policy-links a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible {
    color: #1392ff;
}

.footer-legal {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding-top: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
}

.footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 4px;
}

.footer-policy-links a {
    color: #27a0ff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-size: 14px;
}

.footer-social {
    margin-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    padding-top: 14px;
    display: flex;
    justify-content: center;
    gap: 26px;
}

.footer-social a {
    color: #ffffff;
    font-size: 18px;
}

@media (max-width: 1200px) {
    .footer-contact h4 {
        font-size: 22px;
    }

    .footer-column h5 {
        font-size: 16px;
    }

    .footer-column a {
        font-size: 15px;
    }

    .footer-contact-link,
    .footer-addresses p,
    .footer-addresses h5,
    .footer-legal,
    .footer-policy-links a {
        font-size: 14px;
    }
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
        position: relative;
        z-index: 31;
        border-color: transparent;
        background: rgba(7, 30, 51, 0.92);
        transition: background 180ms ease, transform 180ms ease;
    }

    .nav-panel {
        position: fixed;
        inset: 0;
        min-height: 100dvh;
        background:
            linear-gradient(135deg, rgba(3, 15, 35, 0.38), rgba(17, 8, 38, 0.42)),
            linear-gradient(135deg, #2563eb 0%, #1bddf2 28%, #06b6d4 55%, #8b5cf6 78%, #ec4899 100%);
        padding: max(96px, env(safe-area-inset-top, 0px) + 72px) clamp(32px, 10vw, 96px) max(40px, env(safe-area-inset-bottom, 0px) + 24px);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 28px;
        box-shadow: -18px 0 42px rgba(0, 0, 0, 0.22);
        visibility: hidden;
        transform: translateX(100%);
        transition: transform 850ms cubic-bezier(0.76, 0, 0.24, 1), visibility 0s linear 850ms;
        pointer-events: none;
        overflow-y: auto;
        z-index: 30;
    }

    .nav-panel.open {
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s;
        pointer-events: auto;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(18px, 3.8vh, 36px);
    }

    .nav-link {
        width: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #ffffff;
        font-size: clamp(34px, 10vw, 56px);
        font-weight: 400;
        line-height: 1.05;
        letter-spacing: -0.04em;
        transition: color 160ms ease, transform 160ms ease;
    }

    .nav-link:hover,
    .nav-link:focus-visible {
        background: transparent;
        color: #b9dcff;
        transform: translateX(8px);
    }

    .nav-toggle.is-open {
        background: rgba(5, 23, 40, 0.96);
    }

    .nav-toggle.is-open .hamburger {
        gap: 0;
    }

    .nav-toggle.is-open .hamburger span:nth-child(1) {
        transform: translateY(2px) rotate(45deg);
    }

    .nav-toggle.is-open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-open .hamburger span:nth-child(3) {
        transform: translateY(-2px) rotate(-45deg);
    }

    .hamburger span {
        background: #ffffff;
        transition: transform 220ms ease, opacity 160ms ease;
    }

    .header-actions {
        width: 100%;
        flex-direction: column;
    }

    .nav-panel .ghost-btn {
        border-color: rgba(255, 255, 255, 0.6);
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 26px;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-column h5 {
        font-size: 16px;
    }

    .footer-column a {
        font-size: 15px;
    }

    .footer-contact-link,
    .footer-addresses p,
    .footer-addresses h5,
    .footer-legal,
    .footer-policy-links a {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-panel,
    .nav-link,
    .nav-toggle,
    .hamburger span {
        transition-duration: 1ms;
    }
}


@media (max-width: 640px) {
    .footer-shell {
        width: min(1180px, calc(100% - 32px));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-contact h4 {
        font-size: 21px;
    }

    .footer-addresses {
        grid-template-columns: 1fr;
    }

    .footer-addresses > div + div {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
        padding-left: 0;
        padding-top: 14px;
    }

    .footer-column h5 {
        margin-bottom: 2px;
        font-size: 16px;
    }

    .footer-column a {
        font-size: 15px;
    }

    .footer-legal,
    .footer-social {
        margin-top: 20px;
    }

    .brand-logo {
        width: clamp(260px, 96vw, 360px);
        min-width: 0;
    }

    .hero-mark img {
        min-width: 440px;
    }

    .headline-wordmark {
        gap: 4px;
    }
}

.htmx-intake-shell {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 24px;
    align-items: start;
}

.intake-form-shell {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

.quick-start-shell {
    width: min(100%, 760px);
    margin-inline: auto;
}

.quick-start-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
    padding: 6px;
    border: 1px solid rgba(193, 213, 236, 0.92);
    border-radius: 20px;
    background: linear-gradient(180deg, #edf4fc 0%, #e7f0fa 100%);
    box-shadow: inset 0 1px 2px rgba(9, 54, 112, 0.06);
}

.quick-start-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 78px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform 180ms ease;
}

.quick-start-option:hover {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(193, 213, 236, 0.92);
}

.quick-start-option:focus-visible {
    outline: 3px solid rgba(47, 141, 242, 0.42);
    outline-offset: 2px;
}

.quick-start-option.is-selected {
    color: #ffffff;
    border-color: rgba(47, 141, 242, 0.3);
    background: linear-gradient(135deg, #793c97 0%, var(--purple-end) 100%);
    box-shadow: 0 10px 24px rgba(59, 96, 190, 0.24);
}

.quick-start-option__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
    font-size: 15px;
}

.quick-start-option.is-selected .quick-start-option__icon {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.quick-start-option strong,
.quick-start-option small {
    display: block;
}

.quick-start-option strong {
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.2;
}

.quick-start-option small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.quick-start-option.is-selected small {
    color: rgba(255, 255, 255, 0.82);
}

.quick-start-option__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid rgba(193, 213, 236, 0.92);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    color: transparent;
    font-size: 10px;
}

.quick-start-option.is-selected .quick-start-option__check {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.quick-start-shell {
    transition: opacity 160ms ease;
}

.quick-start-shell.htmx-swapping {
    opacity: 0;
}

.quick-start-form-intro {
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(193, 213, 236, 0.72);
}

.quick-start-form-intro .eyebrow {
    margin: 0 0 6px;
}

.quick-start-form-intro h3 {
    margin: 0 0 5px;
    color: var(--navy);
    font-size: 22px;
}

.quick-start-form-intro p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.intake-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    width: 100%;
}

.intake-submit-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
}

.form-row {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}

.form-row--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
    display: grid;
    gap: 8px;
}

.intake-input {
    border: 1px solid #c7d8ee;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 15px;
    width: 100%;
}

.intake-summary .summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.summary-list {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.feedback-error { color: #9d1c1c; font-size: 14px; margin: 0; }
.form-messages { margin-bottom: 16px; }
.form-message { border-radius: 10px; margin: 0; padding: 10px 12px; }
.form-message-success { background: #e8f7ed; color: #176033; }
.form-message-error { background: #fdecec; color: #9d1c1c; }
.feedback-ok { color: #146f2d; font-size: 14px; margin: 0; }
.feedback-muted { color: var(--muted); font-size: 14px; margin: 0; }

.resolver-shell {
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
}

.resolver-result-card {
    background: var(--surface-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    min-height: 100%;
}

.resolver-code {
    display: block;
    margin: 10px 0 18px;
    color: var(--navy);
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.resolver-result-grid {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.resolver-result-grid dt {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.resolver-result-grid dd {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .pricing-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .htmx-intake-shell,
    .resolver-shell { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .form-row--split {
        grid-template-columns: 1fr;
    }

    .quick-start-selector {
        grid-template-columns: 1fr;
    }

    .quick-start-option {
        min-height: 68px;
    }
}

@media (max-width: 760px) {
    .comparison-row,
    .comparison-heading {
        grid-template-columns: 1fr;
    }

    .comparison-heading {
        display: none;
    }

    .comparison-brand-heading {
        justify-content: flex-start;
    }

    .comparison-row {
        min-height: 0;
        border-top: 1px solid var(--border);
    }

    .comparison-row:first-of-type {
        border-top: 0;
    }

    .comparison-row > div,
    .comparison-row > div + div {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .comparison-row > div:first-child {
        border-top: 0;
    }
}

.process-story {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.process-story .splash-inner {
    z-index: 3;
}

.process-section {
    position: relative;
    overflow: hidden;
}

@keyframes hero-route-origin-blink {
    0%,
    100% {
        opacity: 0.62;
        box-shadow: 0 0 0 3px rgba(47, 141, 242, 0.12), 0 0 12px rgba(47, 141, 242, 0.5);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(47, 141, 242, 0.06), 0 0 24px rgba(47, 141, 242, 0.88);
    }
}

.process-section::before,
.process-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    opacity: 0.45;
}

.process-section::before {
    width: 320px;
    height: 320px;
    left: -120px;
    top: 40px;
    background: radial-gradient(circle, rgba(47, 141, 242, 0.22), transparent 68%);
}

.process-section::after {
    width: 280px;
    height: 280px;
    right: -110px;
    bottom: 20px;
    background: radial-gradient(circle, rgba(121, 60, 151, 0.2), transparent 68%);
}

.process-shell {
    position: relative;
}

.process-shell > .section-header,
.process-proof-grid {
    position: relative;
    z-index: 3;
}

.process-journey {
    position: relative;
    margin-top: 22px;
    padding: 46px 0;
}

.process-infographic {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(160px, 19vw, 230px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-route {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    will-change: opacity;
}

.process-route__progress {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.process-route__progress {
    stroke: url(#process-route-gradient);
    stroke-width: 8;
    filter: drop-shadow(0 7px 12px rgba(47, 141, 242, 0.24));
}

.process-route-traveler {
    --process-traveler-scale: 1;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: #2563eb;
    opacity: 0;
    box-shadow: 0 5px 12px rgba(47, 141, 242, 0.34);
    pointer-events: none;
    transform: translate(-50%, -50%) scale(var(--process-traveler-scale));
    transform-origin: center;
    will-change: transform, opacity;
}

.process-step {
    position: relative;
    width: min(500px, 45%);
    margin: 0;
}

.process-step--editorial {
    z-index: 3;
    min-height: 280px;
    padding: 72px 28px 28px;
}

.process-step--editorial:nth-child(even) {
    align-self: flex-end;
}

.process-step--editorial.process-step--portrait {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    align-self: stretch;
    gap: clamp(120px, 15vw, 190px);
    width: 100%;
    min-height: 440px;
    padding: 42px 40px;
}

.process-step-copy {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 20px;
}

.process-step-copy::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -76px -62px;
    background: radial-gradient(ellipse at center, rgba(238, 244, 251, 0.98) 36%, rgba(238, 244, 251, 0.84) 58%, rgba(238, 244, 251, 0) 78%);
    pointer-events: none;
}

.process-step-copy h3 {
    max-width: 13ch;
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 4.3vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.process-step-copy p {
    max-width: 42ch;
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 18px);
    line-height: 1.68;
}

.process-step--portrait .process-step-copy {
    width: min(100%, 400px);
    justify-self: start;
}

.process-step-portrait {
    position: relative;
    z-index: 3;
    width: min(100%, 400px);
    aspect-ratio: 1;
    justify-self: end;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 24px 58px rgba(9, 54, 112, 0.18);
    opacity: 1;
    transform: none;
    transition: opacity 720ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.process-step-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-story.is-enhanced .process-step-portrait {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
}

.process-story.is-enhanced .process-step--portrait.is-reached .process-step-portrait {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.process-step--final {
    --process-final-tint: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(120px, 15vw, 190px);
    width: 100%;
    min-height: 420px;
    margin-top: clamp(20px, 4vw, 48px);
    padding: clamp(68px, 8vw, 100px) clamp(42px, 7vw, 80px);
}

.process-final-surface {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(139, 92, 246, 0.16);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 42px rgba(9, 54, 112, 0.08);
}

.process-final-surface::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.26));
    opacity: var(--process-final-tint);
    will-change: opacity;
}

.process-final-target {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.process-final-heading,
.process-final-body {
    position: relative;
    z-index: 3;
}

.process-final-heading {
    display: grid;
    gap: 16px;
}

.process-final-kicker {
    color: #8b5cf6;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.process-step--final h3 {
    max-width: 13ch;
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 4.4vw, 50px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.process-final-body {
    display: grid;
    gap: 24px;
}

.process-final-body p {
    max-width: 42ch;
    margin: 0;
    color: var(--text);
    font-size: clamp(16px, 1.6vw, 18px);
    line-height: 1.65;
}

.process-final-tag {
    justify-self: start;
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 10px 17px 10px 14px;
    border: 1px solid rgba(139, 92, 246, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(9, 54, 112, 0.08);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.process-final-tag__icon {
    color: #dc2626;
    font-size: 22px;
}

.process-final-tag__copy {
    display: grid;
    gap: 3px;
}

.process-final-tag__label {
    line-height: 1.2;
}

.process-final-tag__subtext {
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: none;
}

.process-final-tag:hover,
.process-final-tag:focus-visible {
    border-color: rgba(236, 72, 153, 0.58);
    box-shadow: 0 14px 28px rgba(9, 54, 112, 0.14);
    transform: translateY(-2px);
}

.process-final-tag:focus-visible {
    outline: 3px solid rgba(47, 141, 242, 0.32);
    outline-offset: 3px;
}

.process-step-number {
    position: absolute;
    top: 10px;
    right: -38px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 76px;
    min-height: 46px;
    padding: 8px 8px 8px 15px;
    border: 4px solid #eef4fb;
    border-radius: 999px;
    background: #0a2c52;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    box-shadow: 0 14px 26px rgba(12, 47, 97, 0.22);
}

.process-step--editorial:nth-child(even) .process-step-number {
    right: auto;
    left: -38px;
    flex-direction: row-reverse;
    padding-right: 15px;
    padding-left: 8px;
}

.process-step--editorial.process-step--portrait .process-step-number {
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
}

.process-route-stop {
    display: block;
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, #1bddf2, #8b5cf6 62%, #ec4899);
    box-shadow: 0 0 0 0 rgba(47, 141, 242, 0.35);
    transition: box-shadow 260ms ease, transform 260ms ease;
}

.process-step.is-reached .process-route-stop {
    box-shadow: 0 0 0 8px rgba(47, 141, 242, 0.16);
    transform: scale(1.08);
}

.process-proof-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.process-proof-grid div {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    transform: translateY(0);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.process-proof-grid div:hover,
.process-proof-grid div:focus-within {
    transform: translateY(-5px);
    border-color: rgba(47, 141, 242, 0.32);
    box-shadow: 0 18px 36px rgba(9, 54, 112, 0.12);
}

.process-proof-grid strong,
.process-proof-grid span {
    display: block;
}

.process-proof-grid strong {
    color: var(--navy);
    margin-bottom: 6px;
}

.process-proof-grid span {
    color: var(--muted);
    line-height: 1.5;
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .hero-audience-option,
    .process-story.is-enhanced .hero-route-origin,
    .process-story.is-enhanced .hero-route-origin::after {
        transition: none;
        animation: none;
    }

    .hero-route-origin {
        opacity: 1;
    }

    .process-step-portrait,
    .process-route-stop,
    .process-proof-grid div {
        transition: none;
    }

    .process-story.is-enhanced .process-step-portrait {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 900px) {
    .process-proof-grid {
        grid-template-columns: 1fr;
    }

    .process-journey {
        margin-top: 4px;
        padding: 40px 0;
    }

    .process-section .process-infographic {
        gap: clamp(136px, 30vw, 176px);
    }

    .process-section .process-step--editorial {
        width: calc(100% - 34px);
        min-height: 270px;
        padding: 66px 18px 28px;
    }

    .process-section .process-step--editorial.process-step--portrait {
        grid-template-columns: 1fr;
        align-self: stretch;
        gap: 72px;
        width: 100%;
        min-height: 0;
        padding: 66px 18px 34px;
    }

    .process-step-copy {
        gap: 16px;
    }

    .process-step-copy::before {
        inset: -62px -34px;
    }

    .process-step-copy h3 {
        max-width: 12ch;
        font-size: clamp(32px, 10vw, 42px);
    }

    .process-step-copy p {
        font-size: 16px;
    }

    .process-step--portrait .process-step-copy {
        width: min(100%, 320px);
    }

    .process-step-portrait {
        width: min(78vw, 300px);
    }

    .process-section .process-step--final {
        grid-template-columns: 1fr;
        align-content: space-between;
        gap: clamp(112px, 31vw, 150px);
        width: 100%;
        min-height: 540px;
        margin-top: 8px;
        padding: 44px 26px;
    }

    .process-step--final h3 {
        max-width: 12ch;
        font-size: clamp(32px, 9.5vw, 40px);
    }

    .process-final-body {
        gap: 18px;
    }

    .process-final-surface {
        border-radius: 22px;
    }

    .process-step-number {
        top: 10px;
        right: -18px;
    }

    .process-step--editorial:nth-child(even) .process-step-number {
        right: auto;
        left: -18px;
    }

    .process-step--editorial.process-step--portrait .process-step-number {
        top: 48%;
        right: auto;
        left: 50%;
    }

    .process-route__progress {
        stroke-width: 5;
    }

    .process-route-traveler {
        width: 14px;
        height: 14px;
        border-width: 2px;
    }

    .process-proof-grid {
        margin-top: 42px;
    }
}

/* Layout alignment refactor: scoped shells and named layout cells keep every section on the same grid. */
.section-shell {
    display: grid;
    gap: 32px;
}

.section-shell > .section-header {
    margin-bottom: 0;
}

.hero__content {
    max-width: 1120px;
}

.feature-grid--aligned {
    align-items: stretch;
}

.feature-card {
    min-height: 100%;
}

.feature-card__body {
    display: grid;
    align-content: start;
    gap: 8px;
}

.feature-card__body h3,
.feature-card__body p,
.feature-card > h3,
.feature-card > p {
    margin: 0;
}

.comparison-table--aligned {
    width: 100%;
}

.comparison-row {
    align-items: stretch;
}

.comparison-cell {
    min-width: 0;
}

.comparison-cell--feature {
    display: flex;
    align-items: center;
}

.process-layout {
    align-items: initial;
}

.process-proof-layout {
    align-items: stretch;
}

.process-proof-layout > div {
    height: 100%;
}

.pricing-layout {
    width: min(1100px, calc(100% - 32px));
}

.pricing-layout__copy,
.pricing-layout__panel {
    min-width: 0;
}

.contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    align-items: center;
}

.contact-layout__copy {
    min-width: 0;
}

.contact-layout .contact-email {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .section-shell {
        gap: 24px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .comparison-cell--feature,
    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(n + 2) {
        justify-content: flex-start;
        text-align: left;
    }

    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(2)::before {
        content: "Compensation Reports: ";
        margin-right: 8px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
    }

    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(3)::before {
        content: "RC Reports: ";
        margin-right: 8px;
        color: var(--muted);
        font-size: 13px;
        font-weight: 800;
    }
}

/* Pricing tabs sit on a layered paper card, like folder tabs attached to a sheet. */
.pricing-card {
    position: relative;
    margin-top: 64px;
    padding-top: 76px;
    overflow: visible;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(193, 213, 236, 0.82);
    border-radius: 28px;
    box-shadow:
        0 22px 44px rgba(9, 54, 112, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.pricing-card::before,
.pricing-card::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    border-radius: 28px;
    pointer-events: none;
}

.pricing-card::before {
    top: 10px;
    bottom: -10px;
    z-index: -2;
    background: linear-gradient(180deg, rgba(237, 244, 252, 0.96) 0%, rgba(230, 238, 248, 0.94) 100%);
    box-shadow: 0 14px 26px rgba(9, 54, 112, 0.06);
}

.pricing-card::after {
    top: 0;
    height: 70px;
    z-index: 0;
    background: linear-gradient(180deg, rgba(231, 239, 249, 0.78) 0%, rgba(248, 251, 255, 0) 100%);
    border-radius: 28px 28px 0 0;
    opacity: 0.72;
}

.pricing-tab-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pricing-tabs {
    position: absolute;
    top: -28px;
    left: 26px;
    display: flex;
    align-items: flex-end;
    width: min(640px, calc(100% - 52px));
    min-height: 0;
    padding: 0;
    overflow: visible;
    z-index: 2;
    transform: none;
    isolation: isolate;
}

.pricing-tabs::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 0;
    height: 14px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, rgba(248, 251, 255, 1) 0%, rgba(248, 251, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.pricing-tab {
    position: relative;
    min-height: 64px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    flex: 0 1 auto;
    padding: 12px 20px 13px;
    color: var(--navy);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(241, 246, 252, 0.96) 100%
    );
    border: 1px solid rgba(191, 208, 230, 0.92);
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 6px 16px rgba(9, 54, 112, 0.06);
    cursor: pointer;
    transition:
        transform 180ms ease,
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
    transform-origin: bottom center;
}

.pricing-tab:hover,
.pricing-tab:focus-visible {
    color: var(--navy);
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 8px 18px rgba(9, 54, 112, 0.08);
}

.pricing-tab + .pricing-tab {
    margin-left: -8px;
}

.pricing-tab--individual {
    z-index: 1;
    transform: translateY(6px);
}

.pricing-tab--firm {
    z-index: 2;
    transform: translateY(8px);
}

.pricing-tab::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: -1px;
    height: 10px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0) 100%);
    border-radius: 0 0 8px 8px;
    pointer-events: none;
}

.pricing-tab__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 16px;
    color: inherit;
}

.pricing-tab__content {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.pricing-tab__label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: none;
    white-space: nowrap;
}

.pricing-tab strong {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    font-size: clamp(18px, 2.1vw, 24px);
    line-height: 1;
}

.pricing-tab strong span {
    font-size: 13px;
    letter-spacing: -0.01em;
}

#pricing-tab-individual:checked ~ .pricing-tabs .pricing-tab--individual,
#pricing-tab-firm:checked ~ .pricing-tabs .pricing-tab--firm {
    color: #ffffff;
    background: linear-gradient(135deg, #793C97 0%, var(--purple-end) 100%);
    border-color: rgba(47, 141, 242, 0.34);
    box-shadow: 0 10px 24px rgba(9, 54, 112, 0.12);
    transform: translateY(5px) scale(1.01);
    z-index: 4;
}

#pricing-tab-individual:checked ~ .pricing-tabs .pricing-tab--individual::after,
#pricing-tab-firm:checked ~ .pricing-tabs .pricing-tab--firm::after {
    left: -1px;
    right: -1px;
    bottom: -2px;
    height: 14px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 1) 0%, rgba(248, 251, 255, 0) 100%);
}

.pricing-panels {
    grid-column: 1 / -1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.pricing-panel {
    display: none;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 24px;
    align-items: center;
}

#pricing-tab-individual:checked ~ .pricing-panels .pricing-panel--individual,
#pricing-tab-firm:checked ~ .pricing-panels .pricing-panel--firm {
    display: grid;
}

#pricing-tab-firm:checked ~ .pricing-panels .pricing-panel--firm .primary-btn {
    width: 100%;
}

.login-screen {
    min-height: 72vh;
    padding: 14px 9px;
    background:
        radial-gradient(circle at top left, rgba(19, 146, 255, 0.22), transparent 34%),
        linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}

.login-shell {
    display: grid;
    place-items: center;
}

.login-card {
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 8px);
    box-shadow: 0 24px 60px rgba(9, 54, 112, 0.16);
    padding: 34px;
}

.login-card__intro h1 {
    margin: 8px 0 10px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 44px);
    letter-spacing: -0.05em;
}

.login-card__intro p {
    margin: 0 0 24px;
    color: var(--muted);
    line-height: 1.6;
}

.portal-login-form {
    display: grid;
    gap: 16px;
}

.form-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.form-field__assist,
.auth-card__footer a,
.auth-secondary-link {
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
}

.auth-card {
    display: grid;
    gap: 22px;
}

.auth-card .login-card__intro p {
    margin-bottom: 0;
}

.auth-card--status {
    justify-items: center;
    text-align: center;
}

.auth-status-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(8, 120, 209, 0.12);
    color: var(--blue);
    font-size: 26px;
}

.auth-status-icon--success {
    background: rgba(20, 111, 45, 0.12);
    color: #146f2d;
}

.auth-status-icon--warning {
    background: rgba(184, 105, 0, 0.12);
    color: #9b5900;
}

.auth-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f2f7fc;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.auth-privacy-note i {
    margin-top: 3px;
    color: var(--blue);
}

.auth-card__footer {
    padding-top: 18px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.auth-actions {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: 100%;
}

.auth-actions .primary-btn {
    justify-content: center;
    width: 100%;
}

.auth-password-help {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.auth-password-help ul,
.feedback-error ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.login-options,
.alternate-portal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 14px;
}

.login-options a,
.alternate-portal a {
    color: var(--blue);
    font-weight: 800;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portal-login-submit {
    width: 100%;
    justify-content: center;
    border: 0;
}

/* Accounting-firm workspace */
.firm-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.firm-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.firm-dashboard-link:hover,
.firm-dashboard-link:focus-visible {
    background: rgba(255, 255, 255, 0.12);
}

.firm-switcher-form select {
    max-width: 190px;
    padding: 7px 28px 7px 9px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9px;
    background: #142b45;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
}

.firm-checkout-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
}

.feature-list {
    display: grid;
    gap: 11px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 27px;
    color: var(--muted);
    line-height: 1.5;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #168052;
    font-weight: 900;
}

.firm-page {
    min-height: 68vh;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.firm-shell {
    display: grid;
    gap: 24px;
}

.firm-shell--narrow {
    max-width: 900px;
}

.firm-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.firm-page-header h1 {
    margin: 7px 0 8px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 44px);
}

.firm-workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 18px;
    align-items: start;
}

.firm-credit-total {
    color: var(--navy);
    font-size: clamp(44px, 8vw, 72px);
    line-height: 1;
}

.firm-filter-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.firm-filter-bar label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.firm-status-filter {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.firm-status-filter__label {
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.firm-status-filter__dropdown {
    position: relative;
}

.firm-status-filter__dropdown > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    list-style: none;
    min-height: 44px;
}

.firm-status-filter__dropdown > summary::-webkit-details-marker {
    display: none;
}

.firm-status-filter__dropdown > summary::after {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    content: "";
    height: 7px;
    margin-left: 12px;
    transform: rotate(45deg) translateY(-2px);
    width: 7px;
}

.firm-status-filter__options {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 4px;
    left: 0;
    margin-top: 6px;
    min-width: 220px;
    padding: 8px;
    position: absolute;
    top: 100%;
    z-index: 20;
}

.firm-filter-bar .firm-status-filter__options label {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: grid;
    font-weight: 600;
    gap: 9px;
    grid-template-columns: auto 1fr;
    padding: 8px;
}

.firm-filter-bar .firm-status-filter__options label:hover {
    background: var(--surface);
}

.firm-status-filter__options input {
    accent-color: var(--navy);
    height: 17px;
    margin: 0;
    width: 17px;
}

.firm-report-table {
    overflow-x: auto;
}

.billing-table-row {
    display: grid;
    grid-template-columns: minmax(150px, 1.2fr) minmax(130px, 1fr) minmax(135px, 0.9fr) minmax(130px, 1fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr) minmax(115px, 0.8fr);
    min-width: 980px;
}

.billing-table-row + .billing-table-row {
    border-top: 1px solid var(--border);
}

.billing-table-row > span {
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
}

.billing-table-head {
    background: var(--navy);
    color: #ffffff;
    font-weight: 800;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 9px;
}

.table-actions a,
.table-actions button {
    color: var(--blue);
    font-weight: 800;
}

.table-actions form {
    display: inline;
}

.table-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.status-pill {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e9f1fa;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.status-pill--ready_for_review,
.status-pill--in_review {
    background: #fff1cc;
    color: #6a4b00;
}

.status-pill--issued {
    background: #dff5e9;
    color: #0d613c;
}

.status-pill--archived {
    background: #eceff3;
    color: #5b6572;
}

.firm-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ghost-btn--danger {
    border-color: #e0aaaa;
    color: #9d1c1c;
}

.firm-branding-workspace {
    position: relative;
    width: 100%;
    overflow: visible;
}

.firm-branding-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    min-height: 24px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.firm-branding-status.is-active {
    opacity: 1;
}

.firm-branding-status.is-saved {
    color: #176033;
}

.firm-branding-status.is-error {
    color: #9d1c1c;
}

.firm-branding-workspace.htmx-request .firm-logo-actions,
.firm-branding-workspace.htmx-request .firm-typography-form {
    opacity: 0.65;
    pointer-events: none;
}

.firm-logo-preview {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border: 1px solid #c9d8ea;
    border-radius: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
        linear-gradient(135deg, #ffffff, #eaf2fb);
}

.firm-logo-preview__canvas {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 38px;
}

.firm-logo-preview--editable .firm-logo-preview__canvas {
    padding-bottom: 94px;
}

.firm-logo-preview img {
    width: auto;
    max-width: min(100%, 480px);
    max-height: 170px;
    object-fit: contain;
}

.firm-logo-actions {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px;
    border: 1px solid rgba(177, 196, 218, 0.9);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 9px 24px rgba(9, 54, 112, 0.14);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: opacity var(--transition);
}

.firm-logo-actions form {
    display: flex;
    margin: 0;
}

.firm-logo-file-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0;
    white-space: nowrap;
}

.firm-logo-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 9px 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.firm-logo-action--primary {
    background: var(--navy);
    color: #ffffff;
}

.firm-logo-action--danger {
    border-color: #ead0d0;
    color: #a12222;
}

.firm-logo-action:hover,
.firm-logo-action:focus-visible,
.firm-logo-action:focus-within {
    border-color: #9fc8ef;
    box-shadow: 0 0 0 3px rgba(47, 141, 242, 0.16);
    outline: none;
}

.firm-logo-action--primary:hover,
.firm-logo-action--primary:focus-within {
    background: #123d6c;
}

.firm-logo-action--danger:hover,
.firm-logo-action--danger:focus-visible {
    border-color: #dba9a9;
    background: #fff7f7;
    color: #861919;
}

.firm-logo-guidance {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 15px;
    border: 1px solid #d9e6f4;
    border-radius: 12px;
    background: #f7faff;
    color: var(--muted);
}

.firm-logo-guidance i {
    margin-top: 3px;
    color: var(--blue);
}

.firm-logo-guidance p,
.firm-typography__heading p,
.firm-font-preview p {
    margin: 0;
}

.firm-branding-field-error {
    margin-top: 10px;
}

.firm-typography {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.firm-typography__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.firm-typography__heading h2 {
    margin: 3px 0 7px;
    color: var(--navy);
    font-size: 24px;
}

.firm-typography__heading > div > p:last-child {
    max-width: 720px;
    color: var(--muted);
}

.firm-font-preview {
    display: grid;
    gap: 8px;
    min-height: 180px;
    margin-bottom: 18px;
    padding: 24px;
    border: 1px solid #d5e2f1;
    border-radius: 14px;
    background: #fbfdff;
    color: var(--navy);
}

.report-font--inter {
    font-family: 'Inter', Arial, sans-serif;
}

.report-font--arial {
    font-family: Arial, Helvetica, sans-serif;
}

.report-font--aptos {
    font-family: Aptos, Calibri, Arial, sans-serif;
}

.report-font--baskerville {
    font-family: Baskerville, 'Times New Roman', serif;
}

.report-font--book-antiqua {
    font-family: 'Book Antiqua', Palatino, serif;
}

.report-font--calibri {
    font-family: Calibri, Arial, sans-serif;
}

.report-font--cambria {
    font-family: Cambria, Georgia, serif;
}

.report-font--century-gothic {
    font-family: 'Century Gothic', Arial, sans-serif;
}

.report-font--franklin-gothic {
    font-family: 'Franklin Gothic Medium', Arial, sans-serif;
}

.report-font--garamond {
    font-family: Garamond, 'Times New Roman', serif;
}

.report-font--georgia {
    font-family: Georgia, 'Times New Roman', serif;
}

.report-font--gill-sans {
    font-family: 'Gill Sans', 'Gill Sans MT', Arial, sans-serif;
}

.report-font--helvetica {
    font-family: Helvetica, Arial, sans-serif;
}

.report-font--palatino {
    font-family: Palatino, 'Palatino Linotype', serif;
}

.report-font--roboto {
    font-family: Roboto, Arial, sans-serif;
}

.report-font--source-sans-3 {
    font-family: 'Source Sans 3', Arial, sans-serif;
}

.report-font--tahoma {
    font-family: Tahoma, Verdana, sans-serif;
}

.report-font--times-new-roman {
    font-family: 'Times New Roman', Times, serif;
}

.report-font--trebuchet-ms {
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

.report-font--verdana {
    font-family: Verdana, Geneva, sans-serif;
}

.firm-font-preview__label {
    color: var(--blue);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.firm-font-preview h3 {
    margin: 2px 0 3px;
    font-size: 26px;
}

.firm-font-preview__title {
    font-size: 19px;
    font-weight: 700;
}

.firm-typography-form {
    max-width: 460px;
    transition: opacity var(--transition);
}

.firm-typography-control {
    display: grid;
    gap: 8px;
}

.firm-typography-control__label {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.firm-font-select {
    width: 100%;
    min-height: 50px;
    padding: 10px 42px 10px 14px;
    border: 1px solid #b9cce2;
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--navy);
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(9, 54, 112, 0.06);
}

.firm-font-select:hover {
    border-color: #7fb4e7;
}

.firm-font-select:focus-visible {
    border-color: #7fb4e7;
    outline: 3px solid rgba(47, 141, 242, 0.2);
    outline-offset: 2px;
}

.firm-font-select option {
    padding-block: 8px;
    background: #ffffff;
    color: var(--navy);
}

.firm-typography-control--error .firm-font-select {
    border-color: #c75454;
}

.firm-branding-read-only {
    margin: 0;
}

@media (max-width: 620px) {
    .firm-logo-preview__canvas,
    .firm-logo-preview--editable .firm-logo-preview__canvas {
        min-height: 245px;
        padding: 28px 20px 102px;
    }

    .firm-logo-actions {
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: stretch;
    }

    .firm-logo-actions form {
        flex: 1 1 0;
    }

    .firm-logo-action {
        flex: 1 1 0;
        width: 100%;
    }

    .firm-typography__heading {
        display: grid;
    }

    .firm-font-preview {
        padding: 19px;
    }
}

@media (max-width: 900px) {
    .firm-header-tools {
        width: 100%;
        flex-wrap: wrap;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .firm-switcher-form,
    .firm-switcher-form select {
        width: 100%;
        max-width: none;
    }

    .firm-checkout-grid,
    .firm-workspace-grid {
        grid-template-columns: 1fr;
    }

    .firm-filter-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .firm-page-header {
        align-items: stretch;
        flex-direction: column;
    }

    .firm-filter-bar {
        grid-template-columns: 1fr;
    }
}

.portal-login-submit:disabled,
.portal-login-submit.is-loading {
    cursor: wait;
    opacity: 0.82;
}

.alternate-portal {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.portal-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #f8fbff;
    color: var(--navy);
}

.field-help {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.field-help ul {
    margin: 0;
    padding-left: 18px;
}

.portal-password-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.form-field-password {
    min-width: 0;
}

.field-help-password-confirm {
    color: #d21f2b;
}

@media (max-width: 760px) {
    .portal-password-row {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        margin-top: 126px;
        padding-top: 92px;
    }

    .pricing-card::before {
        left: 10px;
        right: 10px;
    }

    .pricing-card::after {
        height: 96px;
        background: linear-gradient(180deg, rgba(225, 236, 249, 0.9) 0%, rgba(243, 248, 255, 0) 100%);
    }

    .pricing-tabs {
        top: -106px;
        left: 22px;
        width: calc(100% - 44px);
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-tab {
        min-height: 64px;
        padding: 12px 16px;
        width: calc(100% - 18px);
        min-width: 0;
        justify-content: flex-start;
    }

    .pricing-tab + .pricing-tab {
        margin-left: 12px;
        margin-top: -8px;
    }

    .pricing-tab--individual {
        transform: translateY(5px);
    }

    .pricing-tab--firm {
        transform: translateY(8px);
    }

    .pricing-panel {
        grid-template-columns: 1fr;
    }

    .login-screen {
        padding-top: 72px;
    }

    .login-card {
        padding: 24px;
    }
}

.firm-tier-select {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 16px 0 10px;
    text-align: left;
}

.firm-tier-select > label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.firm-tier-select select {
    width: 100%;
    appearance: none;
    border: 1px solid var(--border);
    border-radius: 14px;
    background:
        linear-gradient(45deg, transparent 50%, var(--navy) 50%) calc(100% - 20px) 50% / 7px 7px no-repeat,
        linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    padding: 14px 44px 14px 16px;
    box-shadow: 0 10px 24px rgba(9, 54, 112, 0.08);
}

.firm-tier-select select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(14, 117, 188, 0.14);
    outline: none;
}

.firm-tier-select--enhanced > select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.firm-tier-picker {
    position: relative;
}

.firm-tier-picker__trigger {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(47, 141, 242, 0.58);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
    color: var(--text);
    box-shadow:
        0 10px 24px rgba(9, 54, 112, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.firm-tier-picker__trigger:hover {
    border-color: var(--blue);
    background: #ffffff;
}

.firm-tier-picker__trigger:focus-visible,
.firm-tier-picker__trigger[aria-expanded="true"] {
    border-color: var(--blue);
    box-shadow:
        0 0 0 4px rgba(14, 117, 188, 0.14),
        0 14px 30px rgba(9, 54, 112, 0.12);
    outline: none;
}

.firm-tier-picker__chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 180ms ease;
}

.firm-tier-picker__trigger[aria-expanded="true"] .firm-tier-picker__chevron {
    transform: translateY(3px) rotate(225deg);
}

.firm-tier-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    gap: 4px;
    max-height: 260px;
    margin: 0;
    padding: 7px;
    overflow-y: auto;
    border: 1px solid rgba(193, 213, 236, 0.96);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 22px 44px rgba(9, 54, 112, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.firm-tier-picker__menu[hidden] {
    display: none;
}

.firm-tier-picker__option {
    position: relative;
    padding: 11px 38px 11px 12px;
    border-radius: 11px;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    cursor: pointer;
    outline: none;
}

.firm-tier-picker__option:hover,
.firm-tier-picker__option:focus-visible {
    background: #edf5ff;
    color: var(--navy);
}

.firm-tier-picker__option[aria-selected="true"] {
    color: #ffffff;
    background: linear-gradient(135deg, #793c97 0%, var(--purple-end) 100%);
    box-shadow: 0 8px 18px rgba(59, 96, 190, 0.22);
}

.firm-tier-picker__option[aria-selected="true"]::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 900;
}

.pricing-tab strong [data-firm-price-display] {
    font-size: inherit;
    letter-spacing: inherit;
}

.pricing-tab__term {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding-bottom: 1px;
}

.pricing-tab strong .pricing-tab__from {
    font-size: 10px;
    letter-spacing: 0.08em;
}

.pricing-tab--firm .pricing-tab__content {
    justify-items: start;
}

.pricing-tab--firm strong {
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .comparison-table {
        overflow: hidden;
    }

    .comparison-row,
    .comparison-heading {
        display: grid;
        grid-template-columns: 0.95fr 1fr 1fr;
        min-height: 56px;
        border-top: 0;
    }

    .comparison-heading {
        background: #000000;
        color: #ffffff;
        font-weight: 800;
    }

    .comparison-row > div,
    .comparison-row > div + div {
        padding: 10px 8px;
        border-top: 1px solid var(--border);
    }

    .comparison-heading > div,
    .comparison-heading > div + div {
        border-top: 0;
        border-left: 0;
        padding: 6px 8px;
    }

    .comparison-row > div + div {
        border-left: 1px solid var(--border);
    }

    .comparison-row > div:first-child {
        border-top: 1px solid var(--border);
    }

    .comparison-row:first-of-type > div {
        border-top: 0;
    }

    .comparison-cell--feature {
        justify-content: flex-start;
        text-align: left;
        font-size: 13px;
        line-height: 1.35;
    }

    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(n + 2) {
        justify-content: center;
        text-align: center;
        font-size: 13px;
        line-height: 1.35;
    }

    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(2)::before,
    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(3)::before {
        content: none;
    }

    .comparison-brand-icon-cr {
        width: min(150px, 100%);
    }

    .comparison-brand-icon-box {
        width: 100%;
        margin: 0;
        padding: 5px 8px;
    }

    .comparison-brand-icon-rc {
        width: min(110px, 100%);
    }

    .check-cell,
    .x-cell {
        font-size: 24px;
    }
}

/* Top-ten web design principles pass: hierarchy, grid, whitespace, contrast,
   readable typography, consistency, balance, responsive behavior, accessibility,
   and clear interaction feedback. */
:root {
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --focus-ring: 0 0 0 4px rgba(47, 141, 242, 0.24);
    --surface-gradient: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--navy);
    font-weight: 800;
    box-shadow: var(--shadow);
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-link:focus-visible {
    transform: translateY(0);
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow);
}

:where(a, button, input, select, textarea, label[role="tab"]):focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

:where(input, select, textarea) {
    min-height: 44px;
}

main:focus-visible {
    outline: none;
}

.section:nth-of-type(odd):not(.hero-splash):not(.muted) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(246, 248, 252, 0));
}

.section {
    padding-block: clamp(32px, 5vw, 56px);
}

.section-header {
    max-width: 780px;
}

.section-header h2,
.pricing-copy h2,
.contact-layout__copy h2,
.login-card__intro h1 {
    max-width: 13ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.section-lead,
.lead,
.feature-card p,
.process-step p,
.price-panel p,
.contact-layout__copy p,
.login-card__intro p {
    max-width: 68ch;
}

.section-header .section-lead {
    margin-inline: auto;
}

.feature-grid,
.process-proof-grid {
    gap: clamp(16px, 2.4vw, 28px);
}

.feature-card,
.price-panel,
.contact-card,
.intake-form,
.login-card,
.comparison-table {
    background: var(--surface-gradient);
}

.feature-card,
.price-panel,
.contact-card,
.intake-form,
.login-card {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover,
.feature-card:focus-within,
.price-panel:hover,
.price-panel:focus-within,
.contact-card:focus-within,
.intake-form:focus-within,
.login-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(47, 141, 242, 0.36);
    box-shadow: 0 22px 48px rgba(9, 54, 112, 0.14);
}

.feature-icon {
    flex: 0 0 auto;
}

.primary-btn,
.ghost-btn,
.nav-link,
.footer-column a,
.footer-contact-link {
    min-height: 44px;
}

.primary-btn,
.ghost-btn {
    padding: 12px 18px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
}

.hero-splash {
    min-height: min(860px, calc(100svh - var(--header-height)));
    padding: clamp(56px, 9vw, 108px) 24px clamp(44px, 7vw, 80px);
}

.splash-inner {
    gap: clamp(14px, 2vw, 24px);
}

.comparison-row:nth-child(even):not(.comparison-heading) > div:not(:first-child) {
    background: rgba(231, 241, 253, 0.42);
}

.check-cell span[aria-hidden="true"],
.x-cell span[aria-hidden="true"] {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    line-height: 1;
    font-family: "Segoe UI Symbol", "Arial Unicode MS", system-ui, sans-serif;
}

.check-cell span[aria-hidden="true"] {
    background: rgba(20, 111, 45, 0.1);
}

.x-cell span[aria-hidden="true"] {
    background: rgba(210, 31, 43, 0.1);
}

.pricing-card,
.contact-card {
    border-radius: 28px;
}

.intake-input,
.portal-login-form input {
    border: 1px solid #b8cce4;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 12px 14px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.intake-input:focus,
.portal-login-form input:focus {
    border-color: var(--blue);
    box-shadow: var(--focus-ring);
    outline: none;
}

.form-field label {
    color: var(--navy);
    font-weight: 800;
}

.required-mark {
    color: #d21f2b;
    margin-left: 4px;
}

.footer-grid {
    row-gap: 36px;
}

@media (max-width: 960px) {
    .nav-panel {
        background: linear-gradient(180deg, #0b6ec9 0%, #0a2c52 100%);
    }

    .nav-panel .primary-btn {
        width: 100%;
    }
}

@media (max-width: 760px) {
    .container,
    .pricing-layout,
    .footer-shell {
        width: min(100% - 28px, 1100px);
    }

    .section-header h2,
    .pricing-copy h2,
    .contact-layout__copy h2,
    .login-card__intro h1 {
        max-width: 16ch;
    }

    .feature-card {
        flex-direction: column;
    }

    .comparison-table {
        border-radius: 18px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

.billing-page {
    min-height: 68vh;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    padding-block: 18px 56px;
}

.billing-shell {
    display: grid;
    gap: 24px;
}

.billing-header h1,
.billing-centered h1 {
    margin: 8px 0 12px;
    color: var(--navy);
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.08;
}

.billing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 18px;
    align-items: start;
}

.billing-stack {
    display: grid;
    gap: 18px;
}

.billing-panel,
.billing-actions {
    background: var(--surface-gradient);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.billing-panel__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.billing-panel__header h2,
.billing-history h2 {
    margin: 2px 0 0;
    color: var(--navy);
}

.billing-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #e7f1fd;
    color: var(--blue);
    font-size: 20px;
}

.billing-icon--large {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    border-radius: 18px;
    font-size: 28px;
}

.billing-facts {
    display: grid;
    gap: 12px;
    margin: 0;
}

.billing-facts div {
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.billing-facts--compact div {
    grid-template-columns: minmax(0, 1fr) auto;
}

.billing-facts dt {
    color: var(--muted);
    font-weight: 700;
}

.billing-facts dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.billing-actions {
    display: grid;
    gap: 12px;
}

/* Unified firm portal shell */
.firm-portal-body {
    min-width: 320px;
    background: #f3f7fc;
}

.firm-portal-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #071f3b;
    color: #ffffff;
    box-shadow: 0 8px 28px rgba(7, 31, 59, 0.16);
}

.firm-portal-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: min(1440px, calc(100% - 40px));
    min-height: 64px;
    margin-inline: auto;
}

.firm-portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -0.01em;
}

.firm-portal-brand img {
    width: 210px;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
}

.firm-portal-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.firm-portal-bar__context {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    color: #c9d8e9;
    font-size: 13px;
}

.firm-portal-bar__context span:first-child,
.firm-portal-bar__context strong {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-portal-bar__context strong {
    color: #ffffff;
}

.firm-portal-bar__site-return {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 160ms ease, border-color 160ms ease;
}

.firm-portal-bar__site-return:hover,
.firm-portal-bar__site-return:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.15);
}

.firm-portal-nav-toggle {
    display: none;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    font-size: 18px;
}

.firm-portal {
    min-height: calc(100vh - 64px);
    background:
        radial-gradient(circle at 90% 0%, rgba(47, 141, 242, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}

.firm-portal__frame {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    gap: 30px;
    align-items: start;
    width: min(1440px, calc(100% - 40px));
    margin-inline: auto;
}

.firm-portal__sidebar {
    position: sticky;
    top: 84px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: calc(100vh - 104px);
    max-height: calc(100vh - 104px);
    margin-block: 20px;
    padding: 20px 16px 16px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(180deg, #0a2c52 0%, #071f3b 100%);
    color: #ffffff;
    box-shadow: 0 18px 42px rgba(9, 42, 79, 0.18);
}

.firm-portal__identity {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 2px 0 6px;
}

.firm-portal__site-return {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.firm-portal__site-return:hover,
.firm-portal__site-return:focus-visible {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

.firm-portal__identity-icon,
.firm-portal__avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #8fc8ff;
}

.firm-portal__identity .firm-portal__identity-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 13px;
}

.firm-portal__identity div,
.firm-portal__account div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.firm-portal__identity span:not(.firm-portal__identity-icon),
.firm-portal__account span {
    color: #aec3db;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.firm-portal__identity strong,
.firm-portal__account strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-portal__identity strong {
    display: block;
    padding-inline: 2px;
    font-size: 18px;
    line-height: 1.25;
    white-space: normal;
}

.firm-portal__switcher {
    display: grid;
    gap: 6px;
}

.firm-portal__switcher label {
    color: #aec3db;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.firm-portal__switcher select {
    width: 100%;
    min-height: 42px;
    padding: 8px 32px 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: #123b66;
    color: #ffffff;
    font: inherit;
    font-size: 13px;
}

.firm-portal__primary-action {
    width: 100%;
    min-height: 44px;
    justify-content: center;
    border: 1px solid #7ec0ff;
    background: #ffffff;
    color: #0a4f91;
    box-shadow: none;
}

.firm-portal__primary-action:hover,
.firm-portal__primary-action:focus-visible {
    background: #eaf5ff;
    color: #073866;
}

.firm-portal__nav,
.firm-portal__nav-group,
.firm-portal__nav-links {
    display: grid;
    gap: 7px;
}

.firm-portal__nav {
    gap: 18px;
}

.firm-portal__nav-group > p {
    margin: 0 10px 2px;
    color: #88a5c3;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.firm-portal__nav-link {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #d4e1ef;
    font-size: 13px;
    font-weight: 800;
    transition: color var(--transition), background var(--transition), transform var(--transition);
}

.firm-portal__nav-link i {
    color: #88bceb;
    text-align: center;
}

.firm-portal__nav-link:hover,
.firm-portal__nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.firm-portal__nav-link.is-active {
    background: #ffffff;
    color: #0a2c52;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.firm-portal__nav-link.is-active i {
    color: #0b6ec9;
}

.firm-portal__nav-link.is-active::before {
    content: "";
    position: absolute;
    left: -16px;
    width: 4px;
    height: 24px;
    border-radius: 0 999px 999px 0;
    background: #69b5ff;
}

.firm-portal__account {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    margin-top: auto;
    padding: 14px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.firm-portal__account .firm-portal__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.firm-portal__account button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #aec3db;
    cursor: pointer;
}

.firm-portal__account button:hover,
.firm-portal__account button:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.firm-portal__main {
    min-width: 0;
}

.firm-portal__content {
    display: grid;
    gap: 22px;
    min-width: 0;
    padding: 34px 0 64px;
}

.firm-portal__page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    padding-bottom: 5px;
}

.firm-portal__page-header > div:first-child {
    min-width: 0;
}

.firm-portal__page-header h1 {
    margin: 7px 0 9px;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.firm-portal__page-header .section-lead {
    max-width: 760px;
    margin: 0;
}

.firm-portal__page-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.firm-portal__page-actions:empty {
    display: none;
}

.firm-portal .billing-panel,
.firm-portal .billing-actions {
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(9, 54, 112, 0.08);
}

.firm-portal .billing-actions {
    padding: 16px;
}

.firm-portal-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.firm-portal-stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "icon value"
        "icon note";
    gap: 3px 12px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(9, 54, 112, 0.07);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.firm-portal-stat:hover,
.firm-portal-stat:focus-visible {
    border-color: #a7cdf4;
    box-shadow: 0 12px 28px rgba(9, 54, 112, 0.12);
    transform: translateY(-2px);
}

.firm-portal-stat__icon {
    grid-area: icon;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e8f3ff;
    color: var(--blue);
    font-size: 18px;
}

.firm-portal__identity-icon--logo {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #ffffff;
}

.firm-portal__identity-icon--logo img {
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain;
}

.firm-portal-stat > span:not(.firm-portal-stat__icon),
.firm-billing-summary article div > span {
    grid-area: label;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.firm-portal-stat strong {
    grid-area: value;
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
}

.firm-portal-stat small {
    grid-area: note;
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-portal-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 18px;
    align-items: start;
}

.firm-portal-plan-card .billing-action-btn,
.firm-portal-setup-card .billing-action-btn {
    margin-top: 16px;
}

.firm-portal-setup-card h2 {
    margin: 5px 0 9px;
    color: var(--navy);
}

.firm-portal-setup-card > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.firm-portal-empty-state {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 34px 20px;
    border: 1px dashed #bfd2e7;
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}

.firm-portal-empty-state > span {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e6f2ff;
    color: var(--blue);
    font-size: 22px;
}

.firm-portal-empty-state h3,
.firm-portal-empty-state p {
    margin: 0;
}

.firm-portal-empty-state h3 {
    color: var(--navy);
}

.firm-portal-empty-state p {
    max-width: 460px;
    color: var(--muted);
    line-height: 1.5;
}

.firm-portal-empty-state .primary-btn {
    margin-top: 6px;
}

.firm-portal-empty-state--compact {
    padding-block: 24px;
}

.firm-portal-narrow {
    width: min(900px, 100%);
}

/* Firm profile settings workspace */
.firm-profile-shell {
    display: grid;
    gap: 18px;
    width: min(1160px, 100%);
}

.firm-profile-summary {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid #cfddec;
    border-top: 3px solid #0b6ec9;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(9, 54, 112, 0.07);
}

.firm-profile-summary__identity {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-width: 0;
}

.firm-profile-summary__mark {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    overflow: hidden;
    border: 1px solid #c9dcef;
    border-radius: 12px;
    background: #eaf4ff;
    color: #0b6ec9;
    font-size: 24px;
}

.firm-profile-summary__mark--logo {
    background: #ffffff;
}

.firm-profile-summary__mark img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.firm-profile-summary__identity div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.firm-profile-summary__identity p,
.firm-profile-summary__identity h2,
.firm-profile-summary__identity span {
    margin: 0;
}

.firm-profile-summary__identity p,
.firm-profile-summary__facts dt {
    color: #62748a;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.firm-profile-summary__identity h2 {
    overflow: hidden;
    color: var(--navy);
    font-size: clamp(20px, 2.4vw, 27px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-profile-summary__identity div > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-profile-summary__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(112px, auto));
    margin: 0;
}

.firm-profile-summary__facts > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 2px 18px;
    border-left: 1px solid #dde7f1;
}

.firm-profile-summary__facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #17324d;
    font-size: 13px;
    font-weight: 800;
}

.firm-profile-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
}

.firm-profile-status i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7b8b9d;
    box-shadow: 0 0 0 3px rgba(123, 139, 157, 0.14);
}

.firm-profile-status--active i {
    background: #168052;
    box-shadow: 0 0 0 3px rgba(22, 128, 82, 0.14);
}

.firm-profile-status--pending i {
    background: #b97708;
    box-shadow: 0 0 0 3px rgba(185, 119, 8, 0.14);
}

.firm-profile-status--suspended i,
.firm-profile-status--archived i {
    background: #b4232f;
    box-shadow: 0 0 0 3px rgba(180, 35, 47, 0.14);
}

.firm-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 286px);
    gap: 18px;
    align-items: start;
}

.firm-profile-form,
.firm-profile-form-sections,
.firm-profile-readonly,
.firm-profile-aside {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.firm-profile-error-summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
    border: 1px solid #d28b92;
    border-left: 4px solid #b4232f;
    border-radius: 10px;
    background: #fff7f7;
    color: #7f1d27;
}

.firm-profile-error-summary > i {
    padding-top: 2px;
    font-size: 20px;
    text-align: center;
}

.firm-profile-error-summary h2,
.firm-profile-error-summary p {
    margin: 0;
}

.firm-profile-error-summary h2 {
    font-size: 15px;
    line-height: 1.35;
}

.firm-profile-error-summary p {
    margin-top: 3px;
    color: #7b3c43;
    font-size: 12px;
}

.firm-profile-error-summary ul {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding-left: 18px;
    font-size: 12px;
}

.firm-profile-error-summary a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.firm-profile-section {
    overflow: hidden;
    border: 1px solid #d4e0ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(9, 54, 112, 0.055);
}

.firm-profile-section__header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 19px 22px 17px;
    border-bottom: 1px solid #e0e8f1;
    background: #f8fbfe;
}

.firm-profile-section__icon,
.firm-profile-side-card__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #cbe0f5;
    border-radius: 10px;
    background: #eaf4ff;
    color: #0b6ec9;
    font-size: 16px;
}

.firm-profile-section__header .eyebrow,
.firm-profile-section__header h2,
.firm-profile-section__header p {
    margin: 0;
}

.firm-profile-section__header .eyebrow {
    margin-bottom: 2px;
    font-size: 10px;
}

.firm-profile-section__header h2 {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.firm-profile-section__header div > p:last-child:not(.eyebrow) {
    margin-top: 4px;
    color: #62748a;
    font-size: 12px;
    line-height: 1.5;
}

.firm-profile-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    padding: 22px;
}

.firm-profile-field--wide {
    grid-column: 1 / -1;
}

.firm-profile-field--half {
    width: calc(50% - 10px);
}

.firm-profile-form .form-field {
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.firm-profile-form .form-field label {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #17324d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.005em;
}

.firm-profile-form .intake-input {
    min-height: 44px;
    padding: 10px 12px;
    border-color: #7b91a8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(7, 31, 59, 0.035);
    font-size: 14px;
}

.firm-profile-form .intake-input:hover {
    border-color: #5f7892;
}

.firm-profile-form .intake-input:focus {
    border-color: #0b6ec9;
    box-shadow: var(--focus-ring);
}

.firm-profile-form .form-field--error .intake-input {
    border-color: #c44852;
    background: #fffafa;
}

.firm-profile-form .feedback-error {
    font-size: 12px;
    font-weight: 700;
}

.firm-profile-field-errors {
    display: grid;
    gap: 4px;
}

.firm-profile-field-help {
    color: #66788c;
    font-size: 11px;
    line-height: 1.45;
}

.firm-profile-optional {
    color: #5c6e82;
    font-size: 10px;
    font-weight: 700;
}

.firm-profile-savebar {
    position: sticky;
    bottom: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid #c9d8e7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 32px rgba(7, 31, 59, 0.14);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.firm-profile-savebar__note {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #62748a;
    font-size: 11px;
    line-height: 1.35;
}

.firm-profile-savebar__note > i {
    color: #0b6ec9;
    font-size: 16px;
}

.firm-profile-savebar__note span,
.firm-profile-savebar__note strong {
    display: block;
}

.firm-profile-savebar__note strong {
    color: #17324d;
    font-size: 12px;
}

.firm-profile-savebar__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
}

.firm-profile-save {
    border-color: #0b6ec9;
    background: #0b6ec9;
    box-shadow: 0 7px 18px rgba(11, 110, 201, 0.2);
}

.firm-profile-save:hover,
.firm-profile-save:focus-visible {
    border-color: #08589f;
    background: #08589f;
}

.firm-profile-aside {
    position: sticky;
    top: 84px;
}

.firm-profile-side-card {
    padding: 20px;
    border: 1px solid #d4e0ec;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(9, 54, 112, 0.055);
}

.firm-profile-side-card__icon {
    margin-bottom: 15px;
}

.firm-profile-side-card .eyebrow,
.firm-profile-side-card h2 {
    margin: 0;
}

.firm-profile-side-card h2 {
    margin-top: 4px;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.3;
}

.firm-profile-usage-list {
    display: grid;
    gap: 13px;
    margin: 17px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #e0e8f1;
    list-style: none;
}

.firm-profile-usage-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    color: #62748a;
    font-size: 11px;
    line-height: 1.5;
}

.firm-profile-usage-list li > i {
    display: grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-top: 1px;
    border-radius: 50%;
    background: #e5f5ec;
    color: #168052;
    font-size: 8px;
}

.firm-profile-usage-list strong {
    color: #17324d;
}

.firm-profile-related {
    display: grid;
}

.firm-profile-related h2 {
    margin-bottom: 12px;
}

.firm-profile-related > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    margin-inline: -8px;
    padding: 8px;
    border-top: 1px solid #e5ebf2;
    color: #17324d;
    font-size: 12px;
    transition: background var(--transition), color var(--transition);
}

.firm-profile-related > a:hover,
.firm-profile-related > a:focus-visible {
    background: #f2f7fc;
    color: #0b6ec9;
}

.firm-profile-related > a span {
    display: flex;
    align-items: center;
    gap: 9px;
}

.firm-profile-related > a span i {
    width: 20px;
    color: #0b6ec9;
    text-align: center;
}

.firm-profile-related > a > i {
    color: #7a8ca0;
    font-size: 10px;
}

.firm-profile-readonly__notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #cbddef;
    border-radius: 10px;
    background: #f1f7fd;
    color: #0b6ec9;
}

.firm-profile-readonly__notice p,
.firm-profile-readonly__notice strong,
.firm-profile-readonly__notice span {
    display: block;
    margin: 0;
}

.firm-profile-readonly__notice strong {
    color: #17324d;
    font-size: 12px;
}

.firm-profile-readonly__notice span {
    margin-top: 2px;
    color: #62748a;
    font-size: 11px;
}

.firm-profile-readonly__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: 6px 22px;
}

.firm-profile-readonly__facts > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 15px 0;
    border-top: 1px solid #e6edf4;
}

.firm-profile-readonly__facts > div:nth-child(-n + 2) {
    border-top: 0;
}

.firm-profile-readonly__facts > div:nth-child(odd) {
    padding-right: 18px;
}

.firm-profile-readonly__facts > div:nth-child(even) {
    padding-left: 18px;
    border-left: 1px solid #e6edf4;
}

.firm-profile-readonly__facts .firm-profile-readonly__wide {
    grid-column: 1 / -1;
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
}

.firm-profile-readonly__facts dt {
    color: #586b80;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.firm-profile-readonly__facts dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #17324d;
    font-size: 13px;
    font-weight: 700;
}

.firm-profile-readonly__facts dd a {
    color: #0b6ec9;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.firm-client-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) auto;
    gap: 12px;
    align-items: end;
    margin-top: 18px;
}

.firm-client-filter-bar .form-field {
    margin: 0;
}

.firm-setup-list .saved-report-card.is-complete {
    border-color: #bce8cf;
    background: #f5fff9;
}

.firm-setup-list .saved-report-card h3 i {
    color: #168052;
}

.firm-billing-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.firm-billing-summary article {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
    align-items: center;
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(9, 54, 112, 0.07);
}

.firm-billing-summary article div {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.firm-billing-summary article strong {
    overflow: hidden;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-billing-summary article small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.firm-billing-plan-grid {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 300px);
}

.firm-upgrade-form {
    display: grid;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.firm-upgrade-form .form-field,
.firm-upgrade-form .payment-status {
    margin: 0;
}

.firm-upgrade-preview {
    display: grid;
    gap: 9px;
    padding: 2px 0 0;
}

.firm-upgrade-price {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label amount"
        "note amount";
    gap: 2px 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #c9ddf2;
    border-radius: 10px;
    background: #f4f9ff;
}

.firm-upgrade-price span {
    grid-area: label;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.firm-upgrade-price strong {
    grid-area: amount;
    color: var(--navy);
    font-size: 25px;
    line-height: 1;
}

.firm-upgrade-price small {
    grid-area: note;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.firm-upgrade-preview__loading {
    margin: 0;
    padding: 10px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.firm-payment-method-value {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 10px;
}

.firm-payment-method-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.firm-payment-method-button:hover {
    color: var(--navy);
}

.firm-payment-method-button:focus-visible {
    border-radius: 3px;
    outline: 3px solid rgba(31, 111, 191, 0.24);
    outline-offset: 3px;
}

.firm-subscription-dialog {
    width: min(540px, calc(100% - 32px));
    padding: 28px;
    border: 1px solid #d6e1ee;
    border-radius: 20px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 28px 80px rgba(5, 24, 46, 0.32);
}

.firm-subscription-dialog::backdrop {
    background: rgba(5, 24, 46, 0.62);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.firm-subscription-dialog__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 15px;
    background: #fff0f1;
    color: #b4232f;
    font-size: 22px;
}

.firm-subscription-dialog h2 {
    margin: 6px 0 12px;
    color: var(--navy);
    font-size: clamp(24px, 4vw, 31px);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.firm-subscription-dialog > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.firm-subscription-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.firm-subscription-dialog__actions form {
    margin: 0;
}

.firm-payment-method-dialog__icon {
    background: #eaf4ff;
    color: var(--blue);
}

.firm-payment-method-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.firm-payment-method-form .form-field,
.firm-payment-method-form .payment-status {
    margin: 0;
}

.firm-payment-method-form .firm-subscription-dialog__actions {
    margin-top: 4px;
}

.danger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #a91f2b;
    border-radius: 10px;
    background: #b4232f;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

.danger-btn:hover,
.danger-btn:focus-visible {
    background: #8f1722;
}

.firm-team-members-panel {
    width: 100%;
}

.firm-team-table .billing-table__row--five {
    grid-template-columns: 1.1fr 1.35fr 0.8fr 0.75fr 0.75fr;
}

.firm-team-table__email {
    overflow-wrap: anywhere;
}

.firm-team-control {
    display: grid;
    gap: 7px;
}

.firm-team-control .ghost-btn {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 12px;
}

.firm-team-action-form {
    margin-top: 7px;
}

.firm-team-action-form button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--blue);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
}

.firm-team-action-form--danger button {
    color: #9d1c1c;
}

.billing-cell-note {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.firm-team-pending {
    display: grid;
    gap: 4px;
    margin-top: 28px;
}

.start-report-stage-dialog.firm-team-invite-dialog {
    width: min(590px, calc(100vw - 2rem));
}

.firm-team-invite-dialog .start-report-stage-dialog__content {
    gap: 20px;
}

.firm-team-invite-dialog__heading {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.firm-team-invite-dialog__heading .billing-icon {
    width: 46px;
    height: 46px;
    margin: 0;
}

.firm-team-invite-form {
    display: grid;
    gap: 16px;
}

.firm-team-invite-form .form-field {
    gap: 7px;
}

.firm-team-invite-form .form-field label {
    color: #17324d;
    font-size: 12px;
    font-weight: 800;
}

.firm-team-invite-form .intake-input {
    min-height: 46px;
    border-color: #7b91a8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(7, 31, 59, 0.035);
}

.firm-team-invite-form .intake-input:hover {
    border-color: #5f7892;
}

.firm-team-invite-form .form-field--error .intake-input {
    border-color: #c44852;
    background: #fffafa;
}

.firm-team-invite-errors {
    padding: 12px 14px;
    border: 1px solid #d28b92;
    border-left: 4px solid #b4232f;
    border-radius: 9px;
    background: #fff7f7;
}

.firm-team-invite-dialog__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cbddef;
    border-radius: 9px;
    background: #f1f7fd;
    color: #51667d;
    font-size: 12px;
    line-height: 1.5;
}

.firm-team-invite-dialog__note i {
    margin-top: 2px;
    color: #0b6ec9;
}

.firm-portal-backdrop[hidden] {
    display: none;
}

body.firm-portal-nav-open {
    overflow: hidden;
}

@media (max-width: 1180px) {
    .firm-portal-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .firm-profile-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .firm-profile-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .firm-profile-summary__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .firm-profile-summary__facts > div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .firm-profile-aside {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .firm-portal-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .firm-portal-overview-grid > aside {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .firm-portal-bar__inner,
    .firm-portal__frame {
        width: min(100% - 28px, 1440px);
    }

    .firm-portal-bar__inner {
        justify-content: flex-start;
    }

    .firm-portal-nav-toggle {
        display: grid;
    }

    .firm-portal-brand {
        margin-right: auto;
    }

    .firm-portal-brand img {
        width: 180px;
    }

    .firm-portal__frame {
        display: block;
    }

    .firm-portal__sidebar {
        position: fixed;
        inset: 64px auto 0 0;
        z-index: 60;
        width: min(320px, 88vw);
        min-height: 0;
        max-height: none;
        margin: 0;
        padding: 22px 18px;
        border: 0;
        border-radius: 0 18px 18px 0;
        box-shadow: 22px 0 46px rgba(5, 24, 46, 0.3);
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    .firm-portal__sidebar.is-open {
        transform: translateX(0);
    }

    .firm-portal-backdrop {
        position: fixed;
        inset: 64px 0 0;
        z-index: 55;
        width: 100%;
        height: calc(100vh - 64px);
        border: 0;
        background: rgba(5, 24, 46, 0.48);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        cursor: pointer;
    }

    .firm-portal__content {
        padding-top: 28px;
    }

    .firm-billing-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .firm-portal-bar__context span:first-child,
    .firm-portal-bar__context span[aria-hidden="true"] {
        display: none;
    }

    .firm-portal-bar__context strong {
        max-width: 140px;
    }

    .firm-portal__content {
        gap: 18px;
        padding: 23px 0 44px;
    }

    .firm-portal__page-header {
        display: grid;
        align-items: start;
    }

    .firm-portal__page-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .firm-portal__page-actions > * {
        width: 100%;
        justify-content: center;
    }

    .firm-profile-summary {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .firm-profile-summary__facts > div:first-child {
        padding-left: 0;
        border-left: 0;
    }

    .firm-profile-field-grid,
    .firm-profile-readonly__facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .firm-profile-field--wide,
    .firm-profile-readonly__facts .firm-profile-readonly__wide {
        grid-column: auto;
    }

    .firm-profile-field--half {
        width: 100%;
    }

    .firm-profile-readonly__facts > div,
    .firm-profile-readonly__facts > div:nth-child(odd),
    .firm-profile-readonly__facts > div:nth-child(even),
    .firm-profile-readonly__facts .firm-profile-readonly__wide {
        padding: 14px 0;
        border-right: 0;
        border-top: 1px solid #e6edf4;
        border-bottom: 0;
        border-left: 0;
    }

    .firm-profile-readonly__facts > div:first-child {
        border-top: 0;
    }

    .firm-profile-aside {
        grid-template-columns: minmax(0, 1fr);
    }

    .firm-profile-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .firm-profile-savebar__actions {
        justify-content: flex-end;
    }

    .firm-billing-plan-grid {
        grid-template-columns: 1fr;
    }

    .firm-client-filter-bar {
        grid-template-columns: 1fr;
    }

    .firm-portal-overview-grid > aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .firm-portal-bar__inner,
    .firm-portal__frame {
        width: min(100% - 20px, 1440px);
    }

    .firm-portal-bar__inner {
        gap: 10px;
    }

    .firm-portal-brand img {
        width: 150px;
    }

    .firm-portal-bar__context {
        display: none;
    }

    .firm-portal-stat-grid {
        grid-template-columns: 1fr;
    }

    .firm-portal__page-actions {
        grid-template-columns: 1fr;
    }

    .firm-profile-summary {
        padding: 17px;
    }

    .firm-profile-summary__identity {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .firm-profile-summary__mark {
        width: 52px;
        height: 52px;
    }

    .firm-profile-summary__facts {
        grid-template-columns: minmax(0, 1fr);
    }

    .firm-profile-summary__facts > div,
    .firm-profile-summary__facts > div:first-child {
        padding: 10px 0;
        border-top: 1px solid #e2eaf2;
        border-left: 0;
    }

    .firm-profile-section__header {
        grid-template-columns: 38px minmax(0, 1fr);
        padding: 17px;
    }

    .firm-profile-section__icon {
        width: 38px;
        height: 38px;
    }

    .firm-profile-field-grid,
    .firm-profile-readonly__facts {
        padding: 17px;
    }

    .firm-profile-savebar {
        position: static;
    }

    .firm-profile-savebar__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .firm-profile-savebar__actions > * {
        width: 100%;
        justify-content: center;
    }

    .firm-portal .billing-panel,
    .firm-portal .billing-actions {
        padding: 18px;
    }

    .firm-subscription-dialog {
        padding: 22px;
    }

    .firm-subscription-dialog__actions {
        display: grid;
    }

    .firm-subscription-dialog__actions > *,
    .firm-subscription-dialog__actions button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .firm-portal-brand img {
        width: 120px;
    }

    .firm-portal-bar__site-return {
        padding-inline: 9px;
    }
}

/* Firm-branded client questionnaire shell */
.client-questionnaire-body {
    min-width: 320px;
    background: #f3f7fc;
}

.client-questionnaire-main {
    min-height: 100vh;
    padding-top: 20px;
    background:
        radial-gradient(circle at 90% 0%, rgba(47, 141, 242, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
}

.client-firm-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(1560px, calc(100vw - 32px));
    margin: 0 auto 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: linear-gradient(135deg, #0a2c52 0%, #071f3b 100%);
    color: #ffffff;
    box-shadow: 0 14px 34px rgba(7, 31, 59, 0.16);
}

.client-firm-identity__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.12);
    color: #8fc8ff;
    font-size: 26px;
}

.client-firm-identity__icon--logo {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #ffffff;
}

.client-firm-identity__icon img {
    width: 100%;
    height: 100%;
    padding: 8px;
    object-fit: contain;
}

.client-firm-identity__details {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.client-firm-identity__details > strong {
    color: #ffffff;
    font-size: clamp(19px, 2.5vw, 24px);
    line-height: 1.2;
}

.client-firm-identity__links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 18px;
}

.client-firm-identity__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #c9d8e9;
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.client-firm-identity__links a:hover,
.client-firm-identity__links a:focus-visible {
    color: #ffffff;
}

.client-questionnaire-body .task-selection-page {
    min-height: 0;
    padding-top: 0;
    background: transparent;
}

.client-instructions-page {
    padding-top: 0;
    background: transparent !important;
}

.business-instructions-page {
    padding-top: clamp(36px, 6vw, 72px);
    padding-bottom: clamp(52px, 8vw, 96px);
}

.client-instructions-shell {
    display: grid;
    gap: clamp(30px, 5vw, 52px);
    width: min(1040px, calc(100vw - 40px));
    margin-inline: auto;
}

.client-instructions-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 0 0 clamp(28px, 4vw, 42px);
    border-bottom: 2px solid #bfd6eb;
    background: transparent;
}

.client-instructions-hero__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), #1bddf2);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 8px 20px rgba(47, 141, 242, 0.2);
}

.client-instructions-hero h1 {
    max-width: 820px;
    margin: 4px 0 10px;
    color: var(--navy);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
}

.client-instructions-hero p:not(.eyebrow) {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.client-instructions-hero p:not(.eyebrow) + p:not(.eyebrow) {
    margin-top: 10px;
}

.instruction-guide__body {
    display: grid;
    gap: 0;
}

.instruction-guide__section {
    padding: clamp(30px, 5vw, 50px) 0;
    border-top: 1px solid #d7e3ee;
}

.instruction-guide__section:first-child {
    padding-top: 0;
    border-top: 0;
}

.instruction-guide__section:last-child {
    padding-bottom: 0;
}

.instruction-guide__heading {
    display: grid;
    gap: 8px;
    max-width: 780px;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.instruction-guide__heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.16;
    letter-spacing: -0.015em;
}

.instruction-guide__heading > p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.instruction-guide__approach-list {
    margin: 0;
    padding: 0;
}

.instruction-guide__approach {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid #d7e3ee;
}

.instruction-guide__approach:last-child {
    border-bottom: 1px solid #d7e3ee;
}

.instruction-guide__approach dt {
    position: relative;
    margin: 0;
    padding-left: 16px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.instruction-guide__approach dt::before {
    content: "";
    position: absolute;
    inset: 4px auto 4px 0;
    width: 4px;
    border-radius: 999px;
    background: var(--blue);
}

.instruction-guide__approach dd {
    min-width: 0;
    margin: 0;
}

.instruction-guide__approach dd p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.instruction-guide__approach dd p + p {
    margin-top: 10px;
}

.instruction-guide__approach .instruction-guide__fit {
    color: var(--text);
}

.instruction-guide__fit strong {
    color: var(--blue);
}

.instruction-guide__summary {
    max-width: 850px;
    margin-top: 28px;
    padding: 4px 0 4px 20px;
    border-left: 4px solid #77aeda;
}

.instruction-guide__summary h3,
.instruction-guide__workflow h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.3;
}

.instruction-guide__summary ul {
    display: grid;
    gap: 8px;
    margin: 13px 0 0;
    padding-left: 21px;
}

.instruction-guide__summary li {
    padding-left: 3px;
    line-height: 1.55;
}

.instruction-guide__summary > p {
    margin: 13px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.instruction-guide__workflow {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 10px clamp(24px, 4vw, 48px);
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid #d7e3ee;
}

.instruction-guide__workflow > h3 {
    grid-row: 1 / span 2;
}

.instruction-guide__workflow > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.instruction-guide__steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding-left: 22px;
}

.instruction-guide__steps li {
    padding-left: 4px;
    color: var(--muted);
    line-height: 1.6;
}

.instruction-guide__steps li::marker {
    color: var(--blue);
    font-weight: 900;
}

.instruction-guide__steps strong {
    color: var(--text);
}

.instruction-guide__disclosures > p {
    max-width: 870px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.instruction-guide__disclosures > p + p {
    margin-top: 10px;
}

.client-instructions-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0 0;
    border-top: 2px solid #bfd6eb;
    background: transparent;
}

.client-instructions-actions__note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.client-instructions-actions__note p {
    display: grid;
    gap: 2px;
    margin: 0;
    color: var(--navy);
    line-height: 1.5;
}

.client-instructions-actions__note p strong,
.client-instructions-actions__note p span {
    display: block;
}

.client-instructions-actions__note p span {
    color: #405873;
}

.client-instructions-actions .primary-btn {
    flex: 0 0 auto;
}

@media (max-width: 760px) {
    .client-instructions-shell {
        width: calc(100vw - 28px);
        gap: 30px;
    }

    .client-instructions-hero {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
        padding-bottom: 26px;
    }

    .client-instructions-hero__icon {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .instruction-guide__section {
        padding: 30px 0;
    }

    .instruction-guide__section:first-child {
        padding-top: 0;
    }

    .instruction-guide__approach,
    .instruction-guide__workflow {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }

    .instruction-guide__workflow > h3 {
        grid-row: auto;
    }

    .instruction-guide__approach dt {
        padding-left: 13px;
        font-size: 17px;
    }

    .instruction-guide__summary {
        margin-top: 22px;
        padding-left: 15px;
    }

    .client-instructions-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
        padding-top: 20px;
    }

    .client-instructions-actions .primary-btn {
        width: 100%;
    }

    .client-instructions-actions__note {
        padding: 1px;
    }
}

@media (max-width: 520px) {
    .business-instructions-page {
        padding-top: 24px;
        padding-bottom: 42px;
    }

    .client-instructions-shell {
        width: calc(100vw - 24px);
    }

    .client-instructions-hero h1 {
        font-size: clamp(27px, 8.5vw, 34px);
    }

    .instruction-guide__heading > p:not(.eyebrow),
    .client-instructions-hero p:not(.eyebrow) {
        font-size: 15px;
        line-height: 1.58;
    }

    .instruction-guide__summary {
        padding-left: 13px;
    }
}

@media (max-width: 620px) {
    .client-questionnaire-main {
        padding-top: 10px;
    }

    .client-firm-identity {
        align-items: flex-start;
        width: min(100% - 20px, 1560px);
        margin-bottom: 12px;
        padding: 13px;
    }

    .client-firm-identity__icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }

    .client-firm-identity__links {
        display: grid;
        gap: 6px;
    }
}

.client-link-copy {
    display: grid;
    gap: 9px;
    padding-top: 4px;
}

.client-link-copy label {
    color: var(--navy);
    font-weight: 800;
}

.client-link-copy .intake-input {
    width: 100%;
}

.billing-shell {
    position: relative;
}

.billing-action-btn {
    width: 100%;
}

.billing-action-note {
    margin: -4px 0 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.primary-btn:disabled,
.ghost-btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    box-shadow: none;
    transform: none;
}

.annual-terms-shell {
    max-width: 980px;
}

.annual-terms-panel {
    border-radius: 16px;
}

.annual-plan-preview {
    display: grid;
    gap: 14px;
    padding: 4px 0 0;
}

.annual-plan-preview__heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.annual-plan-preview__heading h2 {
    margin: 4px 0 0;
    color: var(--navy);
    font-size: 24px;
    line-height: 1.18;
}

.annual-plan-preview__heading strong {
    color: var(--navy);
    font-size: 28px;
    line-height: 1;
    white-space: nowrap;
}

.annual-plan-preview__heading strong span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.annual-plan-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0;
}

.annual-plan-fact {
    min-width: 0;
}

.annual-plan-facts dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.annual-plan-facts dd {
    margin: 4px 0 0;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.35;
}

.annual-plan-fact--wide {
    grid-column: 1 / -1;
}

.billing-terms-consent {
    margin-top: 16px;
    padding: 6px 0 2px;
}

.billing-terms-consent__label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.35;
}

.terms-checkbox {
    width: 16px;
    height: 16px;
    min-height: 16px;
    margin: 2px 0 0;
}

.billing-terms-actions {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto;
    gap: 16px;
    align-items: end;
    margin-top: 16px;
}

.billing-terms-actions__select {
    margin: 0;
}

.billing-terms-actions__submit {
    margin: 0;
    width: auto;
    min-width: 250px;
    padding-inline: 20px;
    white-space: nowrap;
}

.billing-alert,
.billing-note,
.billing-empty {
    margin: 18px 0 0;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #f8fbff;
    color: var(--navy);
    line-height: 1.5;
}

.billing-processing-mask {
    position: absolute;
    inset: 0;
    z-index: 12;
    display: grid;
    place-items: center;
    padding: 24px;
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.94);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.billing-processing-mask__card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: start;
    width: min(460px, 100%);
    padding: 18px 20px;
    border: 1px solid #d8e6f7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 20px 44px rgba(11, 31, 61, 0.12);
}

.billing-processing-mask__card i {
    margin-top: 3px;
    color: var(--blue);
    font-size: 20px;
}

.billing-processing-mask__card strong {
    display: block;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.2;
}

.billing-processing-mask__card p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.billing-alert {
    border-color: #c7a13a;
    background: #fff8e6;
}

.billing-alert--warning {
    border-color: #d21f2b;
    background: #fff1f2;
}

.billing-history {
    overflow: hidden;
}

.billing-history__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.billing-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.billing-download-link:hover,
.billing-download-link:focus-visible {
    text-decoration: underline;
}

.saved-report-count {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.saved-report-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.saved-report-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    padding: 14px 16px;
}

.saved-report-card__main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
}

.saved-report-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
}

.saved-report-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin: 0;
}

.saved-report-meta div {
    display: grid;
    gap: 2px;
}

.saved-report-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.saved-report-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

.saved-report-open {
    white-space: nowrap;
}

.billing-table {
    display: grid;
    margin-top: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.billing-table__row {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 0.8fr;
}

.billing-table__row--five {
    grid-template-columns: 1fr 0.7fr 0.7fr 0.7fr 0.8fr;
}

.billing-table__row + .billing-table__row {
    border-top: 1px solid var(--border);
}

.billing-table__row span {
    min-width: 0;
    padding: 12px;
    line-height: 1.4;
}

.billing-table__head {
    background: #0a2c52;
    color: #ffffff;
    font-weight: 800;
}

.billing-centered {
    max-width: 680px;
    justify-items: center;
    text-align: center;
}

/* Firm invitation onboarding */
.firm-invitation-page {
    min-width: 320px;
    background: #f3f6fa;
}

.invitation-site-header {
    border-bottom: 1px solid #dce4ee;
    background: #ffffff;
}

.invitation-site-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.invitation-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #102a43;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.invitation-brand img {
    width: 34px;
    height: 34px;
}

.invitation-security-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #526479;
    font-size: 13px;
    font-weight: 650;
}

.invitation-security-label i {
    color: #177458;
}

.invitation-screen {
    min-height: calc(100svh - 126px);
    padding: clamp(32px, 5vw, 64px) 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(47, 141, 242, 0.06), transparent 30%),
        #f3f6fa;
}

.invitation-shell {
    width: min(980px, calc(100% - 32px));
}

.invitation-shell > .billing-messages {
    width: min(720px, 100%);
    margin: 0 auto 16px;
}

.invitation-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.35fr);
    overflow: hidden;
    border: 1px solid #d9e2ec;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 42, 67, 0.1);
}

.invitation-overview {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(28px, 4vw, 42px);
    background: #102f50;
    color: #ffffff;
}

.invitation-mark,
.invitation-action-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 20px;
}

.invitation-mark {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #8ed0ff;
}

.invitation-mark--logo {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: #ffffff;
}

.invitation-mark--logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
}

.invitation-eyebrow,
.invitation-step {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 11px;
    font-weight: 800;
}

.invitation-eyebrow {
    color: #a9d8f8;
}

.invitation-overview h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(27px, 3.4vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.invitation-overview__intro > p:last-child {
    margin: 16px 0 0;
    color: #d8e5f1;
    font-size: 14px;
    line-height: 1.65;
}

.invitation-details {
    display: grid;
    gap: 0;
    margin: 34px 0 0;
}

.invitation-details > div {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.invitation-details dt {
    color: #a9bdd0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.invitation-details dd {
    min-width: 0;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.invitation-role {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.invitation-trust-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: auto 0 0;
    padding-top: 28px;
    color: #c4d4e3;
    font-size: 12px;
    line-height: 1.55;
}

.invitation-trust-note i {
    margin-top: 2px;
    color: #76d3b5;
}

.invitation-action {
    min-width: 0;
    padding: clamp(30px, 5vw, 48px);
}

.invitation-action__header {
    margin-bottom: 28px;
}

.invitation-step {
    color: #0b6ec9;
}

.invitation-action h2,
.invitation-existing-account h2,
.invitation-card--unavailable h1 {
    margin: 0;
    color: #102a43;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.invitation-action__header > p:last-child,
.invitation-existing-account > p:not(.invitation-step),
.invitation-card--unavailable > p:not(.invitation-step) {
    margin: 10px 0 0;
    color: #5c6f82;
    font-size: 14px;
    line-height: 1.6;
}

.invitation-form {
    gap: 18px;
}

.invitation-form .form-field {
    gap: 7px;
}

.invitation-form .form-field label {
    color: #243b53;
    font-size: 13px;
    font-weight: 700;
}

.invitation-form input {
    min-height: 46px;
    border-color: #b9c8d8;
    border-radius: 8px;
    font-size: 15px;
}

.invitation-readonly-field {
    position: relative;
}

.invitation-readonly-field > i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 1;
    color: #687b8f;
    transform: translateY(-50%);
}

.invitation-form .invitation-readonly-field input {
    padding-left: 40px;
    padding-right: 78px;
    background: #f6f8fb;
    color: #354a5f;
    cursor: not-allowed;
}

.invitation-readonly-field > span {
    position: absolute;
    top: 50%;
    right: 11px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #e3f4ed;
    color: #176449;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.invitation-password-help {
    padding: 13px 15px;
    border: 1px solid #dce5ee;
    border-radius: 9px;
    background: #f8fafc;
    color: #526479;
    font-size: 12px;
    line-height: 1.45;
}

.invitation-password-help strong {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #334e68;
    font-size: 12px;
}

.invitation-password-help ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 22px;
    margin: 9px 0 0;
    padding-left: 18px;
}

.invitation-password-help li {
    padding-left: 2px;
}

.invitation-form .feedback-error {
    padding: 8px 10px;
    border-left: 3px solid #b4232f;
    border-radius: 4px;
    background: #fff1f2;
}

.invitation-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    justify-content: center;
    border-radius: 8px;
    background: #0b6ec9;
    box-shadow: 0 8px 18px rgba(11, 110, 201, 0.18);
    font-size: 14px;
}

.invitation-submit:hover,
.invitation-submit:focus-visible {
    background: #095ca9;
}

.invitation-submit-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin: -5px 0 0;
    color: #6b7d90;
    font-size: 11px;
}

.invitation-existing-account {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
}

.invitation-action-icon {
    margin-bottom: 24px;
    background: #e7f2fc;
    color: #0b6ec9;
}

.invitation-existing-account .invitation-submit {
    margin-top: 28px;
}

.invitation-existing-account strong {
    color: #334e68;
    overflow-wrap: anywhere;
}

.invitation-card--unavailable {
    display: block;
    width: min(600px, 100%);
    margin-inline: auto;
    padding: clamp(34px, 6vw, 56px);
    text-align: center;
}

.invitation-card--unavailable .invitation-action-icon {
    margin-inline: auto;
}

.invitation-action-icon--warning {
    background: #fff1d8;
    color: #8a5a00;
}

.invitation-unavailable-link {
    margin-top: 26px;
    border-radius: 8px;
    background: #0b6ec9;
    box-shadow: none;
}

.invitation-footer {
    border-top: 1px solid #dce4ee;
    background: #ffffff;
    color: #66788a;
}

.invitation-footer__inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
}

.invitation-footer a {
    color: #315d86;
    font-weight: 650;
}

@media (max-width: 760px) {
    .invitation-card {
        grid-template-columns: 1fr;
    }

    .invitation-overview,
    .invitation-action {
        padding: 28px 24px;
    }

    .invitation-trust-note {
        margin-top: 8px;
    }

    .invitation-password-help ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .invitation-site-header__inner {
        min-height: 60px;
    }

    .invitation-brand span {
        font-size: 14px;
    }

    .invitation-security-label span {
        display: none;
    }

    .invitation-screen {
        padding: 20px 0;
    }

    .invitation-shell {
        width: min(100% - 20px, 980px);
    }

    .invitation-footer__inner {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 12px 0;
    }
}

.billing-inline-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.billing-inline-actions--start {
    justify-content: flex-start;
}

.billing-messages {
    display: grid;
    gap: 10px;
}

.embedded-checkout-panel {
    width: min(680px, 100%);
    margin-inline: auto;
    min-height: 520px;
    padding: 16px;
}

.embedded-checkout {
    min-height: 480px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.embedded-checkout-status {
    margin-top: 0;
}

.elements-checkout-panel {
    width: 100%;
}

.checkout-page {
    padding-block: 0;
}

.checkout-shell {
    position: relative;
    width: min(1440px, 100%);
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(420px, 0.65fr);
    grid-template-areas:
        "intro cart"
        "details cart";
    grid-template-rows: auto 1fr;
    margin: 0 auto;
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 18%, rgba(47, 141, 242, 0.13), transparent 34%),
        linear-gradient(145deg, #f9fcff 0%, #edf5fd 100%);
}

.checkout-intro {
    grid-area: intro;
    padding: clamp(24px, 3vw, 40px) clamp(32px, 5vw, 72px) 0;
}

.checkout-details {
    grid-area: details;
    min-height: 0;
    padding: 0 clamp(32px, 5vw, 72px) clamp(24px, 3vw, 40px);
}

.checkout-header {
    max-width: 720px;
}

.checkout-header h1 {
    font-size: clamp(34px, 4vw, 48px);
}

.checkout-header .section-lead {
    max-width: 660px;
}

.checkout-product-mark {
    display: grid;
    width: fit-content;
    justify-items: center;
    gap: 6px;
    margin: 20px 0 18px;
    text-align: center;
}

.checkout-product-mark img {
    width: clamp(130px, 14vw, 180px);
    height: auto;
}

.checkout-product-mark p {
    margin: 0;
    color: var(--navy);
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.12;
}

.checkout-product-mark strong {
    font-weight: 800;
}

.checkout-value {
    max-width: 720px;
}

.checkout-value h2 {
    max-width: 650px;
    margin: 5px 0 8px;
    color: var(--navy);
    font-size: clamp(23px, 2.3vw, 31px);
    line-height: 1.14;
}

.checkout-value > p:not(.eyebrow):not(.checkout-included) {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
}

.checkout-benefits {
    display: grid;
    gap: 9px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.checkout-benefits li {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    color: #233951;
    font-size: 14px;
    line-height: 1.4;
}

.checkout-benefits i {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    margin-top: 1px;
    border-radius: 50%;
    background: #d9f3e8;
    color: #08704a;
    font-size: 12px;
}

.checkout-included {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 26px 0 0;
    padding: 16px 18px;
    border: 1px solid #b8d6f3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--navy);
}

.checkout-shell > .elements-checkout-panel {
    grid-area: cart;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - var(--header-height));
    margin: 0;
    padding: clamp(24px, 3vw, 40px);
    border-width: 0 0 0 1px;
    border-radius: 0;
    box-shadow: -12px 0 38px rgba(9, 54, 112, 0.08);
}

.elements-checkout-form {
    display: grid;
    gap: 14px;
}

.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.checkout-summary h2 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.2;
}

.checkout-summary strong {
    color: var(--navy);
    font-size: 20px;
    white-space: nowrap;
}

.checkout-price-summary {
    display: grid;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.checkout-discount {
    color: #05603a;
    font-size: 13px;
    font-weight: 800;
}

.checkout-payment-alert {
    margin: 0;
}

.checkout-fulfillment-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #b8d6f3;
    border-radius: 14px;
    background: #f3f8fe;
    color: var(--navy);
}

.checkout-fulfillment-note > i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #d9f3e8;
    color: #08704a;
}

.checkout-fulfillment-note strong {
    display: block;
    line-height: 1.35;
}

.checkout-fulfillment-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.firm-cart-label {
    margin: 0;
}

.firm-checkout-sidebar .annual-plan-preview__heading h2 {
    font-size: 22px;
}

.firm-checkout-sidebar .annual-plan-preview__heading strong {
    font-size: 20px;
}

.firm-checkout-total {
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.is-hidden {
    display: none !important;
}

.checkout-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkout-account-option {
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #cbdced;
    border-radius: 14px;
    background: #f8fbff;
}

.checkout-account-option legend {
    padding: 0 5px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.checkout-password-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    cursor: pointer;
}

.checkout-password-choice input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
}

.checkout-password-choice strong,
.checkout-password-choice small {
    display: block;
}

.checkout-password-choice strong {
    color: var(--navy);
}

.checkout-password-choice small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.checkout-password-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #d8e6f3;
}

.checkout-password-email {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.promo-code-field {
    max-width: 360px;
}

.promo-code-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.promo-apply-btn {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 12px;
}

.promo-code-message {
    min-height: 20px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.promo-code-message--success {
    color: #05603a;
}

.promo-code-message--error {
    color: #9d1c1c;
}

.stripe-card-fields {
    display: grid;
    gap: 14px;
}

.stripe-card-field {
    min-height: 48px;
    display: grid;
    align-items: center;
    border: 1px solid #b8cce4;
    border-radius: 12px;
    background: #ffffff;
    padding: 13px 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stripe-card-field.StripeElement--focus {
    border-color: var(--blue);
    box-shadow: var(--focus-ring);
}

.stripe-card-field.StripeElement--invalid {
    border-color: #d21f2b;
}

.payment-status {
    min-height: 22px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.payment-status--error {
    color: #9d1c1c;
}

.checkout-sample-report {
    width: fit-content;
    margin-top: 20px;
}

.checkout-cpa-followup {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    max-width: 610px;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #c9ddef;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(9, 54, 112, 0.08);
}

.checkout-cpa-followup img {
    width: 78px;
    height: 78px;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 5px 16px rgba(9, 54, 112, 0.18);
}

.checkout-cpa-followup .eyebrow {
    margin-bottom: 3px;
    font-size: 11px;
}

.checkout-cpa-followup strong {
    display: block;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.3;
}

.checkout-cpa-followup div > p:last-child {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.billing-action-btn:disabled,
.billing-action-btn.is-loading {
    cursor: wait;
    opacity: 0.82;
}

@media (max-width: 800px) {
    .checkout-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "details"
            "cart";
        grid-template-rows: auto;
    }

    .checkout-intro {
        padding: 28px 6px 12px;
    }

    .checkout-details {
        min-height: 0;
        padding: 16px 6px 40px;
    }

    .checkout-shell > .elements-checkout-panel {
        min-height: 0;
        padding: 32px 6px 44px;
        border-width: 1px 0 0;
        box-shadow: 0 -12px 38px rgba(9, 54, 112, 0.08);
    }

    .billing-grid {
        grid-template-columns: 1fr;
    }

    .billing-facts div,
    .billing-facts--compact div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .billing-table {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .billing-table__row {
        grid-template-columns: 1fr;
        padding: 8px 0;
    }

    .firm-team-table .billing-table__row--five {
        grid-template-columns: 1fr;
    }

    .billing-table__head {
        display: none;
    }

    .billing-history__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .saved-report-card {
        grid-template-columns: 1fr;
    }

    .saved-report-card__main {
        display: grid;
        gap: 8px;
    }

    .saved-report-open {
        width: 100%;
    }

    .billing-terms-actions {
        grid-template-columns: 1fr;
    }

    .billing-terms-actions__submit {
        width: 100%;
        min-width: 0;
    }

    .annual-plan-preview__heading {
        display: grid;
    }

    .annual-plan-facts {
        grid-template-columns: 1fr;
    }

    .annual-plan-fact--wide {
        grid-column: auto;
    }

    .checkout-summary,
    .checkout-contact-grid,
    .checkout-password-fields,
    .elements-checkout-panel .form-row--split {
        grid-template-columns: 1fr;
    }

    .checkout-password-email {
        grid-column: auto;
    }

    .checkout-summary {
        display: grid;
    }

    .checkout-cpa-followup {
        grid-template-columns: 64px minmax(0, 1fr);
        padding: 14px;
    }

    .checkout-cpa-followup img {
        width: 64px;
        height: 64px;
    }
}

/* Public purchase journey: compact, touch-friendly mobile presentation. */
.firm-pricing-form {
    display: grid;
    gap: 14px;
}

.firm-pricing-form .firm-tier-select {
    margin-bottom: 0;
}

#pricing-tab-individual:focus-visible ~ .pricing-tabs .pricing-tab--individual,
#pricing-tab-firm:focus-visible ~ .pricing-tabs .pricing-tab--firm {
    outline: 3px solid rgba(47, 141, 242, 0.42);
    outline-offset: 3px;
}

.checkout-intro .checkout-header {
    margin-bottom: 0;
}

.checkout-security-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: -2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.checkout-security-note i {
    margin-top: 2px;
    color: #08704a;
}

@media (max-width: 960px) {
    :root {
        --header-height: 64px;
    }

    .header-inner {
        min-height: var(--header-height);
        gap: 12px;
    }

    .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-logo {
        width: auto;
        height: 48px;
        min-width: 0;
        max-width: min(220px, calc(100vw - 100px));
        max-height: 48px;
        object-fit: contain;
        object-position: left center;
    }
}

@media (max-width: 760px) {
    .pricing-card {
        width: min(100% - 28px, 1100px);
        margin-top: 0;
        padding: 16px;
        overflow: hidden;
        border-radius: 20px;
    }

    .pricing-card::before,
    .pricing-card::after,
    .pricing-tabs::after,
    .pricing-tab::after {
        display: none;
    }

    .pricing-tabs {
        position: static;
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        width: 100%;
        min-height: 0;
        padding: 4px;
        gap: 4px;
        overflow: visible;
        border: 1px solid #ccdaeb;
        border-radius: 16px;
        background: #e8f0fa;
    }

    .pricing-tab,
    .pricing-tab + .pricing-tab,
    .pricing-tab--individual,
    .pricing-tab--firm,
    .pricing-tab:hover,
    .pricing-tab:focus-visible,
    #pricing-tab-individual:checked ~ .pricing-tabs .pricing-tab--individual,
    #pricing-tab-firm:checked ~ .pricing-tabs .pricing-tab--firm {
        width: 100%;
        min-width: 0;
        min-height: 78px;
        margin: 0;
        padding: 10px;
        transform: none;
        border: 0;
        border-radius: 12px;
        box-shadow: none;
    }

    .pricing-tab {
        justify-content: flex-start;
        gap: 8px;
        background: transparent;
    }

    .pricing-tab__icon {
        width: 22px;
        height: 22px;
        font-size: 14px;
    }

    .pricing-tab__content {
        gap: 6px;
    }

    .pricing-tab__label {
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
    }

    .pricing-tab strong {
        flex-wrap: wrap;
        align-items: baseline;
        gap: 3px;
        font-size: clamp(16px, 4.8vw, 20px);
        line-height: 1.08;
    }

    .pricing-tab strong span {
        font-size: 11px;
    }

    .pricing-tab__term {
        flex-direction: row;
        align-items: baseline;
        padding: 0;
    }

    .pricing-tab strong .pricing-tab__from {
        display: none;
    }

    .pricing-tab--firm strong {
        text-transform: none;
    }

    .pricing-panels {
        margin-top: 18px;
    }

    .pricing-panel {
        gap: 18px;
    }

    .pricing-card .price-panel {
        padding: 20px 16px;
    }

    .pricing-card .price-amount {
        overflow-wrap: anywhere;
        font-size: clamp(44px, 16vw, 64px);
    }

    .pricing-card .primary-btn,
    .firm-pricing-form .primary-btn {
        width: 100%;
    }

    .firm-tier-select select {
        min-height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .public-home-page .hero-splash {
        min-height: calc(100svh - var(--header-height));
        padding: 42px 16px 36px;
    }

    .public-home-page .splash-inner {
        width: 100%;
    }

    .public-home-page .splash-headline {
        font-size: clamp(30px, 9vw, 40px);
        line-height: 1.12;
    }

    .public-home-page .hero-statement {
        font-size: clamp(20px, 6vw, 26px);
    }

    .public-home-page .contact-actions,
    .public-home-page .contact-actions > * {
        width: 100%;
    }

    .public-home-page .section,
    .prepayment-page #firm-intake.section {
        padding-block: 36px;
    }

    .public-home-page .section-header,
    .prepayment-page #firm-intake .section-header {
        margin-bottom: 24px;
    }

    .public-home-page .feature-card,
    .public-home-page .contact-card,
    .public-home-page .intake-form,
    .prepayment-page #firm-intake .intake-form {
        padding: 16px;
    }

    .comparison-row,
    .comparison-heading,
    .comparison-row:not(.comparison-heading) {
        grid-template-columns: minmax(90px, 0.95fr) repeat(2, minmax(0, 1fr));
    }

    .comparison-heading {
        display: grid;
    }

    .comparison-row:not(.comparison-heading) > .comparison-cell:first-child {
        grid-column: auto;
    }

    .comparison-row:not(.comparison-heading) > .comparison-cell:nth-child(n + 2) {
        min-width: 0;
        min-height: 0;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 0;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .comparison-row .check-cell span[aria-hidden="true"],
    .comparison-row .x-cell span[aria-hidden="true"] {
        width: 36px;
        height: 36px;
    }

    .comparison-row .comparison-cell strong {
        font-size: 14px;
        line-height: 1.35;
    }

    .prepayment-page .login-screen {
        padding: 24px 0 36px;
    }

    .prepayment-page .login-card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .prepayment-page .login-card__intro p {
        margin-bottom: 18px;
    }

    .prepayment-page .portal-summary,
    .prepayment-page .portal-summary > * {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .prepayment-page .annual-terms-panel {
        padding: 18px 16px;
    }

    .prepayment-page .billing-panel__header {
        align-items: flex-start;
    }
}

@media (max-width: 800px) {
    .checkout-intro {
        padding: 26px 6px 14px;
    }

    .checkout-intro .checkout-header {
        max-width: none;
        text-align: left;
    }

    .checkout-header h1 {
        margin: 6px 0 8px;
        font-size: clamp(28px, 8vw, 36px);
    }

    .checkout-header .section-lead {
        margin-bottom: 0;
        line-height: 1.5;
    }

    .checkout-shell > .elements-checkout-panel {
        padding: 22px 6px 30px;
    }

    .checkout-details {
        padding: 32px 6px 40px;
        border-top: 1px solid #d4e2f1;
    }

    .checkout-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
    }

    .checkout-price-summary {
        align-self: start;
    }

    .annual-plan-preview__heading {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .annual-plan-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .annual-plan-fact--wide {
        grid-column: 1 / -1;
    }

    .stripe-card-fields .form-row--split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .firm-checkout-total {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
        justify-items: stretch;
        text-align: left;
    }

    .firm-checkout-total strong {
        text-align: right;
    }

    .firm-checkout-total .checkout-discount {
        grid-column: 1 / -1;
        text-align: right;
    }

    .checkout-product-mark {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        justify-items: start;
        gap: 14px;
        margin: 0 0 24px;
        text-align: left;
    }

    .checkout-product-mark img {
        width: 94px;
    }
}

@media (max-width: 420px) {
    .pricing-tab {
        display: grid;
        grid-template-columns: 1fr;
        align-content: center;
        justify-items: center;
        text-align: center;
    }

    .pricing-tab__icon {
        display: none;
    }

    .pricing-tab--firm .pricing-tab__content {
        justify-items: center;
    }

    .pricing-tab strong {
        justify-content: center;
        font-size: 16px;
    }

    .checkout-intro {
        padding: 22px 4px 12px;
    }

    .checkout-shell > .elements-checkout-panel {
        padding: 20px 4px 28px;
    }

    .checkout-details {
        padding: 28px 4px 36px;
    }

    .elements-checkout-form {
        gap: 13px;
    }

    .checkout-summary h2,
    .firm-checkout-sidebar .annual-plan-preview__heading h2 {
        font-size: 19px;
    }

    .checkout-summary strong,
    .firm-checkout-sidebar .annual-plan-preview__heading strong {
        font-size: 18px;
    }

    .checkout-security-note {
        justify-content: flex-start;
    }

    .prepayment-page .alternate-portal,
    .prepayment-page .login-options {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 350px) {
    .annual-plan-preview__heading {
        grid-template-columns: 1fr;
    }

    .annual-plan-preview__heading strong {
        white-space: normal;
    }
}

.task-selection-page {
    min-height: 70vh;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    padding-block: 8px 44px;
}

.mobile-workflow-nav,
.mobile-category-picker,
.mobile-selection-tray-shell,
.mobile-selection-tray,
.mobile-hours-entry,
.mobile-proficiency-select,
.mobile-task-next-label {
    display: none;
}

.task-selection-shell,
.standard-task-flow,
.standard-task-workspace {
    display: grid;
    gap: 18px;
}

.task-selection-shell {
    width: min(1560px, calc(100vw - 32px));
    max-width: none;
}

.task-flow-tools {
    display: flex;
    justify-content: flex-end;
}

.task-instructions-link {
    background: #ffffff;
    box-shadow: 0 5px 16px rgba(9, 54, 112, 0.08);
}

.report-workflow-status {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    align-items: start;
    padding: 0 0 8px;
}

.report-workflow-step {
    display: grid;
    grid-template-rows: 34px auto;
    justify-items: center;
    gap: 8px;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    padding: 0 12px;
    position: relative;
    text-align: center;
    transition: color var(--transition), transform var(--transition);
}

.report-workflow-step::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: 16px;
    left: calc(50% + 24px);
    right: calc(-50% + 24px);
    height: 2px;
    border-radius: 999px;
    background: #d6e5f5;
}

.report-workflow-step:last-child::after {
    display: none;
}

.report-workflow-step.is-complete::after {
    background: linear-gradient(90deg, #2f8df2, #1bddf2);
}

.report-workflow-step:hover,
.report-workflow-step:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.report-workflow-step:focus-visible .report-workflow-step__number {
    box-shadow: var(--focus-ring);
}

.report-workflow-step.is-active {
    color: var(--navy);
}

.report-workflow-step.is-complete:not(.is-active) {
    color: var(--blue);
}

.report-workflow-step__number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #c8def4;
    background: #ffffff;
    color: var(--blue);
    font-weight: 900;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 14px rgba(9, 54, 112, 0.08);
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.report-workflow-step.is-active .report-workflow-step__number {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(47, 141, 242, 0.25);
}

.report-workflow-step__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
    max-width: 260px;
}

.report-workflow-step__copy span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.report-workflow-step.is-active .report-workflow-step__copy span {
    color: var(--blue);
}

.report-workflow-step__copy strong {
    color: inherit;
    font-size: 14px;
    line-height: 1.2;
}

.report-workflow-step__copy small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.report-workflow-step.is-active .report-workflow-step__copy strong {
    color: var(--navy);
}

.task-flow-header {
    display: grid;
    justify-items: center;
    gap: 5px;
    text-align: center;
    padding-block: 0 6px;
}

.task-flow-header h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.08;
}

.task-flow-header .section-lead {
    max-width: 680px;
    margin: 0;
}

.task-messages {
    max-width: 980px;
    width: 100%;
    margin-inline: auto;
}

.task-search-form {
    max-width: 980px;
    width: 100%;
    margin-inline: auto;
}

.task-search-label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

.task-search-input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #b8cce4;
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    padding: 13px 16px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.task-search-input:focus {
    border-color: var(--blue);
    box-shadow: var(--focus-ring);
    outline: none;
}

.standard-task-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(300px, 1fr) minmax(560px, 680px);
    gap: 18px;
    align-items: start;
}

.specialized-task-workspace {
    display: grid;
    gap: 18px;
}

.task-proficiency-workspace {
    display: grid;
    gap: 10px;
    width: min(1180px, 100%);
    margin-inline: auto;
}

.specialized-task-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 18px;
    align-items: start;
}

.task-category-panel,
.available-task-panel,
.selected-task-panel,
.specialized-results-panel {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
    padding: 18px;
}

.task-category-panel,
.selected-task-panel {
    position: sticky;
    top: calc(var(--header-height) + 16px);
}

.task-category-panel {
    overflow: visible;
}

.task-panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
    margin-bottom: 14px;
}

.task-panel-heading h2 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.2;
}

.task-panel-heading strong {
    color: var(--navy);
    white-space: nowrap;
}

.task-category-list,
.task-card-list,
.selected-task-list,
.specialized-job-list {
    display: grid;
    gap: 10px;
}

.task-category-link {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    position: relative;
    min-height: 56px;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--text);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.task-category-link:hover,
.task-category-link:focus-visible,
.task-category-link.is-active {
    background: #ffffff;
    border-color: #b8d3f2;
    box-shadow: 0 10px 24px rgba(9, 54, 112, 0.08);
}

.task-category-link.is-active {
    background: linear-gradient(135deg, #0a2c52 0%, #2f8df2 100%);
    border-color: #2f8df2;
    box-shadow: 0 18px 36px rgba(9, 54, 112, 0.22);
    transform: translateX(5px);
}

.task-category-link.is-active::after {
    content: "";
    position: absolute;
    right: -17px;
    top: 50%;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 17px solid #2f8df2;
    transform: translateY(-50%);
}

.task-category-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e7f1fd;
    color: var(--blue);
}

.task-category-link.is-active .task-category-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.task-category-copy {
    display: grid;
    gap: 2px;
}

.task-category-copy span {
    color: var(--navy);
    font-weight: 800;
    line-height: 1.2;
}

.task-category-copy small,
.task-option-card small,
.selected-task-card small {
    color: var(--muted);
    font-weight: 800;
}

.task-category-link.is-active .task-category-copy span,
.task-category-link.is-active .task-category-copy small {
    color: #ffffff;
}

.task-category-link.is-active .task-category-copy small {
    opacity: 0.82;
}

.task-option-card,
.selected-task-card,
.specialized-job-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    padding: 14px;
}

.specialized-job-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
}

.specialized-job-copy {
    display: grid;
    gap: 8px;
}

.task-option-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.task-option-card h3,
.selected-task-card h3,
.specialized-job-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 17px;
    line-height: 1.35;
}

.task-option-card p,
.specialized-job-card p {
    margin: 6px 0 2px;
    color: var(--muted);
    line-height: 1.45;
}

.specialized-job-card p {
    margin: 0;
}

.task-active-category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 10px;
    border-left: 4px solid var(--blue);
    border-radius: 8px;
    background: #e7f1fd;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
    padding: 8px 10px;
}

.task-option-description {
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height var(--transition), opacity var(--transition), margin var(--transition);
}

.task-option-card:hover .task-option-description,
.task-option-card:focus-within .task-option-description {
    max-height: 9rem;
    margin-top: 8px;
    opacity: 1;
}

.task-category-badge {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.task-option-action {
    display: flex;
    justify-content: flex-end;
}

.task-add-btn {
    min-width: 118px;
    min-height: 44px;
    white-space: nowrap;
}

.task-add-btn.is-added {
    cursor: default;
    opacity: 0.78;
}

.task-help {
    margin-top: 10px;
}

.task-help summary {
    color: var(--blue);
    cursor: pointer;
    font-weight: 800;
}

.task-help p {
    margin: 8px 0 0;
}

.task-clear-search {
    color: var(--blue);
    font-weight: 800;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.selected-task-details {
    display: grid;
}

.selected-task-details summary {
    display: none;
    cursor: pointer;
    color: var(--navy);
    font-weight: 800;
}

.selected-task-content {
    display: grid;
    gap: 14px;
}

.selected-task-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 8px;
    align-items: start;
}

.selected-task-card span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.selected-task-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.selected-task-line span,
.selected-task-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-task-line span::after {
    content: "/";
    margin-left: 8px;
    color: var(--muted);
}

.selected-task-line strong {
    color: var(--navy);
    font-size: 14px;
    font-weight: 800;
}

.task-remove-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #ffffff;
    color: #9d1c1c;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.task-remove-btn:hover,
.task-remove-btn:focus-visible {
    background: #fff1f2;
    border-color: #f0b4bd;
}

.task-next-form {
    display: grid;
}

.task-next-btn {
    width: 100%;
}

.task-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed #b8cce4;
    border-radius: 12px;
    background: #ffffff;
    color: var(--muted);
    line-height: 1.5;
}

.proficiency-summary-bar,
.proficiency-task-section {
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
    padding: 12px 14px;
}

.proficiency-summary-bar {
    position: sticky;
    top: calc(var(--header-height) + 28px);
    z-index: 8;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    border-left: 6px solid #f2a02f;
}

.proficiency-summary-bar.is-complete {
    border-left-color: #1f9d55;
}

.proficiency-summary-bar strong {
    display: block;
    margin-top: 2px;
    color: var(--navy);
    font-size: 30px;
    line-height: 1;
}

.mobile-proficiency-summary-label {
    display: none;
}

.proficiency-summary-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 900;
    text-align: right;
}

.proficiency-summary-status i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff4e0;
    color: #9b5c00;
}

.proficiency-summary-bar.is-complete .proficiency-summary-status i {
    background: #e7f8ef;
    color: #1f7a45;
}

.proficiency-task-section .task-panel-heading {
    margin-bottom: 8px;
}

.proficiency-task-section .task-panel-heading h2 {
    font-size: 18px;
}

.task-proficiency-form,
.proficiency-task-list {
    display: grid;
    gap: 10px;
}

@media (min-width: 1120px) {
    .proficiency-task-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.proficiency-task-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--border);
    border-left: 6px solid #b8cce4;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.proficiency-task-card.is-complete {
    border-color: #bce8cf;
    border-left-color: #1f9d55;
    background: #f4fbf7;
    box-shadow: 0 14px 28px rgba(31, 157, 85, 0.12);
}

.proficiency-task-card__heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.proficiency-task-card__heading span {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.proficiency-task-card__heading h3 {
    margin: 2px 0 0;
    color: var(--navy);
    font-size: 16px;
    line-height: 1.25;
}

.proficiency-task-card__heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.proficiency-task-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.proficiency-task-actions > i {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #dff5e9;
    color: #1f7a45;
}

.proficiency-task-actions > i[hidden] {
    display: none;
}

.proficiency-remove-task-btn {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    min-height: 26px;
    border: 1px solid #f0b4bd;
    border-radius: 50%;
    background: #ffffff;
    color: #9d1c1c;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.proficiency-remove-task-btn:hover,
.proficiency-remove-task-btn:focus-visible {
    background: #fff1f2;
    border-color: #d94f63;
    box-shadow: 0 8px 16px rgba(157, 28, 28, 0.12);
    outline: none;
    transform: translateY(-1px);
}

.proficiency-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
}

.proficiency-slider-control {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.proficiency-slider-heading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.proficiency-slider-heading span {
    color: var(--navy);
    font-size: 12px;
    font-weight: 900;
}

.proficiency-slider-heading output {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 32px;
    max-width: min(360px, 68%);
    border: 1px solid #b8d3f2;
    border-radius: 8px;
    background: #e7f1fd;
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
    text-align: right;
    line-height: 1.15;
    padding: 5px 8px;
    overflow-wrap: anywhere;
}

.proficiency-percent-input {
    min-width: 86px;
    width: 94px;
    min-height: 32px;
    border-color: #bce8cf;
    border-width: 1px;
    border-style: solid;
    border-radius: 8px;
    background: #e9f8ef;
    color: #17633a;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
    padding: 4px 24px 4px 8px;
    text-align: right;
}

.proficiency-percent-input-wrap {
    position: relative;
    display: inline-flex;
}

.proficiency-percent-input-wrap::after {
    content: "%";
    position: absolute;
    right: 9px;
    top: 50%;
    color: #17633a;
    font-size: 18px;
    font-weight: 900;
    pointer-events: none;
    transform: translateY(-50%);
}

.proficiency-percent-input:focus {
    border-color: #1f9d55;
    box-shadow: var(--focus-ring);
    outline: none;
}

.proficiency-slider-track {
    --range-thumb-offset: 10px;
    display: grid;
    gap: 0;
}

.proficiency-skill-slider,
.proficiency-percent-slider {
    width: 100%;
    min-height: 28px;
    accent-color: var(--blue);
    cursor: pointer;
}

.proficiency-task-card.is-complete .proficiency-skill-slider,
.proficiency-task-card.is-complete .proficiency-percent-slider {
    accent-color: #1f9d55;
}

.proficiency-slider-scale {
    position: relative;
    min-height: 30px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    margin-inline: var(--range-thumb-offset);
}

.proficiency-skill-scale {
    min-height: 34px;
    text-align: center;
}

.proficiency-skill-scale span {
    display: grid;
    position: absolute;
    left: var(--tick);
    width: 72px;
    transform: translateX(-50%);
    gap: 1px;
    align-content: start;
    min-width: 0;
}

.proficiency-skill-tick--0,
.range-tick--0 {
    --tick: 0%;
}

.proficiency-skill-tick--1 {
    --tick: 20%;
}

.proficiency-skill-tick--2 {
    --tick: 40%;
}

.proficiency-skill-tick--3 {
    --tick: 60%;
}

.proficiency-skill-tick--4 {
    --tick: 80%;
}

.proficiency-skill-tick--5 {
    --tick: 100%;
}

.range-tick--25 {
    --tick: 25%;
}

.range-tick--50 {
    --tick: 50%;
}

.range-tick--75 {
    --tick: 75%;
}

.range-tick--100 {
    --tick: 100%;
}

.proficiency-skill-scale strong {
    color: var(--navy);
    font-size: 10px;
    line-height: 1.1;
}

.proficiency-skill-scale small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
}

.proficiency-percent-scale {
    min-height: 18px;
    text-align: center;
}

.proficiency-percent-scale span {
    position: absolute;
    left: var(--tick);
    width: 36px;
    transform: translateX(-50%);
}

.proficiency-level-fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.proficiency-level-fieldset legend {
    margin-bottom: 8px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.proficiency-level-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    gap: 8px;
}

.proficiency-level-option {
    min-width: 0;
    cursor: pointer;
}

.proficiency-level-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.proficiency-level-option span {
    display: grid;
    gap: 3px;
    min-height: 58px;
    border: 1px solid #c8d8ea;
    border-radius: 10px;
    background: #ffffff;
    padding: 9px 10px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.proficiency-level-option input:checked + span {
    border-color: var(--blue);
    background: #e7f1fd;
    box-shadow: 0 8px 18px rgba(47, 141, 242, 0.16);
}

.proficiency-level-option input:focus-visible + span {
    box-shadow: var(--focus-ring);
}

.proficiency-level-option strong {
    color: var(--navy);
    font-size: 13px;
    line-height: 1.2;
}

.proficiency-level-option small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.proficiency-percent-field {
    display: grid;
    gap: 8px;
}

.proficiency-errors {
    display: grid;
    gap: 6px;
}

.proficiency-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.report-workflow-placeholder {
    display: grid;
    justify-items: center;
    width: min(760px, 100%);
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
    padding: 34px 24px;
    text-align: center;
}

.report-workflow-placeholder h2 {
    margin: 8px 0 10px;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.15;
}

.report-workflow-placeholder p:not(.eyebrow) {
    max-width: 560px;
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.6;
}

.report-finalization-workspace {
    display: grid;
    gap: 14px;
    width: min(1180px, 100%);
    margin-inline: auto;
}

.report-finalization-hero,
.report-preview-panel,
.report-readiness-panel,
.report-warning-panel,
.report-summary-grid article,
.report-source-grid article {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
}

.report-finalization-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-left: 6px solid #1f9d55;
}

.report-finalization-hero h2,
.report-readiness-panel h2 {
    margin: 4px 0 8px;
    color: var(--navy);
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.08;
}

.report-finalization-hero strong {
    display: block;
    color: var(--navy);
    font-size: clamp(38px, 7vw, 64px);
    line-height: 0.95;
}

.report-finalization-hero p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.report-summary-grid,
.report-source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.report-summary-grid article,
.report-source-grid article {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.report-summary-grid span,
.report-source-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.report-summary-grid strong,
.report-source-grid strong {
    color: var(--navy);
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.report-preview-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.report-preview-panel .task-panel-heading {
    margin-bottom: 0;
}

.report-preview-panel .task-panel-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.report-calculation-table {
    display: grid;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
}

.report-calculation-row {
    display: grid;
    grid-template-columns: minmax(250px, 1.6fr) 76px 112px 76px 108px 110px 120px;
    min-width: 952px;
    align-items: stretch;
}

.report-calculation-row + .report-calculation-row {
    border-top: 1px solid var(--border);
}

.report-calculation-row span {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: 10px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.report-calculation-row span + span {
    border-left: 1px solid var(--border);
}

.report-calculation-row small {
    margin-top: 3px;
    color: var(--muted);
    font-weight: 800;
}

.report-calculation-row--head {
    background: var(--navy);
}

.report-calculation-row--head span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-calculation-row--total {
    background: #e7f1fd;
}

.report-chart-list {
    display: grid;
    gap: 10px;
}

.report-chart-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(300px, 1fr);
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-left: 6px solid var(--task-color);
    border-radius: 10px;
    background: #ffffff;
    padding: 12px;
}

.report-chart-row > div:first-child {
    display: grid;
    gap: 4px;
}

.report-chart-row strong {
    color: var(--navy);
    line-height: 1.25;
}

.report-chart-row span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.report-chart-bars {
    display: grid;
    gap: 8px;
}

.report-chart-bars > span {
    display: grid;
    grid-template-columns: 52px minmax(120px, 1fr) 52px;
    gap: 8px;
    align-items: center;
    color: var(--navy);
}

.report-chart-track {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #edf3fa;
    overflow: hidden;
}

.report-chart-bar {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--task-color);
}

.report-chart-bar--time {
    width: var(--time-width);
}

.report-chart-bar--comp {
    width: var(--comp-width);
}

.report-warning-panel {
    padding: 12px 14px;
    border-left: 6px solid #f2a02f;
}

.report-warning-panel strong {
    color: var(--navy);
}

.report-warning-panel p {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 800;
}

.report-readiness-panel {
    display: grid;
    justify-items: center;
    width: min(760px, 100%);
    margin-inline: auto;
    padding: 30px 22px;
    text-align: center;
}

.report-readiness-errors {
    display: grid;
    gap: 8px;
    width: min(560px, 100%);
    margin: 4px 0 18px;
}

.report-readiness-errors .feedback-error {
    margin: 0;
}

.task-setup-panel,
.task-context-summary {
    width: min(980px, 100%);
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
    padding: 22px;
}

.task-setup-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
    gap: 24px;
    align-items: start;
}

.task-setup-copy h2,
.task-context-summary h2 {
    margin: 4px 0 8px;
    color: var(--navy);
    font-size: 26px;
    line-height: 1.15;
}

.task-setup-copy p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.task-setup-form {
    display: grid;
    gap: 18px;
}

.task-identity-grid,
.task-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.task-location-grid {
    grid-template-columns: minmax(160px, 0.45fr) minmax(0, 1fr);
}

.task-setup-form input:disabled {
    background: #edf3fa;
    color: var(--muted);
    cursor: not-allowed;
}

.intake-input--locked {
    background: #edf1f5;
    color: #5b6673;
    border-color: #c8d1db;
    cursor: not-allowed;
}

.intake-input--locked:focus {
    box-shadow: none;
    outline: none;
}

.task-setup-lock-banner {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    background: #f3f6f9;
    color: var(--navy);
}

.task-setup-lock-banner p,
.task-setup-lock-banner strong {
    margin: 0;
}

.start-report-review-link {
    align-self: flex-start;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--brand-blue, #0b559f);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.start-report-review-link[hidden] {
    display: none;
}

.start-report-input-mode {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.start-report-input-mode legend {
    margin: 0 0 8px;
    padding: 0;
    color: var(--navy);
    font-weight: 800;
}

.start-report-input-mode__choices {
    display: grid;
    gap: 10px;
}

.start-report-input-mode__choice {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.start-report-input-mode__choice input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
}

.start-report-stage-dialog {
    width: min(780px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: var(--ink, #17324d);
    box-shadow: 0 28px 90px rgba(9, 35, 64, 0.3);
}

.start-report-stage-dialog::backdrop {
    background: rgba(7, 28, 52, 0.72);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.start-report-stage-dialog__content {
    display: grid;
    gap: 1.4rem;
    padding: clamp(1.35rem, 3vw, 2.25rem);
}

.start-report-stage-dialog__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.start-report-stage-dialog__header h2 {
    margin: 0.25rem 0 0.45rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.start-report-stage-dialog__header p:last-child {
    max-width: 62ch;
    margin: 0;
    color: var(--muted, #5d7185);
}

.start-report-stage-dialog__close {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #cfdae5;
    border-radius: 50%;
    background: #fff;
    color: inherit;
    cursor: pointer;
}

.start-report-stage-dialog__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.start-report-stage-dialog__grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.start-report-new-subject {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #d8e3ed;
    border-radius: 16px;
    background: #f7fafc;
}

.start-report-new-subject[hidden] {
    display: none;
}

.start-report-stage-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding-top: 0.25rem;
}

@media (max-width: 680px) {
    .start-report-stage-dialog__grid,
    .start-report-stage-dialog__grid--three {
        grid-template-columns: 1fr;
    }

    .start-report-stage-dialog__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }
}

.task-setup-confirm-dialog {
    width: min(520px, calc(100vw - 32px));
    border: 0;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.task-setup-confirm-dialog::backdrop {
    background: rgba(9, 20, 36, 0.44);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.task-setup-confirm-dialog__content {
    display: grid;
    gap: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(9, 54, 112, 0.18);
}

.task-setup-confirm-dialog__content h3 {
    margin: 0;
    color: var(--navy);
    font-size: 28px;
    line-height: 1.08;
}

.task-setup-confirm-dialog__content p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.task-setup-confirm-dialog__content [data-setup-dialog-review] {
    display: grid;
    gap: 12px;
}

.task-setup-confirm-dialog__content [data-setup-dialog-review][hidden] {
    display: none;
}

.task-setup-confirm-dialog__waiting {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 112px;
}

.task-setup-confirm-dialog__waiting[hidden] {
    display: none;
}

.task-setup-confirm-dialog__spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #d9e7f7;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: task-setup-spin 0.8s linear infinite;
}

@keyframes task-setup-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .task-setup-confirm-dialog__spinner {
        animation-duration: 1.8s;
    }
}

.task-setup-confirm-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hours-slider-field {
    gap: 10px;
}

.hours-slider-field.needs-attention {
    border: 1px solid #f0b4bd;
    border-radius: 12px;
    background: #fff7f8;
    padding: 12px;
    animation: hours-attention-pulse 900ms ease-in-out 2;
}

.hours-slider-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

.hours-slider-heading output {
    color: var(--navy);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.hours-slider {
    --hours-progress: 0%;
    width: 100%;
    min-height: 28px;
    margin: 0;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--blue) 0%,
        var(--blue) var(--hours-progress),
        #d7e3f2 var(--hours-progress),
        #d7e3f2 100%
    );
    appearance: none;
    cursor: pointer;
}

.hours-slider-scale {
    --range-thumb-offset: 10px;
    position: relative;
    min-height: 18px;
    margin-inline: var(--range-thumb-offset);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.hours-slider-scale span {
    position: absolute;
    left: var(--tick);
    width: 42px;
    transform: translateX(-50%);
}

.hours-slider::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: transparent;
}

.hours-slider::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    margin-top: -6px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: 0 4px 12px rgba(9, 54, 112, 0.2);
    appearance: none;
}

.hours-slider::-moz-range-track {
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
}

.hours-slider::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--blue);
}

.hours-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: 0 4px 12px rgba(9, 54, 112, 0.2);
}

.hours-slider:focus-visible {
    outline: none;
}

.hours-slider:focus-visible::-webkit-slider-thumb {
    box-shadow:
        0 0 0 4px rgba(47, 141, 242, 0.18),
        0 4px 12px rgba(9, 54, 112, 0.2);
}

.hours-slider:focus-visible::-moz-range-thumb {
    box-shadow:
        0 0 0 4px rgba(47, 141, 242, 0.18),
        0 4px 12px rgba(9, 54, 112, 0.2);
}

.task-setup-submit {
    justify-self: start;
}

.task-context-summary {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 18px;
    align-items: center;
}

.task-context-summary dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.task-context-summary dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.task-context-summary dd {
    margin: 4px 0 0;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.35;
}

@keyframes hours-attention-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(157, 28, 28, 0);
        transform: translateX(0);
    }
    35% {
        box-shadow: 0 0 0 5px rgba(157, 28, 28, 0.12);
        transform: translateX(-2px);
    }
    70% {
        box-shadow: 0 0 0 3px rgba(157, 28, 28, 0.08);
        transform: translateX(2px);
    }
}

@media (max-width: 1180px) {
    .report-workflow-status {
        grid-template-columns: repeat(5, minmax(180px, 1fr));
        overflow-x: auto;
        padding-bottom: 16px;
    }

    .standard-task-layout {
        grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
    }

    .specialized-task-layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
    }

    .selected-task-panel {
        grid-column: 1 / -1;
        position: static;
    }
}

@media (max-width: 760px) {
    .report-workflow-status {
        grid-template-columns: repeat(5, minmax(170px, 1fr));
        margin-inline: -4px;
        padding-inline: 4px;
    }

    .report-workflow-step {
        min-height: 0;
        padding-inline: 8px;
    }

    .report-workflow-step__copy small {
        font-size: 11px;
    }

    .standard-task-layout {
        grid-template-columns: 1fr;
    }

    .specialized-task-layout,
    .specialized-job-card {
        grid-template-columns: 1fr;
    }

    .proficiency-summary-bar,
    .proficiency-task-card__heading,
    .proficiency-controls {
        grid-template-columns: 1fr;
    }

    .proficiency-summary-bar,
    .proficiency-task-card__heading {
        display: grid;
        text-align: left;
    }

    .proficiency-summary-status {
        justify-content: space-between;
        text-align: left;
    }

    .proficiency-level-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-category-panel,
    .available-task-panel,
    .selected-task-panel,
    .specialized-results-panel {
        padding: 14px;
    }

    .task-category-panel {
        position: static;
    }

    .task-category-link.is-active {
        transform: none;
    }

    .task-category-link.is-active::after {
        display: none;
    }

    .task-category-list {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .task-category-link {
        min-width: min(260px, 82vw);
    }

    .task-option-main {
        grid-template-columns: 1fr;
    }

    .task-option-action,
    .task-add-btn {
        width: 100%;
    }

    .selected-task-details summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 44px;
    }

    .selected-task-details:not([open]) .selected-task-content {
        display: none;
    }

    .task-setup-panel,
    .task-context-summary {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .task-identity-grid,
    .task-location-grid {
        grid-template-columns: 1fr;
    }

    .task-context-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .task-setup-submit {
        width: 100%;
    }

    .report-finalization-hero,
    .report-chart-row {
        grid-template-columns: 1fr;
    }

    .report-finalization-hero {
        display: grid;
        align-items: start;
    }

    .report-finalization-hero .primary-btn {
        width: 100%;
        justify-content: center;
    }

    .report-summary-grid,
    .report-source-grid {
        grid-template-columns: 1fr;
    }

    .report-chart-bars > span {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
    }
}

/* Centered animated homepage hero. Keep this in sync with the critical hero CSS. */
.public-home-page .hero-splash {
    position: relative;
    display: grid;
    place-items: center;
    min-height: min(880px, calc(100svh - var(--header-height)));
    padding: clamp(48px, 7vw, 82px) 24px clamp(42px, 6vw, 70px);
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% -15%, rgba(37, 99, 235, 0.2), transparent 42%),
        linear-gradient(180deg, #02050a 0%, #000000 62%, #030107 100%);
    color: #ffffff;
    text-align: center;
}

.public-home-page .process-story:not(.is-route-active) .process-route,
.public-home-page .process-story:not(.is-route-active) .process-route-traveler {
    opacity: 0 !important;
}

.public-home-page .hero-splash > * {
    grid-area: 1 / 1;
}

.public-home-page .splash-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(14px, 1.8vw, 22px);
    width: min(1260px, 96%);
    max-width: 1260px;
    margin: 0 auto;
}

.public-home-page .process-story .splash-inner {
    z-index: 3;
}

.hero-aurora {
    position: absolute;
    z-index: 0;
    width: clamp(360px, 44vw, 680px);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(82px);
    pointer-events: none;
    will-change: transform;
}

.hero-aurora--blue {
    top: -28%;
    left: -10%;
    background: #0ea5e9;
    animation: hero-aurora-blue 12s ease-in-out infinite alternate;
}

.hero-aurora--violet {
    right: -12%;
    bottom: -38%;
    background: #a855f7;
    animation: hero-aurora-violet 14s ease-in-out infinite alternate;
}

.hero-kicker {
    margin: 0;
    color: rgba(221, 235, 255, 0.76);
    font-size: clamp(12px, 1.2vw, 15px);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero-title-lockup {
    display: grid;
    justify-items: center;
    gap: clamp(10px, 1.4vw, 16px);
    width: 100%;
}

.public-home-page .splash-headline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 0.21em;
    row-gap: 0;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: clamp(46px, 6.7vw, 82px);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.splash-headline__word {
    display: inline-block;
    background-image: linear-gradient(
        105deg,
        #ffffff 0%,
        #ffffff 36%,
        #38bdf8 44%,
        #2dd4bf 50%,
        #a78bfa 56%,
        #f472b6 62%,
        #ffffff 70%,
        #ffffff 100%
    );
    background-position: 100% 50%;
    background-size: 280% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero__content.is-animated .splash-headline__word {
    animation:
        hero-word-arrive 800ms cubic-bezier(0.16, 1, 0.3, 1) calc(var(--word-index) * 120ms) both,
        hero-color-slide 7.5s ease-in-out calc(1s + var(--word-index) * 140ms) infinite;
}

.hero-sprouts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(8px, 2.2vw, 28px);
    width: min(900px, 100%);
}

.hero-sprout {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
    color: rgba(238, 246, 255, 0.86);
    font-size: clamp(13px, 1.35vw, 17px);
    font-weight: 700;
    letter-spacing: 0.045em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-sprout::before {
    content: "";
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    width: 1px;
    height: 10px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(94, 208, 255, 0.68));
}

.hero-sprout__dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6 58%, #ec4899);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.72);
}

.hero__content.is-animated .hero-sprout {
    animation: hero-keyword-grow 820ms cubic-bezier(0.16, 1, 0.3, 1) calc(720ms + var(--sprout-index) * 330ms) both;
}

.hero-sequence {
    display: grid;
    justify-items: center;
    gap: clamp(8px, 1.3vw, 14px);
    width: min(1180px, 100%);
    margin-top: clamp(4px, 1vw, 10px);
}

.hero-sequence__line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.4vw, 18px);
    max-width: 100%;
    margin: 0;
    color: #f8fbff;
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 300;
    line-height: 1.03;
    letter-spacing: -0.047em;
}

.hero-sequence__emphasis {
    background: linear-gradient(90deg, #60a5fa 0%, #22d3ee 32%, #a78bfa 68%, #f472b6 100%);
    background-position: 0% 50%;
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
    -webkit-text-fill-color: transparent;
}

.hero__content.is-animated .hero-sequence__line--technology {
    animation: hero-line-reveal 880ms cubic-bezier(0.16, 1, 0.3, 1) 2.05s both;
}

.hero__content.is-animated .hero-sequence__line--human {
    animation: hero-line-reveal 880ms cubic-bezier(0.16, 1, 0.3, 1) 2.85s both;
}

.hero-accent {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: clamp(50px, 5.2vw, 68px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(7, 15, 29, 0.84);
    box-shadow: inset 0 0 24px rgba(45, 212, 191, 0.1), 0 0 32px rgba(56, 189, 248, 0.13);
}

.hero-accent__orbit {
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(56, 189, 248, 0.34);
    border-top-color: #38bdf8;
    border-right-color: #a78bfa;
    border-bottom-color: rgba(236, 72, 153, 0.5);
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.16);
}

.hero-accent__mark {
    width: 78%;
    height: 78%;
    filter: drop-shadow(0 0 9px rgba(34, 211, 238, 0.42));
}

.hero-accent__spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: #ffffff;
    box-shadow: 0 0 11px #38bdf8;
    transform: rotate(45deg);
}

.hero-accent__spark--one {
    top: -8px;
    left: 6px;
}

.hero-accent__spark--two {
    right: -7px;
    bottom: 6px;
    width: 5px;
    height: 5px;
    background: #f0abfc;
    box-shadow: 0 0 10px #a855f7;
}

.hero__content.is-animated .hero-accent {
    animation: hero-accent-enter 940ms cubic-bezier(0.16, 1, 0.3, 1) 2.08s both;
}

.hero__content.is-animated .hero-accent__mark {
    animation: hero-accent-spin 1.15s cubic-bezier(0.34, 1.56, 0.64, 1) 2.15s both;
}

.hero__content.is-animated .hero-accent__orbit {
    animation: hero-orbit-spin 7s linear 3.2s infinite;
}

.hero__content.is-animated .hero-accent__spark {
    animation: hero-sparkle 2.4s ease-in-out 3.25s infinite;
}

.hero__content.is-animated .hero-accent__spark--two {
    animation-delay: 3.8s;
}

.hero-reviewer {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: clamp(52px, 5.8vw, 76px);
    aspect-ratio: 1;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6 56%, #ec4899);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.05), 0 14px 34px rgba(0, 0, 0, 0.36);
}

.hero-reviewer img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.hero-reviewer__check {
    position: absolute;
    right: -4px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #02050a;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.hero__content.is-animated .hero-reviewer {
    animation: hero-reviewer-arrive 780ms cubic-bezier(0.34, 1.56, 0.64, 1) 3.25s both;
}

.public-home-page .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: clamp(4px, 1vw, 10px);
}

.hero-cta {
    min-height: 50px;
    padding: 13px 22px;
    border-radius: 8px;
    font-size: 15px;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-cta.hero-cta--primary {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(110deg, #793c97 0%, #5267db 52%, #2f8df2 100%);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(82, 103, 219, 0.34);
}

.hero-cta.hero-cta--secondary {
    border: 1px solid rgba(255, 255, 255, 0.86);
    background: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-cta:hover,
.hero-cta:focus-visible {
    transform: translateY(-2px);
}

.hero-cta:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

.hero-cta.hero-cta--primary:hover,
.hero-cta.hero-cta--primary:focus-visible {
    box-shadow: 0 18px 38px rgba(82, 103, 219, 0.48);
}

.hero-cta.hero-cta--secondary:hover,
.hero-cta.hero-cta--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    margin: 0;
    color: rgba(220, 233, 250, 0.68);
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 600;
    letter-spacing: 0.035em;
}

.hero-proof span + span::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 16px 2px 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #a78bfa);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.62);
}

.hero__content.is-animated .hero-proof {
    animation: hero-actions-arrive 700ms ease-out 3.7s both;
}

.hero-splash.is-paused,
.hero-splash.is-paused * {
    animation-play-state: paused !important;
}

.hero-splash.is-motion-reduced,
.hero-splash.is-motion-reduced * {
    animation: none !important;
    transition: none !important;
}

@keyframes hero-word-arrive {
    from {
        opacity: 0;
        filter: blur(9px);
        transform: translateY(0.48em) scale(0.96);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-color-slide {
    0%,
    18% {
        background-position: 100% 50%;
    }

    56%,
    100% {
        background-position: -38% 50%;
    }
}

@keyframes hero-keyword-grow {
    from {
        opacity: 0;
        clip-path: inset(0 48% 100% 48%);
        filter: blur(7px);
        transform: translateY(-1.55em) scale(0.54);
    }

    72% {
        opacity: 1;
        clip-path: inset(0);
        filter: blur(0);
        transform: translateY(0.08em) scale(1.045);
    }

    to {
        opacity: 1;
        clip-path: inset(0);
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-line-reveal {
    from {
        opacity: 0;
        filter: blur(8px);
        transform: translateY(0.45em) scale(0.985);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-accent-enter {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes hero-accent-spin {
    from {
        filter: blur(5px) drop-shadow(0 0 3px rgba(34, 211, 238, 0.1));
        transform: rotate(-540deg) scale(0.55);
    }

    to {
        filter: blur(0) drop-shadow(0 0 9px rgba(34, 211, 238, 0.42));
        transform: rotate(0) scale(1);
    }
}

@keyframes hero-orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hero-sparkle {
    0%,
    100% {
        opacity: 0.28;
        transform: rotate(45deg) scale(0.62);
    }

    50% {
        opacity: 1;
        transform: rotate(135deg) scale(1.15);
    }
}

@keyframes hero-reviewer-arrive {
    from {
        opacity: 0;
        filter: blur(7px);
        transform: translateX(-0.5em) scale(0.5);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0) scale(1);
    }
}

@keyframes hero-actions-arrive {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-aurora-blue {
    from {
        transform: translate3d(-4%, -2%, 0) scale(0.92);
    }

    to {
        transform: translate3d(14%, 10%, 0) scale(1.08);
    }
}

@keyframes hero-aurora-violet {
    from {
        transform: translate3d(8%, 2%, 0) scale(1.05);
    }

    to {
        transform: translate3d(-14%, -9%, 0) scale(0.9);
    }
}

@media (max-width: 640px) {
    .public-home-page .hero-splash {
        min-height: calc(100svh - var(--header-height));
        padding: 36px 16px 32px;
    }

    .public-home-page .splash-inner {
        gap: 13px;
        width: 100%;
    }

    .hero-kicker {
        max-width: 36ch;
        font-size: 11px;
    }

    .public-home-page .splash-headline {
        column-gap: 0.18em;
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.02;
    }

    .hero-sprouts {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 16px;
    }

    .hero-sprout {
        font-size: 11px;
    }

    .hero-sprout::before {
        display: none;
    }

    .hero-sequence__line {
        flex-wrap: wrap;
        gap: 8px;
        font-size: clamp(27px, 8.5vw, 38px);
        line-height: 1.08;
    }

    .hero-accent {
        width: 46px;
    }

    .hero-reviewer {
        width: 52px;
    }

    .public-home-page .hero-actions {
        width: min(100%, 340px);
    }

    .hero-cta {
        width: 100%;
    }

    .hero-proof {
        flex-direction: column;
        gap: 5px;
    }

    .hero-proof span + span::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-home-page .hero-splash *,
    .public-home-page .hero-aurora {
        animation: none !important;
        transition: none !important;
    }

    .public-home-page .process-route {
        display: none;
    }

    .splash-headline__word,
    .hero-sequence__emphasis {
        background-position: 46% 50%;
    }
}

@media (forced-colors: active) {
    .splash-headline__word,
    .hero-sequence__emphasis {
        background: none;
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }

    .hero-cta:focus-visible {
        outline-color: Highlight;
    }
}

/* Simplified GIF-inspired hero sequence. Keep this block in sync with the
   homepage critical CSS. */
.public-home-page .hero-splash {
    min-height: min(820px, calc(100svh - var(--header-height)));
    padding: clamp(44px, 6vw, 70px) 24px clamp(40px, 5vw, 62px);
    background:
        radial-gradient(circle at 50% -20%, rgba(37, 99, 235, 0.16), transparent 42%),
        linear-gradient(180deg, #02050a 0%, #000000 66%, #030107 100%);
}

.public-home-page .splash-inner {
    gap: clamp(12px, 1.4vw, 18px);
    width: min(1280px, 98%);
}

.public-home-page .hero-aurora {
    opacity: 0.1;
    filter: blur(96px);
}

.public-home-page .hero-title-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.1vw, 13px);
    width: 100%;
}

.hero-term-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(370px, calc(100vw - 48px));
    height: 42px;
}

.hero-term-pill {
    --term-origin-x: 0px;
    --term-origin-y: 64px;
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(rgba(2, 5, 10, 0.94), rgba(2, 5, 10, 0.94)) padding-box,
        linear-gradient(100deg, #2563eb, #1bddf2 42%, #8b5cf6 72%, #ec4899) border-box;
    box-shadow:
        inset 0 0 22px rgba(37, 99, 235, 0.1),
        0 0 22px rgba(27, 221, 242, 0.1);
    opacity: 0;
    transform-origin: center;
    will-change: opacity, transform;
}

.hero-term-pill::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 50%;
    left: -36%;
    width: 34%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #38bdf8 35%, #2dd4bf 58%, #f0abfc 82%, transparent);
    filter: blur(2px);
    opacity: 0;
    pointer-events: none;
}

.hero-term-pill__spark,
.hero-term-pill__arrow,
.hero-term-pill__labels {
    position: relative;
    z-index: 1;
}

.hero-term-pill__spark {
    display: block;
    width: 11px;
    height: 11px;
    margin-left: 2px;
    border: 1.5px solid #67e8f9;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.72);
    transform: rotate(45deg);
}

.hero-term-pill__spark::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px #38bdf8;
}

.hero-term-pill__labels {
    display: grid;
    min-width: 0;
    height: 1.4em;
    overflow: hidden;
    color: rgba(248, 251, 255, 0.94);
    font-size: clamp(13px, 1.2vw, 15px);
    font-weight: 650;
    letter-spacing: 0.045em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.hero-term-label {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(0.7em);
    will-change: opacity, transform;
}

.hero-term-pill__arrow {
    width: 8px;
    height: 8px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.88);
    border-right: 1.5px solid rgba(255, 255, 255, 0.88);
    transform: rotate(45deg);
}

.hero__content.is-animated .hero-term-pill {
    animation: hero-term-launch 620ms cubic-bezier(0.16, 1, 0.3, 1) 760ms both;
}

.hero__content.is-animated .hero-term-pill::before {
    animation: hero-term-streak 2.4s ease-in-out 1.1s infinite;
}

.hero__content.is-animated .hero-term-label {
    animation: hero-term-cycle 7.2s ease-in-out infinite both;
}

.hero__content.is-animated .hero-term-label:nth-child(1) {
    animation-delay: 1.1s;
}

.hero__content.is-animated .hero-term-label:nth-child(2) {
    animation-delay: 3.5s;
}

.hero__content.is-animated .hero-term-label:nth-child(3) {
    animation-delay: 5.9s;
}

.public-home-page .splash-headline {
    display: block;
    width: 100%;
    margin: 0;
    color: #ffffff;
    font-size: clamp(44px, 6.45vw, 82px);
    font-weight: 580;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.splash-headline__arrival {
    display: block;
    width: 100%;
    will-change: opacity, transform;
}

.splash-headline__visual {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 0.2em;
    width: 100%;
    will-change: background-position, transform;
}

.hero-color-wash {
    background-image: linear-gradient(
        100deg,
        #ffffff 0%,
        #ffffff 39%,
        #2563eb 44%,
        #1bddf2 48%,
        #8b5cf6 53%,
        #ec4899 57%,
        #ffffff 62%,
        #ffffff 100%
    );
    background-position: 100% 50%;
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    will-change: background-position;
}

.splash-title-word,
.splash-title-word--compensation {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.hero-title-c-slot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: baseline;
    width: 0.84em;
    height: 0.96em;
    margin-right: -0.12em;
    transform: translateY(0.39em);
}

.hero-title-c {
    flex: 0 0 auto;
    width: 1.4em;
    max-width: none;
    height: 1.4em;
    filter: drop-shadow(0 0 9px rgba(27, 221, 242, 0.36));
    will-change: filter, opacity, transform;
}

.hero-term-origin {
    display: inline-block;
}

.hero__content.is-animated .splash-headline__arrival {
    animation: hero-title-arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) 40ms both;
}

.hero__content.is-animated .hero-title-c--initial {
    animation: hero-title-c-land 900ms cubic-bezier(0.16, 1, 0.3, 1) 70ms both;
}

.hero__content.is-animated .hero-title-c.is-wiggling {
    animation: hero-title-c-wiggle 480ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.hero__content.is-animated .hero-color-wash--initial {
    animation:
        hero-title-impact 360ms cubic-bezier(0.34, 1.56, 0.64, 1) 690ms both,
        hero-title-color-wash 1.6s linear 690ms both;
}

.hero__content.is-animated .hero-color-wash.is-washing {
    animation: hero-title-color-wash 1.6s linear both;
}

.public-home-page .hero-sequence {
    gap: clamp(6px, 1vw, 10px);
    width: min(1160px, 100%);
    margin-top: clamp(2px, 0.7vw, 7px);
}

.public-home-page .hero-sequence__line {
    gap: clamp(10px, 1.2vw, 15px);
    color: #f8fbff;
    font-size: clamp(31px, 4.2vw, 59px);
    font-weight: 300;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.public-home-page .hero-sequence__emphasis {
    background: none;
    color: inherit;
    font-weight: 540;
    -webkit-text-fill-color: currentColor;
}

.hero__content.is-animated .hero-sequence__line--technology {
    animation: hero-line-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) 1.22s both;
}

.hero__content.is-animated .hero-sequence__line--human {
    animation: hero-line-reveal 700ms cubic-bezier(0.16, 1, 0.3, 1) 1.48s both;
}

.public-home-page .hero-sequence__line--human {
    display: block;
    text-align: center;
}

.hero-route-origin {
    position: relative;
    display: inline-block;
    width: clamp(11px, 0.3em, 16px);
    height: clamp(11px, 0.3em, 16px);
    margin-left: 0.08em;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1bddf2 46%, #8b5cf6 78%, #ec4899);
    color: transparent;
    line-height: 1;
    vertical-align: -0.65em;
    box-shadow:
        0 0 0 4px rgba(47, 141, 242, 0.12),
        0 0 16px rgba(27, 221, 242, 0.62);
}

.hero-route-origin::before {
    content: "";
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    display: none;
    width: 2px;
    height: clamp(24px, 0.55em, 32px);
    border-radius: 999px;
    background: linear-gradient(180deg, #1bddf2 0%, #2f8df2 58%, rgba(139, 92, 246, 0.12) 100%);
    box-shadow: 0 0 9px rgba(27, 221, 242, 0.48);
    opacity: 0;
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
}

.hero-route-origin::after {
    content: "";
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    display: none;
    width: 11px;
    height: 11px;
    border-right: 2.5px solid rgba(94, 179, 255, 0.98);
    border-bottom: 2.5px solid rgba(94, 179, 255, 0.98);
    filter: drop-shadow(0 0 5px rgba(27, 221, 242, 0.7));
    transform: translate(-50%, -3px) rotate(45deg) scale(0.72);
}

.process-story.is-enhanced .hero-route-origin {
    animation: hero-route-origin-blink 2.2s ease-in-out infinite;
}

.process-story.is-enhanced .hero-route-origin::before {
    display: block;
    animation: hero-route-stem-reach 2.2s cubic-bezier(0.2, 0.7, 0.25, 1) infinite;
}

.process-story.is-enhanced .hero-route-origin::after {
    display: block;
    animation: hero-route-arrow-reach 2.2s cubic-bezier(0.2, 0.7, 0.25, 1) infinite;
}

.process-story.is-route-active .hero-route-origin::before,
.process-story.is-route-active .hero-route-origin::after {
    display: none;
}

.public-home-page .hero-reviewer {
    width: clamp(50px, 5.2vw, 68px);
    margin-left: 0.2em;
    padding: 3px;
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.04),
        0 12px 30px rgba(0, 0, 0, 0.34);
    vertical-align: middle;
}

.hero__content.is-animated .hero-reviewer {
    animation: hero-reviewer-arrive 620ms cubic-bezier(0.34, 1.56, 0.64, 1) 1.72s both;
}

.public-home-page .hero-actions {
    margin-top: clamp(5px, 0.8vw, 9px);
}

.hero__content.is-animated .hero-actions {
    animation: hero-actions-reveal 520ms ease-out 1.84s both;
}

@keyframes hero-title-arrive {
    from {
        opacity: 0;
        transform: translate3d(0, 0.42em, 0) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes hero-title-c-land {
    0% {
        opacity: 0;
        filter: blur(5px) drop-shadow(0 0 2px rgba(27, 221, 242, 0.1));
        transform: translate3d(-2.25em, -1.25em, 0) rotate(-450deg) scale(0.38);
    }

    66% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 14px rgba(27, 221, 242, 0.58));
        transform: translate3d(0.035em, -0.015em, 0) rotate(10deg) scale(1.14);
    }

    82% {
        transform: translate3d(-0.02em, 0.01em, 0) rotate(-4deg) scale(0.94);
    }

    100% {
        opacity: 1;
        filter: blur(0) drop-shadow(0 0 9px rgba(27, 221, 242, 0.36));
        transform: translate3d(0, 0, 0) rotate(0) scale(1);
    }
}

@keyframes hero-title-impact {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    42% {
        transform: translate3d(0.01em, 0, 0) scale(1.012);
    }

    72% {
        transform: translate3d(-0.005em, 0, 0) scale(0.997);
    }
}

@keyframes hero-title-c-wiggle {
    0%,
    100% {
        filter: drop-shadow(0 0 9px rgba(27, 221, 242, 0.36));
        transform: translate3d(0, 0, 0) rotate(0) scale(1);
    }

    24% {
        transform: translate3d(-0.035em, 0, 0) rotate(-8deg) scale(1.04);
    }

    52% {
        filter: drop-shadow(0 0 15px rgba(27, 221, 242, 0.62));
        transform: translate3d(0.04em, 0, 0) rotate(7deg) scale(1.06);
    }

    76% {
        transform: translate3d(-0.018em, 0, 0) rotate(-3deg) scale(1.02);
    }
}

@keyframes hero-title-color-wash {
    from {
        background-position: 100% 50%;
    }

    to {
        background-position: 0% 50%;
    }
}

@keyframes hero-term-launch {
    0% {
        opacity: 0;
        transform: translate3d(var(--term-origin-x), var(--term-origin-y), 0) scale(0.06, 0.58);
    }

    28% {
        opacity: 1;
    }

    42% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(0.065, 0.62);
    }

    78% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1.025, 1);
    }

    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@keyframes hero-term-cycle {
    0% {
        opacity: 0;
        transform: translateY(0.7em);
    }

    5%,
    28% {
        opacity: 1;
        transform: translateY(0);
    }

    34%,
    100% {
        opacity: 0;
        transform: translateY(-0.55em);
    }
}

@keyframes hero-term-streak {
    0%,
    74% {
        left: -36%;
        opacity: 0;
    }

    82% {
        opacity: 0.72;
    }

    100% {
        left: 102%;
        opacity: 0;
    }
}

@keyframes hero-route-stem-reach {
    0%,
    12% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
    }

    30% {
        opacity: 0.58;
        transform: translateX(-50%) scaleY(0.24);
    }

    64% {
        opacity: 0.95;
        transform: translateX(-50%) scaleY(1);
    }

    76% {
        opacity: 1;
        transform: translateX(-50%) scaleY(1.16);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0.16);
    }
}

@keyframes hero-route-arrow-reach {
    0%,
    12% {
        opacity: 0;
        transform: translate(-50%, -3px) rotate(45deg) scale(0.72);
    }

    30% {
        opacity: 0.55;
        transform: translate(-50%, 2px) rotate(45deg) scale(0.84);
    }

    64% {
        opacity: 1;
        transform: translate(-50%, clamp(16px, 0.38em, 22px)) rotate(45deg) scale(1);
    }

    76% {
        opacity: 1;
        transform: translate(-50%, clamp(20px, 0.46em, 27px)) rotate(45deg) scale(1.08);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 4px) rotate(45deg) scale(0.76);
    }
}

@keyframes hero-actions-reveal {
    0% {
        visibility: hidden;
        opacity: 0;
        transform: translateY(9px);
    }

    0.1% {
        visibility: visible;
        opacity: 0;
        transform: translateY(9px);
    }

    100% {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .public-home-page .hero-splash {
        min-height: calc(100svh - var(--header-height));
        padding: 32px 16px 34px;
    }

    .public-home-page .splash-inner {
        gap: 13px;
        width: 100%;
    }

    .hero-term-stage {
        width: min(330px, calc(100vw - 32px));
        height: 40px;
    }

    .hero-term-pill {
        height: 38px;
    }

    .hero-term-pill__labels {
        font-size: 12px;
    }

    .public-home-page .splash-headline {
        font-size: clamp(37px, 10.7vw, 48px);
        line-height: 1;
    }

    .splash-headline__visual {
        column-gap: 0.17em;
        row-gap: 0.01em;
    }

    .public-home-page .hero-sequence__line {
        flex-wrap: wrap;
        gap: 8px;
        font-size: clamp(27px, 8.2vw, 38px);
        line-height: 1.07;
    }

    .public-home-page .hero-reviewer {
        width: 50px;
    }

    .public-home-page .hero-actions {
        width: min(100%, 340px);
        margin-top: 14px;
    }

    .public-home-page .hero-cta {
        width: 100%;
    }
}

@media (max-width: 440px) {
    .public-home-page .splash-headline {
        font-size: clamp(32px, 9vw, 38px);
        line-height: 0.98;
    }

    .public-home-page .hero-sequence__line {
        font-size: clamp(23px, 6.8vw, 27px);
        line-height: 1.05;
    }

    .public-home-page .hero-term-pill__labels {
        font-size: 11px;
        letter-spacing: 0.035em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-home-page .hero-term-pill {
        opacity: 1;
        transform: none;
    }

    .public-home-page .hero-term-label:first-child {
        opacity: 1;
        transform: none;
    }

    .public-home-page .splash-headline__visual {
        background-position: 100% 50%;
    }

    .public-home-page .hero-color-wash {
        background-position: 100% 50%;
    }

    .public-home-page .process-story.is-enhanced .hero-route-origin::before,
    .public-home-page .process-story.is-enhanced .hero-route-origin::after {
        display: none;
    }
}

@media (forced-colors: active) {
    .public-home-page .splash-headline__visual,
    .public-home-page .hero-color-wash {
        background: none;
        color: CanvasText;
        -webkit-text-fill-color: CanvasText;
    }

    .public-home-page .hero-term-pill {
        border-color: CanvasText;
        background: Canvas;
        color: CanvasText;
    }

    .public-home-page .hero-route-origin {
        background: Highlight;
        box-shadow: none;
    }
}

/* Reasonable compensation approach selection, intake, review, and final selection. */
.compensation-approach-workspace {
    display: grid;
    width: min(1220px, 100%);
    gap: 16px;
    margin-inline: auto;
}

.approach-workflow-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    width: min(1220px, 100%);
    margin-inline: auto;
}

.approach-workflow-heading__badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #bcd5ed;
    border-radius: 999px;
    background: #edf7ff;
    color: var(--navy);
    font-size: 13px;
    font-weight: 900;
}

.approach-workflow-heading__change {
    min-height: 40px;
}

.report-workflow-status:has(> .report-workflow-step:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mobile-workflow-progress:has(> i:nth-child(4):last-child) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approach-intro-panel,
.approach-guide-panel,
.approach-choice-panel,
.approach-data-form,
.approach-summary-panel,
.approach-review-panel,
.approach-review-hero {
    border: 1px solid var(--border);
    background: var(--surface-gradient);
    box-shadow: var(--shadow);
}

.approach-intro-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
}

.approach-intro-panel__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--blue), #1266bd);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(24, 112, 207, 0.22);
}

.approach-intro-panel--market .approach-intro-panel__icon {
    background: linear-gradient(145deg, #0c83a9, #075f87);
}

.approach-intro-panel--income .approach-intro-panel__icon {
    background: linear-gradient(145deg, #6552b8, #42358c);
}

.approach-intro-panel--review .approach-intro-panel__icon,
.approach-intro-panel--final .approach-intro-panel__icon {
    background: linear-gradient(145deg, #1f9d70, #137350);
}

.approach-intro-panel h2 {
    margin: 4px 0 8px;
    color: var(--navy);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.12;
}

.approach-intro-panel p:not(.eyebrow) {
    max-width: 920px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.approach-intro-panel p:not(.eyebrow) + p {
    margin-top: 8px;
}

.approach-selection-form,
.approach-data-form,
.approach-review-main,
.final-selection-form {
    display: grid;
    gap: 16px;
}

.task-setup-panel:has(.common-information-section) {
    width: min(1220px, 100%);
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1.62fr);
}

.common-information-section {
    display: grid;
    gap: 14px;
    padding: 17px;
    border: 1px solid #d4e1ee;
    border-radius: 14px;
    background: #ffffff;
}

.common-information-section > header {
    display: grid;
    gap: 3px;
}

.common-information-section > header h3 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.2;
}

.common-information-section > header p:not(.eyebrow) {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.common-information-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.common-information-grid--narrative {
    align-items: start;
}

.common-information-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.common-information-section .form-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 7px;
}

.common-information-section .form-field > label,
.common-information-section .form-field > legend {
    color: var(--navy);
    font-weight: 850;
    line-height: 1.35;
}

.common-information-section .intake-input,
.common-information-section textarea,
.common-information-section select,
.common-information-section input[type="date"],
.common-information-section input[type="number"],
.common-information-section input[type="text"] {
    width: 100%;
    max-width: none;
}

.common-information-period {
    margin: 0;
    padding: 0;
    border: 0;
}

.common-information-period > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.common-information-period > div > div label {
    display: flex;
    gap: 7px;
    align-items: center;
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid #c8d9e9;
    border-radius: 10px;
    background: #f8fbfe;
    color: var(--navy);
    font-weight: 800;
}

.common-information-period input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--blue);
}

.approach-guide-panel,
.approach-choice-panel,
.approach-form-section {
    min-width: 0;
    margin: 0;
    border-radius: 16px;
    padding: 20px;
}

.approach-guide-panel > legend,
.approach-choice-panel > legend,
.approach-form-section > legend {
    display: grid;
    gap: 3px;
    max-width: calc(100% - 24px);
    padding: 0 10px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 900;
    line-height: 1.25;
}

.approach-guide-panel__lead,
.approach-form-section__lead {
    max-width: 800px;
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
}

.approach-question-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.approach-question-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 15px;
    border: 1px solid #d2e2f2;
    border-radius: 13px;
    background: #ffffff;
}

.approach-question-card__number,
.income-eligibility-question > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #e4f2ff;
    color: var(--blue);
    font-weight: 900;
}

.approach-question-card .form-field,
.income-eligibility-question .form-field {
    min-width: 0;
}

.approach-question-card select,
.income-eligibility-question select {
    width: 100%;
}

.approach-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.approach-choice-card {
    display: grid;
    position: relative;
    align-content: start;
    min-width: 0;
    gap: 14px;
    padding: 18px;
    overflow: hidden;
    border: 2px solid #d3e0ee;
    border-radius: 15px;
    background: #ffffff;
    color: var(--text);
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.approach-choice-card:hover {
    border-color: #8ebce9;
    box-shadow: 0 12px 28px rgba(9, 54, 112, 0.13);
    transform: translateY(-2px);
}

.approach-choice-card.is-unavailable {
    cursor: not-allowed;
    filter: grayscale(0.35);
    opacity: 0.62;
}

.approach-choice-card.is-unavailable:hover {
    border-color: #d3e0ee;
    box-shadow: none;
    transform: none;
}

.approach-choice-card:has(input:focus-visible) {
    box-shadow: var(--focus-ring);
}

.approach-choice-card:has(input:checked) {
    border-color: var(--blue);
    background: linear-gradient(180deg, #f4faff, #ffffff);
    box-shadow: 0 14px 30px rgba(26, 111, 205, 0.16);
}

.approach-choice-card--income:has(input:checked) {
    border-color: #6552b8;
    background: linear-gradient(180deg, #f7f5ff, #ffffff);
}

.approach-choice-card--market:has(input:checked) {
    border-color: #0c83a9;
    background: linear-gradient(180deg, #f1fbfe, #ffffff);
}

.approach-choice-card > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.approach-choice-card__check {
    display: grid;
    position: absolute;
    top: 13px;
    right: 13px;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 2px solid #bfd1e3;
    border-radius: 50%;
    background: #ffffff;
    color: transparent;
}

.approach-choice-card input:checked ~ .approach-choice-card__check {
    border-color: var(--blue);
    background: var(--blue);
    color: #ffffff;
}

.approach-choice-card__heading {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    padding-right: 28px;
}

.approach-choice-card__heading > i {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 12px;
    background: #e7f3ff;
    color: var(--blue);
    font-size: 18px;
}

.approach-choice-card--market .approach-choice-card__heading > i {
    background: #e2f7fb;
    color: #087b9f;
}

.approach-choice-card--income .approach-choice-card__heading > i {
    background: #eeeafd;
    color: #6552b8;
}

.approach-choice-card__heading > span {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.approach-choice-card__heading small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.approach-choice-card__heading strong {
    color: var(--navy);
    font-size: 19px;
    line-height: 1.2;
}

.approach-choice-card__body,
.approach-choice-card__caution {
    font-size: 14px;
    line-height: 1.5;
}

.approach-choice-card__body b {
    display: block;
    margin-bottom: 3px;
    color: var(--navy);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.approach-choice-card__caution {
    align-self: end;
    padding: 10px 11px;
    border-radius: 10px;
    background: #fff6e8;
    color: #785015;
    font-weight: 700;
}

.approach-recommendation-note,
.approach-alert,
.approach-switch-warning,
.income-ineligible-notice,
.income-negative-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    border-radius: 13px;
    padding: 14px 16px;
}

.approach-recommendation-note {
    border: 1px solid #bcd9f5;
    background: #edf7ff;
    color: var(--navy);
}

.approach-recommendation-note > i,
.approach-alert > i,
.approach-switch-warning > i,
.income-ineligible-notice > i {
    margin-top: 2px;
    font-size: 18px;
}

.approach-recommendation-note p,
.approach-alert p,
.approach-switch-warning p,
.income-ineligible-notice p,
.income-negative-result p {
    margin: 0;
    line-height: 1.5;
}

.approach-alert {
    border: 1px solid #bdd8f3;
    background: #eff7ff;
    color: #184d7f;
}

.approach-alert--warning,
.approach-switch-warning {
    border: 1px solid #f1cf8a;
    background: #fff8e8;
    color: #68470f;
}

.approach-alert--error,
.income-ineligible-notice,
.income-negative-result {
    border: 1px solid #e8acb5;
    background: #fff2f4;
    color: #7c2431;
}

.approach-alert strong,
.approach-switch-warning strong,
.income-ineligible-notice strong,
.income-negative-result strong {
    display: block;
    margin-bottom: 3px;
}

.approach-switch-warning > div {
    display: grid;
    gap: 7px;
}

.approach-confirm-control,
.approach-checkbox-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    font-weight: 750;
    line-height: 1.45;
}

.approach-confirm-control input,
.approach-checkbox-field input {
    width: 21px;
    height: 21px;
    margin: 1px 0 0;
    accent-color: var(--blue);
}

.approach-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 2px;
}

.approach-form-actions__hint {
    max-width: 520px;
    margin-right: auto;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.approach-form-actions .primary-btn,
.approach-form-actions .ghost-btn {
    min-height: 48px;
}

.approach-form-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.approach-two-column-layout,
.approach-review-layout,
.final-selection-layout,
.income-eligibility-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 370px);
    gap: 18px;
    align-items: start;
}

.approach-two-column-layout--income {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
}

.approach-data-form {
    min-width: 0;
    border-radius: 16px;
    padding: 20px;
}

.approach-form-section {
    display: grid;
    gap: 15px;
    border: 1px solid #d4e1ee;
    background: #ffffff;
    box-shadow: none;
}

.approach-form-section__number {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-right: 7px;
    place-items: center;
    border-radius: 50%;
    background: #e4f2ff;
    color: var(--blue);
    font-size: 14px;
    vertical-align: middle;
}

.approach-field-grid {
    display: grid;
    gap: 14px;
}

.approach-field-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approach-data-form .form-field {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.approach-data-form .form-field > label,
.approach-field-label {
    color: var(--navy);
    font-weight: 850;
    line-height: 1.35;
}

.approach-data-form .intake-input,
.approach-data-form select,
.approach-data-form textarea,
.approach-data-form input[type="date"],
.approach-data-form input[type="number"],
.approach-data-form input[type="text"],
.approach-data-form input[type="file"] {
    width: 100%;
    max-width: none;
}

.approach-context-rail {
    display: grid;
    position: sticky;
    top: calc(var(--header-height) + 14px);
    gap: 14px;
}

.approach-summary-panel {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 17px;
    border-radius: 15px;
}

.approach-summary-panel__heading {
    display: grid;
    gap: 3px;
}

.approach-summary-panel__heading h3 {
    margin: 0;
    color: var(--navy);
    font-size: 21px;
    line-height: 1.2;
}

.approach-summary-panel__heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.approach-fact-list,
.market-range-summary,
.income-calculation-list,
.approach-review-detail-grid,
.income-review-waterfall,
.gross-receipts-review dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.approach-fact-list > div,
.income-calculation-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 9px 0;
    border-bottom: 1px solid #e0e9f2;
}

.approach-fact-list > div:last-child,
.income-calculation-list > div:last-child {
    border-bottom: 0;
}

.approach-fact-list dt,
.income-calculation-list dt,
.approach-review-detail-grid dt,
.income-review-waterfall dt,
.gross-receipts-review dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    line-height: 1.35;
}

.approach-fact-list dd,
.income-calculation-list dd,
.approach-review-detail-grid dd,
.income-review-waterfall dd,
.gross-receipts-review dd {
    margin: 0;
    color: var(--navy);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.approach-fact-list > div {
    grid-template-columns: minmax(92px, 0.42fr) minmax(0, 1fr);
    align-items: start;
}

.approach-fact-list dt,
.approach-fact-list dd {
    min-width: 0;
}

.approach-fact-list dd {
    text-align: right;
    line-height: 1.4;
}

.approach-fact-list > .approach-fact-list__wide {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

.approach-fact-list > .approach-fact-list__wide dd {
    text-align: left;
}

.approach-inline-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.market-position-search {
    margin-top: 2px;
}

.market-position-results {
    display: grid;
    gap: 12px;
}

.market-position-current,
.market-position-results__heading {
    display: grid;
    gap: 7px;
    margin: 0;
}

.market-position-results__heading > p {
    margin: 0;
}

.market-position-list {
    display: grid;
    gap: 10px;
}

.market-position-option {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 14px;
    padding: 15px;
    border: 1px solid #c6d8e9;
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
    transition:
        border-color var(--transition),
        background-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.market-position-option:hover {
    border-color: #78acd9;
    box-shadow: 0 8px 22px rgba(9, 54, 112, 0.09);
    transform: translateY(-1px);
}

.market-position-option:focus-within {
    border-color: var(--blue);
    box-shadow: var(--focus-ring);
}

.market-position-option:has(input:checked) {
    border-color: #2682c8;
    background: #eef7ff;
    box-shadow: 0 8px 22px rgba(9, 84, 151, 0.11);
}

.market-position-option > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.market-position-option__copy {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.market-position-option__copy > strong {
    color: var(--navy);
    font-size: 17px;
    line-height: 1.35;
}

.market-position-option__description {
    color: var(--text);
    line-height: 1.5;
}

.market-position-option__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 88px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid #a9c8e2;
    border-radius: 999px;
    color: #12679d;
    background: #f5fbff;
    font-size: 13px;
    font-weight: 900;
}

.market-position-option__status i {
    opacity: 0;
}

.market-position-option:has(input:checked) .market-position-option__status {
    border-color: #2682c8;
    color: #ffffff;
    background: #1874b5;
}

.market-position-option:has(input:checked) .market-position-option__status i {
    opacity: 1;
}

.market-position-results__prompt,
.market-position-results__empty {
    margin: 0;
    padding: 16px;
    border: 1px dashed #b9cddd;
    border-radius: 12px;
    color: var(--muted);
    background: #f8fbfe;
    line-height: 1.5;
}

.market-wage-points {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
}

.market-wage-points > div {
    display: grid;
    justify-items: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 3px;
    border: 1px solid #dbe5ef;
    border-radius: 9px;
    background: #f8fafc;
}

.market-wage-points > div.is-used {
    border-color: #83b5e5;
    background: #e8f4ff;
}

.market-wage-points span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-wage-points strong {
    min-width: 0;
    color: var(--navy);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.market-range-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.market-range-summary > div {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 11px 5px;
    border: 1px solid #d4e1ed;
    border-radius: 10px;
    background: #ffffff;
}

.market-range-summary > div.is-suggested {
    border-color: var(--blue);
    background: #e9f4ff;
}

.market-range-summary dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.market-range-summary dd {
    margin: 0;
    color: var(--navy);
    font-size: 16px;
    font-weight: 900;
}

.approach-method-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.approach-method-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--navy);
}

.approach-check-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.approach-check-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.approach-check-list li::before {
    content: "\f00c";
    color: #1f9d70;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.income-eligibility-questions {
    display: grid;
    gap: 10px;
}

.income-eligibility-question {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid #d4e1ee;
    border-radius: 12px;
    background: #f9fbfd;
}

.income-basis-refresh {
    justify-self: start;
}

.approach-radio-cards > ul,
.approach-checkbox-grid > ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.approach-radio-cards > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approach-radio-cards li label,
.approach-checkbox-grid li label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    height: 100%;
    padding: 12px;
    border: 1px solid #cadbea;
    border-radius: 11px;
    background: #f8fbfe;
    color: var(--navy);
    font-weight: 800;
    line-height: 1.4;
}

.approach-radio-cards input,
.approach-checkbox-grid input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--blue);
}

.approach-radio-cards li label:has(input:checked) {
    border-color: var(--blue);
    background: #e8f4ff;
}

.approach-checkbox-grid > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.approach-checkbox-grid li label {
    padding: 10px;
    font-size: 13px;
}

.income-document-list {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #d4e1ee;
    border-radius: 11px;
    background: #f8fafc;
}

.income-document-list ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.income-document-list li {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.income-formula {
    display: grid;
    gap: 7px;
    justify-items: center;
}

.income-formula > div {
    display: grid;
    width: 100%;
    gap: 3px;
    padding: 11px;
    border: 1px solid #d4e1ed;
    border-radius: 10px;
    background: #ffffff;
    color: var(--navy);
    font-weight: 850;
    line-height: 1.35;
    text-align: center;
}

.income-formula > b {
    color: #6552b8;
    font-size: 22px;
}

.income-formula small {
    color: var(--muted);
    font-size: 11px;
}

.income-formula .income-formula__result {
    border-color: #6552b8;
    background: #f0edff;
}

.income-calculation-list > div.is-result {
    margin-top: 5px;
    padding: 11px 9px;
    border: 1px solid #a99de0;
    border-radius: 9px;
    background: #f0edff;
}

.approach-review-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.65fr);
    gap: 18px;
    align-items: center;
    padding: 20px;
    border-radius: 16px;
}

.approach-review-hero > div {
    display: grid;
    gap: 5px;
}

.approach-review-hero span,
.final-selection-summary__method > span,
.final-indicated-amount > span,
.final-actual-comparison > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.approach-review-hero strong {
    color: var(--navy);
    font-size: clamp(21px, 3vw, 30px);
    line-height: 1.15;
}

.approach-review-hero p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

.approach-review-hero__amount {
    padding: 16px;
    border: 1px solid #99c6ee;
    border-radius: 13px;
    background: #edf7ff;
}

.approach-review-hero__amount strong {
    font-size: clamp(29px, 4vw, 44px);
}

.approach-review-hero__amount small {
    color: var(--muted);
    line-height: 1.4;
}

.approach-review-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border-radius: 15px;
}

.review-compensation-range {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.review-compensation-range article {
    display: grid;
    gap: 5px;
    padding: 13px 10px;
    border: 1px solid #d5e1ec;
    border-radius: 11px;
    background: #f9fbfd;
}

.review-compensation-range article.is-suggested {
    border-color: var(--blue);
    background: #eaf5ff;
}

.review-compensation-range article.is-actual {
    border-color: #ceb96d;
    background: #fff9e8;
}

.review-compensation-range span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.review-compensation-range strong {
    color: var(--navy);
    font-size: 19px;
    overflow-wrap: anywhere;
}

.approach-review-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.approach-review-detail-grid > div {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 11px;
    border: 1px solid #dce5ee;
    border-radius: 10px;
    background: #fbfcfe;
}

.income-review-waterfall {
    gap: 7px;
}

.income-review-waterfall > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    padding: 10px 12px;
    border-left: 4px solid #c8bee9;
    background: #f8f6ff;
}

.income-review-waterfall > div.is-result {
    border-left-color: #6552b8;
    background: #ece8ff;
}

.income-review-waterfall > div.is-limitation {
    border-left-color: #d3942e;
    background: #fff7e8;
}

.cost-review-list {
    display: grid;
    gap: 9px;
}

.cost-review-list article {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid #d8e3ed;
    border-radius: 11px;
    background: #ffffff;
}

.cost-review-list article > div {
    display: grid;
    align-content: start;
    gap: 3px;
}

.cost-review-list article > div strong {
    color: var(--navy);
}

.cost-review-list article > div span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.cost-review-list dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.cost-review-list dl > div {
    display: grid;
    gap: 2px;
}

.cost-review-list dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.cost-review-list dd {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
}

.approach-empty-state {
    margin: 0;
    padding: 16px;
    border: 1px dashed #bdcedf;
    border-radius: 11px;
    color: var(--muted);
    text-align: center;
}

.gross-receipts-review {
    display: grid;
    gap: 9px;
    padding: 12px;
    border: 1px solid #d3e1ed;
    border-radius: 11px;
    background: #f6faff;
}

.gross-receipts-review > strong {
    color: var(--navy);
}

.gross-receipts-review dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.gross-receipts-review dl > div {
    display: grid;
    gap: 3px;
}

.approach-form-actions--review {
    padding: 12px 0 0;
}

.final-selection-layout {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
}

.final-selection-summary {
    display: grid;
    gap: 14px;
}

.final-selection-summary__method,
.final-indicated-amount,
.final-actual-comparison {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #d4e2ee;
    border-radius: 12px;
    background: #f8fbfe;
}

.final-selection-summary__method strong {
    color: var(--navy);
    font-size: 22px;
}

.review-compensation-range--final {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.final-indicated-amount {
    border-color: #8fc0ea;
    background: #eaf5ff;
}

.final-indicated-amount strong {
    color: var(--navy);
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
}

.final-indicated-amount small {
    color: var(--muted);
    font-weight: 700;
}

.final-actual-comparison {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.final-actual-comparison strong {
    color: var(--navy);
    font-size: 20px;
}

.final-selection-fields > legend {
    display: block;
}

.currency-input-wrap {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border: 1px solid #b8cce4;
    border-radius: 12px;
    background: #ffffff;
}

.currency-input-wrap:focus-within {
    border-color: var(--blue);
    box-shadow: var(--focus-ring);
}

.currency-input-wrap > span {
    padding-left: 14px;
    color: var(--navy);
    font-weight: 900;
}

.currency-input-wrap input {
    border: 0;
    box-shadow: none;
}

.currency-input-wrap input:focus {
    box-shadow: none;
    outline: none;
}

.final-report-actions {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid #8dcdb2;
    border-left: 6px solid #1f9d70;
    border-radius: 15px;
    background: #f0fbf6;
    box-shadow: var(--shadow);
}

.final-report-actions > div {
    display: grid;
    gap: 4px;
}

.final-report-actions > div > strong {
    color: var(--navy);
    font-size: clamp(27px, 4vw, 40px);
    line-height: 1.05;
}

.final-report-actions p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.final-report-actions form {
    display: grid;
}

.final-report-actions .primary-btn {
    white-space: nowrap;
}

@media (max-width: 1060px) {
    .approach-choice-grid {
        grid-template-columns: 1fr;
    }

    .approach-choice-card {
        grid-template-columns: minmax(220px, 0.7fr) repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .approach-choice-card__caution {
        grid-column: 1 / -1;
    }

    .approach-two-column-layout,
    .approach-two-column-layout--income,
    .approach-review-layout,
    .final-selection-layout,
    .income-eligibility-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
    }
}

/* Editorial report proof section */
#reports.reports-editorial {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(72px, 9vw, 124px);
    color: #ffffff;
    background:
        radial-gradient(circle at 8% 8%, rgba(47, 141, 242, 0.22), transparent 30%),
        radial-gradient(circle at 92% 88%, rgba(121, 60, 151, 0.28), transparent 34%),
        #071b32;
}

#reports.reports-editorial::before {
    position: absolute;
    z-index: -1;
    top: -34%;
    right: -10%;
    width: min(48vw, 720px);
    aspect-ratio: 1;
    content: "C";
    color: rgba(255, 255, 255, 0.025);
    font-size: min(48vw, 720px);
    font-weight: 800;
    line-height: 0.92;
    pointer-events: none;
}

.reports-editorial__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    gap: clamp(54px, 8vw, 112px);
    align-items: start;
}

.reports-editorial__intro .eyebrow,
.about-hero .eyebrow,
.about-cta .eyebrow {
    color: #64e5f1;
}

.reports-editorial__intro h2 {
    max-width: 10.5ch;
    margin: 18px 0 24px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.reports-editorial__intro .section-lead {
    margin: 0;
    color: #bccbe0;
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.65;
}

.reports-editorial__link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 28px;
    color: #ffffff;
    font-weight: 750;
    border-bottom: 1px solid rgba(100, 229, 241, 0.7);
}

.reports-editorial__link span {
    color: #64e5f1;
    font-size: 22px;
    transition: transform 180ms ease;
}

.reports-editorial__link:hover span,
.reports-editorial__link:focus-visible span {
    transform: translateX(4px);
}

.report-proof-list {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.report-proof {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 34px);
    padding: clamp(28px, 4vw, 42px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.report-proof__number {
    padding-top: 4px;
    color: #64e5f1;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.report-proof__body h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(22px, 2.5vw, 30px);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.report-proof__body p {
    max-width: 54ch;
    margin: 0;
    color: #aebfd5;
    font-size: 17px;
    line-height: 1.65;
}

/* About page */
.about-page main {
    overflow: hidden;
}

.about-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: min(680px, calc(100svh - var(--header-height)));
    align-items: center;
    overflow: hidden;
    padding-block: clamp(82px, 11vw, 150px);
    color: #ffffff;
    background: #071b32;
}

.about-hero__glow {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
}

.about-hero__glow--one {
    top: -28%;
    left: -12%;
    width: 58vw;
    height: 58vw;
    background: radial-gradient(circle, rgba(47, 141, 242, 0.34), transparent 66%);
}

.about-hero__glow--two {
    right: -18%;
    bottom: -45%;
    width: 64vw;
    height: 64vw;
    background: radial-gradient(circle, rgba(121, 60, 151, 0.38), transparent 67%);
}

.about-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.7fr);
    gap: clamp(52px, 9vw, 130px);
    align-items: end;
}

.about-hero h1 {
    max-width: 10ch;
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(48px, 7.4vw, 90px);
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.about-hero__statement {
    padding-left: 28px;
    border-left: 2px solid #64e5f1;
}

.about-hero__statement p {
    margin: 0;
    color: #d5dfed;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.65;
}

.about-hero__statement p + p {
    margin-top: 18px;
}

.about-story {
    padding-block: clamp(72px, 10vw, 132px);
    background: #ffffff;
}

.about-story__layout {
    display: grid;
    grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr);
    gap: clamp(42px, 10vw, 150px);
}

.about-story__label {
    margin: 10px 0 0;
    color: #196fc7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.about-story__copy {
    max-width: 790px;
}

.about-story h2,
.about-team__header h2,
.about-cta h2 {
    margin: 0;
    color: #071b32;
    font-size: clamp(38px, 5.4vw, 66px);
    line-height: 1;
    letter-spacing: -0.055em;
}

.about-story__copy p {
    margin: 28px 0 0;
    color: #43546d;
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.75;
}

.about-team {
    padding-block: clamp(72px, 10vw, 132px);
    background: #edf3fb;
}

.about-team__header {
    display: grid;
    grid-template-columns: minmax(200px, 0.35fr) minmax(0, 1fr);
    gap: clamp(36px, 9vw, 130px);
    align-items: end;
    margin-bottom: clamp(58px, 8vw, 100px);
}

.about-team__header .eyebrow {
    margin: 0 0 10px;
}

.team-profile {
    display: grid;
    grid-template-areas: "portrait copy";
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: clamp(54px, 10vw, 140px);
    align-items: center;
    padding-block: clamp(48px, 7vw, 82px);
    border-top: 1px solid #bdcbdd;
}

.team-profile--alaina {
    grid-template-areas: "copy portrait";
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
}

.team-profile__portrait-wrap {
    position: relative;
    grid-area: portrait;
    aspect-ratio: 1;
}

.team-profile__orbit {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(47, 141, 242, 0.42);
    border-radius: 50%;
    transform: translate(10px, -7px);
}

.team-profile--alaina .team-profile__orbit {
    border-color: rgba(121, 60, 151, 0.42);
    transform: translate(-10px, 7px);
}

.team-profile__portrait {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    border: 7px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 24px 55px rgba(7, 27, 50, 0.18);
}

.team-profile__copy {
    grid-area: copy;
    max-width: 680px;
}

.team-profile__role {
    margin: 0 0 14px;
    color: #196fc7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.team-profile__copy h3 {
    margin: 0 0 24px;
    color: #071b32;
    font-size: clamp(34px, 4.5vw, 54px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.team-profile__copy h3 span {
    display: block;
    margin-top: 8px;
    color: #50607a;
    font-size: 0.38em;
    font-weight: 750;
    letter-spacing: 0.045em;
}

.team-profile__copy p:not(.team-profile__role) {
    margin: 0;
    color: #43546d;
    font-size: 17px;
    line-height: 1.75;
}

.team-profile__copy p + p {
    margin-top: 18px;
}

.team-profile__copy a {
    color: #0b6ec9;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(11, 110, 201, 0.35);
    text-underline-offset: 3px;
}

.about-cta {
    padding-block: clamp(64px, 8vw, 100px);
    color: #ffffff;
    background: linear-gradient(120deg, #0c2f61, #195fa8 56%, #793c97);
}

.about-cta__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-cta h2 {
    max-width: 14ch;
    margin-top: 12px;
    color: #ffffff;
    font-size: clamp(34px, 4.6vw, 56px);
}

.about-cta .primary-btn {
    flex: 0 0 auto;
    min-height: 54px;
    padding-inline: 24px;
    color: #071b32;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
}

@media (max-width: 860px) {
    .reports-editorial__layout,
    .about-hero__layout {
        grid-template-columns: 1fr;
    }

    .reports-editorial__layout {
        gap: 52px;
    }

    .reports-editorial__intro h2 {
        max-width: 13ch;
    }

    .about-hero {
        min-height: auto;
    }

    .about-hero__layout {
        gap: 48px;
        align-items: start;
    }

    .about-hero__statement {
        max-width: 640px;
    }

    .about-team__header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .team-profile,
    .team-profile--alaina {
        grid-template-areas:
            "portrait"
            "copy";
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .team-profile__portrait-wrap {
        width: min(72vw, 320px);
    }

    .about-cta__layout {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .reports-editorial,
    .about-hero,
    .about-story,
    .about-team,
    .about-cta {
        padding-block: 64px;
    }

    .reports-editorial__intro h2,
    .about-hero h1 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .report-proof {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .about-hero__statement {
        padding-left: 20px;
    }

    .about-story__layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .about-story__label {
        margin-top: 0;
    }

    .team-profile__portrait {
        border-width: 5px;
    }

    .about-cta .primary-btn {
        width: 100%;
    }
}
