:root {
    --primary: #1a56db;
    --primary-dark: #1243b0;
    --primary-light: #e8effd;
    --accent: #0ea5e9;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 50%, var(--primary-dark) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.logo-icon {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}
.logo-text { color: inherit; text-decoration: none; }
.logo-text span { color: var(--accent); }
nav { display: flex; gap: 4px; }
nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
nav a:hover, nav a.active { color: white; background: rgba(255,255,255,0.1); }

/* === STEPS INDICATOR === */
.steps-bar {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 14px 24px;
}
.steps-inner {
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.3s;
    flex-shrink: 0;
}
.step-item.active { opacity: 1; }
.step-item.done { opacity: 0.8; cursor: pointer; }
.step-num {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700;
    flex-shrink: 0;
    transition: all 0.3s;
}
.step-item.active .step-num { background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(26,86,219,0.3); }
.step-item.done .step-num { background: var(--success); color: white; }
.step-text { font-size: 0.8rem; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.step-item.active .step-text { color: var(--gray-800); }
.step-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 16px;
    min-width: 40px;
}
.step-line.done { background: var(--success); }

/* === HERO === */
.hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 50%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; position: relative; letter-spacing: -1px; }
.hero p { font-size: 1.05rem; opacity: 0.8; max-width: 550px; margin: 0 auto; position: relative; font-weight: 300; }

/* === SCREENS === */
.screen { display: none; }
.screen.active { display: block; }

/* === MAIN CONTAINER === */
.main-container {
    max-width: 1400px;
    margin: -28px auto 40px;
    padding: 0 16px;
    position: relative;
    z-index: 10;
}

/* === STEP 1: FORM CENTERED === */
.form-centered {
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

/* === STEP 2: GRID LAYOUT === */
.grid-layout {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: 20px;
    align-items: start;
}

/* === CARDS === */
.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}
.card-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.card-header-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.card-header h2 { font-size: 1rem; font-weight: 700; }
.card-header p { font-size: 0.78rem; color: var(--gray-500); margin-top: 1px; }
.card-body { padding: 20px; }

/* === FORM === */
.form-section { margin-bottom: 22px; }
.form-section:last-child { margin-bottom: 0; }
.form-section-title {
    font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--gray-400);
    margin-bottom: 14px; padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 16px;
}
.form-row:last-child { margin-bottom: 0; }
.form-row .form-group { margin-bottom: 0; }
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
    margin-bottom: 8px;
}
.form-group label .value-display { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.input-wrapper { position: relative; }
.input-wrapper .unit {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: var(--gray-400); font-size: 0.85rem; font-weight: 600; pointer-events: none;
}
input[type="number"], input[type="text"], select {
    width: 100%; padding: 11px 16px;
    border: 2px solid var(--gray-200); border-radius: 10px;
    font-size: 0.95rem; font-family: inherit; font-weight: 500;
    color: var(--gray-800); background: var(--gray-50);
    transition: all 0.2s; outline: none;
}
input:focus, select:focus {
    border-color: var(--primary); background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}
input[type="range"] {
    width: 100%; height: 6px;
    -webkit-appearance: none; appearance: none;
    border-radius: 3px; background: var(--gray-200);
    outline: none; margin-top: 4px;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px;
    border-radius: 50%; background: var(--primary);
    cursor: pointer; box-shadow: 0 2px 8px rgba(26,86,219,0.3);
    transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
    width: 22px; height: 22px; border: none;
    border-radius: 50%; background: var(--primary);
    cursor: pointer; box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; }
.range-labels .auto-hint {
    color: var(--primary);
    font-weight: 600;
}
.has-unit input { padding-right: 50px; }

/* === TOGGLES === */
.toggle-group {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--gray-50);
    border-radius: 10px; margin-bottom: 10px; border: 1px solid var(--gray-200);
}
.toggle-group:last-child { margin-bottom: 0; }
.toggle-label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.toggle-desc { font-size: 0.73rem; color: var(--gray-500); margin-top: 2px; }
.toggle { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gray-300); border-radius: 13px; transition: 0.25s;
}
.toggle-slider::before {
    content: ''; position: absolute; height: 20px; width: 20px;
    left: 3px; bottom: 3px; background: white;
    border-radius: 50%; transition: 0.25s; box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.conditional-section { max-height: 0; overflow: hidden; transition: max-height 0.3s, opacity 0.3s; opacity: 0; }
.conditional-section.visible { max-height: 500px; opacity: 1; margin-bottom: 10px; }

/* === BUTTONS === */
.btn-primary {
    width: 100%; padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none; border-radius: 10px;
    font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(26,86,219,0.25);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,0.35); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
    padding: 9px 18px; background: var(--gray-100); color: var(--gray-700);
    border: 1px solid var(--gray-200); border-radius: 8px;
    font-size: 0.82rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: var(--gray-200); }
