/* Masomat (מסומט) — Design System */

:root {
    /* Primary — Deep navy with warmth */
    --primary: #1e3a5f;
    --primary-dark: #0f2440;
    --primary-light: #eef3f9;
    --primary-50: #f0f5fa;

    /* Accent — Warm gold (shekel-inspired) */
    --accent: #c8964e;
    --accent-light: #faf5ed;
    --accent-dark: #a07a3a;

    /* Semantic */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;

    /* Text */
    --text: #1a1d23;
    --text-secondary: #4a5568;
    --text-muted: #8896a7;

    /* Surfaces */
    --bg: #f8f9fb;
    --bg-warm: #fafaf8;
    --white: #ffffff;
    --border: #e2e6ed;
    --border-light: #eef1f5;

    /* Shadows */
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
    --shadow-xs: 0 1px 2px rgba(30,58,95,0.04);
    --shadow-sm: 0 1px 3px rgba(30,58,95,0.06), 0 1px 2px rgba(30,58,95,0.04);
    --shadow: 0 4px 6px -1px rgba(30,58,95,0.07), 0 2px 4px -2px rgba(30,58,95,0.05);
    --shadow-md: 0 8px 16px -4px rgba(30,58,95,0.08), 0 4px 6px -2px rgba(30,58,95,0.04);
    --shadow-lg: 0 20px 40px -8px rgba(30,58,95,0.12), 0 8px 16px -4px rgba(30,58,95,0.06);

    /* Motion */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    unicode-bidi: embed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container { flex: 1; }

h1 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
h3 { font-weight: 600; line-height: 1.4; }

/* Force LTR for elements that contain code/English identifiers */
.logo, .footer-logo, .tag, .download-icon,
.data-table .num,
code, pre, .ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

.data-table td, .data-table th {
    text-align: left;
    direction: ltr;
    unicode-bidi: isolate;
}

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

/* ============ Navbar ============ */
.navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 230, 237, 0.6);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 1px 8px rgba(30,58,95,0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(30,58,95,0.2), 0 1px 2px rgba(30,58,95,0.1);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(30,58,95,0.3), 0 2px 4px rgba(30,58,95,0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(30,58,95,0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.btn-large { padding: 14px 36px; font-size: 1rem; border-radius: var(--radius); }
.btn-full { width: 100%; text-align: center; }

/* ============ Hero ============ */
.hero {
    text-align: center;
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse at center, rgba(30,58,95,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-badge {
    display: inline-block;
    padding: 6px 20px;
    background: var(--accent-light);
    color: var(--accent-dark);
    border: 1px solid rgba(200,150,78,0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
    line-height: 1.8;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.trust-item svg { color: var(--success); flex-shrink: 0; }

/* ============ Sections ============ */
.features, .how-it-works, .pricing-preview, .cost-compare, .legal-notice {
    padding: 60px 0;
}

.features h2, .how-it-works h2, .pricing-preview h2, .cost-compare h2, .legal-notice h2 {
    text-align: center;
    font-size: 1.85rem;
    margin-bottom: 12px;
    color: var(--text);
}

.section-heading-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 48px;
    font-weight: 400;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: transparent;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--primary);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ============ Steps ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background: linear-gradient(to left, var(--border), var(--primary-light), var(--border));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(30,58,95,0.2);
}

.step h3 { margin-bottom: 8px; font-weight: 600; color: var(--text); }
.step p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ============ Pricing ============ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    position: relative;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--accent);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--white);
    padding: 5px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(200,150,78,0.3);
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    margin: 20px 0;
    letter-spacing: -0.03em;
}

.price .currency {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.price .price-label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-card ul {
    list-style: none;
    text-align: right;
    margin: 28px 0;
    padding: 0;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-card li:last-child { border-bottom: none; }

.pricing-card li:after {
    content: " \2713";
    color: var(--success);
    font-weight: 700;
}

.pricing-card li:before { content: none; }

/* ============ Notice box ============ */
.notice-box {
    background: linear-gradient(135deg, #fffbeb, #fff9e6);
    border: 1px solid rgba(252, 211, 77, 0.4);
    border-radius: var(--radius-lg);
    padding: 32px 36px;
    margin: 0 auto;
    max-width: 800px;
    border-right: 4px solid #fbbf24;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.notice-box p:not(:last-child) {
    margin-bottom: 12px;
}

.notice-box a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.notice-box a:hover {
    color: var(--accent-dark);
}

.notice-box.critical {
    background: linear-gradient(135deg, #fef2f2, #fef1f1);
    border-color: rgba(252, 165, 165, 0.4);
    border-right-color: #f87171;
}

/* ============ Cost Comparison ============ */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 820px;
    margin: 0 auto 24px;
}

.compare-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--border);
    position: relative;
}

.compare-card.compare-traditional {
    opacity: 0.75;
}

.compare-card.compare-us {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: var(--shadow-lg);
}

.compare-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
}

.compare-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.compare-price {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.compare-amount {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.compare-us .compare-amount {
    color: var(--primary);
}

.compare-unit {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.compare-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.compare-card li {
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.compare-card li:last-child { border-bottom: none; }

.compare-card li:after {
    flex-shrink: 0;
    order: -1;
}

.compare-traditional li:after {
    content: "\2717";
    color: var(--danger);
    opacity: 0.5;
}

.compare-us li:after {
    content: "\2713";
    color: var(--success);
}

.compare-footnote {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============ Upload ============ */
.upload-section {
    max-width: 700px;
    margin: 40px auto;
}

.upload-section h1 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 2rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.upload-requirements {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
    border-radius: var(--radius);
    padding: 28px;
    margin-bottom: 32px;
    border: 1px solid rgba(30,58,95,0.08);
}

.upload-requirements h3 { margin-bottom: 8px; }

.section-checklist {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
}

.check-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--white);
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(30,58,95,0.12);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: default;
}

.check-item:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(200,150,78,0.12);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    flex-shrink: 0;
}

.check-item.optional { opacity: 0.7; }
.check-item.optional .check-icon { background: var(--text-muted); }

.upload-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 22px; }

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

.form-group small {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:hover { border-color: #c5cdd8; }

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,58,95,0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.file-drop {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    background: var(--bg);
}

.file-drop p:first-of-type {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 4px;
}

.file-drop:hover, .file-drop.dragover {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(30,58,95,0.06);
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop-icon {
    margin-bottom: 12px;
    color: var(--text-muted);
    transition: color var(--transition);
}

.file-drop:hover .file-drop-icon,
.file-drop.dragover .file-drop-icon {
    color: var(--primary);
}

.file-hint { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; }

.upload-note {
    margin-top: 12px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #fffbeb, #fff9e6);
    border: 1px solid rgba(252, 211, 77, 0.4);
    border-right: 3px solid #fbbf24;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.6;
    color: #92400e;
}

.upload-note-warning {
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
    border-color: rgba(248, 113, 113, 0.4);
    border-right-color: #ef4444;
    color: #991b1b;
}

.file-list-wrapper {
    margin-top: 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.file-list { display: flex; flex-direction: column; }

.file-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--primary-light);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
}

.file-list-item:last-child { border-bottom: none; }
.file-list-name { flex: 1; word-break: break-all; }
.file-list-name.file-list-warn { color: var(--danger); }

.file-list-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0 0 0 12px;
    line-height: 1;
    transition: opacity var(--transition-fast);
}

.file-list-remove:hover { opacity: 0.6; }

.btn-add-more {
    width: 100%;
    padding: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    border: none;
    border-top: 1px dashed var(--border);
    border-radius: 0;
    background: var(--bg);
    color: var(--primary);
    cursor: pointer;
    transition: background var(--transition-fast);
    font-weight: 500;
}

.btn-add-more:hover { background: var(--primary-light); }

.consent { font-size: 0.85rem; color: var(--text-muted); }

.consent label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 400;
}

.consent input[type="checkbox"] { margin-top: 3px; }

/* Signature pad */
.signature-wrapper {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    background: var(--white);
    transition: border-color var(--transition-fast);
}

.signature-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30,58,95,0.08);
}

#signatureCanvas {
    width: 100%;
    height: 150px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    cursor: crosshair;
    background: #fdfdfd;
    touch-action: none;
}

