:root {
    --bg: #14171D;
    --bg-elevated: #181B22;
    --bg-card: #1F222A;

    --primary: #165DFF;
    --primary-dim: rgba(22, 93, 255, 0.1);
    --secondary: #F46B7D;
    --secondary-dim: rgba(244, 107, 125, 0.1);

    --text: #E0E4EB;
    --text-secondary: #C9CED8;
    --text-tertiary: #8C99AD;

    --border: #2B3039;
    --border-bright: #3C4452;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Homepage nav override - wider padding for landing layout */
.nav { padding: 1.25rem 3rem; }

/* ===== HERO SECTION ===== */
.hero-wrapper {
    position: relative;
    overflow: visible;
    z-index: 2;
    background: #FFD44D;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* No hero→dark transition needed — site is light now */
.hero-wrapper::after {
    display: none;
}

.main-content {
    position: relative;
    z-index: 1;
    background: var(--bg);
}

/* ============================================================
   HOMEPAGE LIGHT THEME — scoped to body.page-home
   Overrides all --fc-* dark variables + component colors.
   Other 17 pages stay dark (no .page-home class on body).
   ============================================================ */

/* --- Global landing vars override --- */
body.page-home {
    --bg: #FAFBFC;
    --bg-elevated: #F1F5F9;
    --bg-card: #FFFFFF;
    --text: #0F172A;
    --text-secondary: #334155;
    --text-tertiary: #64748B;
    --primary: #165DFF;
    --primary-dim: rgba(22, 93, 255, 0.1);
    --secondary: #FACC15;
    --secondary-dim: rgba(250, 204, 21, 0.12);
    --border: #E2E8F0;
    --border-bright: #CBD5E1;
}

/* --- Forecast dashboard vars override (the big one) --- */
body.page-home .main-content {
    --fc-bg: #F1F5F9;
    --fc-surface: #FFFFFF;
    --fc-surface-2: #F8FAFC;
    --fc-surface-3: #F1F5F9;
    --fc-border: #E2E8F0;
    --fc-border-bright: #CBD5E1;
    --fc-green: #16A34A;
    --fc-red: #DC2626;
    --fc-gold: #CA8A04;
    --fc-orange: #EA580C;
    --fc-text: #0F172A;
    --fc-text-dim: #64748B;
    --fc-text-muted: #94A3B8;
    --fc-accent: #165DFF;
    background: #F7F8FC;
}

/* --- Shared CSS vars override --- */
body.page-home {
    --border-default: #E2E8F0;
    --border-bright: #CBD5E1;
    --surface-1: #FFFFFF;
    --surface-2: #F8FAFC;
    --surface-3: #F1F5F9;
}

/* --- Nav override: light glassmorphism --- */
body.page-home .nav {
    background: var(--hh-bg-cream-soft);
    border-bottom: 1px solid #dddddd;
}
body.page-home .nav::after {
    background: transparent;
}
body.page-home a.logo-container,
body.page-home .logo-text {
    color: #17181c;
}
body.page-home .logo-mark {
    color: #17181c;
}
body.page-home .btn-nav {
    border-color: #cfcfcf;
    color: #17181c;
    background: var(--hh-bg-cream-soft);
}
body.page-home .btn-nav:hover {
    border-color: #bdbdbd;
    color: #17181c;
    background: #ececec;
}

/* --- Hamburger light override (match homepage light nav) --- */
body.page-home .hardhat-hamburger {
    border-color: #cfcfcf !important;
    background: var(--hh-bg-cream-soft) !important;
}
body.page-home .hardhat-hamburger:hover {
    border-color: #bdbdbd !important;
    background: #ececec !important;
}
body.page-home .hardhat-hamburger-line {
    background: #17181c !important;
}
body.page-home .hardhat-hamburger.open .hardhat-hamburger-line:nth-child(1),
body.page-home .hardhat-hamburger.open .hardhat-hamburger-line:nth-child(3) {
    background: #165DFF !important;
}

/* --- Ticker light override (semi-transparent for particle bleed) --- */
body.page-home .forecast-ticker {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(226, 232, 240, 0.6);
    max-width: none;
    margin: 0;
    border-radius: 0;
}
body.page-home .ticker-label {
    background: rgba(255, 255, 255, 0.9);
    color: #165DFF;
    border-right-color: rgba(226, 232, 240, 0.6);
}
body.page-home .forecast-ticker::before {
    background: linear-gradient(to right, rgba(255,255,255,0.85), transparent);
}
body.page-home .forecast-ticker::after {
    background: linear-gradient(to left, rgba(255,255,255,0.85), transparent);
}
body.page-home .ticker-item {
    color: #64748B;
}
body.page-home .ticker-item:hover {
    color: #0F172A;
}
body.page-home .ticker-name {
    color: #64748B;
}
body.page-home .ticker-item:hover .ticker-name {
    color: #0F172A;
}
body.page-home .ticker-delta.green { color: #16A34A; }
body.page-home .ticker-delta.red { color: #DC2626; }
body.page-home .ticker-sep { color: #CBD5E1; }

/* --- Market summary light override --- */
body.page-home .market-summary {
    background: #FFFFFF;
    border-color: #E2E8F0;
    max-width: 1180px;
    margin-top: 0.85rem;
    margin-bottom: 1.25rem;
}
body.page-home .market-stat:not(:last-child)::after {
    background: #E2E8F0;
}
body.page-home .market-stat-label {
    color: #94A3B8;
}
body.page-home .market-stat-value {
    color: #0F172A;
}
body.page-home .market-stat-value.green { color: #16A34A; }
body.page-home .market-stat-value.red { color: #DC2626; }
body.page-home .market-stat-link:hover {
    background: rgba(15, 23, 42, 0.03);
}

/* --- Chart container + headers --- */
body.page-home .chart-container-main {
    background: #FFFFFF;
    border-color: #E2E8F0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

body.page-home .the-chart {
    max-width: 1180px;
    margin: 0 auto 1.5rem;
    padding: 1.1rem 1.15rem 1.2rem;
    border: 10px solid #FACC15;
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body.page-home .chart-header {
    margin-top: 0.4rem;
}
body.page-home .chart-col-headers {
    background: #F8FAFC;
    border-bottom-color: #E2E8F0;
}
body.page-home .chart-col-header {
    color: #94A3B8;
}
body.page-home .chart-col-header:hover {
    color: #64748B;
}
body.page-home .chart-col-header.active {
    color: #165DFF;
}
body.page-home .chart-title {
    color: #0F172A;
}
body.page-home #chartCount {
    color: #94A3B8;
}
body.page-home .chart-updated {
    color: #94A3B8;
}
body.page-home .chart-explainer {
    color: #64748B;
}
body.page-home .chart-explainer a {
    color: #165DFF;
}

/* --- Chart search --- */
body.page-home .chart-search {
    background: var(--hh-bg-cream-soft) !important;
    background-image: none !important;
    border-color: #cfcfcf !important;
    color: #17181c !important;
}
body.page-home .chart-search::placeholder {
    color: #727272 !important;
}
body.page-home .chart-search:focus {
    border-color: #bbbbbb !important;
    background: var(--hh-bg-cream-soft) !important;
    background-image: none !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05) !important;
}
body.page-home .chart-search-icon {
    color: #727272 !important;
}
body.page-home .chart-search-clear {
    color: #727272 !important;
}
body.page-home .chart-search-clear:hover {
    color: #17181c !important;
}

/* --- Filter tabs --- */
body.page-home .filter-tab {
    border-color: #E2E8F0;
    color: #64748B;
    background: #FFFFFF;
}
body.page-home .filter-tab:hover {
    color: #334155;
    border-color: #CBD5E1;
    background: #F8FAFC;
}
body.page-home .filter-tab.active {
    color: #FFFFFF;
    background: #0F172A;
    border-color: #0F172A;
}
body.page-home .filter-tab.active .filter-count {
    color: rgba(255, 255, 255, 0.6);
}
body.page-home .filter-count {
    color: #94A3B8;
}

/* Keep category tabs fully crisp (no edge fade/mask blur) */
body.page-home .chart-filters,
body.page-home .chart-filters.scrolled-end,
body.page-home .chart-filters.scrolled-mid {
    mask-image: none !important;
    -webkit-mask-image: none !important;
}

/* --- Chart rows --- */
body.page-home .chart-row {
    border-bottom-color: #F1F5F9;
    color: #0F172A;
}
body.page-home .chart-row:hover {
    background: rgba(15, 23, 42, 0.02);
}
body.page-home .chart-row::before {
    background: var(--row-accent, rgba(15, 23, 42, 0.1));
}
body.page-home .chart-rank {
    color: #94A3B8;
}
body.page-home .chart-trade-name {
    color: #0F172A;
}
body.page-home .chart-trade-cat {
    color: #94A3B8;
}
body.page-home .profession-icon {
    --pi-mark-bg: #f2f2f2;
    --pi-mark-border: #d2d2d2;
    background:
        radial-gradient(130% 160% at 100% 0%, var(--hh-moment-yellow-strong) 0%, var(--hh-moment-yellow-mid) 38%, rgba(241, 226, 74, 0) 76%),
        linear-gradient(#f2f2f2, #f2f2f2);
    border-color: #cfcfcf;
    color: #1f46b7;
}
body.page-home .profession-icon::after {
    border-color: #f6f6f6;
}
body.page-home .profession-icon-glyph {
    width: 68%;
    height: 68%;
    stroke-width: 2.1;
}
body.page-home .profession-icon-mark {
    width: 0.74em;
    height: 0.74em;
    padding: 0.08em;
    border-width: 1.2px;
    box-shadow: 0 1px 2px rgba(31, 70, 183, 0.15);
}
body.page-home .chart-trade-emoji.profession-icon {
    width: 1.58rem;
    height: 1.58rem;
    border-radius: 0.5rem;
}
body.page-home .ticker-emoji.profession-icon,
body.page-home .watchlist-chip-emoji.profession-icon,
body.page-home .mover-emoji.profession-icon,
body.page-home .insight-profession-icon.profession-icon {
    width: 1.22rem;
    height: 1.22rem;
    border-radius: 0.38rem;
}
body.page-home .chart-row:hover .profession-icon,
body.page-home .watchlist-chip:hover .profession-icon,
body.page-home .mover-row:hover .profession-icon,
body.page-home .insight-item:hover .profession-icon {
    border-color: #b9c6ea;
}
body.page-home .profession-icon-cat-construction,
body.page-home .profession-icon-cat-automotive,
body.page-home .profession-icon-cat-manufacturing,
body.page-home .profession-icon-cat-logistics,
body.page-home .profession-icon-cat-agriculture,
body.page-home .profession-icon-cat-culinary {
    --pi-bg: #edf4ee;
    --pi-border: #bfd6c4;
    --pi-text: #1f8a4c;
}
body.page-home .profession-icon-cat-healthcare,
body.page-home .profession-icon-cat-tech,
body.page-home .profession-icon-cat-education,
body.page-home .profession-icon-cat-legal,
body.page-home .profession-icon-cat-government,
body.page-home .profession-icon-cat-science {
    --pi-bg: #eef2fb;
    --pi-border: #c3ceea;
    --pi-text: #1f46b7;
}
body.page-home .profession-icon-cat-finance,
body.page-home .profession-icon-cat-office,
body.page-home .profession-icon-cat-retail,
body.page-home .profession-icon-cat-real-estate {
    --pi-bg: #f5f2ea;
    --pi-border: #d9cfb7;
    --pi-text: #7a5a1d;
}
body.page-home .profession-icon-cat-creative,
body.page-home .profession-icon-cat-media,
body.page-home .profession-icon-cat-beauty,
body.page-home .profession-icon-cat-nonprofit {
    --pi-bg: #f5eef6;
    --pi-border: #d9c6dc;
    --pi-text: #774f87;
}
body.page-home .insight-name {
    color: #334155;
}
body.page-home .insight-name-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.page-home .chart-score {
    color: #0F172A !important;
}
body.page-home .chart-change.green { color: var(--hh-positive); }
body.page-home .chart-change.red { color: var(--hh-negative); }
body.page-home .chart-change.neutral { color: #94A3B8; }

/* --- Outlook badges --- */
body.page-home .outlook-badge.locked-in {
    color: var(--hh-positive);
    background: var(--hh-positive-soft);
    border-color: var(--hh-positive-border);
}
body.page-home .outlook-badge.solid {
    color: var(--hh-positive);
    background: var(--hh-positive-soft);
    border-color: var(--hh-positive-border);
}
body.page-home .outlook-badge.mid {
    color: var(--hh-caution);
    background: var(--hh-caution-soft);
    border-color: var(--hh-caution-border);
}
body.page-home .outlook-badge.shaky {
    color: var(--hh-warning);
    background: var(--hh-warning-soft);
    border-color: var(--hh-warning-border);
}
body.page-home .outlook-badge.cooked {
    color: var(--hh-negative);
    background: var(--hh-negative-soft);
    border-color: var(--hh-negative-border);
}

/* --- Signal/momentum badges --- */
body.page-home .signal-badge.bullish {
    color: var(--hh-positive);
}
body.page-home .signal-badge.bearish {
    color: var(--hh-negative);
}
body.page-home .signal-badge.neutral {
    color: #94A3B8;
}

/* --- Guide badges on rows --- */
body.page-home .chart-badge-full {
    color: var(--hh-positive);
    background: var(--hh-positive-soft);
    border-color: var(--hh-positive-border);
}
body.page-home .chart-badge-lite {
    color: #94A3B8;
    border-color: #E2E8F0;
}

/* --- Watch button --- */
body.page-home .chart-watch-btn {
    color: #CBD5E1;
}
body.page-home .chart-watch-btn:hover {
    color: var(--hh-caution);
}
body.page-home .chart-watch-btn.watched {
    color: var(--hh-caution);
}

/* --- Expand button --- */
body.page-home .chart-expand-btn {
    color: #64748B;
    border-top-color: #E2E8F0;
    background: #F8FAFC;
}
body.page-home .chart-expand-btn:hover {
    color: #165DFF;
    background: rgba(22, 93, 255, 0.04);
}

/* --- Section group headers (overview mode) --- */
body.page-home .chart-section-header {
    background: #F8FAFC;
    border-bottom-color: #E2E8F0;
    color: #64748B;
}

/* --- Sort status bar --- */
body.page-home .chart-sort-status {
    background: rgba(22, 93, 255, 0.04);
    border-bottom-color: #E2E8F0;
}
body.page-home .sort-status-text {
    color: #64748B;
}
body.page-home .sort-status-reset {
    color: #64748B;
    border-color: #CBD5E1;
}
body.page-home .sort-status-reset:hover {
    color: #165DFF;
    border-color: rgba(22, 93, 255, 0.3);
    background: rgba(22, 93, 255, 0.06);
}

/* --- Skeleton loading --- */
body.page-home .chart-skeleton .skeleton-row {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 200% 100%;
}

/* --- Watchlist section --- */
body.page-home .watchlist-chip {
    background: #FFFFFF;
    border-color: #E2E8F0;
    color: #0F172A;
}
body.page-home .watchlist-chip:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

/* --- Insight cards --- */
body.page-home .insight-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
}
body.page-home .insight-title {
    color: #64748B;
}
body.page-home .insight-name {
    color: #334155;
}
body.page-home .insight-item {
    border-bottom-color: #F1F5F9;
}
body.page-home .insight-item:hover {
    background: rgba(15, 23, 42, 0.02);
}

/* --- Danger rows (drama mode) --- */
body.page-home .chart-row-danger {
    border-left-color: #DC2626;
}
body.page-home .chart-row-danger .chart-trade-name {
    color: #DC2626;
}

.hero-wrapper::before {
    display: none;
}

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 5.25rem 2rem 2.25rem;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-wrapper .hero-dashboard {
    text-align: left;
    padding-top: 0;
    padding-bottom: 0;
}

.hero-main {
    max-width: 1080px;
    margin: 0 auto;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1rem 0 0.25rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Light-themed hero badge on homepage */
.hero-wrapper .hero-badge {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
    color: #111111;
}

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

.hero-wrapper .dot {
    background: #111111;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-h1 {
    font-size: clamp(2.9rem, 6.8vw, 6.3rem);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    color: var(--text);
    max-width: 14ch;
}

.hero-p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.6rem;
    max-width: 60ch;
}

/* Light-themed text overrides for homepage hero */
.hero-wrapper .hero-h1 {
    color: #111111;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    max-width: 14ch;
}

.hero-wrapper .hero-p {
    color: rgba(17, 17, 17, 0.78);
    max-width: 52ch;
    margin: 0 0 1.6rem;
}

.hero-wrapper .hero-accent {
    color: #111111;
    text-decoration: underline;
    text-decoration-thickness: 0.16em;
    text-decoration-color: #165DFF;
    text-underline-offset: 0.08em;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background: #3ECF73;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(74, 222, 128, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-bright);
    padding: 1rem 2rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-transform: lowercase;
}

.btn-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

/* Hero-specific button overrides for light background */
.hero-wrapper .btn-primary {
    background: #111111;
    color: #fff;
    border-radius: 999px;
    padding: 0.95rem 1.65rem;
    box-shadow: 0 10px 22px rgba(22, 93, 255, 0.24);
}

.hero-wrapper .btn-primary:hover {
    background: #000000;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}

.hero-wrapper .btn-secondary {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.35);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 0.95rem 1.65rem;
}

.hero-wrapper .btn-secondary:hover {
    border-color: #111111;
    color: #000000;
    background: rgba(255, 255, 255, 0.78);
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    border-top: none;
    padding-top: 0.45rem;
}

.hero-trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.26rem;
    text-decoration: none;
    border: 3px solid #111111;
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem;
    background: #111111;
    transition: all 0.16s;
}

.hero-trust-item:hover {
    border-color: #111111;
    background: #165DFF;
    transform: translateY(-1px);
}

.hero-trust-item strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.08rem;
    font-weight: 900;
    color: #FFFFFF;
}

.hero-trust-item span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.28;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== LIVE SOCIAL PROOF STATS (horizontal bar) ===== */
.live-stats-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 2rem;
}

.live-stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.live-stat {
    text-align: center;
    padding: 1.5rem 2rem;
    position: relative;
    flex: 1 1 auto;
    min-width: 140px;
}

/* Vertical dividers between stats */
.live-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.12), transparent);
}

.live-stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--primary);
    text-shadow: none;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.live-stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .live-stats-grid {
        flex-wrap: wrap;
        gap: 0;
    }

    .live-stat {
        flex: 0 0 50%;
        padding: 1.25rem 0.75rem;
    }

    /* Remove right divider on even items (right column) */
    .live-stat:nth-child(2)::after {
        display: none;
    }

    .live-stat-num {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .live-stat {
        flex: 0 0 50%;
    }
}

/* ===== JOURNEY BAR — 3-step user path above the chart ===== */
/* The safety spectrum gradient IS the connective tissue */

.journey-bar {
    max-width: 1000px;
    margin: 0.75rem auto 0.5rem;
    padding: 0 1rem;
}

.journey-bar-inner {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-left: 8px solid #FACC15;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.journey-bar-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.journey-bar-node {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.journey-bar-node:hover {
    background: rgba(15, 23, 42, 0.04);
}

/* Step-matched hover tints */
.journey-bar-node[data-step="1"]:hover {
    background: rgba(22, 163, 74, 0.06);
}
.journey-bar-node[data-step="2"]:hover {
    background: rgba(202, 138, 4, 0.06);
}
.journey-bar-node[data-step="3"]:hover {
    background: rgba(220, 38, 38, 0.06);
}

.journey-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 0.65rem;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Step icon accents — clean light bg */
.journey-bar-node[data-step="1"] .journey-bar-icon {
    background: #165DFF;
    color: #fff;
    border: 1px solid #165DFF;
}

.journey-bar-node[data-step="2"] .journey-bar-icon {
    background: #165DFF;
    color: #fff;
    border: 1px solid #165DFF;
}

.journey-bar-node[data-step="3"] .journey-bar-icon {
    background: #165DFF;
    color: #fff;
    border: 1px solid #165DFF;
}

.journey-bar-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.journey-bar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    color: #0F172A;
    white-space: nowrap;
}

