/* Health Economics Learning Path — shared styles
   Lightweight static rewrite of the v0/Next.js prototype. Everything is plain
   CSS so the page renders instantly and works without JS. The teal accent
   matches the source repo; the surrounding shell uses site tokens. */

:root {
    --he-bg:        #f9fafa;
    --he-card:      #ffffff;
    --he-border:    #e5e7eb;
    --he-border-2:  #d1d5db;
    --he-text:      #111827;
    --he-text-soft: #4b5563;
    --he-text-mute: #6b7280;
    --he-muted-bg:  #f3f4f6;

    --he-teal:      #2d7a7a;
    --he-teal-2:    #4b9e9e;
    --he-teal-3:    #7ab8b8;
    --he-teal-4:    #b0d8d8;
    --he-teal-soft: rgba(45, 122, 122, 0.08);
    --he-teal-bord: rgba(45, 122, 122, 0.30);

    --he-warn:      #d97250;
    --he-warn-soft: rgba(217, 114, 80, 0.08);
    --he-warn-bord: rgba(217, 114, 80, 0.30);

    --he-radius-sm: 0.5rem;
    --he-radius:    0.75rem;
    --he-radius-lg: 1rem;
}

.he-page {
    background: var(--he-bg);
    color: var(--he-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    line-height: 1.6;
}

.he-page * { box-sizing: border-box; }

/* Top scroll progress — fixed under the site nav */
.he-progress {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 50;
    pointer-events: none;
}
.he-progress > i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--he-teal);
    transition: width 0.05s linear;
}
@media (max-width: 768px) {
    .he-progress { top: 56px; }
}

/* Layout shell */
.he-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.he-shell-narrow {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.he-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .he-cols {
        grid-template-columns: 1fr 16rem;
    }
}

.he-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Module header (above the section stack) */
.he-module-head {
    margin-bottom: 0;
}
.he-module-tag {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--he-text-mute);
    font-weight: 500;
    margin-bottom: 0.4rem;
}
.he-module-head h1 {
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--he-text);
    margin: 0;
}
.he-module-head .he-sub {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--he-text-mute);
}

/* Section card */
.he-card {
    background: var(--he-card);
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius);
    padding: 1.5rem;
    scroll-margin-top: 6rem;
}
.he-card > h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--he-text);
    margin: 0 0 1rem;
    line-height: 1.4;
}
.he-card > h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--he-text);
    margin: 0 0 1rem;
}
.he-card p {
    margin: 0;
}
.he-card .he-stack > * + * {
    margin-top: 1rem;
}
.he-card .he-stack-lg > * + * {
    margin-top: 1.25rem;
}

/* Subsection inside content card group */
.he-sub-card {
    background: var(--he-card);
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius);
    padding: 1.5rem;
    scroll-margin-top: 6rem;
}
.he-sub-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}
.he-sub-card .he-stack > * + * {
    margin-top: 1rem;
}

/* Pull-quote / highlight strip */
.he-callout {
    background: var(--he-muted-bg);
    border-left: 4px solid var(--he-teal);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
}
.he-callout strong { color: var(--he-text); }
.he-callout-strong {
    background: var(--he-muted-bg);
    border-left: 4px solid var(--he-teal);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
    font-weight: 600;
    color: var(--he-text);
}

/* Bordered note (lighter) */
.he-note {
    border: 1px solid var(--he-border);
    background: var(--he-card);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
}
.he-note p { margin: 0; }
.he-note .he-note-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--he-text);
    margin-bottom: 0.25rem;
}
.he-note .he-note-body {
    font-size: 0.875rem;
    color: var(--he-text-soft);
}

/* Mini-card grid (3 across, 2 across, etc.) */
.he-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}
.he-grid-2 { grid-template-columns: 1fr; }
.he-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .he-grid-2 { grid-template-columns: 1fr 1fr; }
    .he-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.he-mini {
    border: 1px solid var(--he-border);
    background: var(--he-card);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
}
.he-mini .he-mini-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--he-text);
    margin-bottom: 0.25rem;
}
.he-mini .he-mini-desc {
    font-size: 0.875rem;
    color: var(--he-text-soft);
}

