/* Homepage editorial theme — scoped to body.home-editorial only */

body.home-editorial {
    --sg-window-radius: 12px;
    --glass-panel-bg: #ffffff;
    --glass-panel-border: #E7E2DA;
    --glass-blur: none;
    --glass-depth-shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
    --sg-glow-gold: transparent;
    --sg-glow-purple: transparent;

    --primary-color: #E8632B;
    --primary-hover: #D4551F;
    --success-color: #3D8B6E;
    --danger-color: #DC2626;
    --warning-color: #D97706;
    --info-color: #57534E;
    --cta-color: #E8632B;
    --cta-hover: #D4551F;

    --bg-cream: #F6F3EE;
    --bg-primary: #ffffff;
    --bg-secondary: #F6F3EE;
    --bg-tertiary: #F0EBE3;
    --bg-hover: rgba(28, 25, 23, 0.04);

    --border-color: #E7E2DA;
    --border-hover: #D6D0C6;

    --text-primary: #1C1917;
    --text-secondary: #57534E;
    --text-tertiary: #78716C;

    --mint-bg: #E8F2EC;
    --mint-text: #2F6B52;
    --card-shadow: 0 4px 24px rgba(28, 25, 23, 0.06);

    --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.05);
    --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.07);
    --shadow-lg: 0 10px 32px rgba(28, 25, 23, 0.1);
    --shadow-xl: 0 20px 40px rgba(28, 25, 23, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --radius-xl: 16px;

    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-cream);
    color: var(--text-primary);
}

body.home-editorial::before {
    display: none;
}

body.home-editorial.dark-mode {
    --glass-panel-bg: #1C1917;
    --glass-panel-border: rgba(255, 255, 255, 0.1);
    --glass-depth-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --primary-color: #E8632B;
    --primary-hover: #F07842;
    --success-color: #4ADE80;
    --cta-color: #E8632B;
    --cta-hover: #F07842;
    --bg-cream: #0C0A09;
    --bg-primary: #1C1917;
    --bg-secondary: #0C0A09;
    --bg-tertiary: #292524;
    --bg-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-primary: #FAFAF9;
    --text-secondary: #D6D3D1;
    --text-tertiary: #A8A29E;
    --mint-bg: rgba(61, 139, 110, 0.2);
    --mint-text: #86EFAC;
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    background: var(--bg-cream);
    color: var(--text-primary);
}

/* ---------- Navbar ---------- */
body.home-editorial .main-navbar {
    background: rgba(246, 243, 238, 0.92);
    border: none;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: none;
    width: 100%;
    max-width: none;
    margin: 0;
    border-radius: 0;
}

body.home-editorial.dark-mode .main-navbar {
    background: rgba(12, 10, 9, 0.92);
}

body.home-editorial .nav-container {
    max-width: 1120px;
    padding: 0 1.5rem;
    height: 68px;
}

body.home-editorial .nav-logo-link {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    gap: 0.625rem;
}

body.home-editorial .nav-logo-link:hover {
    color: var(--text-primary);
}

body.home-editorial .nav-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
}

body.home-editorial .nav-menu {
    gap: 0.25rem;
    margin-left: auto;
}

body.home-editorial .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
}

body.home-editorial .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

body.home-editorial .nav-dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.12);
    min-width: 240px;
}

body.home-editorial .nav-dropdown-link {
    color: var(--text-secondary);
}

body.home-editorial .nav-dropdown-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

body.home-editorial .nav-cta-item {
    margin-left: 0.5rem;
}

body.home-editorial .nav-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.125rem;
    background: var(--primary-color);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

body.home-editorial .nav-cta-button:hover {
    background: var(--primary-hover);
}

body.home-editorial .nav-toggle span {
    background: var(--text-primary);
}

body.home-editorial .nav-theme-toggle {
    position: static !important;
    top: auto;
    right: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    min-width: 44px;
    height: 40px;
    margin-left: 0.75rem;
    padding: 0 0.9rem;
    flex-shrink: 0;
    border-radius: 8px;
    z-index: 2;
    background: #1C1917 !important;
    color: #fff !important;
    border: 1px solid #1C1917 !important;
    box-shadow: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    transform: none;
}

body.home-editorial .nav-theme-toggle .nav-theme-label {
    color: inherit;
}

body.home-editorial .nav-theme-toggle .sun-icon,
body.home-editorial .nav-theme-toggle .moon-icon {
    position: static;
    opacity: 1;
    transform: none;
    stroke: currentColor;
}

body.home-editorial:not(.dark-mode) .nav-theme-toggle .sun-icon,
body.home-editorial.dark-mode .nav-theme-toggle .moon-icon {
    display: none;
}

body.home-editorial.dark-mode .nav-theme-toggle {
    background: #FAFAF9 !important;
    color: #1C1917 !important;
    border-color: #FAFAF9 !important;
}

body.home-editorial .theme-toggle {
    display: none;
}

body.home-editorial.terms-page {
    background: var(--bg-cream);
    padding: 0 0 3rem;
}

body.home-editorial .terms-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
}

@media (max-width: 768px) {
    body.home-editorial .nav-menu {
        background: var(--bg-cream);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    body.home-editorial .nav-dropdown-menu {
        background: var(--bg-tertiary);
        box-shadow: none;
        border: none;
    }

    body.home-editorial .nav-cta-item {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    body.home-editorial .nav-cta-button {
        width: 100%;
    }
}

/* ---------- Layout ---------- */
body.home-editorial .app-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    background: transparent;
}

/* ---------- Hero ---------- */
body.home-editorial .landing-hero {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 3.5rem 0 2.5rem;
    margin: 0;
    text-align: left;
}

body.home-editorial .hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

body.home-editorial .hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    background: var(--mint-bg);
    color: var(--mint-text);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 1.25rem;
    width: fit-content;
}

body.home-editorial .hero-title {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    background: none;
    -webkit-text-fill-color: unset;
    text-align: left;
}

body.home-editorial .hero-title-accent {
    color: var(--primary-color);
}

body.home-editorial .hero-description {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 32rem;
    margin: 0 0 1.75rem;
    text-align: left;
}