.journey-bar-desc {
    font-size: 0.65rem;
    color: #64748B;
    line-height: 1.3;
    white-space: nowrap;
}

/* Connectors between steps */
.journey-bar-connector {
    width: 24px;
    height: 3px;
    flex-shrink: 0;
    border-radius: 4px;
    background: rgba(250, 204, 21, 0.9);
}

@media (max-width: 640px) {
    .journey-bar {
        padding: 0.5rem 0.75rem 0;
    }

    .journey-bar-inner {
        padding: 0.4rem 0.5rem;
    }

    .journey-bar-track {
        flex-direction: row;
        gap: 0;
        justify-content: space-between;
    }

    .journey-bar-node {
        flex: 1;
        justify-content: center;
        padding: 0.25rem 0.2rem;
    }

    .journey-bar-icon {
        width: 24px;
        height: 24px;
        font-size: 0.6rem;
    }

    .journey-bar-title {
        font-size: 0.68rem;
    }

    .journey-bar-connector {
        width: 10px;
        height: 1px;
        align-self: center;
        margin-left: 0;
    }

    .journey-bar-desc {
        display: none;
    }
}

/* --- Funnel strip light override --- */
body.page-home .funnel-strip {
    border-top-color: #F1F5F9;
    background: #F8FAFC;
}
body.page-home .funnel-node:not(:last-child)::after {
    background: #E2E8F0;
}
body.page-home .funnel-node:hover {
    background: rgba(22, 163, 74, 0.04);
}
body.page-home .funnel-label {
    color: #0F172A;
}
body.page-home .funnel-node:hover .funnel-label {
    color: #165DFF;
}
body.page-home .funnel-sub {
    color: #64748B;
}

/* ===== FUNNEL STRIP (inside chart container) ===== */
.funnel-strip {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.015);
}

.funnel-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    flex: 1;
    padding: 1rem 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
    cursor: pointer;
    position: relative;
}

.funnel-node:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(43, 48, 57, 0.8);
}

.funnel-node:hover {
    background: rgba(74, 222, 128, 0.06);
}

.funnel-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.funnel-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    transition: color 0.15s;
    white-space: nowrap;
}

.funnel-node:hover .funnel-label {
    color: #165DFF;
}

.funnel-sub {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
    white-space: nowrap;
    line-height: 1;
    text-align: center;
}

.funnel-arrow {
    display: none;
}

@media (max-width: 640px) {
    .funnel-node {
        padding: 0.75rem 0.4rem;
    }

    .funnel-label {
        font-size: 0.75rem;
    }

    .funnel-sub {
        display: none;
    }

    .funnel-icon {
        font-size: 1rem;
    }
}

.section-sub {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-top: -2.5rem;
    margin-bottom: 2.5rem;
}

/* --- CTA + footer transition: aligned with homepage light system --- */
body.page-home .footer-canvas-wrapper {
    background: #0D1117;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}
body.page-home .final-cta-slim {
    background: #111827;
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-left: 8px solid #FFD44D;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
body.page-home .final-cta-text {
    color: rgba(255, 255, 255, 0.86);
}
body.page-home .final-cta-quiz-btn {
    background: linear-gradient(90deg, #165DFF 0%, #3B82F6 50%, #165DFF 100%);
    background-size: 220% 100%;
    color: #fff;
    transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 10px 24px rgba(22, 93, 255, 0.24);
}
body.page-home .final-cta-quiz-btn:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(22, 93, 255, 0.32);
}
body.page-home .final-cta-quiz-btn:active {
    background: linear-gradient(90deg, #1D4ED8 0%, #165DFF 45%, #60A5FA 100%);
    transform: translateY(0);
}
body.page-home .final-cta-email input[type="email"] {
    background: var(--hh-bg-cream-soft);
    color: #17181c;
    border-color: #cfcfcf;
}
body.page-home .final-cta-email input[type="email"]::placeholder {
    color: #727272;
}
body.page-home .final-cta-email button {
    background: var(--hh-bg-cream-soft);
    color: #17181c;
    border-color: #cfcfcf;
    transition: background 0.2s ease, color 0.2s ease;
}
body.page-home .final-cta-email button:hover {
    background: #e8e8e8;
    color: #17181c;
}
body.page-home .final-cta-email button:active {
    background: #dfdfdf;
    color: #17181c;
}
body.page-home #footer-canvas {
    display: none;
}
body.page-home .footer {
    border-top: 3px solid #FFD44D;
    padding-top: 3rem;
}
body.page-home .footer-logo-container,
body.page-home .footer-logo-text {
    color: #FFFFFF;
}
body.page-home .footer-logo-container .logo-mark {
    color: #FFFFFF;
}
body.page-home .footer-right a {
    color: rgba(255, 255, 255, 0.84);
}
body.page-home .footer-right a:hover {
    color: #FFFFFF;
}
body.page-home .footer-social a {
    color: rgba(255, 255, 255, 0.62);
}
body.page-home .footer-social a:hover {
    color: #FFFFFF;
}
body.page-home .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.62);
}
body.page-home .footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
}
body.page-home .footer-bottom a:hover {
    color: #FFFFFF;
}