/* Bullets list (dot + text) */
.he-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.he-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--he-text);
    font-size: 0.95rem;
}
.he-bullets li::before {
    content: "";
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(45, 122, 122, 0.55);
    margin-top: 0.55rem;
}

/* Numbered list (circle + text) */
.he-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    counter-reset: he-step;
}
.he-steps li {
    counter-increment: he-step;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border: 1px solid var(--he-border);
    background: var(--he-card);
    padding: 0.75rem 1rem;
    border-radius: var(--he-radius-sm);
    font-size: 0.9rem;
    color: var(--he-text);
}
.he-steps li::before {
    content: counter(he-step);
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--he-teal-soft);
    color: var(--he-teal);
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.05rem;
}

/* Inline formula chips */
.he-formula {
    border: 1px solid var(--he-border);
    background: var(--he-card);
    border-radius: var(--he-radius-sm);
    padding: 1.1rem;
}
.he-formula .he-formula-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--he-text);
    margin: 0 0 0.6rem;
}
.he-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
}
.he-chip {
    background: var(--he-muted-bg);
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875rem;
    color: var(--he-text);
}
.he-chip-accent {
    background: var(--he-teal-soft);
    border: 1px solid var(--he-teal-bord);
    color: var(--he-text);
    font-weight: 600;
}
.he-chip-op { color: var(--he-text-mute); }

/* Tables */
.he-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
}
.he-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.he-table thead th {
    background: var(--he-muted-bg);
    border-bottom: 1px solid var(--he-border);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--he-text);
}
.he-table tbody td {
    border-bottom: 1px solid var(--he-border);
    padding: 0.75rem 1rem;
    color: var(--he-text);
}
.he-table tbody tr:last-child td { border-bottom: none; }
.he-table .he-num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--he-text-soft);
    text-align: center;
}
.he-table .he-right {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--he-text-soft);
    text-align: right;
}
.he-table tfoot td, .he-table tr.he-total td {
    background: rgba(243, 244, 246, 0.6);
    font-weight: 600;
    color: var(--he-text);
}

/* Bar chart (CSS-only, horizontal) */
.he-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.he-bar-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.he-bar-row .he-bar-label {
    width: 9rem;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--he-text-mute);
}
.he-bar-row .he-bar {
    flex: 1;
    height: 1.75rem;
    background: var(--he-muted-bg);
    border-radius: 999px;
    overflow: hidden;
}
.he-bar-row .he-bar > i {
    display: flex;
    align-items: center;
    height: 100%;
    border-radius: 999px;
    background: var(--he-teal-2);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding-left: 0.75rem;
    white-space: nowrap;
}

/* Vertical bar chart (CSS-only) */
.he-vbars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 1rem;
    height: 11rem;
    padding: 0 0.5rem 1.75rem;
    border-bottom: 1px dashed var(--he-border);
    position: relative;
}
.he-vbars .he-vbar {
    flex: 1;
    max-width: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.he-vbars .he-vbar > .he-vbar-fill {
    width: 100%;
    border-radius: 0.25rem 0.25rem 0 0;
    background: var(--he-teal-2);
}
.he-vbars .he-vbar > .he-vbar-label {
    position: absolute;
    bottom: -1.4rem;
    text-align: center;
    font-size: 0.7rem;
    color: var(--he-text-mute);
    line-height: 1.2;
    white-space: pre-line;
}
.he-vbars .he-vbar > .he-vbar-value {
    font-size: 0.7rem;
    color: var(--he-text-soft);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Chart wrap (label + chart) */
.he-chart {
    border: 1px solid var(--he-border);
    background: var(--he-card);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
}
.he-chart .he-chart-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--he-text);
    margin: 0 0 0.25rem;
}
.he-chart .he-chart-sub {
    font-size: 0.75rem;
    color: var(--he-text-mute);
    margin: 0 0 1rem;
}
.he-chart .he-chart-foot {
    font-size: 0.75rem;
    color: var(--he-text-mute);
    text-align: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--he-border);
}