.btn-back {
    padding: 9px 18px; background: transparent; color: var(--gray-500);
    border: 2px solid var(--gray-200); border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-back:hover { border-color: var(--gray-400); color: var(--gray-700); }

/* === RESULTS === */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}
.result-card {
    padding: 18px; border-radius: var(--radius);
    border: 1px solid var(--gray-200); background: var(--gray-50);
    text-align: center; transition: all 0.3s;
}
.result-card.highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-color: transparent;
    grid-column: span 2;
    box-shadow: 0 8px 24px rgba(26,86,219,0.2);
}
.result-card .result-label {
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    opacity: 0.7; margin-bottom: 5px;
}
.result-card .result-value { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.result-card.highlight .result-value { font-size: 2rem; }
.result-card .result-sub { font-size: 0.75rem; margin-top: 3px; opacity: 0.6; }

/* === GAUGE === */
.gauge-container {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 20px; background: var(--gray-50);
    border-radius: var(--radius); border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}
.gauge { width: 80px; height: 80px; position: relative; flex-shrink: 0; }
.gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge-text {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); font-size: 1rem; font-weight: 800;
}
.gauge-info h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.gauge-info p { font-size: 0.78rem; color: var(--gray-500); line-height: 1.4; }
.status-badge { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.73rem; font-weight: 700; margin-top: 4px; }
.status-ok { background: #d1fae5; color: #065f46; }
.status-warn { background: #fef3c7; color: #92400e; }
.status-danger { background: #fee2e2; color: #991b1b; }

/* === DONUT CHART === */
.donut-wrapper { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; }
.donut-container { position: relative; width: 200px; height: 200px; flex-shrink: 0; }
.donut-container svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut-center {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center;
}
.donut-center .donut-total-label { font-size: 0.7rem; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.donut-center .donut-total-value { font-size: 1.15rem; font-weight: 800; color: var(--gray-800); margin-top: 2px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; min-width: 180px; }
.donut-legend-item { display: flex; align-items: center; gap: 10px; }
.donut-legend-dot { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }
.donut-legend-text { display: flex; flex-direction: column; }
.donut-legend-name { font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.donut-legend-val { font-size: 0.78rem; color: var(--gray-500); }

/* === TABLE === */
.table-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.table-wrapper { overflow-x: auto; border-radius: 10px; border: 1px solid var(--gray-200); }
.table-max-height { max-height: 400px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
thead th { background: var(--gray-800); color: white; padding: 11px 12px; font-weight: 600; text-align: right; white-space: nowrap; position: sticky; top: 0; }
thead th:first-child { text-align: center; }
tbody td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--gray-100); }
tbody td:first-child { text-align: center; font-weight: 700; color: var(--primary); }
tbody tr:hover { background: var(--primary-light); }
tbody tr:last-child td { border-bottom: none; }

/* === TABS === */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--gray-100); border-radius: 10px; margin-bottom: 18px; }
.tab-btn {
    flex: 1; padding: 9px 10px; border: none; background: transparent;
    border-radius: 8px; font-size: 0.78rem; font-weight: 600;
    font-family: inherit; color: var(--gray-500); cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
}
.tab-btn.active { background: white; color: var(--gray-800); box-shadow: var(--shadow-sm); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === INFO BUTTON === */
.info-tip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    font-size: 0.6rem; font-weight: 800; cursor: pointer;
    border: none; font-family: inherit; padding: 0;
    transition: all 0.2s;
    vertical-align: baseline;
    position: relative; top: -1px;
    margin-left: 4px;
    flex-shrink: 0;
    line-height: 1;
}
.info-tip:hover { background: var(--primary); color: white; }
.toggle-desc .info-tip { top: 0; vertical-align: middle; }

/* === MODAL === */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    max-width: 480px;
    width: 100%;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.25s;
    overflow: hidden;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 {
    font-size: 1rem; font-weight: 700; color: var(--gray-800);
    display: flex; align-items: center; gap: 8px;
}
.modal-header-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 800;
}
.modal-close {
    width: 32px; height: 32px;
    border: none; background: var(--gray-100);
    border-radius: 8px;
    font-size: 1.1rem; color: var(--gray-500);
    cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.modal-body {
    padding: 22px;
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.7;
}
.modal-body p { margin-bottom: 12px; }
.modal-body p:last-child { margin-bottom: 0; }
.modal-body ul {
    margin: 8px 0 12px 20px;
    font-size: 0.85rem;
}
.modal-body ul li { margin-bottom: 4px; }
.modal-body strong { color: var(--gray-800); }

/* === COMPARISON === */
.comparison-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.comparison-card { padding: 14px; border-radius: 10px; text-align: center; }
.comparison-card.a { background: #eff6ff; border: 2px solid #bfdbfe; }
.comparison-card.b { background: #fef3c7; border: 2px solid #fcd34d; }
.comparison-card .comp-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.comparison-card.a .comp-label { color: var(--primary); }
.comparison-card.b .comp-label { color: #b45309; }
.comparison-card .comp-value { font-size: 1.15rem; font-weight: 800; color: var(--gray-800); }

/* === CTA EMAIL === */
.cta-email {
    background: linear-gradient(135deg, var(--gray-900) 0%, #1e3a5f 50%, var(--primary-dark) 100%);
    color: white;
    padding: 48px 24px;
    margin-top: 40px;
}
.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}
.cta-text h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.5px; }
.cta-text p { font-size: 0.92rem; opacity: 0.75; margin-bottom: 24px; line-height: 1.5; }
.cta-form { max-width: 480px; margin: 0 auto; }
.cta-input-row { display: flex; gap: 10px; }
.cta-input-wrapper { flex: 1; }
.cta-input-wrapper input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.cta-input-wrapper input::placeholder { color: rgba(255,255,255,0.5); }
.cta-input-wrapper input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(14,165,233,0.2);
}
.cta-btn {
    width: auto !important;
    padding: 14px 28px !important;
    flex-shrink: 0;
    font-size: 0.92rem !important;
    border-radius: 10px;
}
.cta-feedback {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    min-height: 24px;
}
.cta-feedback.success { color: #6ee7b7; }
.cta-feedback.error { color: #fca5a5; }
.cta-legal {
    margin-top: 14px;
    font-size: 0.72rem;
    opacity: 0.45;
    line-height: 1.4;
}

/* === SEO CONTENT === */
.seo-content {
    background: white;
    padding: 48px 24px;
    border-top: 1px solid var(--gray-200);
}
.seo-inner {
    max-width: 1000px;
    margin: 0 auto;
}
.seo-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -0.5px;
}
.seo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.seo-grid article {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
}
.seo-grid h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 8px;
}
.seo-grid p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* === FOOTER === */
footer { background: var(--gray-900); color: var(--gray-400); padding: 28px 24px; text-align: center; font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.footer-nav a {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--accent); }

/* === ANIMATIONS === */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.4s ease-out; }

/* === RESPONSIVE === */

/* Tablet landscape */
@media (max-width: 1024px) {
    .grid-layout { grid-template-columns: 1fr; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .header-inner { padding: 12px 16px; }
    .logo { font-size: 1.15rem; gap: 8px; }
    .logo-icon { width: 34px; height: 34px; font-size: 1rem; }
    nav a { padding: 6px 10px; font-size: 0.78rem; }
    .hero { padding: 24px 16px 40px; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.88rem; }
    .main-container { padding: 0 12px; margin-top: -20px; }
    .card-body { padding: 16px; }
    .card-header { padding: 14px 16px; }
    .steps-bar { padding: 12px 16px; }
    .step-text { font-size: 0.73rem; }
    .step-num { width: 28px; height: 28px; font-size: 0.72rem; }
    .result-card .result-value { font-size: 1.2rem; }
    .result-card.highlight .result-value { font-size: 1.5rem; }
    .donut-container { width: 160px; height: 160px; }
    .donut-center .donut-total-value { font-size: 1rem; }
    .tab-btn { padding: 8px 6px; font-size: 0.72rem; }
    .results-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .comparison-row { gap: 10px; }
    .gauge-container { flex-direction: column; text-align: center; gap: 12px; }
    .modal { max-width: 100%; border-radius: 12px; }
    .has-unit input { padding-right: 42px; }
    .input-wrapper .unit { right: 12px; font-size: 0.8rem; }
}

/* Mobile large */
@media (max-width: 600px) {
    nav { display: none; }
    .hero h1 { font-size: 1.4rem; }
    .hero p { font-size: 0.82rem; }
    .cta-email { padding: 32px 16px; }
    .cta-text h2 { font-size: 1.2rem; }
    .cta-text p { font-size: 0.82rem; }
    .cta-input-row { flex-direction: column; }
    .cta-btn { width: 100% !important; }
    .seo-grid { grid-template-columns: 1fr; gap: 16px; }
    .seo-content { padding: 32px 16px; }
    .seo-content h2 { font-size: 1.15rem; }
    .footer-nav { gap: 12px; }
    .footer-nav a { font-size: 0.7rem; }
    .results-grid { grid-template-columns: 1fr; }
    .result-card.highlight { grid-column: span 1; }
    .result-card .result-value { font-size: 1.1rem; }
    .result-card.highlight .result-value { font-size: 1.4rem; }
    .result-card { padding: 14px; }
    .comparison-row { grid-template-columns: 1fr; }
    .comparison-card .comp-value { font-size: 1rem; }
    .donut-wrapper { flex-direction: column; gap: 16px; }
    .donut-container { width: 180px; height: 180px; }
    .donut-legend { flex-direction: row; flex-wrap: wrap; gap: 8px; justify-content: center; min-width: 0; }
    .donut-legend-item { min-width: 45%; }
    table { font-size: 0.72rem; }
    thead th, tbody td { padding: 8px 6px; white-space: normal; }
    .form-row { grid-template-columns: 1fr; gap: 16px; }
    .form-group label { font-size: 0.8rem; flex-wrap: wrap; gap: 4px; }
}

/* Mobile small */
@media (max-width: 400px) {
    .header-inner { padding: 10px 12px; }
    .logo { font-size: 1.05rem; }
    .logo-icon { width: 30px; height: 30px; font-size: 0.9rem; border-radius: 8px; }
    .hero { padding: 20px 12px 32px; }
    .hero h1 { font-size: 1.2rem; }
    .hero p { font-size: 0.78rem; }
    .main-container { padding: 0 8px; margin-top: -16px; }
    .card-body { padding: 12px; }
    .card-header { padding: 12px; gap: 8px; }
    .card-header h2 { font-size: 0.88rem; }
    .steps-bar { padding: 10px 12px; }
    .step-text { font-size: 0.68rem; }
    .donut-container { width: 140px; height: 140px; }
    .donut-center .donut-total-value { font-size: 0.88rem; }
    .donut-center .donut-total-label { font-size: 0.62rem; }
    .donut-legend-name { font-size: 0.72rem; }
    .donut-legend-val { font-size: 0.68rem; }
    .form-section-title { font-size: 0.68rem; }
    input[type="number"], input[type="text"], select { padding: 10px 12px; font-size: 0.88rem; }
    .has-unit input { padding-right: 38px; }
    .input-wrapper .unit { right: 10px; font-size: 0.75rem; }
    .toggle-group { padding: 10px 12px; }
    .toggle-label { font-size: 0.8rem; }
    .toggle-desc { font-size: 0.68rem; }
    .btn-primary { padding: 12px 16px; font-size: 0.9rem; }
    .range-labels { font-size: 0.68rem; }
    .gauge { width: 64px; height: 64px; }
    .gauge svg { width: 64px; height: 64px; }
    .gauge-text { font-size: 0.82rem; }
    .gauge-info h3 { font-size: 0.82rem; }
    .gauge-info p { font-size: 0.72rem; }
    .tab-btn { padding: 7px 4px; font-size: 0.68rem; }
    .modal-body { padding: 16px; font-size: 0.82rem; }
    table { font-size: 0.65rem; }
    thead th, tbody td { padding: 6px 4px; }
    .comparison-card { padding: 10px; }
    .comparison-card .comp-value { font-size: 0.9rem; }
    .comparison-card .comp-label { font-size: 0.65rem; }
    .btn-back { padding: 8px 12px; font-size: 0.78rem; }
}

/* === PRINT === */
@media print {
    header, .hero, footer, .btn-primary, .btn-secondary, .btn-back, .tabs, nav, .steps-bar { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .grid-layout { grid-template-columns: 1fr; }
    .main-container { margin-top: 0; }
    .screen { display: block !important; }
}

/* === 404 PAGE === */
.error-page {
    text-align: center;
    padding: 80px 24px;
    max-width: 500px;
    margin: 0 auto;
}
.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    opacity: 0.15;
    margin-bottom: -10px;
}
.error-page h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gray-800);
    margin-bottom: 12px;
}
.error-page p {
    font-size: 0.95rem;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
}
.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
}