/* ===== SLIM CTA ===== */
.final-cta-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
}

.final-cta-slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #1F222A;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 1.25rem 1.75rem;
    flex-wrap: wrap;
}

.final-cta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.final-cta-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.final-cta-quiz-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.5rem;
    border-radius: var(--radius-sm);
    background: #165DFF;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.final-cta-quiz-btn:hover {
    background: #1147C7;
    transform: translateY(-1px);
}

.final-cta-email {
    display: flex;
    gap: 0;
}

.final-cta-email input[type="email"] {
    padding: 0.55rem 0.85rem;
    border-radius: 6px 0 0 6px;
    border: 1px solid rgba(255,255,255,0.1);
    border-right: none;
    background: #181B22;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    outline: none;
    min-width: 180px;
}

.final-cta-email input[type="email"]::placeholder {
    color: #555;
}

.final-cta-email input[type="email"]:focus {
    border-color: #165DFF;
}

.final-cta-email button {
    padding: 0.5rem 0.85rem;
    border-radius: 0 6px 6px 0;
    border: 1px solid rgba(255,255,255,0.1);
    border-left: none;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.final-cta-email button:hover {
    background: rgba(22, 93, 255, 0.15);
    color: #165DFF;
}

/* --- AI Futures light overrides (homepage) --- */
body.page-home .ai-futures-badge {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}
body.page-home .ai-futures-dot {
    background: #3B82F6;
}
body.page-home .ai-futures-h2 {
    color: #0F172A;
}
body.page-home .ai-futures-sub {
    color: #64748B;
}
body.page-home .af-card {
    background: #FFFFFF;
    border-color: #E2E8F0;
}
body.page-home .af-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
}
body.page-home .af-card-title {
    color: #0F172A;
}
body.page-home .af-card-desc {
    color: #64748B;
}
body.page-home .af-card-meta {
    border-top-color: #F1F5F9;
}
body.page-home .af-salary {
    color: #165DFF;
}
body.page-home .ai-futures-see-all {
    color: #3B82F6;
}
body.page-home .ai-futures-see-all:hover {
    color: #1D4ED8;
}
body.page-home .ai-futures-source {
    color: #94A3B8;
}

/* ===== AI FUTURES — Emerging AI-era careers ===== */

.ai-futures-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.ai-futures-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ai-futures-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    background: rgba(100, 180, 255, 0.06);
    border: 1px solid rgba(100, 180, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(100, 180, 255, 0.9);
    text-transform: lowercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.ai-futures-dot {
    width: 6px;
    height: 6px;
    background: rgba(100, 180, 255, 0.8);
    border-radius: 50%;
    animation: pulse 2.5s ease-in-out infinite;
}

.ai-futures-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 900;
    color: #C9CED8;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.ai-futures-sub {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.55;
}

.ai-futures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.af-card {
    background: #1B1E25;
    border: 1px solid rgba(43, 48, 57, 0.8);
    border-radius: var(--radius-md);
    padding: 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.af-card:hover {
    border-color: rgba(100, 180, 255, 0.2);
    background: #1B1E25;
    transform: translateY(-2px);
}

.af-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.af-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.35rem;
}

.af-emoji.profession-icon {
    width: 1.44rem;
    height: 1.44rem;
    border-radius: 0.46rem;
    overflow: hidden;
}

.af-emoji.af-emoji-clean.profession-icon {
    width: 1.72rem;
    height: 1.72rem;
    border-radius: 0.54rem;
    border-width: 1.1px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.af-emoji.profession-icon::after,
.af-emoji.af-emoji-clean.profession-icon::after {
    display: none;
}

.af-emoji.profession-icon .profession-icon-glyph {
    width: 66%;
    height: 66%;
}

.af-emoji.af-emoji-clean.profession-icon .profession-icon-glyph {
    width: 72%;
    height: 72%;
    stroke-width: 1.95;
}

.af-emoji.profession-icon .profession-icon-mark {
    width: 0.42em;
    height: 0.42em;
    padding: 0.02em;
    border-width: 0.9px;
    background: #f4f4f4;
    border-color: #d4d4d4;
    box-shadow: none;
    opacity: 0.96;
}

.af-emoji.af-emoji-clean.profession-icon .profession-icon-mark {
    display: block;
    width: 0.34em;
    height: 0.34em;
    padding: 0.01em;
    border-width: 0.8px;
    opacity: 0.92;
    background: #f8f8fb;
    border-color: #d1d7e6;
    box-shadow: 0 1px 2px rgba(31, 70, 183, 0.14);
}

.af-emoji.profession-icon .profession-icon-mark-q0,
.af-emoji.profession-icon .profession-icon-mark-q1,
.af-emoji.profession-icon .profession-icon-mark-q2,
.af-emoji.profession-icon .profession-icon-mark-q3 {
    right: auto;
    bottom: auto;
}

.af-emoji.profession-icon .profession-icon-mark-q0 {
    top: 0.08em;
    left: 0.08em;
}

.af-emoji.profession-icon .profession-icon-mark-q1 {
    top: 0.08em;
    right: 0.08em;
    left: auto;
}

.af-emoji.profession-icon .profession-icon-mark-q2 {
    right: 0.08em;
    bottom: 0.08em;
    top: auto;
}

.af-emoji.profession-icon .profession-icon-mark-q3 {
    left: 0.08em;
    bottom: 0.08em;
    top: auto;
}

.af-emoji.af-emoji-fallback {
    width: 1.26rem;
    height: 1.26rem;
    font-size: 1.2rem;
}

.af-growth-badge {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.af-growth-booming {
    color: var(--hh-positive);
    background: var(--hh-positive-soft);
    border: 1px solid var(--hh-positive-border);
}

.af-growth-strong {
    color: var(--hh-info);
    background: var(--hh-info-soft);
    border: 1px solid var(--hh-info-border);
}

.af-growth-emerging {
    color: var(--hh-caution);
    background: var(--hh-caution-soft);
    border: 1px solid var(--hh-caution-border);
}

.af-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #C9CED8;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.af-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
    flex: 1;
}

.af-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.af-salary {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--hh-positive);
    font-variant-numeric: tabular-nums;
}

.af-tech-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.4rem;
    border-radius: 3px;
}

.af-tech-no {
    color: var(--hh-positive);
    background: var(--hh-positive-soft);
    border: 1px solid var(--hh-positive-border);
}

.af-tech-hybrid {
    color: var(--hh-info);
    background: var(--hh-info-soft);
    border: 1px solid var(--hh-info-border);
}

.af-tech-yes {
    color: var(--hh-caution);
    background: var(--hh-caution-soft);
    border: 1px solid var(--hh-caution-border);
}

.ai-futures-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ai-futures-see-all {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(100, 180, 255, 0.9);
    text-decoration: none;
    transition: color 0.15s;
}

.ai-futures-see-all:hover {
    color: #fff;
}

.ai-futures-source {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

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

@media (max-width: 550px) {
    .ai-futures-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ai-futures-section {
        padding: 1.5rem 1rem 2rem;
    }

    .ai-futures-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1060px) {
    .hero-main {
        padding: 0.8rem 0 0.1rem;
    }

    .hero-trust {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-mark {
        width: 15px;
        height: 8px;
    }

    .hero {
        padding: 4rem 1rem 1.4rem;
    }

    .hero-main {
        border: none;
        padding: 0.5rem 0 0.05rem;
    }

    .hero-wrapper .hero-h1 {
        font-size: clamp(2.2rem, 12vw, 3.2rem);
        max-width: 100%;
    }

    .hero-wrapper .hero-p {
        font-size: 1rem;
    }

    .stats {
        gap: 2rem;
    }

    .hero-buttons {
        flex-direction: row;
        width: 100%;
    }

    .btn-primary, .btn-secondary {
        width: auto;
        justify-content: center;
    }

    /* Hero wrapper fallback gradient smaller on mobile */
    .hero-wrapper::before {
        width: 520px;
        height: 420px;
    }

    .hero-trust-item {
        padding: 0.3rem 0.6rem;
    }

    .final-cta-slim {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 1rem;
    }

    .final-cta-left {
        justify-content: center;
    }

    .final-cta-email {
        width: 100%;
    }

    .final-cta-email input[type="email"] {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
    }

    .live-stats-grid {
        grid-template-columns: 1fr;
    }

    /* Funnel strip: stack on small phones */
    .funnel-strip {
        flex-direction: column;
        gap: 0;
    }

    .funnel-node {
        border-right: none;
        border-bottom: 1px solid #E2E8F0;
        padding: 0.75rem 1rem;
    }

    .funnel-node:last-child {
        border-bottom: none;
    }
}

/* ===== HOW IT WORKS — Journey Section ===== */

.journey-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.journey-content {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
}

.journey-header {
    text-align: center;
    margin-bottom: 1rem;
}

.journey-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94A3B8;
}

.journey-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.journey-step {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
}

.journey-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(22, 93, 255, 0.08);
    color: #165DFF;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.journey-step-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #0F172A;
    margin-bottom: 0.3rem;
}

.journey-step-desc {
    font-size: 0.8rem;
    color: #64748B;
    line-height: 1.45;
}

.journey-step-arrow {
    color: #CBD5E1;
    font-size: 1.2rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .journey-steps {
        flex-direction: column;
    }

    .journey-step-arrow {
        transform: rotate(90deg);
    }

    .journey-content {
        padding: 1.25rem 1.25rem;
    }
}


/* ===== FOOTER CANVAS — Radial burst sun ===== */
.footer-canvas-wrapper {
    position: relative;
    overflow: hidden;
}

#footer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 2s ease-out;
    pointer-events: none;
}

#footer-canvas.isLoaded {
    opacity: 1;
}

.footer-canvas-wrapper .footer,
.footer-canvas-wrapper .final-cta-section {
    position: relative;
    z-index: 1;
}

/* ===== HOMEPAGE REFERENCE ALIGNMENT (VIBRANT-LIKE) ===== */
body.page-home {
    background: #efefef;
    --hh-bg-cream: #efefef;
    --hh-bg-cream-soft: #f3f3f3;
    --hh-accent-yellow: #f1e78c;
    --hh-frame-yellow: #f1e24a;
    --hh-index-frame-border: 44px;
    --hh-index-frame-radius: 24px;
    --hh-rail-width: clamp(280px, 27vw, 350px);
    --hh-dotted-rule: #b3b8c0;
    --hh-content-width: min(1280px, calc(100vw - 4rem));
    --hh-positive: #2d8a5b;
    --hh-positive-soft: rgba(45, 138, 91, 0.1);
    --hh-positive-border: rgba(45, 138, 91, 0.24);
    --hh-negative: #b24a55;
    --hh-negative-soft: rgba(178, 74, 85, 0.1);
    --hh-negative-border: rgba(178, 74, 85, 0.24);
    --hh-caution: #9b741b;
    --hh-caution-soft: rgba(155, 116, 27, 0.1);
    --hh-caution-border: rgba(155, 116, 27, 0.24);
    --hh-warning: #bc6a24;
    --hh-warning-soft: rgba(188, 106, 36, 0.1);
    --hh-warning-border: rgba(188, 106, 36, 0.24);
    --hh-info: #3f6fd0;
    --hh-info-soft: rgba(63, 111, 208, 0.09);
    --hh-info-border: rgba(63, 111, 208, 0.22);
    --hh-btn-blue: #2451d1;
    --hh-btn-blue-hover: #1f46b7;
    --hh-moment-yellow-strong: rgba(241, 226, 74, 0.52);
    --hh-moment-yellow-mid: rgba(241, 226, 74, 0.26);
    --hh-moment-yellow-soft: rgba(241, 226, 74, 0.14);
    --hh-row-hover-neutral: rgba(84, 99, 123, 0.08);
    --hh-section-trending-label: #5f81bb;
    --hh-section-trending-bg: rgba(95, 129, 187, 0.12);
    --hh-section-trending-row: rgba(95, 129, 187, 0.06);
    --hh-section-trending-row-hover: rgba(95, 129, 187, 0.12);
    --hh-section-risk-label: #b24a55;
    --hh-section-risk-bg: rgba(178, 74, 85, 0.11);
    --hh-section-risk-row: rgba(178, 74, 85, 0.055);
    --hh-section-risk-row-hover: rgba(178, 74, 85, 0.115);
    --hh-section-climbing-label: #2d8a5b;
    --hh-section-climbing-bg: rgba(45, 138, 91, 0.11);
    --hh-section-climbing-row: rgba(45, 138, 91, 0.055);
    --hh-section-climbing-row-hover: rgba(45, 138, 91, 0.115);
    --hh-section-top-label: #8b93a0;
    --hh-section-top-bg: rgba(125, 136, 152, 0.045);
    --hh-section-top-row: rgba(125, 136, 152, 0.025);
    --hh-section-top-row-hover: rgba(125, 136, 152, 0.07);
}