body.home-editorial .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

body.home-editorial .hero-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.35rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.975rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

body.home-editorial .hero-upload-btn:hover {
    background: var(--primary-hover);
}

body.home-editorial .hero-upload-btn:active {
    transform: translateY(1px);
}

body.home-editorial .hero-sample-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.975rem;
    text-decoration: none;
}

body.home-editorial .hero-sample-link:hover {
    color: var(--primary-color);
}

body.home-editorial .hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    font-weight: 500;
}

body.home-editorial .hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

body.home-editorial .hero-trust svg {
    color: var(--success-color);
    flex-shrink: 0;
}

/* Premium pink workbook offer */
body.home-editorial .premium-workbook-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1.25rem 1.5rem;
    align-items: center;
    margin-top: 1.75rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08) 0%, rgba(219, 39, 119, 0.04) 100%);
    border: 1px solid rgba(236, 72, 153, 0.28);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

body.home-editorial .premium-workbook-card.premium-workbook-card-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 1.5rem;
    width: calc(100% - 2rem);
}

body.home-editorial.dark-mode .premium-workbook-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.16) 0%, rgba(28, 25, 23, 0.6) 100%);
    border-color: rgba(236, 72, 153, 0.35);
}

body.home-editorial .premium-workbook-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

body.home-editorial .premium-workbook-card.premium-workbook-coming-soon {
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.08) 0%, rgba(148, 163, 184, 0.06) 100%);
    border-color: rgba(100, 116, 139, 0.35);
    opacity: 0.92;
}

body.home-editorial .premium-workbook-badge.premium-workbook-badge-soon {
    background: #64748b;
    color: #fff;
}

body.home-editorial .premium-workbook-coming-soon .premium-buy-btn,
body.home-editorial .premium-workbook-coming-soon .premium-build-btn,
body.home-editorial .premium-build-soon-btn,
button.premium-build-soon-btn {
    background: #94a3b8 !important;
    background-image: none !important;
    color: #f8fafc !important;
    border-color: #94a3b8 !important;
    cursor: not-allowed !important;
    opacity: 0.75;
    pointer-events: none;
}

body.home-editorial .premium-workbook-coming-soon .premium-buy-btn:hover,
body.home-editorial .premium-workbook-coming-soon .premium-build-btn:hover,
body.home-editorial .premium-build-soon-btn:hover {
    transform: none;
    filter: none;
}

body.home-editorial .premium-workbook-copy h2 {
    margin: 0 0 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

body.home-editorial .premium-workbook-copy p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    max-width: 52rem;
}

body.home-editorial .premium-workbook-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-start;
}

body.home-editorial .premium-preview-btn,
body.home-editorial .premium-buy-btn,
body.home-editorial .premium-build-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

body.home-editorial .premium-preview-btn,
body.home-editorial .premium-buy-btn {
    background: #fff;
    color: #db2777;
    border: 1.5px solid #ec4899;
}

body.home-editorial.dark-mode .premium-preview-btn,
body.home-editorial.dark-mode .premium-buy-btn {
    background: #1C1917;
    color: #f9a8d4;
}

body.home-editorial .premium-preview-btn:hover,
body.home-editorial .premium-buy-btn:hover {
    background: rgba(236, 72, 153, 0.1);
}

body.home-editorial .premium-build-btn {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    color: #fff;
    border: none;
    white-space: normal;
    max-width: 28rem;
    line-height: 1.35;
}

body.home-editorial .premium-build-btn:hover:not(:disabled) {
    filter: brightness(1.05);
}

body.home-editorial .premium-build-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.home-editorial #buildPremiumWorkbookBtn {
    white-space: normal;
    max-width: 28rem;
    line-height: 1.35;
    text-align: left;
    font-size: 0.875rem;
}

body.home-editorial a.premium-preview-btn {
    text-decoration: none;
}

body.home-editorial a.workbook-preview-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #db2777;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.home-editorial.dark-mode a.workbook-preview-link {
    color: #f9a8d4;
}

@media (max-width: 900px) {
    body.home-editorial .premium-workbook-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    body.home-editorial .premium-workbook-actions {
        justify-content: flex-start;
    }
}

/* Sample overview card */
body.home-editorial .hero-sample-card {
    background: linear-gradient(165deg, #ffffff 0%, #f3faf7 55%, #eef6f8 100%);
    border: 1px solid #cfe3dc;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem;
}

body.home-editorial.dark-mode .hero-sample-card {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.home-editorial .sample-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

body.home-editorial .sample-card-header h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--text-primary);
}

body.home-editorial .sample-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    white-space: nowrap;
}

body.home-editorial .sample-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

body.home-editorial .sample-stat {
    border-radius: 12px;
    padding: 0.875rem;
    border: 1px solid transparent;
}