.signature-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.signature-hint { font-size: 0.8rem; color: var(--text-muted); }

.btn-small { padding: 4px 12px; font-size: 0.8rem; }

/* ============ Report ============ */
.report-section { padding: 40px 0; }

.report-section h1 {
    text-align: center;
    margin-bottom: 12px;
    font-size: 2rem;
}

.report-success-icon {
    text-align: center;
    margin-bottom: 16px;
    color: var(--success);
}

.report-success-icon svg { width: 56px; height: 56px; }

.alert {
    padding: 18px 22px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fff9e6);
    border: 1px solid rgba(252, 211, 77, 0.4);
    border-right: 4px solid #fbbf24;
}

.alert h3 { margin-bottom: 8px; font-size: 1rem; }
.alert ul { margin-left: 20px; font-size: 0.9rem; }

.summary-grid, .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 12px 0 0;
}

.summary-card, .report-block {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.report-block h3 { margin-bottom: 8px; font-weight: 700; font-size: 1.1rem; }

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stat { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}

.stat-value.profit { color: var(--success); }
.stat-value.loss { color: var(--danger); }

.total-block {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: none;
}

.total-block h3 { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 1rem; }
.total-block.loss-block { background: linear-gradient(135deg, var(--warning), #b45309); }
.total-block.loss-block .total-amount { color: var(--white); }

.total-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 16px 0;
    letter-spacing: -0.02em;
}

.total-note { opacity: 0.8; font-size: 0.85rem; }
.total-disclaimer { opacity: 0.65; font-size: 0.8rem; margin-top: 8px; }
.tax-shield-residual { font-size: 0.95rem; opacity: 0.9; margin-top: 6px; }
.stat-footnote { opacity: 0.6; font-size: 0.78rem; margin-top: 10px; text-align: center; }

/* Paywall blur */
.blurred-value {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.blurred-value-light {
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
}

.blurred-block {
    position: relative;
    overflow: hidden;
}

.blurred-block .stat-grid,
.blurred-block .stat-footnote {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}

.blurred-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
    cursor: default;
}

/* ============ Methodology ============ */
.methodology { max-width: 800px; margin: 40px auto; }
.methodology-intro { font-size: 1.05rem; opacity: 0.85; margin-bottom: 32px; line-height: 1.7; }
.meth-section { margin-bottom: 36px; }
.meth-section h2 { font-size: 1.15rem; margin-bottom: 12px; color: var(--primary); }
.meth-formula {
    background: var(--bg-secondary); border-radius: 8px; padding: 14px 18px;
    margin: 12px 0; direction: ltr; unicode-bidi: isolate; font-family: monospace;
}
.meth-formula-label { font-size: 0.78rem; opacity: 0.6; margin-bottom: 4px; font-family: var(--font-stack); direction: rtl; }
.meth-formula code { font-size: 0.95rem; color: var(--text-primary); }
.meth-formula-note { display: block; font-size: 0.78rem; opacity: 0.55; margin-top: 4px; font-family: var(--font-stack); direction: rtl; }
.meth-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.9rem; }
.meth-table th { background: var(--bg-secondary); padding: 10px 12px; text-align: right; font-weight: 600; border-bottom: 2px solid var(--border); }
.meth-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.meth-table td.profit { color: var(--success); font-weight: 600; }
.meth-table td.loss { color: var(--error); font-weight: 600; }
.meth-table code { font-size: 0.82rem; background: var(--bg-secondary); padding: 2px 5px; border-radius: 3px; }
.meth-note {
    background: #f0f7ff; border-right: 3px solid var(--primary); padding: 10px 14px;
    border-radius: 0 6px 6px 0; font-size: 0.88rem; margin: 12px 0; line-height: 1.6;
}

/* ============ Debug Banner ============ */
.debug-download {
    background: #fff3cd; border: 2px dashed #ffc107; border-radius: 10px;
    padding: 16px 20px; margin: 16px 0; text-align: center;
}
.debug-download .debug-label {
    display: inline-block; background: #ffc107; color: #000; font-size: 0.72rem;
    font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ============ Downloads ============ */
.downloads { margin: 32px 0; }
.downloads h2 { margin-bottom: 16px; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px;
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.download-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.download-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 14px;
    transition: all var(--transition);
}

.download-card:hover .download-icon {
    background: var(--primary);
    color: var(--white);
}

.download-name { font-weight: 600; }
.download-desc { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* ============ Data Table ============ */
.table-wrapper { overflow-x: auto; margin: 16px 0; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th {
    background: var(--primary);
    color: var(--white);
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}

.data-table tr:nth-child(even) { background: var(--bg); }
.data-table tr:hover { background: var(--primary-light); }

.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .profit { color: var(--success); }
.data-table .loss { color: var(--danger); }

.data-table tfoot .totals-row td {
    font-weight: 700;
    border-top: 2px solid var(--border);
    padding-top: 10px;
}

.data-table tfoot .net-row td {
    font-size: 1.05rem;
    padding-top: 6px;
    padding-bottom: 12px;
}

.detail-section { margin: 32px 0; }
.detail-section h2 { margin-bottom: 16px; }

/* ============ Report disclaimer ============ */
/* PDF Preview */
.pdf-preview-wrapper {
    margin-bottom: 36px;
}

.pdf-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.pdf-preview-label svg { color: var(--accent); }

.pdf-preview-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: #525659;
}

/* Clip the top to hide the browser PDF toolbar */
.pdf-preview-clip {
    margin-top: -42px;
    height: 580px;
}

.pdf-preview-clip iframe {
    width: 100%;
    height: calc(100% + 42px);
    border: none;
    display: block;
}

.pdf-preview-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(248, 249, 251, 0) 0%,
        rgba(248, 249, 251, 0.5) 35%,
        rgba(248, 249, 251, 0.92) 70%,
        rgba(248, 249, 251, 1) 100%
    );
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    gap: 6px;
}

.pdf-preview-fade span {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Merged info + disclaimer block on report page */
.report-info-block {
    margin-top: 28px;
    background: linear-gradient(135deg, var(--bg), var(--accent-light));
    border: 1.5px solid var(--border);
    border-right: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 28px 32px;
}

.report-info-block h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.report-info-content p {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.report-info-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.report-info-content li {
    padding: 5px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.report-info-content li:before { content: "\1F512 "; }

.report-info-disclaimer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.report-info-disclaimer p {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.7;
}

/* ============ Guide ============ */
.guide-section {
    max-width: 800px;
    margin: 40px auto;
}

.guide-section h1 {
    text-align: center;
    margin-bottom: 8px;
}

.guide-steps { margin: 40px 0; }

.guide-step {
    background: var(--white);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.guide-step h3 { color: var(--primary); margin-bottom: 8px; }

.config-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.config-table th, .config-table td {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    text-align: left;
}

.config-table th { background: var(--bg); }

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 12px 0;
}

.section-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.section-item.required { background: #ecfdf5; }
.section-item.optional { background: var(--primary-light); }

.section-check { color: var(--success); font-size: 1.1rem; font-weight: 700; }
.section-name { flex: 1; font-weight: 500; }

.section-badge {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    background: var(--success);
    color: var(--white);
}

.section-badge.optional { background: var(--primary); }

.guide-notes {
    background: linear-gradient(135deg, #fffbeb, #fff9e6);
    border: 1px solid rgba(252, 211, 77, 0.4);
    border-right: 4px solid #fbbf24;
    border-radius: var(--radius);
    padding: 24px;
    margin: 24px 0;
}

.guide-notes ul { margin-left: 20px; }
.guide-notes li { margin-bottom: 8px; }

.cta-box {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
    border-radius: var(--radius);
    margin: 32px 0;
    border: 1px solid rgba(30,58,95,0.08);
}

.cta-box h3 { margin-bottom: 16px; }

/* ============ Legal pages ============ */
.legal-page {
    max-width: 800px;
    margin: 40px auto;
}

.legal-page h1 { margin-bottom: 8px; }
.last-updated { color: var(--text-muted); margin-bottom: 32px; }

.legal-content h2 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: var(--primary-dark);
}

.legal-content h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.legal-content ul { margin: 8px 0 16px 24px; }
.legal-content li { margin-bottom: 6px; }

/* ============ Pricing FAQ ============ */
.pricing-faq {
    max-width: 700px;
    margin: 48px auto 0;
}

.pricing-faq h2 { text-align: center; margin-bottom: 24px; }

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.faq-item h4 { margin-bottom: 8px; color: var(--text); font-weight: 600; }
.faq-item p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: box-shadow var(--transition);
}

.contact-card:hover { box-shadow: var(--shadow-md); }

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    flex-shrink: 0;
}

.contact-card-body h3 {
    font-size: 1.05rem;
    margin: 2px 0 6px;
}

.contact-card-body p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.contact-email {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    border-bottom: 1px dashed var(--primary);
    padding-bottom: 2px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contact-email:hover { color: var(--accent-dark); border-color: var(--accent-dark); }

.contact-faq { margin-top: 16px; }
.contact-faq h2 { margin-bottom: 4px; }

@media (max-width: 600px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* Pricing section page */
.pricing-section {
    max-width: 900px;
    margin: 40px auto;
}

.pricing-section h1 {
    text-align: center;
    margin-bottom: 8px;
}

/* Pricing examples */
.pricing-example {
    max-width: 500px;
    margin: 32px auto 0;
}

.pricing-example h3 {
    text-align: center;
    margin-bottom: 16px;
}

.example-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.example-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.example-item:hover {
    background: var(--primary-light);
    border-color: rgba(30,58,95,0.1);
}

.example-price { font-weight: 700; color: var(--primary); }

/* Pricing breakdown on report page */
.pricing-block {
    margin-top: 28px;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.pricing-block h3 { font-size: 1.15rem; }

.pricing-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.pricing-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.pricing-line.pricing-total {
    border-bottom: none;
    border-top: 2px solid var(--text);
    padding-top: 14px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
}

.pricing-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.locked-hint {
    margin-top: 24px;
    padding: 28px;
    background: linear-gradient(135deg, var(--bg), var(--accent-light));
    border: 1.5px dashed var(--accent);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.locked-hint p {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    font-size: 1rem;
}

.locked-hint ul { list-style: none; padding: 0; margin: 0; }
.locked-hint li { padding: 6px 0; }
.locked-hint li:before { content: "\1F512 "; }

/* ============ Success ============ */
.success-section { padding: 100px 0; text-align: center; }

.success-box {
    background: var(--white);
    padding: 56px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--success);
    max-width: 520px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.success-box h1 {
    color: var(--success);
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.success-box p { margin-bottom: 24px; color: var(--text-secondary); }

.success-icon { color: var(--success); margin-bottom: 20px; }

/* ============ Footer ============ */
.footer {
    background: linear-gradient(180deg, #1a1d23, #111317);
    color: #9aa3b0;
    padding: 56px 0 28px;
    margin-top: 80px;
}

.footer-main {
    display: flex;
    gap: 80px;
    padding-bottom: 32px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 14px;
    direction: ltr;
    unicode-bidi: isolate;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover { opacity: 0.85; }
.footer-logo svg { color: var(--accent); }
.footer-logo span { letter-spacing: -0.01em; }

.footer-brand p {
    font-size: 0.84rem;
    line-height: 1.7;
    color: #6b7585;
}

.footer-nav {
    display: flex;
    gap: 56px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col h4 {
    color: #c0c7d0;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.footer-col a {
    color: #7a8494;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-fast);
    white-space: nowrap;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
    text-align: center;
    font-size: 0.78rem;
    color: #4a5260;
}

.help-link { margin-top: 12px; font-size: 0.9rem; }

/* ============ Scroll Pill CTA ============ */
.scroll-pill {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 32px rgba(30,58,95,0.35), 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.scroll-pill.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.scroll-pill:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 40px rgba(30,58,95,0.45), 0 4px 12px rgba(0,0,0,0.2);
}

.scroll-pill-text {
    color: inherit;
}

.scroll-pill-arrow {
    display: flex;
    animation: pillBounce 1.8s ease-in-out infinite;
}

@keyframes pillBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============ Animations ============ */

/* Page enter */
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

main.container {
    animation: pageEnter 0.4s ease-out both;
}

/* Keyframes */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes countPop {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.12); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hero — immediate load animations, staggered */
.hero h1 {
    animation: fadeInDown 0.6s ease-out both;
}

.hero-subtitle {
    animation: fadeInUp 0.6s 0.15s ease-out both;
}

.hero-actions {
    animation: fadeInUp 0.5s 0.3s ease-out both;
}

.hero-trust {
    animation: fadeInUp 0.5s 0.45s ease-out both;
}

/* Scroll-triggered: hidden by default, revealed by .in-view */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-up { transform: translateY(28px); }
.reveal.reveal-down { transform: translateY(-16px); }
.reveal.reveal-right { transform: translateX(30px); }
.reveal.reveal-left { transform: translateX(-30px); }
.reveal.reveal-scale { transform: scale(0.92); }

.reveal.in-view {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger children — delay via CSS custom property */
.reveal-stagger > .reveal { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Step number pop */
.step-number {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.reveal.in-view .step-number {
    animation: countPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* Compare cards slide from sides */
.compare-traditional.reveal { transform: translateX(30px); }
.compare-us.reveal { transform: translateX(-30px); }

/* Feature card hover lift is already defined; add a subtle shimmer on reveal */
.feature-card.reveal.in-view {
    box-shadow: var(--shadow-sm);
}

/* Trust items fade in one by one */
.trust-item {
    opacity: 0;
    animation: fadeInUp 0.4s ease-out both;
}
.trust-item:nth-child(1) { animation-delay: 0.5s; }
.trust-item:nth-child(2) { animation-delay: 0.65s; }
.trust-item:nth-child(3) { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .trust-item { opacity: 1; }
}

/* ============ Hamburger toggle (hidden on desktop) ============ */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-toggle:hover { background: var(--primary-light); }

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Responsive ============ */

/* Tablet */
@media (max-width: 960px) {
    .compare-grid { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; padding: 0 20px; }
    .compare-traditional.reveal, .compare-us.reveal { transform: none; }
    .feature-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .footer-nav { gap: 40px; }
    .cost-compare, .features, .how-it-works, .legal-notice { padding-left: 20px; padding-right: 20px; }
}

/* Mobile */
@media (max-width: 768px) {
    /* Base — larger text for readability */
    .container { padding: 0 20px; }
    body { font-size: 15px; }

    /* Navbar — hamburger drawer */
    .navbar { padding: 10px 0; }
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        order: 3;
        padding-top: 12px;
        margin-top: 12px;
        border-top: 1px solid var(--border-light);
    }

    .nav-links.open { display: flex; }

    .nav-links a {
        font-size: 0.95rem;
        padding: 12px 8px;
        border-radius: 0;
        border-bottom: 1px solid var(--border-light);
        text-align: right;
    }

    .nav-links a:last-child { border-bottom: none; }

    .navbar .container {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: space-between;
    }

    .logo { font-size: 1.1rem; order: 1; }
    .logo svg { width: 20px; height: 20px; }

    /* Hero — centered, punchy, breathing room */
    .hero { padding: 40px 0 36px; }
    .hero::before { width: 400px; height: 300px; top: -60px; }
    .hero h1 { font-size: 1.65rem; margin-bottom: 16px; }
    .hero-subtitle { font-size: 0.92rem; line-height: 1.7; margin-bottom: 28px; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .hero-actions .btn { padding: 14px 20px; font-size: 1rem; }
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: -8px;
    }
    .trust-item { font-size: 0.82rem; }

    /* Sections — tighter vertical rhythm */
    .features, .how-it-works, .cost-compare, .legal-notice { padding: 36px 0; }
    .features h2, .how-it-works h2, .cost-compare h2, .legal-notice h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    .section-heading-sub { font-size: 0.88rem; margin-bottom: 28px; }

    /* Steps — horizontal scroll cards on mobile */
    .steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .steps::before { display: none; }
    .step {
        display: flex;
        align-items: flex-start;
        gap: 16px;
        text-align: right;
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius);
        border: 1px solid var(--border-light);
        box-shadow: var(--shadow-xs);
    }
    .step-number {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
        margin: 0;
    }
    .step h3 { font-size: 0.95rem; }
    .step p { font-size: 0.85rem; }

    /* Cards — full-width, touch-friendly padding */
    .pricing-cards { grid-template-columns: 1fr; }
    .pricing-card { padding: 28px 22px; }
    .pricing-card li { padding: 11px 0; font-size: 0.88rem; }
    .price { font-size: 2.4rem; }

    .compare-card { padding: 26px 22px; }
    .compare-amount { font-size: 1.4rem; }
    .compare-card li { padding: 8px 0; font-size: 0.86rem; }
    .compare-badge { font-size: 0.74rem; padding: 4px 12px; }

    .feature-card {
        padding: 22px 20px;
    }
    .feature-card h3 { font-size: 1.05rem; }
    .feature-card p { font-size: 0.88rem; }

    /* Notice box */
    .notice-box {
        padding: 22px 20px;
        font-size: 0.88rem;
        border-radius: var(--radius);
    }

    /* Upload page */
    .upload-section { margin: 20px auto; }
    .upload-section h1 { font-size: 1.4rem; }
    .section-subtitle { font-size: 0.88rem; }
    .upload-form { padding: 20px 16px; border-radius: var(--radius); }
    .form-row { grid-template-columns: 1fr; }
    .form-input, select.form-input { font-size: 16px; } /* prevent iOS zoom */
    .section-checklist { justify-content: flex-start; }
    .check-item { font-size: 0.84rem; padding: 7px 14px; }
    .file-drop { padding: 28px 16px; }
    .file-drop p { font-size: 0.88rem; }
    .upload-note { font-size: 0.82rem; }
    .consent label { font-size: 0.85rem; line-height: 1.6; }

    /* Report page */
    .report-section { margin: 20px auto; }
    .report-section h1 { font-size: 1.4rem; margin-bottom: 4px; }
    .report-summary h2 { font-size: 1.3rem; }
    .report-success-icon svg { width: 36px; height: 36px; }
    .report-success-icon { margin-bottom: 12px; }

    .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-item { padding: 14px 12px; border-radius: var(--radius-sm); }
    .stat-label { font-size: 0.72rem; margin-bottom: 4px; }
    .stat-value { font-size: 1rem; }

    .report-block {
        padding: 18px 16px;
        border-radius: var(--radius);
        margin-bottom: 12px;
    }
    .report-block h3 { font-size: 1rem; }
    .total-amount { font-size: 1.7rem; }
    .total-disclaimer { font-size: 0.78rem; }

    /* PDF preview — shorter, cleaner */
    .pdf-preview-frame { border-radius: var(--radius); }
    .pdf-preview-clip { height: 340px; margin-top: -36px; }
    .pdf-preview-clip iframe { height: calc(100% + 36px); }
    .pdf-preview-fade { height: 140px; padding-bottom: 16px; }
    .pdf-preview-fade svg { width: 22px; height: 22px; }
    .pdf-preview-fade span { font-size: 0.76rem; }
    .pdf-preview-label { font-size: 0.85rem; }

    /* Info block */
    .report-info-block { padding: 18px 16px; }
    .report-info-block h3 { font-size: 1rem; }
    .report-info-content p { font-size: 0.88rem; }
    .report-info-content li { font-size: 0.84rem; }
    .report-info-disclaimer p { font-size: 0.8rem; }

    /* Pricing block on report */
    .pricing-breakdown { gap: 6px; }
    .pricing-line { font-size: 0.86rem; padding: 8px 0; }
    .pricing-line.pricing-total { font-size: 0.95rem; }

    /* Scroll pill — full width on mobile */
    .scroll-pill {
        left: 20px;
        right: 20px;
        bottom: 16px;
        transform: translateX(0) translateY(80px);
        width: auto;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        border-radius: var(--radius);
    }
    .scroll-pill.visible {
        transform: translateX(0) translateY(0);
    }

    /* Guide */
    .guide-section { margin: 20px auto; }
    .guide-section h1 { font-size: 1.4rem; }
    .guide-step { padding: 18px 16px; }
    .guide-step h3 { font-size: 1rem; }
    .guide-step p, .guide-step li { font-size: 0.88rem; }
    .section-grid { grid-template-columns: 1fr; gap: 8px; }
    .section-item { padding: 10px 12px; }
    .config-table { font-size: 0.82rem; }
    .config-table td, .config-table th { padding: 8px 10px; }

    /* Pricing page */
    .pricing-section { margin: 20px auto; }
    .pricing-section h1 { font-size: 1.4rem; }
    .example-grid { grid-template-columns: 1fr; }
    .example-item { padding: 14px 16px; }
    .faq-item h4 { font-size: 0.95rem; }
    .faq-item p { font-size: 0.86rem; }

    /* Footer — stacked, compact */
    .footer { padding: 32px 0 18px; margin-top: 40px; }
    .footer-main { flex-direction: column; gap: 24px; }
    .footer-brand { max-width: 100%; }
    .footer-brand p { font-size: 0.82rem; }
    .footer-nav { gap: 28px; }
    .footer-col a { font-size: 0.85rem; padding: 2px 0; }
    .footer-bottom { font-size: 0.72rem; padding-top: 16px; }

    /* Buttons — bigger touch targets */
    .btn { min-height: 44px; }
    .btn-large { padding: 14px 24px; }
    .btn-small { min-height: 36px; }
}

/* Small phones */
@media (max-width: 400px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.45rem; }
    .hero-subtitle { font-size: 0.88rem; }
    .stat-grid { grid-template-columns: 1fr; }
    .total-amount { font-size: 1.5rem; }
    .price { font-size: 2rem; }
    .pdf-preview-clip { height: 260px; }
    .compare-header { font-size: 1rem; }
    .compare-amount { font-size: 1.25rem; }
    .scroll-pill { font-size: 0.84rem; padding: 12px 16px; }
    .step { padding: 16px; gap: 12px; }
    .step-number { width: 36px; height: 36px; min-width: 36px; font-size: 0.9rem; }
}