/* Pie chart (donut, SVG) */
.he-donut {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 480px) {
    .he-donut { grid-template-columns: auto 1fr; }
}
.he-donut svg { width: 9rem; height: 9rem; display: block; margin: 0 auto; }
.he-donut .he-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.875rem;
}
.he-donut .he-legend > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.he-donut .he-legend i {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.2rem;
}

/* Pathway / horizontal node row */
.he-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}
@media (min-width: 768px) {
    .he-flow {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
    }
}
.he-flow .he-flow-node {
    text-align: center;
}
.he-flow .he-flow-node-pill {
    background: var(--he-teal);
    color: #ffffff;
    padding: 0.625rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    display: inline-block;
}
.he-flow .he-flow-node-sub {
    font-size: 0.75rem;
    color: var(--he-text-mute);
    margin-top: 0.4rem;
}
.he-flow .he-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--he-text-mute);
    font-size: 1.4rem;
    line-height: 1;
}

/* Highlight callouts in case studies */
.he-pair {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .he-pair { grid-template-columns: 1fr 1fr; } }

.he-pair-good,
.he-pair-bad {
    border-radius: var(--he-radius-sm);
    padding: 1rem;
}
.he-pair-good {
    border: 2px solid var(--he-teal-bord);
    background: var(--he-teal-soft);
}
.he-pair-bad {
    border: 2px solid var(--he-warn-bord);
    background: var(--he-warn-soft);
}
.he-pair-good .he-mini-label,
.he-pair-bad .he-mini-label {
    margin-bottom: 0.25rem;
}

/* MCQ ("Check your understanding") */
.he-mcq {
    margin-top: 1.25rem;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
    background: var(--he-card);
    overflow: hidden;
}
.he-mcq-head {
    font-size: 1rem;
    font-weight: 600;
    color: var(--he-text);
    padding: 1rem 1rem 0.5rem;
}
.he-mcq-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0 1rem 0.75rem;
    border-bottom: 1px solid var(--he-border);
    background: var(--he-card);
}
.he-mcq-tab {
    background: var(--he-muted-bg);
    border: 1px solid var(--he-border);
    color: var(--he-text-soft);
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.he-mcq-tab:hover { color: var(--he-text); }
.he-mcq-tab[aria-selected="true"] {
    background: var(--he-teal);
    color: #ffffff;
    border-color: var(--he-teal);
}
.he-mcq-panels { padding: 1.25rem 1rem 1.5rem; }
.he-mcq-panel { display: none; flex-direction: column; gap: 1rem; }
.he-mcq-panel[data-active="true"] { display: flex; }

.he-q {
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
    background: var(--he-card);
}
.he-q-stem {
    font-weight: 500;
    color: var(--he-text);
    margin: 0 0 0.75rem;
}
.he-q-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.he-q-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius-sm);
    padding: 0.6rem 0.75rem;
    background: var(--he-card);
    color: var(--he-text);
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.he-q-opt:hover { background: var(--he-muted-bg); }
.he-q-opt[data-state="correct"] {
    border-color: var(--he-teal);
    background: var(--he-teal-soft);
}
.he-q-opt[data-state="wrong"] {
    border-color: var(--he-warn-bord);
    background: var(--he-warn-soft);
}
.he-q-opt[disabled] { cursor: default; }
.he-q-opt > i {
    flex-shrink: 0;
    font-style: normal;
    font-weight: 600;
    color: var(--he-text-mute);
    width: 1rem;
}
.he-q-explain {
    margin-top: 0.75rem;
    background: var(--he-muted-bg);
    border-left: 3px solid var(--he-teal);
    border-radius: 0.4rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.875rem;
    color: var(--he-text-soft);
    display: none;
}
.he-q-explain[data-open="true"] { display: block; }