body.home-editorial .sample-stat-income {
    background: linear-gradient(160deg, #e8f7f1 0%, #d8f0e6 100%);
    border-color: #b7dfcd;
}

body.home-editorial .sample-stat-expenses {
    background: linear-gradient(160deg, #fff4ee 0%, #ffe8dc 100%);
    border-color: #f0cbb6;
}

body.home-editorial .sample-stat-savings {
    background: linear-gradient(160deg, #eef6ff 0%, #e0eefc 100%);
    border-color: #c5daf5;
}

body.home-editorial.dark-mode .sample-stat-income,
body.home-editorial.dark-mode .sample-stat-expenses,
body.home-editorial.dark-mode .sample-stat-savings {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
}

body.home-editorial .sample-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 0.35rem;
}

body.home-editorial .sample-stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

body.home-editorial .sample-stat-income .sample-stat-value {
    color: #1f6b4f;
}

body.home-editorial .sample-stat-expenses .sample-stat-value {
    color: #b45309;
}

body.home-editorial .sample-stat-savings .sample-stat-value {
    color: #1d4ed8;
}

body.home-editorial .sample-stat-note {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #2563eb;
}

body.home-editorial .sample-categories,
body.home-editorial .sample-transactions {
    margin-top: 1.25rem;
}

body.home-editorial .sample-categories h3,
body.home-editorial .sample-transactions h3 {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.875rem;
    color: var(--text-primary);
}

body.home-editorial .sample-category-row {
    margin-bottom: 0.75rem;
}

body.home-editorial .sample-category-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

body.home-editorial .sample-bar {
    height: 8px;
    background: #F0E6DC;
    border-radius: 999px;
    overflow: hidden;
}

body.home-editorial.dark-mode .sample-bar {
    background: rgba(255, 255, 255, 0.08);
}

body.home-editorial .sample-bar span {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
}

body.home-editorial .sample-transactions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.home-editorial .sample-transactions li {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto auto;
    gap: 0.65rem;
    align-items: center;
    padding: 0.65rem 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

body.home-editorial .sample-tx-date {
    color: var(--text-tertiary);
    font-weight: 500;
}

body.home-editorial .sample-tx-desc {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-editorial .sample-tx-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

body.home-editorial .sample-tx-tag-income {
    background: var(--mint-bg);
    color: var(--mint-text);
}

body.home-editorial .sample-tx-amount {
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    min-width: 4.5rem;
}

body.home-editorial .sample-tx-credit {
    color: var(--mint-text);
}

/* ---------- How it works ---------- */
body.home-editorial .how-it-works-section {
    padding: 3.5rem 0 2rem;
}

body.home-editorial .how-it-works-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0 0 2.5rem;
    color: var(--text-primary);
}

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

body.home-editorial .how-step {
    background: linear-gradient(165deg, #ffffff 0%, #f7faf8 100%);
    border: 1px solid #dce8e2;
    border-radius: 14px;
    padding: 1.35rem 1.25rem;
    box-shadow: var(--card-shadow);
}

body.home-editorial.dark-mode .how-step {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.home-editorial .how-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

body.home-editorial .how-step h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

body.home-editorial .how-step p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Privacy banner ---------- */
body.home-editorial .privacy-section {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 1.5rem 0 3rem;
    margin: 0;
}

body.home-editorial .privacy-banner {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, #f3faf6 0%, #eef7f2 50%, #f5faf8 100%);
    border: 1px solid #c9e0d4;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 1.5rem 1.75rem;
}

body.home-editorial.dark-mode .privacy-banner {
    background: var(--bg-primary);
}

body.home-editorial .privacy-icon {
    flex-shrink: 0;
    color: var(--success-color);
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    margin: 0.15rem 0 0;
}

body.home-editorial .privacy-banner-copy h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 0.4rem;
    color: var(--text-primary);
    text-align: left;
    background: none;
    -webkit-text-fill-color: unset;
}

body.home-editorial .privacy-banner-copy p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
    max-width: none;
}

/* ---------- Analyzer skin ---------- */
body.home-editorial .app-section {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 0;
    margin: 0;
}

body.home-editorial .header {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

body.home-editorial.dark-mode .header {
    background: var(--bg-primary);
}

body.home-editorial .app-title {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.home-editorial .app-subtitle,
body.home-editorial .app-description {
    color: var(--text-secondary);
}

body.home-editorial .dark-mode-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: none;
}

body.home-editorial .upload-section {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

body.home-editorial .drop-zone {
    background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
    border: 2px dashed var(--border-hover);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
}

body.home-editorial.dark-mode .drop-zone {
    background: var(--bg-primary);
}

body.home-editorial .drop-zone:hover,
body.home-editorial .drop-zone.drag-over {
    border-color: var(--primary-color);
    background: #FFF8F4;
    box-shadow: var(--card-shadow);
}

body.home-editorial.dark-mode .drop-zone:hover,
body.home-editorial.dark-mode .drop-zone.drag-over {
    background: rgba(232, 99, 43, 0.08);
}

body.home-editorial .drop-zone-content h2 {
    color: var(--text-primary);
}

body.home-editorial .drop-zone-content p,
body.home-editorial .multi-account-hint {
    color: var(--text-secondary) !important;
}

body.home-editorial .privacy-notice {
    color: var(--success-color) !important;
}

body.home-editorial .upload-icon {
    color: var(--primary-color);
}

body.home-editorial .keyfile-upload-btn {
    background: var(--primary-color);
    border: none;
    color: #fff;
    border-radius: 8px;
    box-shadow: none;
}

body.home-editorial .keyfile-upload-btn::before {
    display: none;
}

body.home-editorial .keyfile-upload-btn:hover {
    background: var(--primary-hover);
    transform: none;
}

body.home-editorial .keyfile-tooltip {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-lg) !important;
    backdrop-filter: none !important;
}

body.home-editorial .tooltip-content {
    color: var(--text-secondary) !important;
}

body.home-editorial .tooltip-content strong {
    color: var(--success-color) !important;
}

body.home-editorial .tooltip-content p {
    color: var(--text-secondary) !important;
}

body.home-editorial .tooltip-arrow {
    border-top-color: var(--border-color) !important;
}

body.home-editorial .summary-section,
body.home-editorial .category-section,
body.home-editorial .transaction-section,
body.home-editorial .home-loan-section,
body.home-editorial .savings-target-section,
body.home-editorial .budget-vs-actual-section,
body.home-editorial .comparison-section {
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    backdrop-filter: none !important;
}

body.home-editorial .summary-section,
body.home-editorial .savings-target-section,
body.home-editorial .budget-vs-actual-section,
body.home-editorial .comparison-section {
    background: #fff !important;
    border: 1px solid var(--border-color) !important;
}

/* Soft professional tints — home loan, category, transactions */
body.home-editorial .home-loan-section {
    background: linear-gradient(165deg, #f7fafc 0%, #eef4f8 48%, #e8f0f6 100%) !important;
    border: 1px solid #c9d9e6 !important;
}

body.home-editorial .category-section {
    background: linear-gradient(165deg, #f6fbf8 0%, #eef7f2 50%, #e8f4ee 100%) !important;
    border: 1px solid #c5ddd0 !important;
}

body.home-editorial .transaction-section {
    background: linear-gradient(165deg, #fffaf6 0%, #fff5ee 52%, #ffefe4 100%) !important;
    border: 1px solid #ebcfc0 !important;
}

body.home-editorial.dark-mode .summary-section,
body.home-editorial.dark-mode .category-section,
body.home-editorial.dark-mode .transaction-section,
body.home-editorial.dark-mode .home-loan-section,
body.home-editorial.dark-mode .savings-target-section,
body.home-editorial.dark-mode .budget-vs-actual-section,
body.home-editorial.dark-mode .comparison-section {
    background: var(--bg-primary) !important;
    border-color: var(--border-color) !important;
}

/* Inner panels sit lightly on the tinted section shells */
body.home-editorial:not(.dark-mode) .home-loan-section .loan-container {
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid #d0e0ec !important;
    border-radius: 12px;
}

body.home-editorial:not(.dark-mode) .category-section .category-chart-container {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 1px solid #d0e5d9 !important;
    border-radius: 12px;
    padding: 0.75rem 0.75rem 1.25rem;
    align-items: flex-start;
    justify-content: center;
}

body.home-editorial:not(.dark-mode) .category-section .category-chart-container > p {
    width: 100%;
    margin: 0.5rem 0 0;
    text-align: center;
}

/* Transaction table: light page uses dark text (base styles assumed dark glass UI) */
body.home-editorial .table-container {
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--text-primary) !important;
    border: 1px solid #ecd5c8 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

body.home-editorial .transaction-table {
    color: var(--text-primary) !important;
}

body.home-editorial .transaction-table thead {
    background: #44403C !important;
}

body.home-editorial .transaction-table th {
    color: #FAFAF9 !important;
    border-bottom-color: #292524 !important;
}

body.home-editorial .sortable:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

body.home-editorial .table-container .transaction-table td {
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}

body.home-editorial .table-container .transaction-table td.amount-income,
body.home-editorial .transaction-table tbody tr:hover td.amount-income,
body.home-editorial .transaction-table tbody tr:focus-within td.amount-income {
    color: #047857 !important;
}

body.home-editorial .table-container .transaction-table td.amount-expense,
body.home-editorial .transaction-table tbody tr:hover td.amount-expense,
body.home-editorial .transaction-table tbody tr:focus-within td.amount-expense {
    color: #B91C1C !important;
}

body.home-editorial .transaction-table tbody tr:hover,
body.home-editorial .transaction-table tbody tr:focus-within {
    background: var(--bg-cream) !important;
}

body.home-editorial .transaction-table tbody tr:hover td,
body.home-editorial .transaction-table tbody tr:focus-within td {
    color: var(--text-primary) !important;
}

body.home-editorial .transaction-table tbody tr:hover td.amount-income,
body.home-editorial .transaction-table tbody tr:focus-within td.amount-income {
    color: #047857 !important;
}

body.home-editorial .transaction-table tbody tr:hover td.amount-expense,
body.home-editorial .transaction-table tbody tr:focus-within td.amount-expense {
    color: #B91C1C !important;
}

body.home-editorial .transaction-table tbody tr:nth-child(even) {
    background: #FBF9F6;
}

body.home-editorial .transaction-table tbody tr:nth-child(even):hover,
body.home-editorial .transaction-table tbody tr:nth-child(even):focus-within {
    background: var(--bg-tertiary) !important;
}

body.home-editorial .account-badge {
    background: rgba(232, 99, 43, 0.12);
    color: #B45309;
}

body.home-editorial .amount-income {
    color: #047857 !important;
}

body.home-editorial .amount-expense {
    color: #B91C1C !important;
}

body.home-editorial .transaction-row.ignored td {
    color: var(--text-tertiary) !important;
    opacity: 0.75;
}

body.home-editorial.dark-mode .table-container {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

body.home-editorial.dark-mode .table-container .transaction-table td {
    color: var(--text-primary) !important;
}

body.home-editorial.dark-mode .transaction-table tbody tr:hover,
body.home-editorial.dark-mode .transaction-table tbody tr:focus-within {
    background: var(--bg-tertiary) !important;
}

body.home-editorial.dark-mode .transaction-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

body.home-editorial.dark-mode .account-badge {
    background: rgba(232, 99, 43, 0.2);
    color: #FDBA74;
}

body.home-editorial.dark-mode .amount-income {
    color: #4ADE80 !important;
}

body.home-editorial.dark-mode .amount-expense {
    color: #F87171 !important;
}

/* ------------------------------------------------------------------
   Light-theme contrast pass
   Base styles_v2 assumes dark glass UI (white text). On the cream /
   white editorial homepage that makes labels and values disappear.
   ------------------------------------------------------------------ */
body.home-editorial:not(.dark-mode) .loan-container,
body.home-editorial:not(.dark-mode) .savings-container,
body.home-editorial:not(.dark-mode) .savings-visualization,
body.home-editorial:not(.dark-mode) .loan-payment-breakdown,
body.home-editorial:not(.dark-mode) .budget-comparison-card,
body.home-editorial:not(.dark-mode) .accounts-panel,
body.home-editorial:not(.dark-mode) .transfer-review-panel {
    background: rgba(255, 255, 255, 0.78) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
    backdrop-filter: none !important;
    box-shadow: var(--card-shadow);
}

body.home-editorial:not(.dark-mode) .home-loan-section .loan-container {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: #d0e0ec !important;
}

body.home-editorial:not(.dark-mode) .input-group label,
body.home-editorial:not(.dark-mode) .loan-scenario-title,
body.home-editorial:not(.dark-mode) .loan-breakdown-label,
body.home-editorial:not(.dark-mode) .loan-breakdown-value,
body.home-editorial:not(.dark-mode) .loan-result-label,
body.home-editorial:not(.dark-mode) .loan-result-value,
body.home-editorial:not(.dark-mode) .loan-summary-text,
body.home-editorial:not(.dark-mode) .loan-summary-text strong,
body.home-editorial:not(.dark-mode) .savings-header h3,
body.home-editorial:not(.dark-mode) .radio-label,
body.home-editorial:not(.dark-mode) .back-button,
body.home-editorial:not(.dark-mode) .close-button,
body.home-editorial:not(.dark-mode) .summary-label,
body.home-editorial:not(.dark-mode) .summary-value,
body.home-editorial:not(.dark-mode) .accounts-panel-header h3 {
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .input-hint,
body.home-editorial:not(.dark-mode) .loan-timing-note {
    color: var(--text-secondary) !important;
}

body.home-editorial:not(.dark-mode) .loan-result-card {
    background: var(--bg-cream) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.75rem 1.25rem 1.25rem !important;
    text-align: center;
}

body.home-editorial:not(.dark-mode) .loan-result-card .loan-result-label {
    color: var(--text-secondary) !important;
    margin: 0 0 0.35rem !important;
    width: 100%;
    text-align: center;
}

body.home-editorial:not(.dark-mode) .loan-result-card .loan-result-value {
    color: var(--text-primary) !important;
    text-align: center;
    width: 100%;
}

body.home-editorial:not(.dark-mode) .loan-result-card.savings-card {
    background: #ECFDF5 !important;
    border-color: #6EE7B7 !important;
}

body.home-editorial:not(.dark-mode) .loan-result-card.savings-card .loan-result-label {
    color: #065F46 !important;
}

body.home-editorial:not(.dark-mode) .loan-result-card.savings-card .loan-result-value,
body.home-editorial:not(.dark-mode) .loan-result-value.savings,
body.home-editorial:not(.dark-mode) .loan-breakdown-value.savings,
body.home-editorial:not(.dark-mode) .loan-summary-text span {
    color: #047857 !important;
}

body.home-editorial:not(.dark-mode) .input-action-btn {
    background: var(--bg-cream) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .input-action-btn:hover {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-hover) !important;
}

body.home-editorial:not(.dark-mode) .input-group input,
body.home-editorial:not(.dark-mode) .date-select,
body.home-editorial:not(.dark-mode) .filter-select,
body.home-editorial:not(.dark-mode) .search-input {
    background: #fff !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

body.home-editorial:not(.dark-mode) .input-group input::placeholder {
    color: var(--text-tertiary) !important;
}

body.home-editorial:not(.dark-mode) .summary-item {
    background: var(--bg-cream) !important;
}

body.home-editorial:not(.dark-mode) .savings-visualization {
    background: var(--bg-cream) !important;
}

body.home-editorial:not(.dark-mode) .savings-chart-container {
    background: #fff !important;
    border: 1px solid var(--border-color);
}

body.home-editorial:not(.dark-mode) .budget-comparison-card.over-budget,
body.home-editorial:not(.dark-mode) .budget-comparison-card.on-budget,
body.home-editorial:not(.dark-mode) .budget-comparison-card.warning-budget {
    background: #fff !important;
}

body.home-editorial:not(.dark-mode) .budget-card-category,
body.home-editorial:not(.dark-mode) .budget-stat-label,
body.home-editorial:not(.dark-mode) .budget-stat-value {
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .categorization-summary-banner {
    background: #E8F2EC !important;
    border-color: #A7D4C0 !important;
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .categorization-summary-text,
body.home-editorial:not(.dark-mode) .categorization-summary-text strong {
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .household-context-strip,
body.home-editorial:not(.dark-mode) .monthly-budget-cta,
body.home-editorial:not(.dark-mode) .monthly-budget-cta-link {
    color: var(--text-secondary) !important;
}

body.home-editorial:not(.dark-mode) .category-chart-container,
body.home-editorial:not(.dark-mode) .category-item,
body.home-editorial:not(.dark-mode) .category-name,
body.home-editorial:not(.dark-mode) .category-amount,
body.home-editorial:not(.dark-mode) .category-percentage {
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .comparison-section p {
    color: var(--text-secondary) !important;
}

body.home-editorial:not(.dark-mode) .section-header,
body.home-editorial:not(.dark-mode) .controls label {
    color: var(--text-primary) !important;
}

body.home-editorial:not(.dark-mode) .custom-category-dropdown .category-dropdown-button {
    color: var(--text-primary) !important;
    background: #fff !important;
}

body.home-editorial:not(.dark-mode) .review-badge {
    color: #B91C1C !important;
}

body.home-editorial .summary-card {
    background: linear-gradient(165deg, #ffffff 0%, #f4f9f6 100%);
    border: 1px solid #d5e6de;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
}

body.home-editorial .summary-card:nth-child(1) {
    background: linear-gradient(165deg, #eef8f3 0%, #e3f3eb 100%);
    border-color: #b9ddcb;
}

body.home-editorial .summary-card:nth-child(2) {
    background: linear-gradient(165deg, #fff5ef 0%, #ffe9dc 100%);
    border-color: #f0cbb6;
}

body.home-editorial .summary-card:nth-child(3) {
    background: linear-gradient(165deg, #eef5ff 0%, #e2eefc 100%);
    border-color: #c5daf5;
}

body.home-editorial .summary-card:nth-child(4) {
    background: linear-gradient(165deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #f0d78c;
}

body.home-editorial.dark-mode .summary-card {
    background: var(--bg-tertiary);
}

body.home-editorial .summary-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

body.home-editorial .summary-card h3 {
    color: var(--text-secondary);
}

body.home-editorial .card-value {
    color: var(--text-primary);
}

body.home-editorial .savings-card .card-value,
body.home-editorial .income-card .card-value {
    color: var(--success-color);
}

body.home-editorial .section-title {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Section headings: centered at top of tinted boxes */
body.home-editorial .home-loan-section > .section-title,
body.home-editorial .category-section > .section-title {
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

body.home-editorial .cta-button {
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    box-shadow: none;
    border: none;
}

body.home-editorial .cta-button:hover {
    background: var(--primary-hover);
    transform: none;
    box-shadow: none;
}

body.home-editorial input,
body.home-editorial select,
body.home-editorial textarea,
body.home-editorial .form-input,
body.home-editorial .filter-input {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
}

body.home-editorial.dark-mode input,
body.home-editorial.dark-mode select,
body.home-editorial.dark-mode textarea {
    background: var(--bg-tertiary);
}

body.home-editorial button:not(.hero-upload-btn):not(.nav-cta-button):not(.nav-toggle):not(.dark-mode-toggle),
body.home-editorial .btn,
body.home-editorial .action-btn {
    border-radius: 8px;
}

body.home-editorial .accounts-panel,
body.home-editorial .transfer-review-panel,
body.home-editorial .quick-tips-popup .quick-tips-content {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
}

body.home-editorial.dark-mode .accounts-panel,
body.home-editorial.dark-mode .transfer-review-panel,
body.home-editorial.dark-mode .quick-tips-popup .quick-tips-content {
    background: var(--bg-primary);
}

body.home-editorial .loading-indicator {
    color: var(--text-secondary);
}

body.home-editorial .spinner {
    border-color: var(--border-color);
    border-top-color: var(--primary-color);
}

/* ---------- Footer ---------- */
body.home-editorial .footer-section {
    background: #fff !important;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    color: var(--text-primary) !important;
    padding: 2.5rem 2rem 2rem !important;
    margin: 3rem auto 2rem !important;
    max-width: 1120px;
    width: calc(100% - 3rem);
    backdrop-filter: none;
}

body.home-editorial.dark-mode .footer-section {
    background: var(--bg-primary) !important;
}

body.home-editorial .footer-content {
    display: flex !important;
    justify-content: center !important;
    gap: 3rem !important;
    margin-bottom: 2rem !important;
    flex-wrap: wrap !important;
}

body.home-editorial .footer-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.75rem !important;
    text-align: center !important;
}

body.home-editorial .footer-item svg {
    color: var(--primary-color) !important;
}

body.home-editorial .footer-item span {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
}

body.home-editorial .footer-link {
    color: var(--text-primary) !important;
    text-decoration: none !important;
    border: 1px solid var(--border-color) !important;
    display: inline-block !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: 8px !important;
    background: var(--bg-cream) !important;
    font-weight: 600;
}

body.home-editorial .footer-link.coffee-link {
    background: #FFF4EB !important;
    border-color: rgba(232, 99, 43, 0.35) !important;
    color: var(--primary-color) !important;
}

body.home-editorial .footer-link.share-link {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    cursor: pointer !important;
}

body.home-editorial .footer-copyright {
    color: var(--text-secondary) !important;
    text-align: center !important;
    margin-top: 2rem !important;
    padding-top: 2rem !important;
    border-top: 1px solid var(--border-color) !important;
}

body.home-editorial .footer-copyright p,
body.home-editorial .footer-copyright-meta {
    color: var(--text-tertiary) !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem;
}

body.home-editorial .footer-copyright-meta a {
    color: var(--text-secondary);
    text-decoration: underline;
}

body.home-editorial .social-share-btn {
    background: var(--bg-cream) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

body.home-editorial .disclaimer-statement {
    background: #FDF2F2 !important;
    border-top: 1px solid #FECACA !important;
}

body.home-editorial .disclaimer-statement-content p {
    color: var(--text-secondary) !important;
}

body.home-editorial .analytics-link-wrap {
    text-align: center;
    padding: 1rem;
    margin-top: 0.5rem;
}

body.home-editorial .analytics-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--bg-tertiary);
    transition: color 0.2s ease, background 0.2s ease;
}

body.home-editorial .analytics-link:hover {
    color: var(--text-primary);
    background: var(--border-color);
}

body.home-editorial .copy-notification {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

/* Kill leftover glass / purple accents on this page */
body.home-editorial [style*="backdrop-filter"],
body.home-editorial [style*="glass"] {
    backdrop-filter: none !important;
}

body.home-editorial .features-section {
    display: none;
}

/* ---------- FYI ---------- */
body.home-editorial .fyi-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

body.home-editorial .fyi-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 1rem;
}

body.home-editorial .fyi-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: none;
    -webkit-text-fill-color: unset;
}

body.home-editorial .fyi-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

body.home-editorial .fyi-container .how-it-works-section {
    padding: 0;
}

body.home-editorial .fyi-container .section-title {
    text-align: center;
    margin-bottom: 2rem;
}

body.home-editorial .step-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1rem;
}

body.home-editorial.dark-mode .step-card {
    background: var(--bg-primary);
}

body.home-editorial .step-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

body.home-editorial .step-number {
    background: var(--primary-color);
    color: #fff;
    box-shadow: none;
}

body.home-editorial .step-card h3 {
    color: var(--text-primary);
}

body.home-editorial .step-card p,
body.home-editorial .step-tip {
    color: var(--text-secondary);
}

/* ---------- Try It / demo files ---------- */
body.home-editorial .demo-files-section {
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    padding: 2.5rem 0 3rem;
    margin: 0;
}

body.home-editorial .demo-files-title {
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: none;
    -webkit-text-fill-color: unset;
}

body.home-editorial .demo-files-description {
    color: var(--text-secondary);
}

body.home-editorial .demo-file-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
}

body.home-editorial.dark-mode .demo-file-card {
    background: var(--bg-primary);
}

body.home-editorial .demo-file-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

body.home-editorial .demo-file-icon {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

body.home-editorial .demo-file-icon svg {
    color: var(--primary-color);
}

body.home-editorial .demo-file-card h3 {
    color: var(--text-primary);
}

body.home-editorial .demo-file-card p {
    color: var(--text-secondary);
}

body.home-editorial .demo-download-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: none;
}

body.home-editorial .demo-download-btn:hover {
    background: var(--primary-hover);
    transform: none;
    box-shadow: none;
}

body.home-editorial .demo-instructions {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    color: var(--text-secondary);
    padding: 1.5rem 1.75rem;
    margin-top: 2rem;
}

body.home-editorial.dark-mode .demo-instructions {
    background: var(--bg-primary);
}

body.home-editorial .demo-instructions h3 {
    color: var(--text-primary);
}

body.home-editorial .demo-instructions a {
    color: var(--primary-color) !important;
}

body.home-editorial .demo-instructions code {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.875em;
}

body.home-editorial .demo-note {
    color: var(--text-secondary);
}

/* ---------- Financial Insights ---------- */
body.home-editorial .insights-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

body.home-editorial .insights-header {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

body.home-editorial.dark-mode .insights-header {
    background: var(--bg-primary);
}

body.home-editorial .insights-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: none;
    -webkit-text-fill-color: unset;
}

body.home-editorial .insights-header p {
    color: var(--text-secondary);
    max-width: 40rem;
    margin: 0 auto;
}

body.home-editorial .article-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
}

body.home-editorial.dark-mode .article-card {
    background: var(--bg-primary);
}

body.home-editorial .article-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

body.home-editorial .article-header {
    border-bottom-color: var(--border-color);
}

body.home-editorial .article-header h1,
body.home-editorial .article-header h2,
body.home-editorial .article-header h2 a {
    color: var(--text-primary);
}

body.home-editorial .article-meta,
body.home-editorial .article-content,
body.home-editorial .article-content p,
body.home-editorial .faq-answer {
    color: var(--text-secondary);
}

body.home-editorial .faq-question,
body.home-editorial .article-content h3 {
    color: var(--text-primary);
}

body.home-editorial .faq-item {
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

body.home-editorial.dark-mode .faq-item {
    background: var(--bg-tertiary);
}

/* ---------- Markets & Your Money ---------- */
body.home-editorial.mym-page {
    background: var(--bg-cream);
    color: var(--text-primary);
}

body.home-editorial .mym-container {
    max-width: 1120px;
    padding: 2rem 1.5rem 4rem;
}

body.home-editorial .mym-hero {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home-editorial.dark-mode .mym-hero {
    background: var(--bg-primary);
}

body.home-editorial .mym-hero h1 {
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
    font-weight: 800;
    letter-spacing: -0.03em;
}

body.home-editorial .mym-hero p {
    color: var(--text-secondary);
}

body.home-editorial .mym-disclaimer {
    background: #FFF4EB;
    border: 1px solid rgba(232, 99, 43, 0.3);
    color: var(--text-secondary);
}

body.home-editorial .mym-section-title {
    color: var(--text-primary);
}

body.home-editorial .mym-section-title svg {
    color: var(--primary-color);
}

body.home-editorial .mym-context-list li {
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    color: var(--text-secondary);
    border-radius: 12px;
}

body.home-editorial.dark-mode .mym-context-list li {
    background: var(--bg-primary);
}

body.home-editorial .mym-context-updated {
    color: var(--text-tertiary);
}

body.home-editorial .mym-tab {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
}

body.home-editorial .mym-tab:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

body.home-editorial .mym-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

body.home-editorial .mym-calc-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

body.home-editorial.dark-mode .mym-calc-panel {
    background: var(--bg-primary);
}

body.home-editorial .mym-field label {
    color: var(--text-tertiary);
}

body.home-editorial .mym-field input,
body.home-editorial .mym-field select {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

body.home-editorial.dark-mode .mym-field input,
body.home-editorial.dark-mode .mym-field select {
    background: var(--bg-tertiary);
}

body.home-editorial .mym-field input:focus,
body.home-editorial .mym-field select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(232, 99, 43, 0.15);
}

body.home-editorial .mym-field-hint {
    color: var(--text-tertiary);
}

body.home-editorial .mym-slider-value {
    color: var(--primary-color);
}

body.home-editorial .mym-field input[type="range"] {
    accent-color: var(--primary-color);
}

body.home-editorial .mym-result-card {
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
}

body.home-editorial.dark-mode .mym-result-card {
    background: var(--bg-tertiary);
}

body.home-editorial .mym-result-card.highlight {
    border-color: rgba(232, 99, 43, 0.35);
    background: #FFF4EB;
}

body.home-editorial .mym-result-card.winner {
    border-color: rgba(61, 139, 110, 0.4);
    background: var(--mint-bg);
}

body.home-editorial .mym-result-label {
    color: var(--text-tertiary);
}

body.home-editorial .mym-result-value {
    color: var(--text-primary);
}

body.home-editorial .mym-result-value.positive {
    color: var(--success-color);
}

body.home-editorial .mym-result-value.negative {
    color: var(--danger-color);
}

body.home-editorial .mym-insight {
    background: var(--mint-bg);
    border: 1px solid rgba(61, 139, 110, 0.25);
    color: var(--text-secondary);
}

body.home-editorial .mym-scenario-card,
body.home-editorial .mym-tool-card,
body.home-editorial .mym-article-link {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    color: var(--text-primary);
}

body.home-editorial.dark-mode .mym-scenario-card,
body.home-editorial.dark-mode .mym-tool-card,
body.home-editorial.dark-mode .mym-article-link {
    background: var(--bg-primary);
}

body.home-editorial .mym-scenario-card:hover,
body.home-editorial .mym-tool-card:hover {
    border-color: rgba(232, 99, 43, 0.4);
    transform: none;
    box-shadow: var(--shadow-md);
}

body.home-editorial .mym-scenario-card h4,
body.home-editorial .mym-tool-card h4 {
    color: var(--text-primary);
}

body.home-editorial .mym-tool-card h4 {
    color: var(--primary-color);
}

body.home-editorial .mym-scenario-card p,
body.home-editorial .mym-tool-card p {
    color: var(--text-secondary);
}

body.home-editorial .mym-article-link:hover {
    border-color: rgba(232, 99, 43, 0.4);
    color: var(--primary-color);
}

body.home-editorial .mym-cta-link {
    color: var(--primary-color);
}

body.home-editorial .mym-cta-link:hover {
    color: var(--primary-hover);
}

body.home-editorial .mym-footer-note {
    color: var(--text-tertiary);
}

/* ---------- Reports ---------- */
body.home-editorial.reports-page .reports-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

body.home-editorial.reports-page .reports-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

body.home-editorial.reports-page .reports-header h1 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

body.home-editorial.reports-page .reports-header p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

body.home-editorial.reports-page .report-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.home-editorial.dark-mode.reports-page .report-card {
    background: var(--bg-primary);
}

body.home-editorial.reports-page .report-card h2 {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.home-editorial.reports-page .stat-label {
    color: var(--text-secondary);
}

body.home-editorial.reports-page .stat-value {
    color: var(--text-primary);
}

body.home-editorial.reports-page .stat-value.positive {
    color: var(--success-color);
}

body.home-editorial.reports-page .stat-value.negative {
    color: var(--danger-color);
}

body.home-editorial.reports-page .chart-container {
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

body.home-editorial.dark-mode.reports-page .chart-container {
    background: var(--bg-tertiary);
}

body.home-editorial.reports-page .no-data {
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

body.home-editorial.dark-mode.reports-page .no-data {
    background: var(--bg-primary);
}

body.home-editorial.reports-page .export-btn {
    border-radius: 8px;
}

body.home-editorial.reports-page .export-btn-pdf {
    background: var(--danger-color);
}

body.home-editorial.reports-page .export-btn-excel {
    background: var(--success-color);
}

body.home-editorial.reports-page .category-breakdown-table th {
    background: var(--bg-cream);
    color: var(--text-primary);
}

body.home-editorial.dark-mode.reports-page .category-breakdown-table th {
    background: var(--bg-tertiary);
}

body.home-editorial.reports-page .category-breakdown-table td {
    color: var(--text-secondary);
}

body.home-editorial.reports-page .progress-bar {
    background: #F0E6DC;
}

body.home-editorial.reports-page .progress-fill {
    background: var(--primary-color);
}

body.home-editorial.reports-page .dashboard-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

body.home-editorial.dark-mode.reports-page .dashboard-section {
    background: var(--bg-primary);
}

body.home-editorial.reports-page .dashboard-header {
    background: var(--primary-color);
    color: #fff;
}

body.home-editorial.reports-page .dashboard-title {
    color: #fff;
    font-weight: 700;
}

body.home-editorial.reports-page .dashboard-header-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.home-editorial.reports-page .dashboard-header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

body.home-editorial.reports-page .dashboard-content,
body.home-editorial.reports-page .dashboard-chart-card {
    background: transparent;
    border-color: var(--border-color);
}

body.home-editorial.reports-page .chart-title {
    color: var(--text-primary);
}

body.home-editorial.reports-page .chart-header {
    border-bottom-color: var(--border-color);
}

body.home-editorial.reports-page .chart-time-filter {
    background: var(--bg-cream);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

body.home-editorial.reports-page .chart-legend,
body.home-editorial.reports-page .legend-item {
    color: var(--text-secondary);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    body.home-editorial .hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    body.home-editorial .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    body.home-editorial .sample-transactions li {
        grid-template-columns: 3.25rem 1fr auto;
        grid-template-rows: auto auto;
    }

    body.home-editorial .sample-tx-tag {
        grid-column: 2;
        justify-self: start;
    }

    body.home-editorial .sample-tx-amount {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}

@media (max-width: 640px) {
    body.home-editorial .landing-hero {
        padding-top: 2rem;
    }

    body.home-editorial .sample-stats {
        grid-template-columns: 1fr;
    }

    body.home-editorial .privacy-banner {
        flex-direction: column;
        gap: 0.875rem;
    }

    body.home-editorial .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- Feedback form (Web3Forms) ---------- */
body.home-editorial .feedback-section {
    background: linear-gradient(165deg, #f8faf8 0%, #f1f6f3 52%, #eaf2ed 100%) !important;
    border: 1px solid #c9ddd2 !important;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    padding: 2rem 1.5rem 1.75rem !important;
    margin: 1.5rem auto 0 !important;
    max-width: 1120px;
    width: calc(100% - 3rem);
}

body.home-editorial .feedback-section > .section-title {
    text-align: center;
    width: 100%;
    margin: 0 0 0.75rem;
}

body.home-editorial .feedback-intro {
    text-align: center;
    color: var(--text-secondary) !important;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

body.home-editorial .feedback-form {
    max-width: 40rem;
    margin: 0 auto;
}

body.home-editorial .feedback-honeypot {
    display: none !important;
    position: absolute;
    left: -9999px;
}

body.home-editorial .feedback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 640px) {
    body.home-editorial .feedback-grid {
        grid-template-columns: 1fr;
    }
}

body.home-editorial .feedback-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

body.home-editorial .feedback-field label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary) !important;
}

body.home-editorial .feedback-field input,
body.home-editorial .feedback-field select,
body.home-editorial .feedback-field textarea {
    width: 100%;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--text-primary) !important;
    padding: 0.7rem 0.85rem !important;
    font: inherit;
    box-sizing: border-box;
}

body.home-editorial .feedback-field textarea {
    resize: vertical;
    min-height: 7rem;
}

body.home-editorial .feedback-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

body.home-editorial .feedback-submit {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 1.35rem !important;
    font-weight: 700;
    cursor: pointer;
}

body.home-editorial .feedback-submit:hover:not(:disabled) {
    background: var(--primary-hover) !important;
}

body.home-editorial .feedback-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

body.home-editorial .feedback-status {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
}

body.home-editorial .feedback-status.is-success {
    color: #047857 !important;
}

body.home-editorial .feedback-status.is-error {
    color: #B91C1C !important;
}

/* ---------- Share & win giveaway ---------- */
body.home-editorial .share-win-section {
    background: linear-gradient(165deg, #fff8f2 0%, #fff1e6 50%, #ffe9d8 100%) !important;
    border: 1px solid #efd0b8 !important;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    padding: 2rem 1.5rem 1.5rem !important;
    margin: 1.5rem auto 0 !important;
    max-width: 1120px;
    width: calc(100% - 3rem);
}

body.home-editorial .share-win-section > .section-title {
    text-align: center;
    width: 100%;
    margin: 0 0 0.75rem;
}

body.home-editorial .share-win-intro {
    text-align: center;
    color: var(--text-secondary) !important;
    max-width: 40rem;
    margin: 0 auto 1.25rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

body.home-editorial .share-win-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 auto 1.5rem;
    max-width: 44rem;
}

body.home-editorial .share-win-btn {
    background: #fff !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    padding: 0.55rem 0.9rem !important;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

body.home-editorial .share-win-btn:hover {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

body.home-editorial .share-win-form {
    max-width: 40rem;
    margin: 0 auto;
}

body.home-editorial .share-win-note {
    text-align: center;
    max-width: 40rem;
    margin: 1rem auto 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-tertiary) !important;
}

body.home-editorial .share-win-note a {
    color: var(--text-secondary);
    text-decoration: underline;
}

