/* ===================================
   ABC Circle — How It Works Page
   Unified Ivory/Teal Institutional Theme
   =================================== */

:root {
    --ivory: #FAFAF7;
    --surface: #FFFFFF;
    --teal-dark: #1A3A3A;
    --teal-mid: #2A5555;
    --teal-accent: #3D7A7A;
    --teal-light: #E8F0EF;
    --teal-subtle: #F2F7F6;
    --border: #E2E0DB;
    --border-dark: #C8C4BD;
    --text: #1C1C1C;
    --text-mid: #3A3A3A;
    --muted: #6B6B6B;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 4px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--ivory);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

::selection {
    background: var(--teal-light);
    color: var(--teal-dark);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 10000;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--teal-accent);
    transition: width 0.1s linear;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    padding: 1.25rem 0;
    background: rgba(250, 250, 247, 0.92);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}

.nav.scrolled {
    padding: 0.875rem 0;
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-mark {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-menu a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.3s var(--ease);
}

.nav-menu a:hover { color: var(--text); }

.nav-cta {
    background: var(--teal-dark) !important;
    color: var(--surface) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: all 0.3s var(--ease) !important;
}

.nav-cta:hover {
    background: var(--teal-mid) !important;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; right: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); padding: 0.5rem 0; padding-top: 0.75rem; margin-top: 0; z-index: 9999; }
.nav-dropdown::after { content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a { display: block; padding: 0.625rem 1.25rem; font-size: 0.8125rem; font-weight: 500; color: var(--muted) !important; background: none !important; transition: all 0.2s ease; }
.dropdown-menu a:hover { color: var(--teal-dark) !important; background: var(--teal-subtle) !important; padding-left: 1.5rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 9001;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    border: 1px solid rgba(26, 58, 58, 0.08);
    margin-bottom: 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    letter-spacing: -0.01em;
}

.btn-glow,
.btn-primary {
    background: var(--teal-dark);
    color: var(--surface);
}

.btn-glow:hover,
.btn-primary:hover {
    background: var(--teal-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 58, 0.15);
}

.btn-ghost,
.btn-secondary {
    background: transparent;
    color: var(--teal-dark);
    border: 1.5px solid var(--teal-dark);
}

.btn-ghost:hover,
.btn-secondary:hover {
    background: var(--teal-dark);
    color: var(--surface);
    transform: translateY(-2px);
}

.btn-ghost svg,
.btn-secondary svg {
    transition: transform 0.3s var(--ease);
}

.btn-ghost:hover svg,
.btn-secondary:hover svg {
    transform: translateX(3px);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

/* ===== PAGE HERO ===== */
.page-hero {
    position: relative;
    padding: 11rem 0 5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 30%, var(--teal-subtle), transparent 60%);
}

.page-hero-content {
    position: relative;
    max-width: 720px;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--teal-dark);
    margin-bottom: 1.5rem;
}

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

.page-subtitle {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 580px;
}

/* ===== SECTION LABELS ===== */
.section-label {
    margin-bottom: 4rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--teal-dark);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 580px;
}

/* ===== PIPELINE / TIMELINE ===== */
.pipeline {
    padding: 6rem 0 7rem;
    background: var(--ivory);
    border-top: 1px solid var(--border);
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.timeline-stage {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2.5rem;
    position: relative;
}

.stage-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.connector-line {
    width: 1.5px;
    flex: 1;
    background: var(--border);
}

.connector-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: all 0.5s var(--ease);
}

.timeline-stage.active .connector-dot {
    border-color: var(--teal-accent);
    background: var(--teal-light);
    box-shadow: 0 0 0 6px rgba(61, 122, 122, 0.06);
}

.connector-dot span {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--teal-accent);
}

.stage-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--teal-accent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.timeline-stage.active .stage-card,
.stage-card:hover {
    border-color: rgba(61, 122, 122, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    transform: translateX(6px);
}

.timeline-stage.active .stage-card::before,
.stage-card:hover::before {
    opacity: 1;
}

.stage-badge {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal-dark);
    background: var(--teal-light);
    padding: 0.25rem 0.625rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

.stage-headline {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-dark);
    letter-spacing: -0.02em;
    margin-bottom: 0.375rem;
}