/* Sidebar table of contents */
.he-side {
    display: none;
    width: 16rem;
    flex-shrink: 0;
}
@media (min-width: 1024px) { .he-side { display: block; } }
.he-side-sticky {
    position: sticky;
    top: 6rem;
}
.he-toc {
    background: var(--he-card);
    border: 1px solid var(--he-border);
    border-radius: var(--he-radius);
    padding: 1rem 1.25rem;
}
.he-toc h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--he-text-mute);
    margin: 0 0 0.6rem;
}
.he-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.875rem;
}
.he-toc a {
    display: block;
    padding: 0.35rem 0.6rem;
    border-radius: 0.4rem;
    color: var(--he-text-soft);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.he-toc a:hover {
    color: var(--he-text);
    background: var(--he-muted-bg);
}
.he-toc a[data-active="true"] {
    color: var(--he-teal);
    border-left-color: var(--he-teal);
    font-weight: 500;
    background: var(--he-teal-soft);
}
.he-toc .he-toc-sub {
    margin: 0.15rem 0 0.35rem;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.he-toc .he-toc-sub a {
    padding-left: 1.4rem;
    font-size: 0.8125rem;
}

/* Module footer (next/prev links) */
.he-module-foot {
    border-top: 1px solid var(--he-border);
    padding: 2rem 1.5rem;
    margin-top: 1rem;
    text-align: center;
}
.he-module-foot .he-foot-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.he-module-foot p {
    font-size: 0.875rem;
    color: var(--he-text-mute);
    margin-top: 0.5rem;
}
.he-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--he-teal);
    color: #ffffff;
    padding: 0.75rem 1.6rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.he-cta:hover {
    background: #25696b;
    box-shadow: 0 6px 14px rgba(45, 122, 122, 0.18);
    transform: translateY(-1px);
}
.he-cta-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--he-card);
    color: var(--he-text);
    padding: 0.7rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--he-border);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.he-cta-back:hover {
    background: var(--he-teal-soft);
    border-color: var(--he-teal-bord);
}

/* === Landing page === */
.he-landing-hero {
    padding: clamp(3rem, 8vw, 6rem) 1.5rem clamp(2.5rem, 7vw, 5rem);
    text-align: center;
}
.he-landing-hero .he-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--he-border);
    background: var(--he-card);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    color: var(--he-text);
    font-weight: 500;
}
.he-landing-hero .he-pill .dot {
    width: 0.5rem; height: 0.5rem;
    border-radius: 999px;
    background: var(--he-teal);
}
.he-landing-hero h1 {
    margin: 1.25rem auto 0;
    max-width: 56rem;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--he-text);
}
.he-landing-hero p {
    margin: 1.4rem auto 0;
    max-width: 38rem;
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--he-text-soft);
    line-height: 1.6;
}
.he-landing-hero .he-cta-row {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}
@media (min-width: 640px) {
    .he-landing-hero .he-cta-row {
        flex-direction: row;
        gap: 1rem;
    }
}

.he-band {
    border-top: 1px solid var(--he-border);
    border-bottom: 1px solid var(--he-border);
    background: var(--he-card);
    padding: 3rem 1.5rem;
}
.he-band .he-band-grid {
    max-width: 70rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
}
@media (min-width: 768px) { .he-band .he-band-grid { grid-template-columns: 1fr 1fr 1fr; } }
.he-band .he-stat {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--he-text);
    line-height: 1.1;
}
.he-band .he-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--he-text-mute);
    font-weight: 600;
    margin-top: 0.5rem;
}
.he-band .he-stat-sub {
    margin-top: 0.4rem;
    font-size: 0.875rem;
    color: var(--he-text-mute);
}

.he-roadmap {
    padding: clamp(3rem, 7vw, 5rem) 1.5rem;
    max-width: 70rem;
    margin: 0 auto;
}
.he-roadmap-head {
    text-align: center;
    margin-bottom: 3rem;
}
.he-roadmap-head .he-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--he-teal);
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.he-roadmap-head h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    font-weight: 700;
    color: var(--he-text);
    letter-spacing: -0.01em;
    margin: 0;
}
.he-roadmap-head p {
    margin: 1rem auto 0;
    max-width: 32rem;
    font-size: 1.0625rem;
    color: var(--he-text-soft);
}

.he-roadmap-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.he-roadmap-list::before {
    content: "";
    position: absolute;
    left: 1.95rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--he-teal-3), var(--he-border));
    display: none;
}
@media (min-width: 768px) {
    .he-roadmap-list::before { display: block; }
}