body.page-home .main-content {
    background: var(--hh-bg-cream);
    --fc-green: var(--hh-positive);
    --fc-red: var(--hh-negative);
    --fc-gold: var(--hh-caution);
    --fc-orange: var(--hh-warning);
    --fc-accent: var(--hh-btn-blue);
}

body.page-home .nav {
    background: var(--hh-bg-cream-soft) !important;
    border-bottom: 1px solid #dddddd !important;
}

body.page-home .nav::after {
    background: transparent;
}

body.page-home .logo-text,
body.page-home a.logo-container {
    color: #17181c !important;
}
body.page-home .logo-mark {
    color: #17181c !important;
}

body.page-home .btn-nav {
    color: #17181c !important;
    border-color: #cfcfcf !important;
    background: var(--hh-bg-cream-soft) !important;
}

body.page-home .btn-nav:hover {
    color: #17181c;
    border-color: #bdbdbd;
    background: #ececec;
}

/* Homepage override for shared global search trigger in nav */
body.page-home .hardhat-search-trigger {
    background: var(--hh-bg-cream-soft);
    border: 1px solid #cfcfcf;
    color: #5f5f5f;
}

body.page-home .hardhat-search-trigger:hover {
    background: #ececec;
    border-color: #bdbdbd;
    color: #17181c;
}

body.page-home .search-trigger-text {
    color: #727272;
}

body.page-home .search-trigger-kbd {
    background: #f0f0f0;
    border: 1px solid #d3d3d3;
    color: #666666;
}

body.page-home .hardhat-search-trigger:hover .search-trigger-text {
    color: #17181c;
}

body.page-home .hardhat-search-trigger:hover .search-trigger-kbd {
    background: #e7e7e7;
    border-color: #c8c8c8;
    color: #525252;
}

/* ---- Search Dialog — Light Theme on Homepage ---- */
body.page-home .hardhat-search-backdrop {
    background: rgba(0, 0, 0, 0.35);
}

body.page-home .hardhat-search-dialog {
    background: #FFFFFF;
    border-color: #CCD3DD;
    color: #0F172A;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18);
}

body.page-home .hardhat-search-input-wrap,
body.page-home .hardhat-search-footer {
    border-color: #CCD3DD;
}

body.page-home .hardhat-search-input {
    color: #0F172A;
    caret-color: #165DFF;
}

body.page-home .hardhat-search-input::placeholder {
    color: #546478;
}

body.page-home .hardhat-search-icon {
    color: #546478 !important;
}

body.page-home .hardhat-search-item-title {
    color: #0F172A;
}

body.page-home .hardhat-search-item-subtitle,
body.page-home .hardhat-search-empty,
body.page-home .hardhat-search-empty-hint,
body.page-home .hardhat-search-group {
    color: #546478;
}

body.page-home .hardhat-search-item:hover,
body.page-home .hardhat-search-item.selected {
    background: rgba(22, 93, 255, 0.08);
}

body.page-home .hardhat-search-item.selected {
    outline-color: rgba(22, 93, 255, 0.3);
}

body.page-home .hardhat-search-item:hover .hardhat-search-item-arrow,
body.page-home .hardhat-search-item.selected .hardhat-search-item-arrow {
    color: #165DFF;
}

body.page-home .hardhat-search-footer {
    color: #546478;
}

body.page-home .hardhat-search-esc,
body.page-home .hardhat-search-footer kbd {
    background: #F6F7F9;
    border-color: #BEC7D4;
    color: #546478;
}

body.page-home .hero-wrapper {
    background: #F6F7F9;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    transition: background 260ms ease;
}

body.page-home .hero-wrapper::before {
    content: '';
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

body.page-home .hero-wrapper::after {
    content: '';
    position: absolute;
    right: -200px;
    top: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(241, 226, 74, 0.14) 0%, rgba(241, 226, 74, 0) 62%);
}

body.page-home .hero {
    padding-top: 2.5rem;
    padding-bottom: 1rem;
}

body.page-home .hero-main {
    text-align: center;
    max-width: 980px;
}

/* Ribbon + icon box removed — title now sits centered without decoration */
body.page-home .hero-title-ribbon,
body.page-home .hero-title-icon-box { display: none; }

body.page-home .hero-h1 {
    text-align: center;
    margin: 0 auto 1rem;
    max-width: none;
}

body.page-home .hero-badge {
    background:
        radial-gradient(132% 170% at 100% 0%, var(--hh-moment-yellow-strong) 0%, var(--hh-moment-yellow-mid) 36%, rgba(241, 226, 74, 0) 74%),
        linear-gradient(#f2f2f2, #f2f2f2);
    border-color: #d9d9d9;
    color: #5a5a5a;
    margin-bottom: 1.4rem;
}

body.page-home .hero-badge .dot.live {
    background: var(--hh-positive);
}

body.page-home .hero-h1 {
    font-family: 'Space Grotesk', sans-serif;
    color: #17181c;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.045em;
    word-spacing: 0;
    text-transform: lowercase;
    max-width: none;
    white-space: nowrap;
    text-wrap: balance;
    margin-left: auto;
    margin-right: auto;
}

body.page-home .chart-title,
body.page-home .ai-futures-h2,
body.page-home .final-cta-text {
    font-family: 'Space Grotesk', sans-serif;
}

body.page-home .hero-h1 .hero-h1-byline {
    font-family: 'Inter', sans-serif;
    font-size: 0.28em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #17181c;
    text-transform: lowercase;
    vertical-align: baseline;
    margin-left: 0.3em;
    white-space: nowrap;
    display: inline;
}

.tm-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    vertical-align: baseline;
    margin-left: 1px;
    position: relative;
    top: -0.5em;
}

.chart-title-byline {
    font-family: 'Inter', sans-serif;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #17181c;
    text-transform: lowercase;
    margin-left: 0.2em;
}

body.page-home .hero-accent {
    color: #17181c;
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline;
    font-size: 1em;
    letter-spacing: inherit;
    margin-left: 0;
}

@media (max-width: 900px) {
    body.page-home .hero-title-ribbon {
        --hh-ribbon-icon-size: 68px;
        --hh-ribbon-thickness: 3px;
        --hh-ribbon-offset: 10px;
        padding-right: calc(var(--hh-ribbon-icon-size) + 10px);
    }

    body.page-home .hero-title-ribbon .hero-h1 {
        padding-top: 6px;
    }

    body.page-home .hero-title-icon-box svg {
        width: 42px;
        height: 42px;
    }

    body.page-home .hero-h1 {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    body.page-home .hero-title-ribbon {
        --hh-ribbon-icon-size: 60px;
        width: min(96vw, 420px);
        padding-right: calc(var(--hh-ribbon-icon-size) + 8px);
    }

    body.page-home .hero-title-icon-box {
        border-width: 2.5px;
    }

    body.page-home .hero-title-icon-box svg {
        width: 36px;
        height: 36px;
    }
}

body.page-home .hero-p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: #546478;
    font-size: 0.95rem;
    letter-spacing: 0;
    max-width: 44ch;
    line-height: 1.45;
    margin: 0 auto 1.45rem;
    position: relative;
}

body.page-home .hero-p::after {
    display: none;
}

body.page-home .hero-buttons {
    justify-content: center;
}

body.page-home .btn-primary,
body.page-home .btn-secondary {
    border-radius: var(--radius-md);
    padding: 0.95rem 1.7rem;
}

body.page-home .btn-primary {
    background: var(--hh-btn-blue);
    color: #ffffff;
    box-shadow: none;
}

/* Re-balance index table proportions so text fills available width */
@media (min-width: 1100px) {
    body.page-home .chart-col-headers,
    body.page-home .chart-row {
        grid-template-columns: 3rem minmax(280px, 2fr) minmax(90px, 0.7fr) minmax(90px, 0.7fr) minmax(110px, 0.9fr) minmax(120px, 1fr) minmax(220px, 1.25fr) 2.5rem;
    }

    body.page-home .chart-col-headers {
        padding: 0.8rem 1.35rem;
    }

    body.page-home .chart-row {
        padding: 0 1.35rem;
        min-height: 54px;
    }

    body.page-home .chart-col-header {
        font-size: 0.76rem;
        letter-spacing: 0.05em;
    }

    body.page-home .chart-trade-name {
        font-size: 1rem;
    }

    body.page-home .chart-trade-cat {
        font-size: 0.7rem;
    }

    body.page-home .chart-score {
        font-size: 1.42rem;
    }

    body.page-home .chart-change {
        font-size: 0.9rem;
    }

    body.page-home .chart-sparkline {
        width: 100px;
        height: 26px;
    }

    body.page-home .chart-signal-text {
        font-size: 0.78rem;
    }

    body.page-home .chart-watch-btn {
        width: 2.35rem;
        height: 2.35rem;
        font-size: 0.95rem;
    }
}

body.page-home .btn-primary:hover {
    background: var(--hh-btn-blue);
    box-shadow: none;
}

body.page-home .btn-secondary {
    border-color: #b9c6ea;
    background: #ffffff;
    color: #1f46b7;
}

body.page-home .btn-secondary:hover {
    border-color: #b9c6ea;
    background: #ffffff;
    color: #1f46b7;
}

body.page-home .hero-trust {
    margin-top: 0.35rem;
    border-top: none;
    gap: 0.68rem;
}

body.page-home .hero-trust-item {
    background: var(--hh-btn-blue);
    border: 1px solid var(--hh-btn-blue);
    border-radius: var(--radius-md);
    padding: 0.62rem 0.78rem;
}

body.page-home .hero-trust-item:hover {
    background: var(--hh-btn-blue);
    border-color: var(--hh-btn-blue);
    transform: none;
}

/* Hero background reacts to hovered pathway buttons (same yellow for all) */
body.page-home .hero-wrapper:has(.hero-trust-item:hover),
body.page-home .hero-wrapper:has(.hero-trust-item:focus-visible) {
    background: #F6F7F9;
}

body.page-home .hero-wrapper:has(.hero-trust-item:hover)::before,
body.page-home .hero-wrapper:has(.hero-trust-item:focus-visible)::before {
    opacity: 0;
    animation: none;
}

body.page-home .hero-trust-item strong {
    color: #ffffff;
    font-size: 0.8rem;
}

body.page-home .hero-trust-item span {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.66rem;
    line-height: 1.3;
}

