/* EarnHub public theme: local styles intentionally cover layout primitives so the site stays polished even if CDN CSS is unavailable. */
.container,
.eh-container {
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
}

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

.row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.g-3 { row-gap: 1rem; }
.col-12, .col-md-6 { width: 100%; padding-inline: 12px; }
.d-flex { display: flex; }
.gap-2 { gap: .5rem; }
.align-items-center { align-items: center; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.form-label { display: inline-block; margin-bottom: .45rem; color: var(--eh-navy); font-weight: 700; }
.form-control, .form-select { display: block; width: 100%; background: #fff; border: 1px solid var(--eh-border); color: var(--eh-text); }

@media (min-width: 768px) {
    .col-md-6 { width: 50%; }
}
:root {
    --eh-white: #ffffff;
    --eh-navy: #071a3d;
    --eh-navy-2: #0c2554;
    --eh-blue: #3478f6;
    --eh-blue-2: #4f86ff;
    --eh-purple: #7b3ff2;
    --eh-gray: #f4f7fb;
    --eh-gray-2: #e7edf6;
    --eh-text: #1d2a3d;
    --eh-muted: #667085;
    --eh-border: #d9e2ef;
    --eh-radius: 8px;
    --eh-shadow: 0 14px 36px rgba(7, 26, 61, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--eh-text); font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--eh-white); line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 9999; padding: .75rem 1rem; background: var(--eh-navy); color: #fff; border-radius: 6px; }
.skip-link:focus { left: 1rem; }
.eh-container { max-width: 1120px; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid rgba(217,226,239,.9);
    backdrop-filter: blur(10px);
}
.public-nav { min-height: 74px; display: flex; align-items: center; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.nav-menu { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex: 1; }
.nav-list { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; margin: 0; padding: 0; list-style: none; }
.nav-list li { margin: 0; padding: 0; list-style: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--eh-border); border-radius: 8px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-toggle span:not(.visually-hidden) { display: block; width: 18px; height: 2px; border-radius: 999px; background: var(--eh-navy); }
.brand-mark { display: inline-flex; align-items: center; gap: .65rem; color: var(--eh-navy); text-decoration: none; font-weight: 800; letter-spacing: 0; position: relative; z-index: 120; }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.brand-mark span { font-size: 1.35rem; }
.nav-link { color: #334155; font-weight: 600; font-size: .95rem; }
.nav-link:hover, .nav-link.active { color: var(--eh-blue); }
.btn { border-radius: 6px; font-weight: 700; padding: .7rem 1.1rem; }
.btn-sm { padding: .5rem .9rem; }
.btn-lg { padding: .85rem 1.25rem; }
.btn-primary { background: var(--eh-blue); border-color: var(--eh-blue); }
.btn-primary:hover, .btn-primary:focus { background: #2468df; border-color: #2468df; }
.btn-outline-primary { border-color: var(--eh-blue); color: var(--eh-blue); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--eh-blue); border-color: var(--eh-blue); }

.hero-section { 
    position: relative; 
    overflow: hidden; 
    padding: 120px 0 160px; 
    background: #fff; 
    display: flex; 
    align-items: center; 
}

.hero-jenga-style {
    min-height: 80vh;
}

.hero-bg-art {
    position: absolute;
    top: 50%;
    right: -5%;
    width: 45%;
    height: 100%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.15; /* Barely visible, extremely subtle */
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.earnhub-lead {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--eh-blue);
    margin-bottom: 1.5rem;
}

.hero-bg-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right center;
}

.earnhub-definition {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.earnhub-title {
    font-size: clamp(3.2rem, 6vw, 5.5rem);
    font-weight: 900;
    color: var(--eh-navy);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.earnhub-meaning {
    font-size: 1.25rem;
    color: var(--eh-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-weight: 500;
    max-width: 620px;
}


.hero-slant-divider {
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: var(--eh-navy);
    transform: skewY(-4deg);
    z-index: 5;
}

.hero-grid { 
    position: relative; 
    z-index: 10; 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 0; 
    align-items: center; 
}

.hero-copy {
    position: relative;
    z-index: 20;
}
.eyebrow { color: var(--eh-blue); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; margin-bottom: .9rem; }
h1, h2, h3 { color: var(--eh-navy); line-height: 1.12; letter-spacing: 0; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 7vw, 5.25rem); margin-bottom: 1.1rem; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
.hero-lead, .page-hero p { color: #536176; font-size: 1.15rem; max-width: 660px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.8rem; }
.hero-visual { min-height: 420px; display: grid; place-items: center; }
.platform-scene { position: relative; width: min(100%, 560px); height: 390px; border-bottom: 28px solid var(--eh-blue); transform: skewY(-3deg); }
.scene-card { position: absolute; background: #fff; border: 1px solid var(--eh-border); border-radius: var(--eh-radius); box-shadow: var(--eh-shadow); transform: skewY(3deg); }
.task-board { left: 5%; top: 28%; width: 170px; height: 122px; padding: 20px; }
.task-board span { display: block; height: 12px; background: var(--eh-gray-2); border-radius: 10px; margin-bottom: 14px; }
.task-board span:first-child { width: 80%; background: var(--eh-blue); }
.wallet-card { right: 8%; top: 14%; width: 210px; min-height: 150px; padding: 22px; }
.wallet-card strong, .referral-card strong { display: block; color: var(--eh-navy); margin-bottom: 12px; }
.wallet-card span, .referral-card span { display: block; color: var(--eh-muted); border-top: 1px solid var(--eh-border); padding-top: 9px; margin-top: 9px; }
.referral-card { right: 22%; bottom: 18%; width: 220px; min-height: 120px; padding: 20px; border-top: 4px solid var(--eh-purple); }
.scene-line { position: absolute; left: 25%; top: 50%; width: 48%; height: 3px; background: var(--eh-blue); transform: rotate(-12deg); opacity: .55; }

.page-hero { padding: 86px 0 70px; background: var(--eh-gray); border-bottom: 1px solid var(--eh-border); }
.compact-hero { padding-bottom: 56px; }
.content-section { padding: 78px 0; }
.soft-section { background: var(--eh-gray); }
.blue-slope { position: relative; margin-top: -1px; padding: 118px 0 96px; background: var(--eh-blue); clip-path: polygon(0 0, 100% 11%, 100% 100%, 0 88%); }
.blue-band { padding: 82px 0; background: var(--eh-blue); }
.light-on-dark h2, .light-on-dark p { color: #fff; }
.light-on-dark p { opacity: .92; }
.two-column, .section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px; }
.feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--eh-border); border-radius: var(--eh-radius); overflow: hidden; background: var(--eh-border); }
.feature-strip > div { background: #fff; padding: 30px; }
.feature-strip h2 { font-size: 1.25rem; }
.clean-panel, .clean-form { border: none; border-radius: 0; background: transparent; padding: 30px; box-shadow: none; }
.check-list { padding-left: 0; margin: 0; list-style: none; }
.check-list li { position: relative; padding-left: 1.65rem; margin-bottom: .8rem; }
.check-list li:before { content: ""; position: absolute; left: 0; top: .58rem; width: 9px; height: 9px; border-radius: 50%; background: var(--eh-blue); box-shadow: 0 0 0 4px rgba(52,120,246,.13); }
.process-list { display: grid; gap: 18px; }
.process-list.wide { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.process-list div { padding: 24px; border-left: 3px solid var(--eh-blue); background: #fff; border-radius: var(--eh-radius); box-shadow: var(--eh-shadow); }
.process-list span { display: inline-block; color: var(--eh-blue); font-weight: 800; margin-bottom: .5rem; }
.process-list strong { display: block; color: var(--eh-navy); margin-bottom: .45rem; }
.process-list p { color: var(--eh-muted); margin: 0; }

.mini-illustration { width: 150px; height: 112px; position: relative; margin-bottom: 24px; }
.mini-illustration span { position: absolute; display: block; border-radius: 6px; }
.task-illustration span:nth-child(1) { inset: 18px 26px auto 12px; height: 60px; border: 3px solid #fff; }
.task-illustration span:nth-child(2) { width: 88px; height: 12px; left: 36px; top: 38px; background: #fff; }
.task-illustration span:nth-child(3) { width: 52px; height: 12px; left: 36px; top: 60px; background: rgba(255,255,255,.7); }
.wallet-illustration span:nth-child(1) { width: 130px; height: 76px; left: 10px; top: 20px; background: #fff; }
.wallet-illustration span:nth-child(2) { width: 42px; height: 42px; right: 0; top: 38px; background: var(--eh-purple); }
.wallet-illustration span:nth-child(3) { width: 88px; height: 10px; left: 28px; top: 50px; background: var(--eh-blue); }
.referral-flow { display: grid; gap: 14px; }
.referral-flow span { display: block; padding: 18px 20px; background: var(--eh-navy); color: #fff; border-radius: var(--eh-radius); font-weight: 700; }
.referral-flow span:nth-child(even) { background: var(--eh-blue); }
.task-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.task-preview { display: grid; gap: 16px; }
.task-preview div { padding: 22px; border: 1px solid var(--eh-border); border-radius: var(--eh-radius); background: #fff; box-shadow: var(--eh-shadow); }
.task-preview strong, .task-preview span { display: block; }
.task-preview span { color: var(--eh-muted); }

.faq-list { max-width: 880px; }
details { border-bottom: 1px solid var(--eh-border); padding: 20px 0; }
summary { cursor: pointer; color: var(--eh-navy); font-weight: 800; font-size: 1.08rem; }
details p { color: var(--eh-muted); margin: .9rem 0 0; }
.narrow-container { max-width: 760px; }
.is-invalid {
    border-color: #fca5a5 !important; /* Subtle red border */
    background-color: #fffafb;
}

.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.35rem;
    font-size: 0.88rem;
    color: #ef4444; /* Clean error text */
    font-weight: 600;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.is-valid {
    border-color: #bbf7d0 !important; /* Subtle success border */
}
.form-feedback.success { color: #17613d; }
.form-feedback.error { color: #b42318; }
.newsletter-band { padding: 74px 0; background: var(--eh-navy); color: #fff; }
.newsletter-inner { display: grid; grid-template-columns: 1fr minmax(280px, 430px); gap: 34px; align-items: center; }
.newsletter-band h2, .newsletter-band p { color: #fff; }
.newsletter-form { display: flex; gap: 10px; align-items: start; flex-wrap: wrap; }
.newsletter-form .form-control { flex: 1 1 220px; }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: start; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 8px; }
.legal-nav a { padding: 10px 12px; color: var(--eh-navy); text-decoration: none; border-left: 3px solid var(--eh-border); }
.legal-nav a:hover { border-left-color: var(--eh-blue); color: var(--eh-blue); }
.legal-content { max-width: 820px; }
.legal-content section { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--eh-border); }
.legal-content h2 { font-size: 1.45rem; }
.review-note { display: inline-block; margin-top: 1rem; padding: .75rem 1rem; border-radius: 6px; background: #fff; border: 1px solid var(--eh-border); color: var(--eh-muted); font-weight: 700; }

.site-footer { position: relative; background: var(--eh-navy); color: #d7e3f5; padding-top: 86px; }
.footer-angle { position: absolute; top: -1px; left: 0; right: 0; height: 70px; background: #fff; clip-path: polygon(0 0, 100% 0, 100% 28%, 0 100%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 38px; padding-bottom: 36px; }
.footer-brand, .footer-brand span { color: #fff; }
.footer-grid h2 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a { display: block; color: #d7e3f5; text-decoration: none; margin-bottom: .65rem; }
.footer-grid a:hover { color: #fff; }
.footer-text { color: #fff; font-weight: 700; margin: 1rem 0 .2rem; }
.footer-small { color: #b9c8dd; max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0; display: flex; justify-content: space-between; gap: 18px; color: #b9c8dd; font-size: .92rem; }

.auth-body { min-height: 100vh; background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 520px) 1fr; }
.auth-panel { background: #fff; padding: clamp(28px, 6vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.auth-panel h1 { font-size: 2.2rem; }
.auth-intro { color: var(--eh-muted); }
.auth-side { background: var(--eh-navy); color: #fff; padding: clamp(32px, 7vw, 78px); display: flex; flex-direction: column; justify-content: center; }
.auth-side h1, .auth-side p { color: #fff; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.auth-links a { color: var(--eh-blue); font-weight: 700; text-decoration: none; }

@media (max-width: 991px) {
    .nav-inner { min-height: 74px; }
    .nav-toggle { display: inline-flex; }
    .nav-menu { position: absolute; top: 74px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 18px; padding: 18px 16px 22px; background: #fff; border-bottom: 1px solid var(--eh-border); box-shadow: 0 18px 36px rgba(7, 26, 61, .08); }
    .nav-menu.is-open { display: flex; }
    .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav-link { display: block; padding: .75rem .5rem; }
    .nav-actions { align-items: stretch; }
    .nav-actions .btn { text-align: center; }
    .hero-grid, .two-column, .section-grid, .task-layout, .newsletter-inner, .legal-layout, .auth-shell { grid-template-columns: 1fr; }
    .hero-section { padding-top: 58px; }
    .hero-visual { min-height: 320px; }
    .platform-scene { height: 310px; }
    .process-list.wide, .feature-strip, .footer-grid { grid-template-columns: 1fr; }
    .legal-nav { position: static; }
    .footer-bottom { flex-direction: column; }
    .auth-side { display: none; }
}

@media (max-width: 575px) {
    .hero-actions, .newsletter-form, .auth-links { flex-direction: column; align-items: stretch; }
    .content-section { padding: 56px 0; }
    h1 { font-size: 2.35rem; }
    .scene-card { transform: none; }
    .platform-scene { transform: none; }
    .wallet-card { right: 0; }
    .referral-card { right: 8%; }
}

.cookie-consent {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 80;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: var(--eh-radius);
    box-shadow: 0 18px 44px rgba(7, 26, 61, .18);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent strong { display: block; color: var(--eh-navy); margin-bottom: .25rem; }
.cookie-consent p { margin: 0 0 .3rem; color: var(--eh-muted); font-size: .94rem; }
.cookie-consent a { color: var(--eh-blue); font-weight: 700; text-decoration: none; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

@media (max-width: 575px) {
    .cookie-consent { grid-template-columns: 1fr; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { flex: 1 1 100%; }
}

/* Home page simplified polish: smaller visual. */
.status-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.status-board div { padding: 22px; background: #fff; border: 1px solid var(--eh-border); border-radius: var(--eh-radius); box-shadow: var(--eh-shadow); }
.status-board span { display: block; color: var(--eh-blue); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; margin-bottom: .45rem; }
.status-board strong { display: block; color: var(--eh-navy); font-size: 1.05rem; }
.trust-section { background: #fff; }

@media (max-width: 991px) {
    .hero-with-image .hero-grid { grid-template-columns: 1fr; }
    .hero-art-card { order: -1; }
}

@media (max-width: 575px) {
    .status-board { grid-template-columns: 1fr; }
    .hero-art-card { padding: 10px; border-radius: 12px; }
}
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.legal-meta span { display: inline-flex; padding: .72rem .9rem; border: 1px solid var(--eh-border); border-radius: 6px; background: #fff; color: var(--eh-muted); font-weight: 700; font-size: .92rem; }

/* Founder review polish: clearer navigation, stronger journey sections, and safer button contrast. */
.public-nav { min-height: 82px; }
.nav-inner { min-height: 82px; }
.nav-link { position: relative; padding: .65rem .85rem; border-radius: 6px; text-decoration: none; transition: color .18s ease, background .18s ease; }
.nav-link:hover, .nav-link:focus, .nav-link.active { color: var(--eh-blue); background: rgba(52, 120, 246, .08); }
.nav-link.active:after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--eh-blue); }
.btn-primary, .btn-accent { color: #fff !important; text-decoration: none; }
.btn-primary:hover, .btn-primary:focus { color: #fff !important; background: var(--eh-navy); border-color: var(--eh-navy); }
.btn-outline-primary:hover, .btn-outline-primary:focus { color: #fff !important; background: var(--eh-blue); border-color: var(--eh-blue); }
.btn-accent { background: #ff7a1a; border-color: #ff7a1a; box-shadow: 0 12px 24px rgba(255, 122, 26, .22); }
.btn-accent:hover, .btn-accent:focus { background: #e9670d; border-color: #e9670d; }
.hero-badge { display: inline-flex; align-items: center; padding: .58rem .85rem; border-radius: 999px; background: #eff5ff; color: var(--eh-blue); font-weight: 800; font-size: .86rem; margin-bottom: 1rem; }
.hero-with-image h1 { font-size: clamp(2.8rem, 6.8vw, 5.7rem); max-width: 760px; }
.hero-assurance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.hero-assurance span { display: inline-flex; padding: .55rem .75rem; border-radius: 999px; border: 1px solid var(--eh-border); color: var(--eh-navy); background: #fff; font-weight: 700; font-size: .92rem; }
.platform-strip { margin-top: -70px; position: relative; z-index: 2; padding-bottom: 34px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--eh-border); border-radius: 10px; box-shadow: 0 18px 48px rgba(7, 26, 61, .12); overflow: hidden; }
.strip-grid div { padding: 24px; border-right: 1px solid var(--eh-border); }
.strip-grid div:last-child { border-right: 0; }
.strip-grid strong, .strip-grid span { display: block; }
.strip-grid strong { color: var(--eh-navy); margin-bottom: .4rem; }
.strip-grid span { color: var(--eh-muted); font-size: .94rem; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.center-heading { text-align: center; margin-inline: auto; }
.earning-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.earning-steps article { position: relative; padding: 28px; background: #fff; border: 1px solid var(--eh-border); border-radius: 10px; box-shadow: var(--eh-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.earning-steps article:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(7, 26, 61, .12); }
.earning-steps span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; color: #fff; background: var(--eh-blue); font-weight: 800; margin-bottom: 18px; }
.earning-steps h3 { margin-bottom: .65rem; }
.earning-steps p { color: var(--eh-muted); margin: 0; }
.opportunity-band { padding: 66px 0 36px; background: linear-gradient(135deg, var(--eh-navy) 0%, #063b91 100%); color: #fff; position: relative; overflow: hidden; }
.opportunity-band:after { content: ""; position: absolute; inset: auto -10% -34% auto; width: 460px; height: 460px; border-radius: 999px; background: rgba(79, 134, 255, .2); }
.opportunity-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.opportunity-inner h2, .opportunity-inner p { color: #fff; }
.opportunity-points { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 34px; border-top: 1px solid rgba(255,255,255,.18); }
.opportunity-points span { padding: 18px 16px; color: #dbeafe; border-right: 1px solid rgba(255,255,255,.16); font-weight: 700; }
.opportunity-points span:last-child { border-right: 0; }
.review-section { background: #fff; }
.review-timeline { display: grid; gap: 14px; }
.review-timeline div { padding: 20px 22px; border-left: 4px solid var(--eh-blue); background: var(--eh-gray); border-radius: 8px; }
.review-timeline span { display: block; color: var(--eh-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; margin-bottom: .35rem; }
.review-timeline strong { color: var(--eh-navy); }
.refined-strip { border-radius: 12px; }
.confidence-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.confidence-grid article { padding: 28px; border: 1px solid var(--eh-border); border-radius: 10px; background: #fff; box-shadow: var(--eh-shadow); }
.confidence-grid p { color: var(--eh-muted); margin: 0; }
.footer-cta { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 28px; align-items: center; padding-bottom: 44px; }
.footer-cta h2, .footer-cta p { color: #fff; }
.footer-newsletter { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.footer-newsletter .form-feedback { grid-column: 1 / -1; color: #dbeafe; }
.optional-label { color: var(--eh-muted); font-weight: 600; font-size: .85rem; }
.auth-check { display: flex; gap: .65rem; align-items: flex-start; color: var(--eh-muted); font-weight: 600; }
.auth-check input { margin-top: .35rem; flex: 0 0 auto; }
.auth-check.compact { align-items: center; }
.auth-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.auth-row a { color: var(--eh-blue); font-weight: 700; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    *, *:before, *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media (max-width: 991px) {
    .nav-menu { position: fixed; inset: 82px 0 0; top: 82px; min-height: calc(100vh - 82px); overflow-y: auto; padding: 28px 22px 34px; }
    .nav-list { gap: 8px; }
    .nav-link { font-size: 1.18rem; padding: 1rem .75rem; }
    .nav-actions { display: grid; grid-template-columns: 1fr; gap: 12px; }
    .strip-grid, .earning-steps, .opportunity-inner, .opportunity-points, .confidence-grid, .footer-cta { grid-template-columns: 1fr; }
    .platform-strip { margin-top: -32px; }
    .strip-grid div { border-right: 0; border-bottom: 1px solid var(--eh-border); }
    .strip-grid div:last-child { border-bottom: 0; }
    .opportunity-points span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
    .footer-newsletter { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    .hero-with-image h1 { font-size: 2.55rem; }
    .hero-assurance { flex-direction: column; align-items: stretch; }
    .auth-row { flex-direction: column; align-items: flex-start; }
}

/* Viewport correction pass: keep hero and auth pages polished above the fold. */
.hero-section.hero-jenga-style {
    min-height: calc(100vh - 82px);
    padding: 46px 0 88px;
    display: flex;
    align-items: center;
}
.hero-jenga-style .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
}
.hero-with-image h1 {
    font-size: clamp(3rem, 5.2vw, 4.9rem);
    line-height: 1.04;
    max-width: 780px;
    margin-bottom: 1rem;
}
.hero-lead {
    font-size: 1.08rem;
    max-width: 620px;
}
.hero-badge {
    margin-bottom: .85rem;
}
.hero-art-card {
    align-self: center;
    transform: translateY(8px);
    padding: 12px;
    border-radius: 16px;
}
.hero-art-card img {
    max-height: 520px;
    object-fit: contain;
}
.platform-strip {
    margin-top: -50px;
}

.auth-shell-v2 {
    min-height: 100vh;
    grid-template-columns: minmax(480px, 560px) 1fr;
    background: #fff;
}
.auth-brand {
    margin-bottom: 24px;
}
.auth-panel {
    padding: clamp(22px, 3.5vw, 48px) clamp(32px, 4.5vw, 64px);
    justify-content: flex-start;
    overflow-y: auto;
}
.auth-panel h1 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    line-height: 1.12;
    margin-bottom: .8rem;
}
.auth-intro {
    font-size: .98rem;
    margin-bottom: 1.2rem;
}
.auth-panel .clean-form {
    padding: 22px 0;
    box-shadow: none;
    border: none;
}
.auth-panel .form-label {
    margin-bottom: .32rem;
    font-size: .92rem;
}
.auth-panel .form-control {
    min-height: 42px;
    padding: .62rem .78rem;
}
.auth-panel .row {
    row-gap: .85rem;
}
.auth-panel .mt-3 {
    margin-top: .75rem;
}
.auth-panel .mt-4 {
    margin-top: 1rem;
}
.auth-side-v2 {
    padding: clamp(42px, 6vw, 90px);
    background: radial-gradient(circle at 20% 18%, rgba(79, 134, 255, .26), transparent 28%), linear-gradient(135deg, #071a3d 0%, #092967 100%);
}
.auth-benefit-card {
    max-width: 760px;
}
.auth-benefit-card h2 {
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    line-height: 1.05;
    margin-bottom: 1.15rem;
}
.auth-benefit-card p {
    color: #dbeafe;
    max-width: 620px;
}
.auth-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}
.auth-benefits span {
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 8px;
    color: #fff;
    background: rgba(255,255,255,.06);
    font-weight: 700;
}
.auth-check {
    font-size: .92rem;
    line-height: 1.45;
}

@media (max-width: 1200px) {
    .hero-with-image h1 {
        font-size: clamp(2.8rem, 5vw, 4.25rem);
    }
    .hero-art-card img {
        max-height: 460px;
    }
}

@media (max-width: 991px) {
    .hero-section.hero-jenga-style {
        min-height: auto;
        padding: 56px 0 100px;
        text-align: center;
    }
    .hero-jenga-style .hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .hero-bg-art {
        width: 100%;
        height: 50%;
        top: 10%;
        bottom: auto;
        right: 0;
        transform: none;
        opacity: 0.08;
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
    }
    .earnhub-title { font-size: 3.5rem; }
    .earnhub-meaning { margin-inline: auto; }
    
    .auth-shell-v4 {
        grid-template-columns: 1fr;
    }
    .auth-side-v4 {
        display: none;
    }
    .auth-panel-v4 {
        min-height: 100vh;
        padding: 40px 24px;
    }
}

@media (max-width: 575px) {
    .hero-with-image h1 {
        font-size: 2.55rem;
    }
    .hero-art-card {
        margin-inline: -4px;
    }
    .auth-panel {
        padding: 20px 18px 28px;
    }
    .auth-panel .clean-form {
        padding: 18px;
    }
}

/* Final homepage/footer fit pass */
body { overflow-x: hidden; }
.hero-section.hero-with-image {
    min-height: calc(100vh - 82px);
    padding: 34px 0 78px;
}
.hero-with-image .hero-grid {
    grid-template-columns: minmax(0, .98fr) minmax(440px, 1.02fr);
    gap: 38px;
}
.hero-with-image h1 {
    font-size: clamp(2.85rem, 4.35vw, 4.25rem);
    line-height: 1.08;
    max-width: 720px;
    text-wrap: balance;
}
.hero-lead {
    max-width: 610px;
    font-size: 1.02rem;
}
.hero-actions {
    margin-top: 1.25rem;
}
.hero-assurance {
    margin-top: 1rem;
}
.hero-art-card {
    max-width: 650px;
    justify-self: end;
}
.hero-art-card img {
    max-height: 430px;
}
.platform-strip {
    margin-top: -44px;
}
.newsletter-band {
    padding: 58px 0;
}
.site-footer.clean-footer {
    padding-top: 64px;
    padding-bottom: 0;
    margin-bottom: 0;
}
.clean-footer .footer-angle,
.clean-footer .footer-cta {
    display: none;
}
.clean-footer .footer-grid {
    padding-bottom: 28px;
}
.clean-footer .footer-bottom {
    padding-bottom: 20px;
}
html, body {
    background: var(--eh-navy);
}
main, .site-header {
    background: #fff;
}

@media (max-width: 1200px) {
    .hero-with-image h1 {
        font-size: clamp(2.7rem, 4.8vw, 3.8rem);
    }
    .hero-art-card img {
        max-height: 390px;
    }
}

@media (max-width: 991px) {
    .hero-section.hero-with-image {
        padding: 28px 0 66px;
    }
    .hero-art-card {
        justify-self: stretch;
        max-width: none;
    }
    .hero-art-card img {
        max-height: none;
    }
}

@media (max-width: 575px) {
    .hero-with-image h1 {
        font-size: 2.35rem;
    }
    .newsletter-band {
        padding: 44px 0;
    }
    .site-footer.clean-footer {
        padding-top: 46px;
    }
}

/* Home page v3: shorter hero, larger visual, non-card platform rail. */
.home-hero-v3 {
    min-height: calc(100vh - 82px);
    padding: 40px 0 92px;
}
.home-hero-v3 .hero-grid {
    grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
    gap: 42px;
}
.home-hero-v3 h1 {
    font-size: clamp(3.1rem, 5vw, 5rem);
    line-height: 1.04;
    max-width: 620px;
    margin-bottom: 1.1rem;
    text-wrap: balance;
}
.home-hero-v3 .hero-lead {
    max-width: 570px;
    font-size: 1.07rem;
}
.home-hero-v3 .hero-actions {
    margin-top: 1.45rem;
}
.hero-art-large {
    max-width: 740px;
    padding: 14px;
    justify-self: end;
    transform: translateY(0);
}
.hero-art-large img {
    max-height: 520px;
}
.platform-rail {
    margin-top: -58px;
    padding-bottom: 38px;
    position: relative;
    z-index: 4;
}
.rail-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 18px 24px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 26, 61, .1);
}
.rail-inner p {
    margin: 0;
    color: var(--eh-navy);
    font-weight: 800;
    white-space: nowrap;
}
.rail-inner ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rail-inner li {
    position: relative;
    color: var(--eh-muted);
    font-weight: 700;
    padding-left: 16px;
}
.rail-inner li:before {
    content: "";
    position: absolute;
    left: 0;
    top: .68em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--eh-blue);
}

@media (max-width: 1200px) {
    .home-hero-v3 .hero-grid {
        grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
    }
    .home-hero-v3 h1 {
        font-size: clamp(2.8rem, 4.5vw, 4.1rem);
    }
    .hero-art-large img {
        max-height: 450px;
    }
}

@media (max-width: 991px) {
    .home-hero-v3 {
        min-height: auto;
        padding: 34px 0 76px;
    }
    .home-hero-v3 .hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-art-large {
        justify-self: stretch;
        max-width: none;
    }
    .hero-art-large img {
        max-height: none;
    }
    .platform-rail {
        margin-top: -34px;
    }
    .rail-inner {
        align-items: flex-start;
        border-radius: 14px;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .home-hero-v3 h1 {
        font-size: 2.45rem;
    }
    .rail-inner ul {
        flex-direction: column;
        gap: 8px;
    }
}

/* Connected public flows and auth layout refinement */
.flow-hero { background: linear-gradient(180deg, #f7faff 0%, #fff 100%); }
.connected-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: stretch; position: relative; }
.connected-flow article,
.earn-paths article { position: relative; padding: 28px 0 28px 24px; border-left: 3px solid var(--eh-blue); background: transparent; box-shadow: none; }
.connected-flow article span,
.earn-paths .path-label { display: inline-flex; color: var(--eh-blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }
.connected-flow article h2,
.earn-paths article h2 { font-size: 1.35rem; margin-bottom: .65rem; }
.connected-flow article p,
.earn-paths article p { color: var(--eh-muted); margin: 0; }
.connected-flow i,
.path-connector,
.review-flow i { align-self: center; height: 2px; background: linear-gradient(90deg, var(--eh-blue), var(--eh-purple)); position: relative; min-width: 28px; }
.connected-flow i:after,
.path-connector:after,
.review-flow i:after { content: ""; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--eh-purple); border-right: 2px solid var(--eh-purple); transform: translateY(-50%) rotate(45deg); }
.split-flow,
.eligibility-flow { display: grid; grid-template-columns: .9fr 1.1fr; gap: 54px; align-items: center; }
.review-ladder { display: grid; gap: 0; border-left: 2px solid var(--eh-border); }
.review-ladder div { position: relative; padding: 0 0 28px 28px; }
.review-ladder div:before { content: ""; position: absolute; left: -8px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--eh-blue); box-shadow: 0 0 0 6px rgba(52,120,246,.12); }
.review-ladder span { display: block; color: var(--eh-blue); font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.review-ladder strong { color: var(--eh-navy); }
.flow-band { border-radius: 0; }
.earn-paths { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; gap: 14px; align-items: stretch; }
.earn-paths article ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.earn-paths article li { color: var(--eh-muted); position: relative; padding-left: 1rem; }
.earn-paths article li:before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--eh-blue); }
.eligibility-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.eligibility-flow li { position: relative; padding-top: 42px; }
.eligibility-flow li:before { content: ""; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--eh-border); }
.eligibility-flow li:not(:last-child):after { content: ""; position: absolute; top: 14px; right: -8px; width: 10px; height: 10px; border-top: 2px solid var(--eh-blue); border-right: 2px solid var(--eh-blue); transform: rotate(45deg); }
.eligibility-flow li span { display: block; color: var(--eh-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; margin-bottom: .35rem; }
.eligibility-flow li strong { color: var(--eh-navy); }
.review-flow { display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr 42px 1fr; gap: 12px; align-items: stretch; }
.review-flow article { padding: 24px 0 24px 22px; border-left: 3px solid var(--eh-blue); }
.review-flow span { display: block; color: var(--eh-blue); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; margin-bottom: .45rem; }
.review-flow strong { color: var(--eh-navy); }
.auth-shell-v3 { grid-template-columns: 1fr minmax(480px, 560px); min-height: 100vh; }
.auth-side-v3 { grid-column: 1; grid-row: 1; padding: clamp(42px, 6vw, 84px); background: radial-gradient(circle at 16% 18%, rgba(79,134,255,.24), transparent 28%), linear-gradient(135deg, #071a3d 0%, #092967 100%); }
.auth-panel-v3 { grid-column: 2; grid-row: 1; justify-content: center; padding: clamp(22px, 3vw, 42px) clamp(28px, 4vw, 54px); }
.dark-brand span { color: #fff; }
.auth-mobile-brand { display: none; margin-bottom: 18px; }
.auth-form-flat { box-shadow: none !important; border-color: var(--eh-border); }
.google-auth-btn { width: 100%; border: 1px solid var(--eh-border); background: #fff; color: var(--eh-navy); display: flex; align-items: center; justify-content: center; gap: .7rem; margin: 1rem 0; }
.google-auth-btn:before { content: "G"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #3478f6; border: 1px solid var(--eh-border); font-weight: 800; }
.google-auth-btn:hover,
.google-auth-btn:focus { border-color: var(--eh-blue); background: #f7faff; color: var(--eh-navy); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--eh-muted); font-size: .85rem; font-weight: 700; margin: .85rem 0; }
.auth-divider:before,
.auth-divider:after { content: ""; flex: 1; height: 1px; background: var(--eh-border); }

@media (max-width: 991px) {
    .connected-flow,
    .earn-paths,
    .review-flow,
    .split-flow,
    .eligibility-flow { grid-template-columns: 1fr; }
    .connected-flow i,
    .path-connector,
    .review-flow i { width: 2px; min-width: 2px; height: 28px; justify-self: 24px; background: linear-gradient(180deg, var(--eh-blue), var(--eh-purple)); }
    .connected-flow i:after,
    .path-connector:after,
    .review-flow i:after { right: auto; left: 50%; top: auto; bottom: -1px; transform: translateX(-50%) rotate(135deg); }
    .eligibility-flow ol { grid-template-columns: 1fr; }
    .eligibility-flow li { padding: 0 0 0 28px; }
    .eligibility-flow li:before { top: 3px; left: 0; right: auto; width: 2px; height: 100%; }
    .eligibility-flow li:not(:last-child):after { top: auto; bottom: -4px; left: -4px; right: auto; transform: rotate(135deg); }
    .auth-shell-v3 { grid-template-columns: 1fr; }
    .auth-side-v3 { display: none; }
    .auth-panel-v3 { grid-column: 1; }
    .auth-mobile-brand { display: inline-flex; }
}
/* Product flow polish: reduce card-heavy surfaces and make journeys feel connected. */
.flow-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
    gap: 48px;
    align-items: center;
}
.flow-summary {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-height: 96px;
}
.flow-summary span {
    display: inline-grid;
    place-items: center;
    min-width: 86px;
    height: 44px;
    border: 1px solid var(--eh-border);
    border-radius: 999px;
    color: var(--eh-navy);
    background: #fff;
    font-weight: 800;
}
.flow-summary i {
    width: 38px;
    height: 2px;
    background: linear-gradient(90deg, var(--eh-blue), var(--eh-purple));
    position: relative;
}
.flow-summary i:after {
    content: "";
    position: absolute;
    right: -1px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-top: 2px solid var(--eh-purple);
    border-right: 2px solid var(--eh-purple);
    transform: translateY(-50%) rotate(45deg);
}
.connected-flow-wide {
    grid-template-columns: 1fr 38px 1fr 38px 1fr 38px 1fr;
    gap: 8px;
}
.connected-flow-wide article,
.earn-paths-clean article,
.review-flow article {
    min-height: 210px;
    padding: 6px 0 6px 28px;
    border-left: 3px solid var(--eh-blue);
}
.connected-flow-wide article:before,
.earn-paths-clean article:before,
.review-flow article:before {
    content: "";
    position: absolute;
    left: -9px;
    top: 8px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--eh-blue);
    box-shadow: 0 0 0 6px rgba(52,120,246,.1);
}
.flow-explainer-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.split-flow-clean {
    grid-template-columns: .82fr 1.18fr;
}
.review-ladder-clean {
    padding-left: 8px;
}
.review-ladder-clean div {
    padding-bottom: 30px;
}
.review-ladder-clean p {
    margin: .4rem 0 0;
    color: var(--eh-muted);
}
.action-split {
    align-items: center;
}
.action-split .btn {
    margin-top: 1rem;
}
.earn-paths-clean {
    grid-template-columns: 1fr 48px 1fr 48px 1fr;
}
.path-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #eff5ff;
    color: var(--eh-blue);
    font-weight: 800;
}
.eligibility-flow-clean ol {
    position: relative;
}
.eligibility-flow-clean li strong {
    display: block;
    max-width: 190px;
}
.earning-steps {
    gap: 0;
    border-top: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
}
.earning-steps article {
    border: 0;
    border-right: 1px solid var(--eh-border);
    border-radius: 0;
    box-shadow: none;
    padding: 28px 26px;
}
.earning-steps article:last-child {
    border-right: 0;
}
.earning-steps article:hover {
    transform: none;
    box-shadow: none;
}
.refined-strip,
.confidence-grid {
    border-top: 1px solid var(--eh-border);
    border-bottom: 1px solid var(--eh-border);
    gap: 0;
}
.refined-strip {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    background: transparent;
}
.refined-strip > div,
.confidence-grid article {
    border: 0;
    border-right: 1px solid var(--eh-border);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
.refined-strip > div:last-child,
.confidence-grid article:last-child {
    border-right: 0;
}
.task-preview.clean-preview {
    border-left: 2px solid var(--eh-border);
    gap: 0;
}
.task-preview.clean-preview div {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid var(--eh-border);
    padding: 18px 0 18px 24px;
}
.task-preview.clean-preview div:last-child {
    border-bottom: 0;
}
.auth-panel-v3 .clean-form {
    box-shadow: none;
    border-radius: 8px;
}
.auth-side-v3 .auth-benefit-card h2 {
    font-size: clamp(2.6rem, 4vw, 4.6rem);
}
.auth-side-v3 .auth-benefit-card {
    max-width: 760px;
}

@media (max-width: 991px) {
    .flow-hero-grid,
    .connected-flow-wide,
    .earn-paths-clean,
    .split-flow-clean {
        grid-template-columns: 1fr;
    }
    .flow-summary {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .flow-summary i {
        width: 28px;
    }
    .connected-flow-wide article,
    .earn-paths-clean article,
    .review-flow article {
        min-height: auto;
    }
    .earning-steps,
    .refined-strip,
    .confidence-grid {
        border-top: 1px solid var(--eh-border);
        border-bottom: 0;
    }
    .earning-steps article,
    .refined-strip > div,
    .confidence-grid article {
        border-right: 0;
        border-bottom: 1px solid var(--eh-border);
    }
}

@media (max-width: 575px) {
    .flow-summary span {
        min-width: 74px;
        height: 40px;
        font-size: .9rem;
    }
    .flow-summary i {
        display: none;
    }
}

/* Navigation and auth correction pass */
.nav-toggle {
    position: relative;
    z-index: 120;
}
.nav-toggle span:not(.visually-hidden) {
    transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
body.nav-open {
    overflow: hidden;
}
.auth-shell-v4 {
    min-height: 100vh;
    grid-template-columns: minmax(360px, 42vw) minmax(620px, 1fr);
    background: #fff;
}
.auth-side-v4 {
    padding: clamp(34px, 4.8vw, 72px);
    justify-content: center;
    background: linear-gradient(135deg, #071a3d 0%, #0b2b63 100%);
}
.auth-benefit-simple h2 {
    color: #fff;
    font-size: clamp(2.2rem, 3.4vw, 4.1rem);
    line-height: 1.08;
    max-width: 620px;
}
.auth-benefit-simple p {
    color: #dbeafe;
    max-width: 520px;
}
.auth-panel-v4 {
    padding: clamp(24px, 3.2vw, 48px) clamp(42px, 5vw, 86px);
    justify-content: center;
    align-items: stretch;
}
.auth-panel-v4 > * {
    width: min(100%, 720px);
}
.auth-back-link {
    display: inline-flex;
    width: auto;
    align-self: flex-start;
    margin-bottom: 18px;
    color: var(--eh-blue);
    font-weight: 800;
    text-decoration: none;
}
.auth-back-link:hover,
.auth-back-link:focus {
    color: var(--eh-navy);
}
.auth-copy-compact h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: .55rem;
}
.auth-copy-compact .auth-intro {
    margin-bottom: 1rem;
    max-width: 620px;
}
.google-auth-btn {
    min-height: 48px;
    margin: .75rem 0 .9rem;
    gap: .75rem;
}
.google-auth-btn:before {
    content: none;
}
.google-auth-icon,
.google-auth-icon svg {
    width: 22px;
    height: 22px;
    display: inline-block;
    flex: 0 0 auto;
}
.auth-form-compact {
    padding: 18px 22px !important;
}
.auth-form-compact .form-control {
    min-height: 40px;
    padding: .55rem .72rem;
}
.auth-form-compact .form-label {
    font-size: .9rem;
    margin-bottom: .28rem;
}
.register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}
.register-grid .full {
    grid-column: 1 / -1;
}
.register-form-compact .auth-check {
    margin-top: 2px;
}
.auth-check a {
    color: var(--eh-blue);
    font-weight: 800;
    text-decoration: none;
}
.auth-check a:hover,
.auth-check a:focus {
    text-decoration: underline;
}
.task-layout-v2 {
    grid-template-columns: .85fr 1.15fr;
}
.task-spec-list {
    display: grid;
    gap: 0;
    border-left: 2px solid var(--eh-border);
}
.task-spec-list div {
    position: relative;
    padding: 4px 0 24px 30px;
}
.task-spec-list div:before {
    content: "";
    position: absolute;
    left: -8px;
    top: 7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--eh-blue);
}
.task-spec-list span {
    display: block;
    color: var(--eh-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .76rem;
    margin-bottom: .35rem;
}
.task-spec-list strong {
    color: var(--eh-navy);
}

@media (max-width: 991px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        top: 0;
        min-height: 100vh;
        padding: 110px 24px 34px;
        border-bottom: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 100;
        display: none;
        flex-direction: column;
        justify-content: space-between;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 15px;
    }
    .nav-link {
        display: flex;
        align-items: center;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--eh-navy) !important;
        padding: 0.95rem 1.25rem;
        border-radius: 8px;
        background: transparent;
        transition: all 0.2s ease;
    }
    .nav-link:hover, .nav-link:focus, .nav-link.active {
        color: var(--eh-blue) !important;
        background: rgba(52, 120, 246, 0.08) !important;
    }
    .nav-link.active:after {
        display: none !important;
    }
    .nav-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid var(--eh-border);
    }
    .nav-actions .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 1.05rem;
        font-weight: 700;
        text-align: center;
        border-radius: 8px;
    }
    .auth-shell-v4 {
        grid-template-columns: 1fr;
    }
    .auth-side-v4 {
        display: none;
    }
    .auth-panel-v4 {
        min-height: 100vh;
        padding: 24px 18px 30px;
    }
    .auth-panel-v4 > * {
        width: 100%;
    }
    .task-layout-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .register-grid {
        grid-template-columns: 1fr;
    }
    .register-grid .full {
        grid-column: auto;
    }
    .auth-form-compact {
        padding: 16px !important;
    }
}

/* Mobile polish pass: newsletter, hero strip, and compact public page heroes. */
.newsletter-band {
    background: var(--eh-navy);
}
.newsletter-form {
    align-items: stretch;
}
.newsletter-form .form-control {
    min-height: 50px;
    height: 50px;
    padding: .75rem 1rem;
    background: #fff;
    color: var(--eh-navy);
    border-color: rgba(255,255,255,.35);
    border-radius: 7px;
}
.newsletter-form .form-control::placeholder {
    color: #667085;
    opacity: 1;
}
.newsletter-form .btn {
    min-height: 50px;
    padding-inline: 1.25rem;
}
.platform-rail-v2 {
    margin-top: -62px;
    padding-bottom: 46px;
}
.rail-inner-v2 {
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 18px 45px rgba(7, 26, 61, .12);
}
.rail-inner-v2 p {
    color: var(--eh-navy);
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rail-inner-v2 ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
.rail-inner-v2 li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--eh-navy);
}
.rail-inner-v2 li:before {
    content: none;
}
.rail-inner-v2 strong {
    font-size: .94rem;
    line-height: 1.25;
}
.rail-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff5ff;
    border: 1px solid #dbe7ff;
}
.rail-icon:before,
.rail-icon:after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}
.rail-icon-task:before {
    width: 16px;
    height: 19px;
    border: 2px solid var(--eh-blue);
    border-radius: 4px;
}
.rail-icon-task:after {
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--eh-blue);
    border-bottom: 2px solid var(--eh-blue);
    transform: rotate(-45deg);
}
.rail-icon-referral:before {
    width: 11px;
    height: 11px;
    border: 2px solid var(--eh-purple);
    border-radius: 50%;
    left: 8px;
    top: 9px;
    box-shadow: 11px 7px 0 -2px #eff5ff, 11px 7px 0 0 var(--eh-purple);
}
.rail-icon-referral:after {
    width: 18px;
    height: 8px;
    border-left: 2px solid var(--eh-purple);
    border-bottom: 2px solid var(--eh-purple);
    left: 11px;
    bottom: 9px;
    transform: skewX(-20deg);
}
.rail-icon-wallet:before {
    width: 20px;
    height: 15px;
    border: 2px solid var(--eh-blue);
    border-radius: 5px;
}
.rail-icon-wallet:after {
    width: 6px;
    height: 6px;
    right: 10px;
    border-radius: 50%;
    background: var(--eh-blue);
}
.rail-icon-withdraw:before {
    width: 18px;
    height: 18px;
    border: 2px solid var(--eh-purple);
    border-radius: 50%;
}
.rail-icon-withdraw:after {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--eh-purple);
    border-bottom: 2px solid var(--eh-purple);
    transform: rotate(45deg);
    bottom: 9px;
}
.page-hero.flow-hero {
    padding: 64px 0 60px;
    min-height: auto;
}
.flow-hero-grid {
    min-height: 360px;
}
.flow-hero-grid h1 {
    font-size: clamp(2.7rem, 4.7vw, 4.6rem);
    max-width: 760px;
}
.flow-summary {
    align-self: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--eh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(7, 26, 61, .08);
}
.flow-section {
    padding-top: 66px;
}

@media (max-width: 991px) {
    .platform-rail-v2 {
        margin-top: -48px;
        padding-bottom: 34px;
    }
    .rail-inner-v2 {
        border-radius: 14px;
        padding: 18px;
    }
    .rail-inner-v2 ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-hero.flow-hero {
        padding: 44px 0 38px;
    }
    .flow-hero-grid {
        min-height: auto;
        gap: 24px;
    }
    .flow-hero-grid h1 {
        font-size: clamp(2.25rem, 8vw, 3.2rem);
    }
    .flow-summary {
        justify-content: flex-start;
        padding: 16px;
        box-shadow: none;
    }
    .newsletter-inner {
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .newsletter-band {
        padding: 44px 0 52px;
    }
    .newsletter-band h2 {
        font-size: 1.75rem;
    }
    .newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .newsletter-form .form-control {
        flex: none;
        width: 100%;
        min-height: 48px;
        height: 48px;
    }
    .newsletter-form .btn {
        width: 100%;
        min-height: 48px;
    }
    .platform-rail-v2 {
        margin-top: -46px;
    }
    .rail-inner-v2 {
        gap: 14px;
    }
    .rail-inner-v2 ul {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .rail-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
    .page-hero.flow-hero {
        padding: 36px 0 32px;
    }
    .flow-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .flow-summary span {
        width: 100%;
        min-width: 0;
    }
}

/* Mobile polish pass: newsletter, hero strip, and compact public page heroes. */
.newsletter-band {
    background: var(--eh-navy);
}
.newsletter-form {
    align-items: stretch;
}
.newsletter-form .form-control {
    min-height: 50px;
    height: 50px;
    padding: .75rem 1rem;
    background: #fff;
    color: var(--eh-navy);
    border-color: rgba(255,255,255,.35);
    border-radius: 7px;
}
.newsletter-form .form-control::placeholder {
    color: #667085;
    opacity: 1;
}
.newsletter-form .btn {
    min-height: 50px;
    padding-inline: 1.25rem;
}
.platform-rail-v2 {
    margin-top: -62px;
    padding-bottom: 46px;
}
.rail-inner-v2 {
    border-radius: 16px;
    padding: 18px 22px;
    box-shadow: 0 18px 45px rgba(7, 26, 61, .12);
}
.rail-inner-v2 p {
    color: var(--eh-navy);
    font-size: .92rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.rail-inner-v2 ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
.rail-inner-v2 li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    color: var(--eh-navy);
}
.rail-inner-v2 li:before {
    content: none;
}
.rail-inner-v2 strong {
    font-size: .94rem;
    line-height: 1.25;
}
.rail-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff5ff;
    border: 1px solid #dbe7ff;
}
.rail-icon:before,
.rail-icon:after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}
.rail-icon-task:before {
    width: 16px;
    height: 19px;
    border: 2px solid var(--eh-blue);
    border-radius: 4px;
}
.rail-icon-task:after {
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--eh-blue);
    border-bottom: 2px solid var(--eh-blue);
    transform: rotate(-45deg);
}
.rail-icon-referral:before {
    width: 11px;
    height: 11px;
    border: 2px solid var(--eh-purple);
    border-radius: 50%;
    left: 8px;
    top: 9px;
    box-shadow: 11px 7px 0 -2px #eff5ff, 11px 7px 0 0 var(--eh-purple);
}
.rail-icon-referral:after {
    width: 18px;
    height: 8px;
    border-left: 2px solid var(--eh-purple);
    border-bottom: 2px solid var(--eh-purple);
    left: 11px;
    bottom: 9px;
    transform: skewX(-20deg);
}
.rail-icon-wallet:before {
    width: 20px;
    height: 15px;
    border: 2px solid var(--eh-blue);
    border-radius: 5px;
}
.rail-icon-wallet:after {
    width: 6px;
    height: 6px;
    right: 10px;
    border-radius: 50%;
    background: var(--eh-blue);
}
.rail-icon-withdraw:before {
    width: 18px;
    height: 18px;
    border: 2px solid var(--eh-purple);
    border-radius: 50%;
}
.rail-icon-withdraw:after {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--eh-purple);
    border-bottom: 2px solid var(--eh-purple);
    transform: rotate(45deg);
    bottom: 9px;
}
.page-hero.flow-hero {
    padding: 64px 0 60px;
    min-height: auto;
}
.flow-hero-grid {
    min-height: 360px;
}
.flow-hero-grid h1 {
    font-size: clamp(2.7rem, 4.7vw, 4.6rem);
    max-width: 760px;
}
.flow-summary {
    align-self: center;
    justify-content: center;
    padding: 24px;
    border: 1px solid var(--eh-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(7, 26, 61, .08);
}
.flow-section {
    padding-top: 66px;
}

@media (max-width: 991px) {
    .platform-rail-v2 {
        margin-top: -48px;
        padding-bottom: 34px;
    }
    .rail-inner-v2 {
        border-radius: 14px;
        padding: 18px;
    }
    .rail-inner-v2 ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .page-hero.flow-hero {
        padding: 44px 0 38px;
    }
    .flow-hero-grid {
        min-height: auto;
        gap: 24px;
    }
    .flow-hero-grid h1 {
        font-size: clamp(2.25rem, 8vw, 3.2rem);
    }
    .flow-summary {
        justify-content: flex-start;
        padding: 16px;
        box-shadow: none;
    }
    .newsletter-inner {
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .newsletter-band {
        padding: 44px 0 52px;
    }
    .newsletter-band h2 {
        font-size: 1.75rem;
    }
    .newsletter-form {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .newsletter-form .form-control {
        flex: none;
        width: 100%;
        min-height: 48px;
        height: 48px;
    }
    .newsletter-form .btn {
        width: 100%;
        min-height: 48px;
    }
    .platform-rail-v2 {
        margin-top: -46px;
    }
    .rail-inner-v2 {
        gap: 14px;
    }
    .rail-inner-v2 ul {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .rail-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }
    .page-hero.flow-hero {
        padding: 36px 0 32px;
    }
    .flow-summary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .flow-summary span {
        width: 100%;
        min-width: 0;
    }
}

/* Compact inner page heroes: prevent public subpages from using oversized landing-page titles. */
.inner-page-hero {
    padding: 46px 0 42px !important;
}
.inner-page-hero .flow-hero-grid {
    min-height: 250px;
    grid-template-columns: minmax(0, .9fr) minmax(360px, .62fr);
    gap: 36px;
}
.inner-page-hero h1 {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem) !important;
    line-height: 1.15;
    max-width: 640px;
    margin-bottom: .85rem;
    text-wrap: balance;
}
.inner-page-hero p:not(.eyebrow) {
    font-size: 1.03rem;
    max-width: 620px;
}
.inner-page-hero .flow-summary {
    padding: 16px 18px;
    min-height: auto;
    box-shadow: 0 12px 30px rgba(7, 26, 61, .07);
}
.inner-page-hero .flow-summary span {
    height: 40px;
    min-width: 76px;
    font-size: .92rem;
}
.inner-page-hero .flow-summary i {
    width: 28px;
}
.task-page-section {
    padding-top: 56px;
}

@media (max-width: 991px) {
    .inner-page-hero {
        padding: 34px 0 30px !important;
    }
    .inner-page-hero .flow-hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: 20px;
    }
    .inner-page-hero h1 {
        font-size: clamp(2rem, 7vw, 2.75rem) !important;
    }
    .inner-page-hero .flow-summary {
        padding: 14px;
    }
}

@media (max-width: 575px) {
    .inner-page-hero {
        padding: 28px 0 26px !important;
    }
    .inner-page-hero h1 {
        font-size: 2.15rem !important;
    }
    .inner-page-hero .flow-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Final rail and FAQ correction: no diagonal overlap, no oversized FAQ title. */
.home-hero-v3 {
    padding-bottom: 126px !important;
}
.home-hero-v3:after {
    height: 96px;
    clip-path: polygon(0 68%, 100% 26%, 100% 100%, 0 100%);
}
.platform-rail-v2 {
    margin-top: -112px !important;
    padding-bottom: 44px !important;
    z-index: 8;
}
.rail-inner-v2 {
    transform: translateY(-8px);
}
.simple-page-hero {
    padding: 44px 0 38px !important;
    background: var(--eh-gray);
    border-bottom: 1px solid var(--eh-border);
}
.simple-page-hero h1 {
    font-size: clamp(1.8rem, 2.8vw, 2.5rem) !important;
    line-height: 1.15;
    max-width: 680px;
    margin-bottom: .75rem;
}
.simple-page-hero p:not(.eyebrow) {
    font-size: 1.03rem;
    max-width: 640px;
    color: #536176;
}
.faq-section-compact {
    padding-top: 48px;
}

@media (max-width: 991px) {
    .home-hero-v3 {
        padding-bottom: 92px !important;
    }
    .platform-rail-v2 {
        margin-top: -78px !important;
        padding-bottom: 32px !important;
    }
    .rail-inner-v2 {
        transform: none;
    }
    .simple-page-hero {
        padding: 34px 0 30px !important;
    }
    .simple-page-hero h1 {
        font-size: clamp(2rem, 7vw, 2.65rem) !important;
    }
}

@media (max-width: 575px) {
    .home-hero-v3 {
        padding-bottom: 84px !important;
    }
    .platform-rail-v2 {
        margin-top: -68px !important;
        padding-bottom: 28px !important;
    }
    .simple-page-hero {
        padding: 28px 0 26px !important;
    }
    .simple-page-hero h1 {
        font-size: 2.15rem !important;
    }
}

/* ================================================================
   Password Toggle (Show/Hide Eye Icon)
   ================================================================ */
.input-group-password {
    position: relative;
    display: flex;
    align-items: center;
}
.input-group-password .form-control {
    padding-right: 2.8rem;
}
.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 0.85rem;
    background: transparent;
    border: none;
    color: var(--eh-muted);
    cursor: pointer;
    z-index: 5;
    font-size: 1rem;
}
.password-toggle:hover {
    color: var(--eh-navy);
}

/* ================================================================
   Toast Notifications (SB Admin 2 inspired)
   ================================================================ */
.eh-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}
.eh-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 0.35rem;
    border-left: 4px solid var(--eh-blue);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    animation: toastSlideIn 0.3s ease-out;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--eh-text);
}
.eh-toast.toast-warning {
    border-left-color: #f6c23e;
}
.eh-toast.toast-error {
    border-left-color: #e74a3b;
}
.eh-toast.toast-success {
    border-left-color: #1cc88a;
}
.eh-toast .toast-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.eh-toast.toast-warning .toast-icon { color: #f6c23e; }
.eh-toast.toast-error .toast-icon { color: #e74a3b; }
.eh-toast.toast-success .toast-icon { color: #1cc88a; }
.eh-toast .toast-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--eh-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}
.eh-toast .toast-close:hover { color: var(--eh-navy); }

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ================================================================
   Form Control Styles (restored from earlier overwrite)
   ================================================================ */
.form-control, .form-select { border-color: var(--eh-border); border-radius: 6px; padding: .85rem 1rem; }
.form-control:focus, .form-select:focus { border-color: var(--eh-blue); box-shadow: 0 0 0 .2rem rgba(52,120,246,.15); }
.form-feedback { margin: 1rem 0 0; font-weight: 700; }

/* Auth and dashboard refinement */
.auth-social-note {
    color: #667085;
    font-size: .78rem;
    line-height: 1.45;
    margin: .7rem 0 0;
    text-align: center;
}
.auth-social-note a {
    color: #3478f6;
    font-weight: 700;
    text-decoration: none;
}
.auth-social-note a:hover,
.auth-social-note a:focus {
    text-decoration: underline;
}

/* Legal center: compact professional policy layout. */
.legal-header-v2 {
    padding: 42px 0 34px;
    background: #f7f9fc;
    border-bottom: 1px solid var(--eh-border);
}
.legal-header-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 34px;
    align-items: end;
}
.legal-header-v2 h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-bottom: .75rem;
}
.legal-header-v2 p:not(.eyebrow) {
    color: #536176;
    max-width: 720px;
    font-size: 1.05rem;
    margin: 0;
}
.legal-meta-panel {
    display: grid;
    gap: 10px;
}
.legal-meta-panel span {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    color: var(--eh-muted);
}
.legal-meta-panel strong {
    color: var(--eh-navy);
    font-size: .76rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.legal-section-v2 {
    padding-top: 46px;
}
.legal-content-v2 {
    max-width: 900px;
}
.legal-toc {
    border: 1px solid var(--eh-border);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 34px;
    background: #fff;
}
.legal-toc strong {
    display: block;
    color: var(--eh-navy);
    margin-bottom: 10px;
}
.legal-toc ol {
    columns: 2;
    column-gap: 34px;
    margin: 0;
    padding-left: 18px;
}
.legal-toc li {
    break-inside: avoid;
    margin-bottom: 7px;
    color: var(--eh-muted);
}
.legal-toc a {
    color: var(--eh-blue);
    text-decoration: none;
    font-weight: 700;
}
.legal-content-v2 section {
    padding-bottom: 28px;
    margin-bottom: 28px;
}
.legal-content-v2 h2 {
    font-size: 1.35rem;
    margin-bottom: .8rem;
}
.legal-content-v2 p {
    color: #44546a;
}

@media (max-width: 991px) {
    .legal-header-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .legal-toc ol {
        columns: 1;
    }
}

/* Legal center and policy layout refinement */
.legal-center-hero,
.legal-policy-header {
    background: #f6f8fc;
    border-bottom: 1px solid var(--eh-border);
    padding: 4.5rem 0 3.25rem;
}
.legal-center-hero-grid,
.legal-policy-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 26rem);
    gap: 2rem;
    align-items: end;
}
.legal-center-hero h1,
.legal-policy-header h1 {
    max-width: 48rem;
    margin: 0 0 1rem;
    color: var(--eh-navy);
    font-size: clamp(2.25rem, 4vw, 4.4rem);
    line-height: .98;
    letter-spacing: 0;
}
.legal-center-hero p:not(.eyebrow),
.legal-policy-header p:not(.eyebrow) {
    max-width: 48rem;
    color: var(--eh-text);
    font-size: 1.08rem;
    line-height: 1.75;
}
.legal-meta-panel.compact {
    display: grid;
    gap: .75rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--eh-border);
    border-radius: .45rem;
    box-shadow: none;
}
.legal-center-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.legal-center-card {
    display: grid;
    gap: .7rem;
    min-height: 13rem;
    padding: 1.35rem;
    border: 1px solid var(--eh-border);
    border-radius: .45rem;
    background: #fff;
    color: var(--eh-text);
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.legal-center-card:hover,
.legal-center-card:focus {
    border-color: var(--eh-blue);
    box-shadow: 0 .7rem 1.8rem rgba(7, 26, 61, .08);
    color: var(--eh-text);
    transform: translateY(-2px);
}
.legal-center-card span {
    color: var(--eh-blue);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .12em;
}
.legal-center-card strong {
    color: var(--eh-navy);
    font-size: 1.15rem;
}
.legal-center-card p {
    margin: 0;
    line-height: 1.65;
}
.legal-country-panel {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--eh-navy);
    color: #fff;
    border-radius: .45rem;
}
.legal-country-panel h2,
.legal-country-panel .eyebrow {
    color: #fff;
}
.legal-country-panel ul {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .75rem;
}
.legal-back-link {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--eh-blue);
    font-weight: 800;
    text-decoration: none;
}
.legal-nav a.active {
    color: var(--eh-blue);
    border-left-color: var(--eh-blue);
    background: #eef4ff;
}
.legal-policy-section {
    scroll-margin-top: 110px;
}
.legal-policy-section h2 {
    color: var(--eh-navy);
    font-size: 1.35rem;
    line-height: 1.25;
}
.legal-toc a {
    scroll-margin-top: 110px;
}
@media (max-width: 991.98px) {
    .legal-center-hero-grid,
    .legal-policy-heading,
    .legal-country-panel {
        grid-template-columns: 1fr;
    }
    .legal-center-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575.98px) {
    .legal-center-hero,
    .legal-policy-header {
        padding: 3rem 0 2rem;
    }
    .legal-center-grid {
        grid-template-columns: 1fr;
    }
}

/* Cookie preference center */
.cookie-preferences-modal[hidden] { display: none; }
.cookie-preferences-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(7, 26, 61, .48);
}
.cookie-preferences-panel {
    width: min(42rem, 100%);
    background: #fff;
    border-radius: .55rem;
    border: 1px solid var(--eh-border);
    box-shadow: 0 1rem 3rem rgba(7, 26, 61, .2);
    padding: 1.5rem;
}
.cookie-preferences-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--eh-border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.cookie-preferences-header h2 { margin: 0; color: var(--eh-navy); }
.cookie-modal-close {
    border: 1px solid var(--eh-border);
    background: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .35rem;
    font-size: 1.35rem;
    line-height: 1;
}
.cookie-preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--eh-border);
}
.cookie-preference-row p { margin: .25rem 0 0; color: var(--eh-muted); }
.cookie-preference-row input { width: 1.25rem; height: 1.25rem; }
.cookie-required { color: var(--eh-blue); font-weight: 800; }
.cookie-preferences-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; }
@media (max-width: 575.98px) {
    .cookie-preference-row,
    .cookie-preferences-actions { align-items: stretch; flex-direction: column; }
}