.stage-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1rem;
}

.stage-copy {
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 540px;
}

.stage-indicators {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-mid);
}

.indicator svg {
    color: var(--teal-accent);
    flex-shrink: 0;
}

/* ===== COMPLIANCE SECTION ===== */
.compliance {
    padding: 7rem 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.compliance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.compliance-panel {
    position: relative;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2.5rem;
    transition: all 0.4s var(--ease);
    overflow: hidden;
}

.panel-glow { display: none; }

.compliance-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--teal-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}

.compliance-panel:hover {
    border-color: rgba(61, 122, 122, 0.2);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
    transform: translateY(-3px);
}

.compliance-panel:hover::after {
    transform: scaleX(1);
}

.panel-header {
    position: relative;
    margin-bottom: 1.5rem;
}

.panel-badge {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--teal-accent);
    margin-bottom: 0.75rem;
}

.panel-header h3 {
    font-family: var(--font-serif);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--teal-dark);
    letter-spacing: -0.02em;
}

.compliance-panel > p {
    position: relative;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.panel-features {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--text-mid);
    font-weight: 500;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-accent);
    flex-shrink: 0;
}

/* ===== TRANSPARENCY / DASHBOARD ===== */
.transparency {
    padding: 7rem 0;
    background: var(--ivory);
    border-top: 1px solid var(--border);
}

.dashboard {
    margin-top: 1rem;
}

.dashboard-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.06);
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--teal-dark);
    border-bottom: 1px solid var(--border);
}

.topbar-dots {
    display: flex;
    gap: 5px;
}

.topbar-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.topbar-dots span:first-child { background: #FF5F57; }
.topbar-dots span:nth-child(2) { background: #FFBD2E; }
.topbar-dots span:nth-child(3) { background: #28CA41; }

.topbar-title {
    font-size: 0.6875rem;
    font-family: var(--font-mono);
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.dashboard-body {
    padding: 2.5rem;
}

.dash-header {
    margin-bottom: 2.5rem;
}

.dash-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dash-title h4 {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--teal-dark);
    letter-spacing: -0.02em;
}

.dash-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--teal-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-accent);
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Dashboard Metrics */
.dash-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.metric { text-align: center; }

.metric-ring {
    position: relative;
    width: 110px;
    height: 110px;
    margin: 0 auto 1rem;
}

.metric-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.ring-fill {
    fill: none;
    stroke: var(--teal-accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 2s var(--ease);
}

.ring-zero {
    stroke: var(--border);
    stroke-dashoffset: 264 !important;
}

.metric-ring.animated .ring-fill {
    stroke-dashoffset: calc(264 - (264 * var(--target)) / 100);
}

.metric-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--teal-dark);
    letter-spacing: -0.02em;
}

.metric-zero {
    color: var(--teal-accent);
    font-size: 1.75rem;
}

.metric-label {
    font-size: 0.6875rem;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Dashboard Chart */
.dash-chart {
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
}

.chart-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 0.75rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--teal-accent), var(--teal-light));
    border-radius: 3px 3px 0 0;
    height: 0;
    transition: height 1.5s var(--ease);
    position: relative;
    min-width: 0;
}

.chart-bar.animated {
    height: var(--height);
}

.chart-bar span {
    position: absolute;
    bottom: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* ===== CTA SECTION ===== */
.cta-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    background: var(--teal-dark);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(61, 122, 122, 0.3), transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content .badge {
    background: rgba(232, 240, 239, 0.1);
    color: var(--teal-light);
    border-color: rgba(232, 240, 239, 0.15);
}

.cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--surface);
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-glow,
.cta-section .btn-primary {
    background: var(--surface);
    color: var(--teal-dark);
}

.cta-section .btn-glow:hover,
.cta-section .btn-primary:hover {
    background: var(--teal-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cta-section .btn-ghost,
.cta-section .btn-secondary {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.25);
}

.cta-section .btn-ghost:hover,
.cta-section .btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--surface);
    background: rgba(255, 255, 255, 0.05);
}

