:root {
    --primary-blue: #0052cc;
    --hero-gradient: linear-gradient(135deg, #0061ff 0%, #0033aa 100%);
    --bg-light: #f8fafc;
    --white: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
    --success: #15803d;
    --success-bg: #ecfdf3;
    --warning: #b45309;
    --warning-bg: #fff7ed;
    --danger: #b91c1c;
    --danger-bg: #fef2f2;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text-main);
    line-height: 1.7;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.92;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-padding {
    padding: 88px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-header.left-align {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 14px;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.no-margin {
    margin-bottom: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-blue);
    border: 1px solid rgba(0, 82, 204, 0.12);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.light-badge {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-light {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

/* HERO */
.hero {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 48px 0 88px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 0;
}

.hero::before {
    width: 300px;
    height: 300px;
    top: -120px;
    right: -90px;
}

.hero::after {
    width: 220px;
    height: 220px;
    left: -80px;
    bottom: -80px;
}

.hero-container,
.hero-content {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.92);
}

.hero-content {
    display: grid;
    gap: 28px;
    align-items: stretch;
}

.hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.hero-description {
    max-width: 760px;
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.92);
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
}

.hero-reassurance {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.98rem;
}

/* QUICK NAV - MINIMAL */
.quick-nav-section {
    margin-top: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-nav-simple h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.quick-nav-links a {
    font-size: 0.95rem;
    color: var(--primary-blue);
    border-bottom: 1px solid transparent;
}

.quick-nav-links a:hover {
    color: var(--primary-blue);
    border-bottom: 1px solid var(--primary-blue);
}

/* INTRO BLOCK */
.intro-block-section {
    padding-top: 52px;
}

.intro-block {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 34px;
    box-shadow: var(--shadow-sm);
}

.intro-header {
    margin-bottom: 18px;
}

.intro-block-content {
    max-width: 980px;
}

.intro-block-content p + p {
    margin-top: 14px;
}

/* CALCULATOR */
.calculator-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 24px;
    align-items: start;
}

.calculator-card,
.content-card,
.step-card,
.category-card,
.mistake-card,
.benefit-card,
.link-card,
.example-budget-card,
.trust-card,
.cta-card,
.example-use-case-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.calculator-card {
    padding: 28px;
}

.card-header {
    margin-bottom: 24px;
}

.card-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.card-header p {
    color: var(--text-muted);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7b8794;
    font-size: 0.95rem;
}

.input-with-icon input,
.input-with-icon select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0 14px 0 42px;
    background: var(--white);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.08);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.form-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-message {
    margin-top: 16px;
    min-height: 24px;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-message.error {
    color: var(--danger);
}

.form-message.success {
    color: var(--success);
}

.results-placeholder {
    min-height: 480px;
    display: grid;
    place-items: center;
    text-align: center;
    border: 1px dashed var(--border-color);
    border-radius: 18px;
    padding: 28px;
    background: #fbfdff;
}

.placeholder-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    font-size: 1.5rem;
}

.results-content.hidden {
    display: none;
}

.status-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    border: 1px solid transparent;
}

.status-banner .status-label {
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-banner.status-under {
    background: var(--success-bg);
    color: var(--success);
    border-color: rgba(21, 128, 61, 0.12);
}

.status-banner.status-balanced {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(180, 83, 9, 0.12);
}

.status-banner.status-over {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: rgba(185, 28, 28, 0.12);
}

.results-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.metric-card,
.interpretation-card,
.expense-breakdown-card,
.formula-card {
    background: #fbfdff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
}

.metric-card span {
    display: block;
    color: var(--text-muted);
    font-size: 0.94rem;
    margin-bottom: 8px;
}

.metric-card strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.visual-breakdown {
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #ffffff;
}

.visual-breakdown h4,
.interpretation-card h4,
.expense-breakdown-card h4 {
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.progress-group + .progress-group {
    margin-top: 16px;
}

.progress-label-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: #e7eef8;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0052cc 0%, #3b82f6 100%);
    transition: width 0.5s ease;
}

.savings-fill {
    background: linear-gradient(90deg, #15803d 0%, #22c55e 100%);
}

.breakdown-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.breakdown-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.breakdown-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* CONTENT */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.content-card {
    padding: 28px;
}

.content-card h2,
.content-card h3 {
    margin-bottom: 14px;
    line-height: 1.2;
}

.content-card p + p {
    margin-top: 14px;
}

.accent-card {
    background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-list i {
    color: var(--primary-blue);
    margin-top: 4px;
}

.steps-grid,
.category-grid,
.mistakes-grid,
.benefits-grid,
.links-grid {
    display: grid;
    gap: 20px;
}

.steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card,
.category-card,
.mistake-card,
.benefit-card {
    padding: 24px;
}

.step-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    font-weight: 800;
}

.step-card h3,
.category-card h3,
.mistake-card h3,
.benefit-card h3 {
    margin-bottom: 10px;
    line-height: 1.25;
}

.category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.category-card i,
.benefit-card i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.mistakes-grid,
.benefits-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.formula-line {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

/* EXAMPLE USE CASE */
.example-use-case-card {
    padding: 34px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.example-use-case-card p + p {
    margin-top: 14px;
}

/* TABLE */
.example-budget-card {
    overflow: hidden;
}

.example-budget-header {
    padding: 24px 24px 0;
}

.example-budget-header h3 {
    margin-bottom: 8px;
}

.example-budget-header p {
    color: var(--text-muted);
}

.table-wrapper {
    overflow-x: auto;
    padding: 24px;
}

.budget-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.budget-table th,
.budget-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.budget-table thead th {
    background: #f8fbff;
    color: var(--text-main);
    font-weight: 700;
}

.table-total td {
    font-weight: 800;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    text-align: left;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
}

.faq-question i {
    color: var(--primary-blue);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 22px 20px;
    color: var(--text-muted);
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* TRUST */
.trust-card {
    padding: 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.trust-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}

.trust-content h2 {
    margin-bottom: 12px;
}

.trust-content p + p {
    margin-top: 12px;
}

/* INTERNAL LINKS */
.internal-links-intro {
    max-width: 800px;
    margin: 0 auto 28px;
    text-align: center;
    color: var(--text-muted);
}

.links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.link-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px;
    color: var(--text-main);
}

.link-card i {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(0, 82, 204, 0.08);
    color: var(--primary-blue);
    flex-shrink: 0;
    font-size: 1.1rem;
}

.link-card h3 {
    font-size: 1.06rem;
    margin-bottom: 6px;
}

.link-card p {
    color: var(--text-muted);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* CTA */
.cta-section {
    padding-top: 0;
}

.cta-card {
    background: var(--hero-gradient);
    color: var(--white);
    padding: 36px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.cta-content,
.cta-actions {
    position: relative;
    z-index: 1;
}

.cta-content {
    max-width: 760px;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 12px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* UTILITIES */
.hidden {
    display: none !important;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .hero-content,
    .calculator-grid,
    .content-grid,
    .steps-grid,
    .category-grid,
    .mistakes-grid,
    .benefits-grid,
    .links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 68px 0;
    }

    .hero {
        padding: 38px 0 68px;
    }

    .quick-nav-simple h2 {
        font-size: 1rem;
    }

    .quick-nav-links {
        gap: 8px 12px;
    }

    .quick-nav-links a {
        font-size: 0.9rem;
        padding: 6px 0; /* easier tap */
    }

    .hero-content,
    .calculator-grid,
    .content-grid,
    .steps-grid,
    .category-grid,
    .mistakes-grid,
    .benefits-grid,
    .links-grid,
    .results-metrics {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .form-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-highlight-card,
    .calculator-card,
    .content-card,
    .step-card,
    .category-card,
    .mistake-card,
    .benefit-card,
    .link-card,
    .trust-card,
    .cta-card,
    .intro-block,
    .example-use-case-card {
        border-radius: 18px;
    }

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

    .status-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: 2.25rem;
    }

    .section-header h2,
    .cta-content h2 {
        font-size: 1.9rem;
    }

    .calculator-card,
    .content-card,
    .step-card,
    .category-card,
    .mistake-card,
    .benefit-card,
    .link-card,
    .trust-card,
    .cta-card,
    .intro-block,
    .example-use-case-card {
        padding: 22px;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-answer p {
        padding: 0 18px 18px;
    }
}

@media (max-width: 480px) {
    .quick-nav-links {
        flex-direction: column;
        gap: 6px;
    }

    .quick-nav-links a {
        display: block;
        width: 100%;
    }
}