body.page-home .forecast-ticker {
    background: #f3f3f3;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

body.page-home .ticker-label {
    background: #f3f3f3;
    color: #17181c;
}

body.page-home .ticker-delta.green,
body.page-home .chart-change.green,
body.page-home .signal-badge.bullish,
body.page-home .market-stat-value.green {
    color: var(--hh-positive) !important;
}

body.page-home .ticker-delta.red,
body.page-home .chart-change.red,
body.page-home .signal-badge.bearish,
body.page-home .market-stat-value.red {
    color: var(--hh-negative) !important;
}

body.page-home .chart-col-header.active,
body.page-home .chart-explainer a,
body.page-home .ai-futures-see-all,
body.page-home .footer-right a:hover {
    color: var(--hh-btn-blue) !important;
}

/* Interactive states use one accent family (brand blue) */
body.page-home .filter-tab.active {
    color: #ffffff;
    background: var(--hh-btn-blue);
    border-color: var(--hh-btn-blue);
}

body.page-home .filter-tab.active:hover {
    color: #ffffff;
    background: var(--hh-btn-blue-hover);
    border-color: var(--hh-btn-blue-hover);
}

body.page-home .filter-tab.active .filter-count {
    color: rgba(255, 255, 255, 0.72);
}

body.page-home .chart-expand-btn:hover {
    color: var(--hh-btn-blue);
    background: rgba(36, 81, 209, 0.08);
}

body.page-home .chart-sort-status {
    background: rgba(36, 81, 209, 0.06);
}

body.page-home .sort-status-reset:hover {
    color: var(--hh-btn-blue);
    border-color: rgba(36, 81, 209, 0.35);
    background: rgba(36, 81, 209, 0.08);
}

/* Disable chart-header tooltips on homepage (looked out of style) */
body.page-home .chart-col-header[data-tooltip]::before,
body.page-home .chart-col-header[data-tooltip]::after {
    content: none !important;
    display: none !important;
}

body.page-home .the-chart {
    width: var(--hh-content-width);
    max-width: var(--hh-content-width);
    margin: 0 auto 0.75rem;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

body.page-home .chart-container-main {
    border: var(--hh-index-frame-border) solid transparent;
    border-radius: var(--hh-index-frame-radius);
    background:
        linear-gradient(#f7f7f7, #f7f7f7) padding-box,
        radial-gradient(62% 46% at 100% 0%, rgba(241, 226, 74, 0.36) 0%, rgba(241, 226, 74, 0) 72%) border-box,
        radial-gradient(78% 54% at 50% 100%, rgba(241, 226, 74, 0.28) 0%, rgba(241, 226, 74, 0) 72%) border-box,
        linear-gradient(var(--hh-frame-yellow), var(--hh-frame-yellow)) border-box;
    background-size: auto, 120% 120%, 112% 112%, auto;
    background-position: center, 100% 0%, 50% 100%, center;
    animation: none;
    overflow: hidden;
    box-shadow: none;
    position: relative;
}

body.page-home .chart-title {
    color: #17181c;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
    padding-right: 0;
}

body.page-home .chart-title::before {
    content: none;
    display: none;
}

body.page-home .chart-title::after {
    content: none;
    display: none;
}

body.page-home .chart-updated {
    color: #6f7787;
}

body.page-home .chart-explainer {
    color: #5c6678;
}

body.page-home .chart-col-headers {
    background: #f3f3f3;
    border-bottom-color: #d7dce4;
}

body.page-home #chartSortStatus,
body.page-home #theChartBody {
    background: #f7f7f7;
}

body.page-home #theChartBody {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body.page-home .chart-col-header {
    color: #6f7787;
}

body.page-home .chart-col-header:hover {
    color: #4e5d77;
}

body.page-home .chart-col-header.active {
    color: var(--hh-btn-blue);
}

body.page-home .chart-row {
    border-bottom-color: #e5e9ef;
}

body.page-home .chart-row:hover {
    background: var(--hh-row-hover-neutral);
}

body.page-home .chart-rank {
    color: #7d8899;
    font-weight: 700;
}

body.page-home .chart-trade-name {
    color: #151b2a;
}

body.page-home .chart-trade-cat {
    color: #788398;
}

body.page-home .chart-members {
    color: #4a5568;
}

body.page-home .chart-score {
    color: #10192c;
}

body.page-home .chart-change.neutral {
    color: #818ca0;
}

body.page-home .chart-badge-guide {
    color: var(--hh-positive);
    background: var(--hh-positive-soft);
    border-color: var(--hh-positive-border);
}

body.page-home .chart-row:hover .chart-badge-guide {
    background: rgba(45, 138, 91, 0.16);
    border-color: rgba(45, 138, 91, 0.32);
}

body.page-home .chart-badge-chartonly {
    color: #666f80;
    border-color: rgba(125, 136, 152, 0.35);
    background: rgba(125, 136, 152, 0.06);
}

body.page-home .chart-section-divider {
    padding: 0.52rem 1.2rem 0.36rem;
    border-top-color: #d8dfe8;
}

body.page-home .chart-section-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    opacity: 1;
}

body.page-home .chart-section-trending {
    background: var(--hh-section-trending-bg);
    border-top-color: rgba(95, 129, 187, 0.24);
}

body.page-home .chart-section-trending .chart-section-label {
    color: var(--hh-section-trending-label);
}

body.page-home .chart-row-section-trending {
    background: var(--hh-section-trending-row);
}

body.page-home .chart-row-section-trending:hover {
    background: var(--hh-section-trending-row-hover) !important;
}

body.page-home .chart-section-risk {
    background: var(--hh-section-risk-bg);
    border-top-color: rgba(178, 74, 85, 0.22);
}

body.page-home .chart-section-risk .chart-section-label {
    color: var(--hh-section-risk-label);
}

body.page-home .chart-row-section-risk {
    background: var(--hh-section-risk-row);
}

body.page-home .chart-row-section-risk:hover {
    background: var(--hh-section-risk-row-hover) !important;
}

body.page-home .chart-section-climbing {
    background: var(--hh-section-climbing-bg);
    border-top-color: rgba(45, 138, 91, 0.22);
}

body.page-home .chart-section-climbing .chart-section-label {
    color: var(--hh-section-climbing-label);
}

body.page-home .chart-row-section-climbing {
    background: var(--hh-section-climbing-row);
}

body.page-home .chart-row-section-climbing:hover {
    background: var(--hh-section-climbing-row-hover) !important;
}

body.page-home .chart-section-top {
    background: var(--hh-section-top-bg);
    border-top-color: rgba(125, 136, 152, 0.22);
}

body.page-home .chart-section-top .chart-section-label {
    color: var(--hh-section-top-label);
}

body.page-home .chart-row-section-top {
    background: var(--hh-section-top-row);
}

body.page-home .chart-row-section-top:hover {
    background: var(--hh-section-top-row-hover) !important;
}

body.page-home .chart-request-input {
    background: var(--hh-bg-cream-soft) !important;
    border-color: #cfcfcf !important;
    color: #17181c !important;
}

body.page-home .chart-request-input::placeholder {
    color: #7a7a7a !important;
}

body.page-home .chart-request-btn {
    background: var(--hh-btn-blue) !important;
    color: #ffffff !important;
    border: 1px solid var(--hh-btn-blue) !important;
}

body.page-home .chart-request-btn:hover {
    background: var(--hh-btn-blue-hover) !important;
    border-color: var(--hh-btn-blue-hover) !important;
    opacity: 1 !important;
}

body.page-home .chart-request-success {
    color: var(--hh-positive) !important;
}

@keyframes hh-frame-yellow-shift {
    0% {
        background-position: center, 100% 0%, 50% 100%, 0% 0%;
    }
    33% {
        background-position: center, 86% 14%, 48% 92%, 18% 14%;
    }
    66% {
        background-position: center, 94% 6%, 52% 98%, 8% 28%;
    }
    100% {
        background-position: center, 78% 18%, 55% 88%, 24% 8%;
    }
}

@keyframes hh-hero-yellow-shift {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 100%;
    }
    50% {
        background-position: 16% 8%, 88% 12%, 50% 95%;
    }
    100% {
        background-position: 28% 16%, 74% 4%, 50% 90%;
    }
}

body.page-home .market-summary {
    display: none !important;
    background: #f7f7f7;
    background-image: none;
    border: 2px dotted var(--hh-dotted-rule);
    border-radius: 14px;
    box-shadow: none;
    width: var(--hh-content-width);
    max-width: var(--hh-content-width);
    margin: 1rem auto 1rem !important;
    position: relative;
    z-index: 2;
    overflow: hidden;
    isolation: isolate;
}

body.page-home .market-stat {
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

body.page-home .market-stat::before {
    content: none;
}

body.page-home .market-stat > * {
    position: relative;
    z-index: 1;
}

body.page-home .market-stat-label {
    color: #5f5f5f;
}

body.page-home .market-stat-value {
    color: #17181c;
}

body.page-home .ai-futures-section {
    background: #f3f3f3;
    background-image: none;
    border: 2px dotted var(--hh-dotted-rule);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem 2.2rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    width: var(--hh-content-width);
    max-width: var(--hh-content-width);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    isolation: isolate;
}

body.page-home .ai-futures-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    background:
        radial-gradient(132% 170% at 100% 0%, var(--hh-moment-yellow-strong) 0%, var(--hh-moment-yellow-mid) 36%, rgba(241, 226, 74, 0) 74%),
        linear-gradient(#f2f2f2, #f2f2f2);
    border: 1px solid #d9d9d9;
    color: #5a5a5a;
    margin-bottom: 0.75rem;
}

body.page-home .ai-futures-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--hh-positive);
}