/* ===== FOOTER ===== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--ivory);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}



.footer-brand p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 320px;
}

.footer-nav-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-col a {
    font-size: 0.8125rem;
    color: var(--muted);
    transition: all 0.3s var(--ease);
}

.footer-col a:hover {
    color: var(--teal-dark);
    padding-left: 4px;
}

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

.footer-bottom > p {
    font-size: 0.6875rem;
    color: var(--border-dark);
}

.portal-link {
    font-size: 0.625rem;
    color: var(--border-dark);
    border: 1px solid var(--border);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.portal-link:hover {
    color: var(--muted);
    border-color: var(--border-dark);
}

.portal-link span {
    opacity: 0.6;
    font-style: italic;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .compliance-grid {
        grid-template-columns: 1fr;
    }

    .dash-metrics {
        gap: 1.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 340px;
        height: 100vh;
        height: 100dvh;
        background: var(--surface);
        border-left: 1px solid var(--border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s var(--ease);
        z-index: 9000;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active { right: 0; }
    .nav-toggle { display: flex; }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .page-hero { padding: 9rem 0 3.5rem; }
    .page-title { font-size: 2.25rem; }

    .timeline-stage {
        grid-template-columns: 48px 1fr;
        gap: 1.5rem;
    }

    .connector-dot { width: 36px; height: 36px; }
    .connector-dot span { font-size: 0.5625rem; }
    .stage-card { padding: 2rem; }

    .dash-metrics {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .chart-bars { height: 90px; }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .cta-actions .btn { justify-content: center; text-align: center; }

    .footer-nav-group { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .page-hero { padding: 8rem 0 3rem; }
    .page-title { font-size: 1.875rem; }

    .stage-card { padding: 1.5rem; }
    .stage-headline { font-size: 1.25rem; }

    .compliance-panel { padding: 2rem; }
    .dashboard-body { padding: 1.5rem; }
    .metric-ring { width: 90px; height: 90px; }

    .btn-lg { padding: 1rem 1.75rem; font-size: 0.875rem; }
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--teal-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    [data-animate] { opacity: 1; transform: none; }
    .ring-fill { transition: none; stroke-dashoffset: calc(264 - (264 * var(--target)) / 100); }
    .chart-bar { height: var(--height); }
}

/* ===== UNIT ECONOMICS & CLINICAL PROTOCOL ===== */
.unit-economics {
    padding: clamp(4rem, 8vw, 7rem) 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.economics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.economics-card {
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.economics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.economics-card-primary {
    background: var(--teal-subtle);
    border-color: var(--teal-accent);
    border-width: 1.5px;
}

.economics-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.75rem;
}

.economics-card h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.625rem;
}

.economics-card p {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.7;
}

.economics-total {
    margin-top: 2.5rem;
    text-align: center;
}

.economics-total-inner {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--teal-dark);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.economics-total-label {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.85;
}

.economics-total-amount {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
}

.economics-note {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.7;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive: economics grid */
@media (max-width: 900px) {
    .economics-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 600px) {
    .economics-card {
        padding: 1.5rem 1.25rem;
    }
    .economics-amount {
        font-size: 1.25rem;
    }
    .economics-total-inner {
        padding: 0.875rem 1.75rem;
        gap: 0.75rem;
    }
    .economics-total-amount {
        font-size: 1.25rem;
    }
}

/* ===== TRANSPORT CALLOUT (Unit Economics section) ===== */
.economics-transport {
    margin-top: 2rem;
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, #EBF5F0 0%, #F2F7F6 100%);
    border: 1px solid var(--teal-accent);
    border-radius: 8px;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.economics-transport-badge {
    font-size: 1rem;
    font-weight: 700;
    color: var(--teal-dark);
    margin-bottom: 0.5rem;
}

.economics-transport p {
    font-size: 0.8125rem;
    color: var(--text-mid);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 600px) {
    .economics-transport {
        padding: 1rem 1.25rem;
    }
    .economics-transport-badge {
        font-size: 0.875rem;
    }
}

/* ===== COMPASSION SIP NAV HIGHLIGHT ===== */
.nav-sip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--teal-dark);
    color: #fff !important;
    padding: 0.4rem 0.875rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.25s ease;
}
.nav-sip-link:hover {
    background: var(--teal-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 58, 58, 0.25);
}
.nav-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.125rem 0.4rem;
    border-radius: 8px;
    line-height: 1.4;
}