.he-roadmap-item {
    position: relative;
    display: flex;
    gap: 1.25rem;
    text-decoration: none;
    color: inherit;
}
@media (min-width: 768px) {
    .he-roadmap-item { gap: 2rem; }
}
.he-roadmap-num {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--he-teal);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 2px solid var(--he-teal);
    box-shadow: 0 6px 14px rgba(45, 122, 122, 0.18);
    transition: transform 0.15s;
}
.he-roadmap-item:hover .he-roadmap-num { transform: scale(1.06); }
.he-roadmap-card {
    flex: 1;
    border: 1px solid var(--he-border);
    background: var(--he-card);
    border-radius: var(--he-radius-lg);
    padding: 1.5rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.he-roadmap-item:hover .he-roadmap-card {
    border-color: var(--he-teal-bord);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}
.he-roadmap-card .he-roadmap-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.he-roadmap-card h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--he-text);
}
.he-roadmap-card .he-time {
    background: var(--he-muted-bg);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--he-text-soft);
}
.he-roadmap-card .he-roadmap-hook {
    font-weight: 600;
    color: var(--he-text);
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
}
.he-roadmap-card .he-roadmap-desc {
    color: var(--he-text-soft);
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
}
.he-roadmap-card .he-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}
.he-roadmap-card .he-tag {
    border: 1px solid var(--he-border);
    background: var(--he-bg);
    border-radius: 0.5rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    color: var(--he-text-soft);
    font-weight: 500;
}
.he-roadmap-card .he-open {
    color: var(--he-teal);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.15s;
}
.he-roadmap-item:hover .he-open { gap: 0.55rem; }

.he-roadmap-cta {
    margin-top: 3.5rem;
    border: 2px solid var(--he-teal-bord);
    border-radius: var(--he-radius-lg);
    background: linear-gradient(135deg, var(--he-card), var(--he-teal-soft));
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}
.he-roadmap-cta h3 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--he-text);
    margin: 0 0 0.5rem;
}
.he-roadmap-cta p {
    font-size: 1.0625rem;
    color: var(--he-text-soft);
    margin: 0 auto 1.5rem;
    max-width: 32rem;
}

.he-why {
    border-top: 1px solid var(--he-border);
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
    background: var(--he-bg);
}
.he-why-inner {
    max-width: 50rem;
    margin: 0 auto;
}
.he-why h2 {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--he-text);
    letter-spacing: -0.01em;
    margin: 0 0 1.5rem;
}
.he-why p {
    margin: 1.25rem 0;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--he-text-soft);
}

/* Hidden tax / SROI table-like step list */
.he-stepcalc {
    border: 1px solid var(--he-border);
    background: var(--he-card);
    border-radius: var(--he-radius-sm);
    padding: 1rem;
}
.he-stepcalc .he-stepcalc-title {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--he-text);
    margin: 0 0 0.75rem;
}
.he-stepcalc-row {
    display: grid;
    grid-template-columns: 1.5rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    padding: 0.25rem 0;
}
.he-stepcalc-row > .num {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--he-muted-bg);
    color: var(--he-text-mute);
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.he-stepcalc-row > .label { color: var(--he-text-mute); }
.he-stepcalc-row > .calc {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--he-text-soft);
    text-align: right;
}
.he-stepcalc-row > .result {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--he-text);
    font-weight: 600;
    text-align: right;
    min-width: 5rem;
}
.he-stepcalc-foot {
    margin-top: 0.85rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--he-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
}
.he-stepcalc-foot .label { color: var(--he-text); font-weight: 500; }
.he-stepcalc-foot .result {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    color: var(--he-warn);
    font-size: 1.0625rem;
}

/* Mini KV row (label + value) */
.he-kv-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.35rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid transparent;
}
.he-kv-row + .he-kv-row {
    border-top: 1px solid var(--he-border);
    padding-top: 0.6rem;
    margin-top: 0.6rem;
}
.he-kv-row .label { color: var(--he-text-mute); }
.he-kv-row .value {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
    color: var(--he-text);
}
.he-kv-row .value-strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 700;
    color: var(--he-teal);
}
