/* ─── Hero Section ──────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-600) 100%);
    color: #fff;
    padding: 48px 0 32px;
    text-align: center;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.hero-title .text-gradient {
    background: linear-gradient(135deg, #a7f3d0, #6ee7b7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ─── Simulator Section ─────────────────────────────────── */
.simulator-section {
    padding: 40px 0 60px;
    margin-top: -20px;
}
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* ─── Form Panel ────────────────────────────────────────── */
.simulator-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: sticky;
    top: 80px;
}
.simulator-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}

/* CA Input Group */
.ca-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ca-manual {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-input--ca {
    width: 160px;
    font-weight: 700;
    font-size: 18px;
    text-align: right;
}
.ca-unit {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}
.ca-monthly-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Range Slider */
.form-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--primary-200) 0%, var(--primary) 0%);
    outline: none;
    cursor: pointer;
}
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    cursor: grab;
    transition: transform var(--transition);
}
.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.form-range::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.1);
}
.form-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: var(--shadow-md);
    cursor: grab;
}

/* Toggle Switches */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}
.toggle-info {
    display: flex;
    align-items: center;
    gap: 6px;
}
.toggle-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
}
.toggle-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-light);
    font-size: 11px;
    font-weight: 700;
    cursor: help;
    border: 1px solid var(--border);
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 26px;
    cursor: pointer;
    transition: all var(--transition);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}
.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

/* IR Fields Section */
.ir-separator {
    text-align: center;
    margin: 8px 0 20px;
    position: relative;
}
.ir-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}
.ir-separator span {
    position: relative;
    background: var(--bg-white);
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

/* ─── Results Panel ─────────────────────────────────────── */
.simulator-results-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.results-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.results-card--hero {
    background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
    color: #fff;
    text-align: center;
    padding: 32px 24px;
    border: none;
}
.results-hero-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.results-hero-amount {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.results-hero-annual {
    font-size: 15px;
    opacity: 0.7;
    margin-top: 8px;
}
.results-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Breakdown Bar */
.breakdown-bar {
    display: flex;
    height: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg);
}
.breakdown-segment {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 0;
}
.segment-cotisations { background: var(--color-cotisations); }
.segment-cfp { background: var(--color-cfp); }
.segment-ir { background: var(--color-ir); }
.segment-net { background: var(--color-net); }

.breakdown-legend {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-cotisations { background: var(--color-cotisations); }
.dot-cfp { background: var(--color-cfp); }
.dot-ir { background: var(--color-ir); }
.dot-net { background: var(--color-net); }
.legend-value {
    margin-left: auto;
    font-weight: 700;
    color: var(--text);
}

.results-sur100 {
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.results-sur100 strong {
    color: var(--primary);
}

/* Detail Accordion */
.detail-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.detail-item {
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.detail-item--total {
    background: var(--primary-50);
    border-color: var(--primary-200);
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.detail-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}
.detail-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.detail-amount--total {
    color: var(--primary);
    font-size: 18px;
}
.detail-sub {
    font-size: 12px;
    color: var(--text-lighter);
    margin-top: 4px;
}

/* Status Badges */
.status-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}
.badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.badge-icon--ok {
    background: var(--success-bg);
    color: #059669;
}
.badge-icon--warn {
    background: var(--warning-bg);
    color: #d97706;
}
.badge-icon--off {
    background: var(--bg);
    color: var(--text-lighter);
    border: 1px solid var(--border);
}
.badge-label {
    font-size: 11px;
    color: var(--text-lighter);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

/* Pro CTA Card */
.results-card--cta {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border: 2px dashed var(--primary-200);
    text-align: center;
}
.pro-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.pro-cta-icon {
    font-size: 32px;
}
.pro-cta-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}
.pro-cta-content p {
    font-size: 14px;
    color: var(--text-light);
    max-width: 300px;
    margin-bottom: 8px;
}

/* ─── How Section ───────────────────────────────────────── */
.how-section {
    padding: 80px 0;
    background: var(--bg-white);
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.how-card {
    text-align: center;
    padding: 32px 24px;
}
.how-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.how-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.how-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* ─── Rates Section ─────────────────────────────────────── */
.rates-section {
    padding: 80px 0;
    background: var(--bg);
}
.rates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.rate-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.rate-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary-dark);
}
.rate-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}
.rate-row span { color: var(--text-light); }
.rate-row strong { color: var(--text); }

/* ─── Pricing Section ───────────────────────────────────── */
.pricing-section {
    padding: 80px 0;
    background: var(--bg-white);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}
.pricing-card--featured {
    border-color: var(--primary);
    position: relative;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--primary);
}
.pricing-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    background: var(--bg);
    color: var(--text-light);
    margin-bottom: 16px;
}
.pricing-badge--pro {
    background: var(--primary);
    color: #fff;
}
.pricing-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.pricing-period {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 24px;
}
.pricing-features {
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.pricing-features li {
    font-size: 14px;
    padding-left: 28px;
    position: relative;
}
.feature-yes::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}
.feature-no {
    color: var(--text-lighter);
}
.feature-no::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: var(--text-lighter);
}

/* ─── FAQ Section ───────────────────────────────────────── */
.faq-section {
    padding: 80px 0;
    background: var(--bg);
}
.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--text-light);
    font-weight: 300;
    transition: transform var(--transition);
}
.faq-item[open] .faq-question::after {
    content: '-';
}
.faq-question:hover {
    background: var(--bg);
}
.faq-answer {
    padding: 0 24px 18px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-light);
}
.faq-answer ul, .faq-answer ol {
    padding-left: 20px;
    margin: 8px 0;
}
.faq-answer li {
    list-style: disc;
    margin-bottom: 4px;
}
.faq-answer ol li {
    list-style: decimal;
}

/* ─── Guides CTA Section ────────────────────────────────── */
.guides-cta-section {
    padding: 80px 0;
    background: var(--bg-white);
}
.guides-cta-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.guide-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    background: var(--bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}
.guide-cta-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.guide-cta-icon {
    font-size: 28px;
    margin-bottom: 8px;
}
.guide-cta-card h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.guide-cta-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes countUp {
    from { opacity: 0.5; }
    to { opacity: 1; }
}
.animating {
    animation: countUp 0.15s ease;
}