body.page-home .af-card {
    border-color: #d6d6d6;
    background:
        radial-gradient(126% 166% at 100% 0%, var(--hh-moment-yellow-strong) 0%, var(--hh-moment-yellow-mid) 31%, rgba(241, 226, 74, 0) 74%),
        linear-gradient(#ffffff, #ffffff);
}

body.page-home .af-card:nth-child(3n + 2) {
    background:
        radial-gradient(138% 178% at 0% 100%, var(--hh-moment-yellow-mid) 0%, var(--hh-moment-yellow-soft) 36%, rgba(241, 226, 74, 0) 74%),
        linear-gradient(#ffffff, #ffffff);
}

body.page-home .af-card:nth-child(3n + 3) {
    background:
        radial-gradient(140% 180% at 100% 100%, var(--hh-moment-yellow-mid) 0%, var(--hh-moment-yellow-soft) 36%, rgba(241, 226, 74, 0) 74%),
        linear-gradient(#ffffff, #ffffff);
}

body.page-home .af-card:hover,
body.page-home .af-card:nth-child(3n + 2):hover,
body.page-home .af-card:nth-child(3n + 3):hover {
    background: #ffffff;
    background-image: none;
    border-color: rgba(36, 81, 209, 0.28);
    box-shadow: var(--shadow-md);
}

body.page-home .footer-canvas-wrapper {
    background: linear-gradient(180deg, #ece8a5 0%, #ebe7a3 100%);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding: 0 0 1.8rem;
}

body.page-home .footer-canvas-wrapper::before,
body.page-home .footer-canvas-wrapper::after {
    content: "";
    position: absolute;
    width: 170vmax;
    height: 170vmax;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform, opacity;
}

body.page-home .footer-canvas-wrapper::before {
    left: -76vmax;
    top: -66vmax;
    background: radial-gradient(
        circle at center,
        rgba(241, 226, 74, 0.72) 0%,
        rgba(241, 226, 74, 0.46) 30%,
        rgba(241, 226, 74, 0.2) 52%,
        rgba(241, 226, 74, 0) 75%
    );
    filter: blur(72px);
    opacity: 0.95;
    animation: hh-footer-blob-a 30s ease-in-out infinite alternate;
}

body.page-home .footer-canvas-wrapper::after {
    right: -78vmax;
    bottom: -74vmax;
    background: radial-gradient(
        circle at center,
        rgba(248, 238, 132, 0.68) 0%,
        rgba(248, 238, 132, 0.42) 32%,
        rgba(248, 238, 132, 0.18) 54%,
        rgba(248, 238, 132, 0) 76%
    );
    filter: blur(88px);
    opacity: 0.88;
    animation: hh-footer-blob-b 36s ease-in-out infinite alternate;
}

body.page-home #footer-canvas {
    display: none;
}

body.page-home .final-cta-slim {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

body.page-home .final-cta-section {
    width: var(--hh-content-width);
    max-width: var(--hh-content-width);
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

body.page-home .final-cta-slim {
    width: 100%;
}

body.page-home .final-cta-text {
    color: #3d3d3d;
}

body.page-home .final-cta-quiz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--hh-btn-blue);
    background: var(--hh-btn-blue);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition: background-color 180ms ease, border-color 180ms ease;
}

body.page-home .final-cta-quiz-btn:hover {
    background: var(--hh-btn-blue-hover);
    border-color: var(--hh-btn-blue-hover);
    transform: none;
}

body.page-home .final-cta-quiz-btn:active {
    background: #1a3ca0;
    border-color: #1a3ca0;
}

@media (max-width: 640px) {
    body.page-home .final-cta-quiz-btn {
        min-height: 52px;
        padding: 0 1.4rem;
        border-radius: 10px;
        font-size: 0.95rem;
    }
}

body.page-home .final-cta-email input[type="email"] {
    background: var(--hh-bg-cream-soft) !important;
    background-image: none !important;
    color: #17181c !important;
    border-color: #cfcfcf !important;
}

body.page-home .final-cta-email input[type="email"]::placeholder {
    color: #727272 !important;
}

body.page-home .final-cta-email button {
    background: var(--hh-btn-blue) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: var(--hh-btn-blue) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 900 !important;
}

body.page-home .final-cta-email button:hover {
    background: var(--hh-btn-blue-hover) !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: var(--hh-btn-blue-hover) !important;
}

body.page-home .final-cta-email button:active {
    background: #1a3ca0 !important;
    background-image: none !important;
    color: #ffffff !important;
    border-color: #1a3ca0 !important;
}

body.page-home .footer {
    background: #e7e7e7;
    background-image: none;
    border: 2px dotted var(--hh-dotted-rule);
    border-radius: var(--radius-lg);
    width: var(--hh-content-width);
    max-width: var(--hh-content-width);
    margin: 0 auto;
    padding: 3rem 2.4rem 1.7rem;
}

body.page-home .footer-logo-container,
body.page-home .footer-logo-text,
body.page-home .footer-right a,
body.page-home .footer-social a,
body.page-home .footer-bottom,
body.page-home .footer-bottom a {
    color: #1d1d1f;
}

body.page-home .footer-right a:hover,
body.page-home .footer-social a:hover,
body.page-home .footer-bottom a:hover {
    color: #000000;
}

body.page-home .footer-bottom {
    border-top-color: #d0d0d0;
}

/* Homepage override for shared injected footer subscribe module */
body.page-home .hardhat-footer-email {
    padding: 1.6rem 0 1rem !important;
    margin-top: 1rem !important;
    border-top: 1px solid #d0d0d0 !important;
}

body.page-home .hardhat-footer-email-form {
    margin-bottom: 0.8rem !important;
}

body.page-home .hardhat-footer-email-text {
    color: #4a4a4a !important;
}

body.page-home .hardhat-footer-email-input {
    background: var(--hh-bg-cream-soft) !important;
    color: #17181c !important;
    border: 1px solid #cfcfcf !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

body.page-home .hardhat-footer-email-input::placeholder {
    color: #727272 !important;
}

body.page-home .hardhat-footer-email-input:focus {
    border-color: #b9c6ea !important;
    box-shadow: 0 0 0 2px rgba(36, 81, 209, 0.12) !important;
}

body.page-home .hardhat-footer-email-btn {
    background: var(--hh-btn-blue) !important;
    color: #ffffff !important;
    border: 1px solid var(--hh-btn-blue) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 900 !important;
}

body.page-home .hardhat-footer-email-btn:hover {
    background: var(--hh-btn-blue-hover) !important;
    border-color: var(--hh-btn-blue-hover) !important;
    color: #ffffff !important;
}

body.page-home .hardhat-footer-email-btn:active {
    background: #1a3ca0 !important;
    border-color: #1a3ca0 !important;
}

/* ===== OPTION 2: INDEX TABLE + DETAIL RAIL ===== */
@media (min-width: 1101px) {
    body.page-home .chart-container-main {
        display: grid;
        grid-template-columns: minmax(0, 1fr) var(--hh-rail-width);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "chart-head chart-rail"
            "chart-sort chart-rail"
            "chart-body chart-rail";
        align-items: start;
        align-content: start;
        overflow: visible;
        position: relative;
    }

    /* When searching, collapse to single-column (no detail rail gap) */
    body.page-home .chart-container-main.chart-search-active {
        grid-template-columns: 1fr;
        grid-template-areas:
            "chart-head"
            "chart-sort"
            "chart-body";
    }

    body.page-home .chart-container-main.chart-search-active::before {
        content: none;
    }

    body.page-home .chart-container-main.chart-search-active .chart-col-headers {
        border-top-right-radius: 18px;
    }

    body.page-home .chart-container-main.chart-search-active #theChartBody {
        border-bottom-right-radius: 18px;
    }

    body.page-home .chart-container-main::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(100% - var(--hh-rail-width));
        width: 2px;
        background-image: radial-gradient(circle, var(--hh-dotted-rule) 1px, transparent 1px);
        background-size: 2px 8px;
        background-repeat: repeat-y;
        pointer-events: none;
        z-index: 2;
    }

    body.page-home .chart-container-main::after {
        content: none;
    }

    body.page-home .chart-col-headers {
        grid-area: chart-head;
        padding: 0.84rem 1.3rem;
        border-right: none;
        border-top-left-radius: 18px;
    }

    body.page-home #chartSortStatus {
        grid-area: chart-sort;
        margin: 0;
        border-top: 1px solid #d8d8d8;
        border-bottom: 1px solid #d8d8d8;
        padding: 0.5rem 1.3rem;
        border-right: none;
    }

    body.page-home #theChartBody {
        grid-area: chart-body;
        min-width: 0;
        border-right: none;
        border-bottom-left-radius: 18px;
        overflow: hidden;
        align-self: start;
    }

    body.page-home .chart-col-headers,
    body.page-home .chart-row {
        grid-template-columns: 2.8rem minmax(260px, 1.95fr) minmax(92px, 0.74fr) minmax(90px, 0.7fr) minmax(108px, 0.9fr) minmax(118px, 0.96fr) minmax(188px, 1.2fr) 2.3rem;
    }

    body.page-home .chart-row {
        min-height: 54px;
        padding: 0 1.3rem;
    }

    body.page-home .chart-row.chart-row-selected {
        background: rgba(36, 81, 209, 0.08);
    }

    body.page-home .chart-row.chart-row-selected::before {
        opacity: 0.9;
    }

    body.page-home .chart-detail-rail {
        grid-area: chart-rail;
        min-height: 0;
        border-left: none;
        background: linear-gradient(180deg, rgba(247, 247, 247, 0.9) 0%, rgba(247, 247, 247, 1) 100%);
        padding: 1.15rem 1.25rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        position: sticky;
        top: 5.9rem;
        align-self: start;
        max-height: none;
        overflow: visible;
        border-top-right-radius: 18px;
        border-bottom-right-radius: 18px;
        z-index: 4;
    }

    body.page-home .chart-detail-kicker {
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.11em;
        color: #6c6c6c;
        font-weight: 700;
    }

    body.page-home .chart-detail-title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.28rem;
        line-height: 1.08;
        color: #17181c;
        margin: 0;
        letter-spacing: -0.02em;
    }

    body.page-home .chart-detail-score-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    body.page-home .chart-detail-score {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 2rem;
        font-weight: 900;
        letter-spacing: -0.03em;
        line-height: 1;
    }

    body.page-home .chart-detail-outlook {
        display: inline-flex;
        align-items: center;
        padding: 0.28rem 0.55rem;
        border: 1px solid #d0d0d0;
        border-radius: 999px;
        font-size: 0.68rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4a4a4a;
        font-weight: 700;
    }

    body.page-home .chart-detail-summary {
        color: #4a4a4a;
        font-size: 0.78rem;
        line-height: 1.4;
    }

    body.page-home .chart-detail-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.55rem;
    }

    body.page-home .chart-detail-metric {
        border: 1px solid #d6d6d6;
        border-radius: 10px;
        padding: 0.5rem 0.55rem;
        background: #f2f2f2;
    }

    body.page-home .chart-detail-metric span {
        display: block;
        font-size: 0.65rem;
        color: #777777;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        margin-bottom: 0.25rem;
    }

    body.page-home .chart-detail-metric strong {
        display: block;
        color: #17181c;
        font-size: 0.88rem;
        font-weight: 700;
    }

    body.page-home .chart-detail-momentum {
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #6b6b6b;
        border-top: 1px dotted var(--hh-dotted-rule);
        border-bottom: 1px dotted var(--hh-dotted-rule);
        padding: 0.42rem 0;
    }

    body.page-home .chart-detail-momentum .positive {
        color: var(--hh-positive);
        font-weight: 700;
    }

    body.page-home .chart-detail-momentum .negative {
        color: var(--hh-negative);
        font-weight: 700;
    }

    body.page-home .chart-detail-momentum .flat {
        color: #6c6c6c;
        font-weight: 700;
    }

    body.page-home .chart-detail-copy {
        margin: 0;
        color: #4b4b4b;
        font-size: 0.76rem;
        line-height: 1.45;
    }

    body.page-home .chart-detail-cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        border-radius: 10px;
        border: 1px solid var(--hh-btn-blue);
        background: var(--hh-btn-blue);
        color: #ffffff;
        text-decoration: none;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 0.84rem;
        font-weight: 700;
        letter-spacing: -0.01em;
        transition: background-color 180ms ease, border-color 180ms ease;
    }

    body.page-home .chart-detail-cta:hover {
        background: var(--hh-btn-blue-hover);
        border-color: var(--hh-btn-blue-hover);
    }

    body.page-home .chart-detail-link {
        display: inline-flex;
        justify-content: center;
        color: #1f46b7;
        font-size: 0.76rem;
        font-weight: 700;
        text-decoration: none;
    }

    body.page-home .chart-detail-link:hover {
        text-decoration: underline;
    }

    body.page-home .chart-detail-empty {
        margin: auto 0;
        color: #696969;
        font-size: 0.78rem;
        line-height: 1.45;
    }
}

@media (max-width: 1100px) {
    body.page-home .chart-detail-rail {
        display: block;
        position: static;
        max-height: none;
        overflow: visible;
        border-top: 2px dotted var(--hh-dotted-rule);
        margin-top: 0;
        padding: 1rem 1.1rem 1.15rem;
        background: rgba(247, 247, 247, 0.96);
        border-radius: 0 0 14px 14px;
    }

    body.page-home .chart-container-main::before {
        content: none;
    }

    body.page-home .chart-detail-kicker {
        font-size: 0.65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #777;
        margin-bottom: 0.25rem;
    }

    body.page-home .chart-detail-title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.2rem;
        line-height: 1.1;
        color: #17181c;
        margin: 0 0 0.4rem;
        letter-spacing: -0.02em;
    }

    body.page-home .chart-detail-score-row {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }

    body.page-home .chart-detail-score {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.6rem;
        font-weight: 900;
        letter-spacing: -0.03em;
        line-height: 1;
    }

    body.page-home .chart-detail-outlook {
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.5rem;
        border: 1px solid #d0d0d0;
        border-radius: 999px;
        font-size: 0.65rem;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: #4a4a4a;
        font-weight: 700;
    }

    body.page-home .chart-detail-summary {
        color: #4a4a4a;
        font-size: 0.78rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    body.page-home .chart-detail-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
        margin-bottom: 0.5rem;
    }

    body.page-home .chart-detail-metric {
        border: 1px solid #d6d6d6;
        border-radius: 10px;
        padding: 0.45rem 0.5rem;
        background: #f2f2f2;
    }

    body.page-home .chart-detail-metric span {
        display: block;
        font-size: 0.6rem;
        color: #777;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        margin-bottom: 0.2rem;
    }

    body.page-home .chart-detail-metric strong {
        display: block;
        color: #17181c;
        font-size: 0.85rem;
        font-weight: 700;
    }

    body.page-home .chart-detail-momentum {
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #6b6b6b;
        border-top: 1px dotted var(--hh-dotted-rule);
        border-bottom: 1px dotted var(--hh-dotted-rule);
        padding: 0.4rem 0;
        margin-bottom: 0.5rem;
    }

    body.page-home .chart-detail-momentum .positive {
        color: var(--hh-positive);
        font-weight: 700;
    }

    body.page-home .chart-detail-momentum .negative {
        color: var(--hh-negative);
        font-weight: 700;
    }

    body.page-home .chart-detail-copy {
        margin: 0;
        font-size: 0.78rem;
        line-height: 1.5;
        color: #4a4a4a;
    }

    body.page-home .chart-detail-actions {
        display: flex;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    body.page-home .chart-detail-actions a {
        font-size: 0.78rem;
        color: var(--primary, #165DFF);
        font-weight: 500;
    }

    body.page-home .chart-detail-empty {
        color: #696969;
        font-size: 0.78rem;
        line-height: 1.45;
    }
}

@media (max-width: 900px) {
    body.page-home .hero-trust {
        grid-template-columns: 1fr;
    }

    body.page-home .chart-title {
        padding-right: 0;
    }

    body.page-home .chart-title::before {
        content: none;
        display: none;
    }

    body.page-home .chart-title::after {
        content: none;
        display: none;
    }
}

@media (max-width: 768px) {
    body.page-home .chart-trade-emoji.profession-icon {
        width: 1.34rem;
        height: 1.34rem;
        border-radius: 0.4rem;
    }

    body.page-home .ticker-emoji.profession-icon,
    body.page-home .watchlist-chip-emoji.profession-icon,
    body.page-home .mover-emoji.profession-icon,
    body.page-home .insight-profession-icon.profession-icon {
        width: 1.1rem;
        height: 1.1rem;
        border-radius: 0.34rem;
    }
}

@media (max-width: 480px) {
    body.page-home .chart-trade-emoji.profession-icon {
        width: 1.12rem;
        height: 1.12rem;
        border-radius: 0.32rem;
    }
}

/* ===== HOMEPAGE MOBILE — 768px ===== */
@media (max-width: 768px) {
    /* Reduce yellow frame border on tablets/phones */
    body.page-home {
        --hh-index-frame-border: 24px;
        --hh-index-frame-radius: 18px;
        --hh-content-width: min(1280px, calc(100vw - 2rem));
    }

    /* Footer — reduce padding on mobile */
    body.page-home .footer {
        padding: 2rem 1.5rem 1.3rem;
    }

    /* Chart stats pills — allow wrapping */
    body.page-home .chart-stats {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0.35rem;
    }

    /* Chart top strip — tighter */
    body.page-home .chart-top-strip {
        padding: 0.45rem 0.6rem;
        gap: 0.4rem;
    }

    /* Hero subtitle — tighter max-width on mobile */
    body.page-home .hero-p {
        font-size: 0.9rem;
        max-width: 38ch;
    }

    /* Market insights — tighter padding */
    body.page-home .market-insights {
        padding: 0 0.75rem;
    }

    /* ---- FIX: Hero ribbon — remove decorative lines + icon on mobile ----
       The ::before/::after ribbon lines and the icon box don't scale
       properly when text wraps. Just show the H1 cleanly. */
    body.page-home .hero-title-ribbon {
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    body.page-home .hero-title-ribbon::before,
    body.page-home .hero-title-ribbon::after {
        display: none;
    }

    body.page-home .hero-title-icon-box {
        display: none;
    }

    body.page-home .hero-title-ribbon .hero-h1 {
        padding-top: 0;
        text-align: center;
    }

    /* ---- FIX: Chart detail rail — hide on mobile ----
       The hover-to-preview paradigm doesn't work on touch.
       Hide the rail entirely; users tap rows to go to detail pages. */
    body.page-home .chart-detail-rail {
        display: none !important;
    }

    /* Since rail is hidden, chart container doesn't need grid on ≤768px */
    body.page-home .chart-container-main {
        display: block;
    }

    /* ---- FIX: Chart filter tabs — wrap on mobile instead of invisible scroll ---- */
    body.page-home .chart-filters {
        flex-wrap: wrap;
        overflow-x: visible;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    /* ---- FIX: Footer wrapper + CTA — reduce padding on mobile ---- */
    body.page-home .footer-canvas-wrapper {
        padding: 0.5rem 0 1rem;
    }
    body.page-home .final-cta-section {
        padding: 1rem 1rem 1.5rem;
    }

    /* ---- FIX: Compact footer interior on mobile ---- */
    body.page-home .footer {
        padding: 1.5rem 1.25rem 1.5rem;
    }
    body.page-home .footer-content {
        margin-bottom: 1.25rem;
        gap: 1rem;
    }
    body.page-home .footer-right {
        gap: 0.5rem;
    }
    body.page-home .footer-right a {
        font-size: 0.8rem;
    }
    body.page-home .footer-social {
        padding-top: 0.5rem;
        margin-top: 0;
        gap: 0.75rem;
    }
    body.page-home .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
    body.page-home .footer-bottom a {
        font-size: 0.65rem;
    }
    body.page-home .final-cta-slim {
        padding: 0.75rem 1rem;
    }
    body.page-home .final-cta-text {
        font-size: 0.85rem;
    }
    body.page-home .final-cta-quiz-btn {
        padding: 0.45rem 1.1rem;
        font-size: 0.82rem;
    }

    /* Touch targets — hero trust items */
    body.page-home .hero-trust-item {
        min-height: 44px;
        padding: 0.5rem 0.75rem;
    }

    /* Touch targets — CTA email button */
    body.page-home .final-cta-email button {
        min-height: 44px;
        padding: 0.6rem 1.5rem;
    }
}

/* ===== HOMEPAGE MOBILE — 480px (small phones) ===== */
@media (max-width: 480px) {
    body.page-home {
        --hh-index-frame-border: 14px;
        --hh-index-frame-radius: 14px;
        --hh-content-width: min(1280px, calc(100vw - 1rem));
    }

    /* Footer — even tighter on small phones */
    body.page-home .footer {
        padding: 1.5rem 1rem 1rem;
    }

    /* Hero — tighter vertical spacing */
    body.page-home .hero {
        padding-bottom: 0.8rem;
    }

    body.page-home .hero-badge {
        margin-bottom: 1rem;
    }

    /* Chart stat pills — smaller on phones */
    body.page-home .chart-stat-pill {
        padding: 0.35rem 0.6rem;
    }

    body.page-home .chart-stat-pill .stat-num {
        font-size: 0.9rem;
    }

    body.page-home .chart-stat-pill .stat-label {
        font-size: 0.65rem;
    }

    /* Hero H1 — scale down for small phones */
    body.page-home .hero-h1 {
        font-size: clamp(1.6rem, 7.5vw, 2.1rem);
        line-height: 0.98;
        letter-spacing: -0.035em;
    }

    /* Hero p — even tighter */
    body.page-home .hero-p {
        font-size: 0.85rem;
    }

    /* Schools funnel — tighter section padding */
    body.page-home .schools-funnel-section,
    body.page-home .how-it-works-section,
    body.page-home .real-stories-section,
    body.page-home .featured-articles-section,
    body.page-home .state-explore-section,
    body.page-home .stats-bar-section {
        padding: 0 0.75rem;
        margin: 2rem auto;
    }

    /* Footer wrapper + CTA — even tighter on small phones */
    body.page-home .footer-canvas-wrapper {
        padding: 0.25rem 0 0.75rem;
    }
    body.page-home .final-cta-section {
        padding: 0.75rem 0.75rem 1rem;
    }

    /* Footer interior — maximum compacting on small phones */
    body.page-home .footer {
        padding: 1.25rem 1rem 0.75rem;
    }
    body.page-home .footer-content {
        margin-bottom: 1rem;
        gap: 0.75rem;
    }
    body.page-home .footer-right {
        gap: 0.4rem;
    }
    body.page-home .footer-right a {
        font-size: 0.75rem;
        min-height: 32px;
        padding: 0.3rem 0.25rem;
    }
    body.page-home .footer-social {
        padding-top: 0.25rem;
        margin-top: 0;
        gap: 0.6rem;
    }
    body.page-home .footer-social-icon {
        width: 14px;
        height: 14px;
    }
    body.page-home .footer-bottom {
        padding-top: 0.75rem;
        font-size: 0.68rem;
    }
    body.page-home .footer-bottom a {
        font-size: 0.6rem;
    }
    body.page-home .final-cta-text {
        font-size: 0.8rem;
    }
    body.page-home .final-cta-quiz-btn {
        padding: 0.4rem 1rem;
        font-size: 0.78rem;
    }
    body.page-home .final-cta-email input[type="email"] {
        padding: 0.4rem 0.65rem;
        font-size: 0.78rem;
    }
}

/* ===== HOMEPAGE MOBILE — 360px (very small phones) ===== */
@media (max-width: 360px) {
    body.page-home {
        --hh-index-frame-border: 10px;
        --hh-index-frame-radius: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .chart-container-main {
        animation: none !important;
    }

    body.page-home .footer-canvas-wrapper,
    body.page-home .footer-canvas-wrapper::before,
    body.page-home .footer-canvas-wrapper::after {
        animation: none !important;
    }

    body.page-home .hero-wrapper::before,
    body.page-home .hero-wrapper:has(.hero-trust-item:hover)::before,
    body.page-home .hero-wrapper:has(.hero-trust-item:focus-visible)::before {
        animation: none !important;
    }
}

@keyframes hh-footer-blob-a {
    0% {
        transform: translate3d(-8%, -6%, 0) scale(1.02);
    }
    50% {
        transform: translate3d(7%, 5%, 0) scale(1.1);
    }
    100% {
        transform: translate3d(-3%, 8%, 0) scale(1.06);
    }
}

@keyframes hh-footer-blob-b {
    0% {
        transform: translate3d(8%, 6%, 0) scale(1.04);
        opacity: 0.84;
    }
    50% {
        transform: translate3d(-6%, -6%, 0) scale(1.12);
        opacity: 0.96;
    }
    100% {
        transform: translate3d(10%, -4%, 0) scale(1.08);
        opacity: 0.86;
    }
}

/* ===== SCHOOLS FUNNEL CTA ===== */
/* ===== HOW IT WORKS ===== */
.how-it-works-section {
    padding: 0 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.how-it-works-inner {
    text-align: center;
}

.how-it-works-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 2rem;
    text-transform: lowercase;
}

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.how-step {
    background: #FAFAF8;
    border: 2px dotted #b3b8c0;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.2s;
}

.how-step:hover {
    border-color: rgba(22, 93, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.how-step-number {
    width: 40px;
    height: 40px;
    background: rgba(22, 93, 255, 0.08);
    border: 2px solid rgba(22, 93, 255, 0.2);
    color: #165DFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    margin: 0 auto 1rem;
}

.how-step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0F172A;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.how-step-desc {
    font-size: 0.9rem;
    color: #546478;
    line-height: 1.6;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .how-step {
        padding: 1.5rem;
    }
}

/* ===== REAL STORIES ===== */
.real-stories-section {
    padding: 0 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.real-stories-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: lowercase;
}

.real-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.story-card {
    background: #FAFAF8;
    border: 2px dotted #b3b8c0;
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.2s;
}

.story-card:hover {
    border-color: rgba(22, 93, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.story-quote {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
    flex: 1;
    font-style: italic;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #0F172A;
}

.story-author-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.story-trade {
    font-size: 0.75rem;
    font-weight: 600;
    color: #165DFF;
    text-transform: lowercase;
}

@media (max-width: 768px) {
    .real-stories-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MISSION LAYER — mobile ===== */
@media (max-width: 768px) {
    .mission-layer {
        padding: 2.5rem 1.25rem !important;
    }
    .mission-layer .br-desktop {
        display: none;
    }
    .mission-layer h2 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0.75rem !important;
    }
    .mission-layer p {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
    }
    .mission-layer .mission-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    .mission-layer .mission-btns {
        flex-direction: column !important;
        align-items: center !important;
    }
    .mission-layer .mission-btns a {
        width: 100% !important;
        max-width: 280px !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .mission-layer {
        padding: 2rem 1rem !important;
    }
    .mission-layer h2 {
        font-size: 1.4rem !important;
    }
    .mission-layer .mission-tags {
        gap: 0.5rem !important;
        font-size: 0.6rem !important;
    }
}

/* ===== STATE EXPLORE ===== */
.state-explore-section {
    padding: 0 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

/* State grid — mobile: 2 columns, tighter cards */
@media (max-width: 768px) {
    .state-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    .state-grid a {
        padding: 0.5rem 0.65rem !important;
        border-radius: 8px !important;
    }
    .state-grid a span:first-child {
        font-size: 0.75rem !important;
    }
    .state-grid a span:last-child {
        font-size: 0.68rem !important;
    }
}

@media (max-width: 480px) {
    .state-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }
    .state-grid a {
        padding: 0.45rem 0.55rem !important;
    }
}

/* ===== FEATURED ARTICLES ===== */
.featured-articles-section {
    padding: 0 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.featured-articles-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 0.35rem;
    text-align: center;
    text-transform: lowercase;
}

.featured-articles-sub {
    font-size: 0.9rem;
    color: #546478;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: lowercase;
}

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

.fa-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #FAFAF8;
    border: 2px dotted #b3b8c0;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    color: inherit;
}

.fa-card:hover {
    border-color: rgba(22, 93, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.fa-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    flex-shrink: 0;
}

.fa-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.fa-card-type {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fa-card-trade {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0F172A;
    text-transform: lowercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fa-card-salary {
    font-size: 0.78rem;
    font-weight: 600;
    color: #546478;
}

.fa-card-arrow {
    color: #b3b8c0;
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0;
    transition: all 0.15s;
    flex-shrink: 0;
}

.fa-card:hover .fa-card-arrow {
    opacity: 1;
    color: #165DFF;
}

.fa-card:hover .fa-card-trade {
    color: #165DFF;
}

.featured-articles-footer {
    text-align: center;
    margin-top: 1.25rem;
}

.featured-articles-btn {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #165DFF;
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.2s;
    padding: 0.5rem 1.5rem;
    border: 2px solid rgba(22, 93, 255, 0.2);
    border-radius: 100px;
}

.featured-articles-btn:hover {
    background: rgba(22, 93, 255, 0.06);
    border-color: #165DFF;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .featured-articles-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== STATS BAR ===== */
.stats-bar-section {
    padding: 0 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.stats-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    background: #FAFAF8;
    border: 2px dotted var(--border, #b3b8c0);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 3vw, 3rem);
    flex-wrap: wrap;
}

.stats-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 120px;
}

.stats-bar-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--primary, #165DFF);
}

.stats-bar-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #334155);
    text-transform: lowercase;
    letter-spacing: 0.01em;
}

.stats-bar-divider {
    width: 2px;
    height: 36px;
    background: var(--border, #b3b8c0);
    border-radius: 1px;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .stats-bar-inner {
        flex-direction: column;
        gap: 1rem;
    }
    .stats-bar-divider {
        width: 40px;
        height: 2px;
    }
}

/* ===== SCHOOLS FUNNEL ===== */
.schools-funnel-section {
    padding: 0 2rem;
    margin: 3rem auto;
    max-width: 1200px;
}

.schools-funnel-inner {
    background: #f1efe7;
    border: 2px dotted #b3b8c0;
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 4vw, 3.5rem) clamp(2rem, 4vw, 3rem);
}

.schools-funnel-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.schools-funnel-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #165DFF;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.schools-funnel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #0F172A;
    margin-bottom: 0.5rem;
    text-transform: lowercase;
}

.schools-funnel-sub {
    font-size: 0.95rem;
    color: #546478;
    line-height: 1.6;
    max-width: 480px;
    text-transform: lowercase;
}

.schools-funnel-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    flex-shrink: 0;
}

.schools-funnel-btn-primary,
.schools-funnel-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 220px;
    padding: 0.55rem 1.1rem;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 8px;
    text-decoration: none;
    text-transform: lowercase;
    white-space: nowrap;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    box-sizing: border-box;
}

.schools-funnel-btn-primary {
    background: #165DFF;
    color: #fff;
    border: 2px solid #165DFF;
}

.schools-funnel-btn-primary:hover {
    background: #1147C7;
    border-color: #1147C7;
}

.schools-funnel-btn-outline {
    background: transparent;
    color: #334155;
    border: 2px dotted #b3b8c0;
}

.schools-funnel-btn-outline:hover {
    border-color: #165DFF;
    color: #165DFF;
}

.schools-funnel-btn-secondary {
    font-size: 0.85rem;
    font-weight: 600;
    color: #546478;
    text-decoration: none;
    text-transform: lowercase;
    transition: color 0.2s;
}

.schools-funnel-btn-secondary:hover {
    color: #165DFF;
}

/* Proof points beneath sub text */
.schools-funnel-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 1rem;
}

.funnel-proof-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.funnel-proof-item svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .schools-funnel-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .schools-funnel-sub {
        max-width: none;
    }

    .schools-funnel-proof {
        justify-content: center;
    }

    .schools-funnel-actions {
        align-items: center;
        width: 100%;
    }

    .schools-funnel-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .schools-funnel-btn-outline {
        width: 100%;
        justify-content: center;
    }

    .schools-funnel-btn-secondary {
        min-height: 44px;
        padding: 0.6rem 1rem;
        display: inline-flex;
        align-items: center;
    }
}

/* ===== PRINT ===== */
@media print {
    /* Hero — simplify for print */
    .hero-wrapper,
    .hero.hero-dashboard {
        background: #fff !important;
        padding: 1rem 0 !important;
    }

    .hero-wrapper::before,
    .hero-wrapper::after,
    .hero::before,
    .hero::after {
        display: none !important;
    }

    .hero-h1 {
        font-size: 24pt !important;
        color: #111 !important;
        -webkit-text-fill-color: #111 !important;
    }

    .hero-title-ribbon {
        border: none !important;
        background: none !important;
    }

    .hero-title-icon-box {
        display: none !important;
    }

    .hero-badge {
        border: 1px solid #ddd !important;
        background: #f8f8f8 !important;
    }

    /* Hide interactive/CTA elements */
    .hero-trust,
    .final-cta-section,
    .stripe-gradient-bg,
    .schools-funnel-section,
    .real-stories-section {
        display: none !important;
    }

    /* Forecast section — keep but simplify */
    .forecast-section {
        background: #fff !important;
        border: 2px solid #ddd !important;
        border-radius: 8px !important;
        padding: 1rem !important;
    }

    .forecast-section::before,
    .forecast-section::after {
        display: none !important;
    }

    /* Stats bar — keep, simplify border */
    .stats-bar-inner {
        border-style: solid !important;
        background: #f8f8f8 !important;
    }

    /* How it works — simplify */
    .how-it-works-section {
        background: #fff !important;
    }

    .how-step-card {
        border: 1px solid #ddd !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    /* AI Futures section — simplify */
    .ai-futures-section {
        background: #fff !important;
    }

    .ai-futures-card {
        border: 1px solid #ddd !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    /* Reveal animations — make visible */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== ACCESSIBILITY ===== */
/* ============================================================
   HARDHAT CAREERS — Carousel + Info Tiles + Collapsed Rubric
   ============================================================ */

/* ---- Section Container ---- */
body.page-home .hh-careers-section {
    max-width: 1200px;
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
}

/* ---- Header Row ---- */
body.page-home .hh-careers-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
    flex-wrap: wrap;
}

body.page-home .hh-careers-left {
    flex: 1;
    min-width: 200px;
}

body.page-home .hh-careers-h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #17181c;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: lowercase;
    margin: 0;
}

body.page-home .hh-careers-arc {
    color: #165DFF;
}

body.page-home .hh-careers-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 0.15rem;
    display: block;
}

/* ---- Market Snapshot ---- */
body.page-home .hh-snapshot {
    max-width: 1200px;
    margin: 1.5rem auto 1.25rem;
    padding: 0 1.5rem;
}

body.page-home .hh-snapshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    gap: 1rem;
    flex-wrap: wrap;
}

body.page-home .hh-snapshot-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #17181c;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-transform: lowercase;
    margin: 0;
}

body.page-home .hh-snapshot-arc {
    color: #165DFF;
}

body.page-home .hh-snapshot-stats {
    font-size: 0.8rem;
    color: #64748b;
    padding: 0.35rem 0.9rem;
    background: #fff;
    border: 2px dotted #b3b8c0;
    border-radius: 100px;
    white-space: nowrap;
}

body.page-home .hh-snapshot-stats strong {
    color: #17181c;
    font-weight: 800;
    font-family: 'Space Grotesk', sans-serif;
}

body.page-home .hh-snapshot-red {
    color: #DC2626;
    font-weight: 700;
}

body.page-home .hh-snapshot-sep {
    color: #cbd5e1;
}

/* ---- Industry Heatmap Grid ---- */
body.page-home .hh-industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 6px;
}

body.page-home .ind-tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
    min-height: 72px;
}

body.page-home .ind-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
}

/* Score-based tile backgrounds — the color IS the data */
body.page-home .ind-tile.ind-high {
    background: rgba(22, 93, 255, 0.09);
    border: 1px solid rgba(22, 93, 255, 0.15);
}
body.page-home .ind-tile.ind-mid {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.12);
}
body.page-home .ind-tile.ind-low-mid {
    background: rgba(251, 191, 36, 0.07);
    border: 1px solid rgba(217, 119, 6, 0.12);
}
body.page-home .ind-tile.ind-low {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.12);
}

body.page-home .ind-tile-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

body.page-home .ind-tile-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.15;
    text-transform: lowercase;
}

body.page-home .ind-tile-count {
    font-size: 0.55rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

body.page-home .ind-tile-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

body.page-home .ind-tile.ind-high .ind-tile-score { color: #165DFF; }
body.page-home .ind-tile.ind-mid .ind-tile-score { color: #3b82f6; }
body.page-home .ind-tile.ind-low-mid .ind-tile-score { color: #d97706; }
body.page-home .ind-tile.ind-low .ind-tile-score { color: #DC2626; }

body.page-home .ind-tile-change {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.page-home .ind-tile-change.ind-up { color: #165DFF; }
body.page-home .ind-tile-change.ind-down { color: #DC2626; }
body.page-home .ind-tile-change.ind-flat { color: #94a3b8; }

/* ---- Carousel Nav Buttons ---- */
body.page-home .hh-careers-nav {
    display: flex;
    gap: 0.35rem;
    align-self: center;
    flex-shrink: 0;
}

body.page-home .hh-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #d6d6d6;
    background: #fff;
    color: #17181c;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s;
}

body.page-home .hh-carousel-btn:hover:not(:disabled) {
    border-color: #165DFF;
    background: rgba(22, 93, 255, 0.04);
    color: #165DFF;
}

body.page-home .hh-carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ---- Carousel Track ---- */
body.page-home .hh-careers-carousel-wrap {
    overflow: hidden;
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
}

body.page-home .hh-careers-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0.25rem 0 0.5rem;
}

body.page-home .hh-careers-carousel::-webkit-scrollbar {
    display: none;
}

/* ---- Footer / Explore Link ---- */
body.page-home .hh-careers-footer {
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

body.page-home .hh-careers-explore-btn {
    font-size: 0.78rem;
    font-weight: 700;
    color: #165DFF;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: opacity 0.2s;
}

body.page-home .hh-careers-explore-btn:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Info Tile (Shared Styles) ---- */
.hh-tile {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.hh-tile:hover {
    border-color: rgba(22, 93, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Kicker */
.hh-tile-kicker {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #165DFF;
}

.hh-tile-arc {
    color: #165DFF;
}

/* Title */
.hh-tile-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hh-tile-emoji {
    font-size: 1.15rem;
    line-height: 1;
}

.hh-tile-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #17181c;
    text-transform: lowercase;
    line-height: 1.15;
}

/* Score Row */
.hh-tile-score-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.hh-tile-score {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.03em;
}

.hh-tile-outlook {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: lowercase;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

/* Score color classes (matching getScoreClass() in forecast-dashboard.js) */
.hh-tile-score.score-high,
.hh-tile-outlook.score-high { color: #165DFF; }
.hh-tile-outlook.score-high { background: rgba(22, 93, 255, 0.08); }

.hh-tile-score.score-mid,
.hh-tile-outlook.score-mid { color: #CA8A04; }
.hh-tile-outlook.score-mid { background: rgba(202, 138, 4, 0.08); }

.hh-tile-score.score-low-mid,
.hh-tile-outlook.score-low-mid { color: #EA580C; }
.hh-tile-outlook.score-low-mid { background: rgba(234, 88, 12, 0.08); }

.hh-tile-score.score-low,
.hh-tile-outlook.score-low { color: #DC2626; }
.hh-tile-outlook.score-low { background: rgba(220, 38, 38, 0.08); }

/* Metrics Row */
.hh-tile-metrics {
    display: flex;
    gap: 0.4rem;
}

.hh-tile-metric {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.2rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.hh-tile-metric-val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    display: block;
    color: #17181c;
}

.hh-tile-metric-label {
    font-size: 0.58rem;
    color: #64748b;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

/* Momentum Row */
.hh-tile-momentum {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    color: #64748b;
}

.hh-tile-change {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.hh-tile-change.positive { color: #165DFF; }
.hh-tile-change.negative { color: #DC2626; }
.hh-tile-change.flat { color: #8c99ad; }

.hh-tile-signal {
    font-weight: 600;
}

.hh-tile-signal.positive { color: #165DFF; }
.hh-tile-signal.negative { color: #DC2626; }
.hh-tile-signal.flat { color: #8c99ad; }

/* Tagline */
.hh-tile-tagline {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* CTA Link */
.hh-tile-cta {
    font-size: 0.72rem;
    font-weight: 700;
    color: #165DFF;
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.25rem;
}

.hh-tile-cta:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- Context Variants ---- */

/* Carousel tile */
.hh-tile--carousel {
    flex: 0 0 300px;
    scroll-snap-align: start;
    min-height: 260px;
}

/* Grid tile */
.hh-tile--grid {
    /* Inherits natural flow from grid parent */
}

/* Rail tile (sidebar) */
.hh-tile--rail {
    border: none;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.hh-tile--rail:hover {
    transform: none;
    box-shadow: none;
}

/* ---- Chart Badge ---- */
.chart-badge-hardhat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 0.05rem 0.25rem;
    border-radius: 3px;
    background: rgba(22, 93, 255, 0.06);
    border: 1px solid rgba(22, 93, 255, 0.12);
    color: #165DFF;
    margin-left: 0.3rem;
    vertical-align: middle;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    body.page-home .hh-snapshot {
        padding: 0 1rem;
    }
    body.page-home .hh-snapshot-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    body.page-home .hh-industry-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 5px;
    }
    body.page-home .ind-tile {
        min-height: 64px;
        padding: 0.45rem 0.5rem;
    }
    body.page-home .ind-tile-score {
        font-size: 1.1rem;
    }
    body.page-home .hh-snapshot-stats {
        font-size: 0.78rem;
    }
}

@media (max-width: 768px) {
    body.page-home .hh-careers-section {
        padding: 0 1rem;
    }

    body.page-home .hh-careers-header {
        flex-wrap: wrap;
    }

    body.page-home .hh-careers-h2 {
        font-size: 1.1rem;
    }

    .hh-tile--carousel {
        flex: 0 0 260px;
        min-height: 240px;
    }
}

@media (max-width: 480px) {
    .hh-tile--carousel {
        flex: 0 0 85%;
        min-height: auto;
    }
}

/* ---- Mobile menu open: force white bg on homepage nav items ---- */
@media (max-width: 768px) {
    body.page-home .nav-links.mobile-open .btn-nav {
        background: #ffffff !important;
        color: #0F172A !important;
    }
    body.page-home .nav-links.mobile-open .btn-nav:hover {
        background: #f1f5f9 !important;
        color: #165DFF !important;
    }
    body.page-home .nav-links {
        background: #ffffff !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
