/* ==========================================================================
   Factory Profit Leakage Calculator — ERPidex
   Modern, mobile-first SaaS styling. Self-contained (no external CSS).
   ========================================================================== */

:root {
    --navy: #06152e;
    --navy-2: #0d2a52;
    --brand: #f7941d;
    --brand-dark: #e07c00;
    --ink: #1c2430;
    --muted: #64748b;
    --line: #e7eef7;
    --bg: #f4f7fb;
    --card: #ffffff;
    --danger: #ef4444;
    --success: #16a34a;
    --blue: #3b82f6;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(8, 25, 53, 0.06);
    --shadow-lg: 0 20px 50px rgba(8, 25, 53, 0.12);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --head: 'Poppins', var(--font);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---- Top bar ---- */
.topbar {
    background: var(--navy);
    border-bottom: 3px solid var(--brand);
    padding: 16px 20px;
    text-align: center;
}
.brandmark {
    font-family: var(--head);
    font-weight: 800;
    font-size: 22px;
    color: #fff;
    letter-spacing: -0.5px;
}
.brandmark span { color: var(--brand); }
.brand-logo { height: 30px; width: auto; display: inline-block; filter: brightness(0) invert(1); }
@media (max-width: 560px) { .brand-logo { height: 24px; } }
.brand-tag {
    font-size: 9px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 600;
}

/* ---- Layout ---- */
.wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 18px 80px;
}

.hero {
    text-align: center;
    margin-bottom: 22px;
}
.hero h1 {
    font-family: var(--head);
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.15;
    margin: 6px 0 10px;
    color: var(--navy);
    font-weight: 800;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p {
    color: var(--muted);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247,148,29,0.12);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
}

/* ---- Stepper ---- */
.stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 26px auto 22px;
    max-width: 520px;
}
.stepper__item {
    flex: 1;
    text-align: center;
    position: relative;
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
}
.stepper__dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin: 0 auto 8px;
    position: relative;
    z-index: 2;
    transition: all 0.3s;
}
.stepper__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--line);
    z-index: 1;
}
.stepper__item.active .stepper__dot {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(247,148,29,0.35);
}
.stepper__item.done .stepper__dot {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
.stepper__item.active { color: var(--navy); }

/* ---- Card ---- */
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}
@media (max-width: 560px) { .card { padding: 20px; } }

.card h2 {
    font-family: var(--head);
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--navy);
    font-weight: 700;
}
.card .sub {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 22px;
}

/* ---- Steps visibility ---- */
.step { display: none; animation: fade 0.35s ease; }
.step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Form ---- */
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--navy-2);
    margin-bottom: 7px;
    letter-spacing: 0.02em;
}
.field input,
.field select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    font-family: var(--font);
    transition: border 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(247,148,29,0.15);
}
.field input.input-error,
.field select.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.14);
}
.field label .req { color: var(--danger); margin-left: 2px; }
/* Custom-styled closed select control (the open list stays the OS-native picker) */
.field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 42px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 13px;
}
.field select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e07c00' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
/* 16px on small screens stops iOS/Android from zooming when a field is tapped */
@media (max-width: 560px) {
    .field input, .field select { font-size: 16px; }
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.errbox {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: none;
}
.errbox.show { display: block; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 50px;
    font-family: var(--head);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 8px 20px rgba(247,148,29,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(247,148,29,0.4); }
.btn-ghost {
    background: #fff;
    color: var(--navy);
    border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 26px;
}
.actions .btn { flex: 1; }

/* On phones, stack action buttons full-width with the primary CTA on top
   (buttons are DOM-ordered secondary-first, so column-reverse lifts the CTA).
   Prevents cramped side-by-side buttons and wrapped labels/arrows. */
@media (max-width: 560px) {
    .actions { flex-direction: column-reverse; gap: 10px; margin-top: 22px; }
    .actions .btn { width: 100%; flex: 0 0 auto; }
    .report-actions { flex-direction: column; }
    .report-actions .btn { width: 100%; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; min-width: 0; }
    .btn { padding: 15px 22px; }
}

/* ---- Benchmark note ---- */
.note {
    display: flex;
    gap: 10px;
    background: #f0f7ff;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--navy-2);
    margin-bottom: 22px;
}
.note b { color: var(--navy); }

/* ---- Sliders ---- */
.slider-row {
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}
.slider-row:last-child { border-bottom: none; }
.slider-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 10px;
}
.slider-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}
.slider-name .bchip {
    display: inline-block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 600;
    margin-left: 6px;
}
.slider-val {
    font-family: var(--head);
    font-weight: 700;
    font-size: 16px;
    color: var(--brand-dark);
    white-space: nowrap;
}
.slider-val.score { color: var(--navy); }

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: var(--line);
    outline: none;
    margin: 4px 0;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.1s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--brand);
    cursor: pointer;
}

/* ---- Sales banner ---- */
.sales-banner {
    max-width: 520px;
    margin: 0 auto 18px;
    background: #0d2a52;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 8px 14px;
    border-radius: 10px;
    letter-spacing: 0.02em;
}

/* ---- Teaser (contact gate) ---- */
.teaser {
    text-align: center;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    border-radius: var(--radius);
    padding: 26px 20px;
    color: #fff;
    margin-bottom: 22px;
}
.teaser .k {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}
.teaser .big {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(32px, 8vw, 50px);
    line-height: 1.05;
    margin: 8px 0 10px;
    color: var(--brand);
}
.teaser .locked {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.08);
    display: inline-block;
    padding: 7px 14px;
    border-radius: 50px;
}

/* ---- Crore turnover input (efficiency variant) ---- */
.crore-input { display: flex; align-items: stretch; border: 1px solid #d9e2ee; border-radius: 10px; overflow: hidden; background: #fff; }
.crore-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247,148,29,0.15); }
.crore-input input {
    flex: 1; border: none; outline: none; padding: 13px 14px;
    font-size: 17px; font-family: var(--head); font-weight: 700; color: var(--ink);
    background: transparent; -moz-appearance: textfield;
}
.crore-input input::-webkit-outer-spin-button,
.crore-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.crore-suffix {
    display: flex; align-items: center; padding: 0 16px;
    background: #f0f4fa; color: var(--navy-2); font-weight: 700; font-size: 14px;
    border-left: 1px solid #e2e8f0; white-space: nowrap;
}
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.live-estimate {
    background: #fff7ec; border: 1px solid #f2d9b8; border-radius: 10px;
    padding: 12px 16px; text-align: center; font-size: 14px; color: var(--navy-2);
    margin-top: 8px;
}
.live-estimate b { color: var(--brand-dark); font-family: var(--head); font-size: 16px; }

/* ---- Cost-optimization: scenario picker + live preview ---- */
.scenario-picker { display: flex; gap: 8px; }
.scenario-btn {
    flex: 1;
    padding: 11px 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-family: var(--head);
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.15s;
}
.scenario-btn:hover { border-color: var(--brand); color: var(--navy); }
.scenario-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(247,148,29,0.3);
}

/* Interactive cost-head sliders */
.cost-heads {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 16px 14px;
    margin-top: 4px;
    background: #fafbfc;
}
.ch-hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.ch-row { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.ch-row:last-of-type { border-bottom: none; }
.ch-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ch-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.ch-cost { font-weight: 500; color: var(--muted); font-size: 12px; }
.ch-val { font-size: 13px; color: var(--brand-dark); font-weight: 700; white-space: nowrap; }
.ch-ben { color: #16a34a; font-family: var(--head); }
.ch-range {
    width: 100%; height: 6px; border-radius: 6px;
    -webkit-appearance: none; appearance: none; outline: none;
    background: var(--line); cursor: pointer;
}
.ch-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 3px solid var(--brand);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); cursor: pointer;
}
.ch-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); cursor: pointer; }
.ch-range::-moz-range-progress { background: var(--brand); height: 6px; border-radius: 6px; }
.ch-range::-moz-range-track { background: var(--line); height: 6px; border-radius: 6px; }
.ch-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 12px; padding: 12px 0 2px; border-top: 1px solid #bbf7d0;
    font-weight: 600; color: var(--navy);
}
.ch-total b { font-family: var(--head); color: #15803d; font-size: 16px; }

.cost-preview {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    font-size: 13px;
}
.cp-head, .cp-row {
    display: grid;
    grid-template-columns: 1fr auto 44px auto;
    gap: 8px;
    padding: 9px 14px;
    align-items: center;
}
.cp-head {
    background: #f8fafc;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 800;
}
.cp-head span:nth-child(n+2), .cp-row span:nth-child(n+2) { text-align: right; }
.cp-row { border-top: 1px dashed var(--line); }
.cp-name { color: var(--ink); font-weight: 600; }
.cp-str { color: #94a3b8; font-weight: 500; font-size: 11px; }
.cp-cost { color: var(--muted); }
.cp-opt { color: var(--brand-dark); font-weight: 700; }
.cp-ben { color: #16a34a; font-weight: 700; font-family: var(--head); }
.cp-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
    font-weight: 600;
    color: var(--navy);
}
.cp-total b { font-family: var(--head); color: #15803d; }

@media (max-width: 440px) {
    .cp-head span:first-child, .cp-name { grid-column: 1 / -1; }
    .cp-head, .cp-row { grid-template-columns: 1fr 44px auto; }
    .cp-str { display: none; }
}

/* ---- Efficiency sliders (positive-framing variant) ---- */
.eff-row { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.eff-row:last-child { border-bottom: none; }
.eff-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.eff-name { font-weight: 700; font-size: 15px; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.eff-num { width: 22px; height: 22px; background: var(--brand); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 800; font-size: 12px; }
.eff-val { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--brand-dark); }

/* Editable value box (typed OR dragged) */
.eff-valbox {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 4px 10px 4px 6px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.eff-valbox:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(247,148,29,0.15);
}
.eff-input {
    width: 3ch;
    border: none;
    outline: none;
    background: transparent;
    text-align: right;
    font-family: var(--head);
    font-weight: 800;
    font-size: 18px;
    color: var(--brand-dark);
    padding: 0;
    -moz-appearance: textfield;
}
.eff-input::-webkit-outer-spin-button,
.eff-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eff-pct { font-family: var(--head); font-weight: 800; font-size: 18px; color: var(--brand-dark); }

.eff-q { font-size: 13px; color: var(--muted); margin: 4px 0 10px 30px; }

/* Filled track up to the thumb. Chrome/Edge/Safari: JS paints a live gradient on
   the element background. Firefox: native progress/track pseudo-elements. */
.eff-slider { background: linear-gradient(to right, var(--brand) 0%, var(--brand) 50%, var(--line) 50%, var(--line) 100%); }
.eff-slider::-moz-range-progress { background: var(--brand); height: 6px; border-radius: 6px; }
.eff-slider::-moz-range-track { background: var(--line); height: 6px; border-radius: 6px; }
.eff-scale { display: flex; justify-content: space-between; font-size: 10px; color: #94a3b8; margin-top: 4px; }
.eff-typical { color: var(--brand-dark); font-weight: 600; }

/* ---- Results ---- */
.headline {
    text-align: center;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    border-radius: var(--radius);
    padding: 30px 24px;
    color: #fff;
    margin-bottom: 22px;
}
.headline .k {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
}
.headline .big {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(34px, 8vw, 54px);
    line-height: 1.05;
    margin: 8px 0 4px;
    color: var(--brand);
}
.headline .exact { font-size: 13px; color: rgba(255,255,255,0.7); }
.headline .per {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 5px 14px;
    border-radius: 50px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
@media (max-width: 560px) { .metrics { grid-template-columns: 1fr; } }
.metric {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px;
}
.metric .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}
.metric .val {
    font-family: var(--head);
    font-weight: 700;
    font-size: 22px;
    color: var(--navy);
}
.metric .val small { font-size: 13px; color: var(--muted); font-weight: 500; }
.metric .band {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    color: #fff;
}

/* gauge */
.gauge-wrap { display: flex; align-items: center; gap: 16px; }
.gauge-wrap .gtext .num {
    font-family: var(--head);
    font-weight: 800;
    font-size: 30px;
    line-height: 1;
    color: var(--navy);
}

/* bars */
.section-title {
    font-family: var(--head);
    font-weight: 700;
    font-size: 15px;
    color: var(--navy);
    margin: 4px 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bar-row { margin-bottom: 12px; }
.bar-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 5px;
}
.bar-top .bl { color: var(--ink); font-weight: 600; }
.bar-top .br { color: var(--navy); font-weight: 700; font-family: var(--head); }
.bar-track {
    height: 10px;
    background: var(--line);
    border-radius: 6px;
    overflow: hidden;
}
.bar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    width: 0;
    transition: width 0.8s cubic-bezier(0.2,0.8,0.2,1);
}

/* owner bar */
.owner-track {
    height: 12px;
    background: var(--line);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px;
}
.owner-fill { height: 100%; border-radius: 8px; transition: width 0.8s ease; }

/* unlock */
.unlock {
    margin-top: 24px;
    border: 2px dashed var(--brand);
    background: linear-gradient(180deg, #fffdf9, #fff7ec);
    border-radius: var(--radius);
    padding: 26px;
    text-align: center;
}
.unlock h3 {
    font-family: var(--head);
    font-size: 18px;
    color: var(--navy);
    margin: 0 0 8px;
}
.unlock p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.unlock .amt { color: var(--brand-dark); font-weight: 800; }

.trust {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 14px;
    font-size: 11px;
    color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 5px; }

.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.foot {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: 30px;
}

/* ==========================================================================
   SIMPLE VERSION — big, friendly, low-literacy audience
   ========================================================================== */
.wrap-simple { max-width: 620px; }
.card-simple { padding: 26px 24px; }
@media (max-width: 560px) { .card-simple { padding: 20px 16px; } }

.big-sub { font-size: 17px; color: var(--ink); max-width: 520px; margin: 0 auto; }

.sstep { display: none; animation: fade 0.35s ease; }
.sstep.active { display: block; }

.q-block { margin-bottom: 26px; position: relative; }
.q-block label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 12px 40px;
    line-height: 1.35;
}
.q-hint { font-weight: 500; color: var(--muted); font-size: 14px; }
.q-num {
    position: absolute;
    left: 0; top: 0;
    width: 30px; height: 30px;
    background: var(--brand);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--head); font-weight: 800; font-size: 16px;
}
.big-select {
    width: 100%;
    padding: 16px 16px;
    border: 2px solid #d9e2ee;
    border-radius: 12px;
    font-size: 17px;
    color: var(--ink);
    background: #fff;
    font-family: var(--font);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
.big-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(247,148,29,0.15); }

.btn-xl { font-size: 18px; padding: 18px 28px; }
.tiny-trust { text-align: center; font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.field-big label { font-size: 16px; }
.field-big input { padding: 15px 16px; font-size: 17px; border-width: 2px; border-radius: 12px; }

/* Reveal / big number */
.reveal {
    text-align: center;
    background: linear-gradient(160deg, var(--navy), var(--navy-2));
    border-radius: var(--radius);
    padding: 30px 20px;
    color: #fff;
    margin-bottom: 18px;
}
.reveal-k { font-size: 15px; color: rgba(255,255,255,0.8); }
.reveal-big {
    font-family: var(--head);
    font-weight: 800;
    font-size: clamp(40px, 11vw, 64px);
    line-height: 1.05;
    margin: 6px 0;
    color: var(--brand);
}
.reveal-yr { font-size: 17px; color: rgba(255,255,255,0.9); }
.reveal-sub { font-size: 16px; text-align: center; color: var(--ink); margin: 0 0 20px; }

.verdict {
    display: flex; align-items: center; gap: 12px;
    background: #fff7ec; border: 1px solid #f2d9b8;
    border-radius: 12px; padding: 14px 16px; margin-bottom: 24px;
    font-size: 15px; color: var(--navy-2); font-weight: 600;
}
.verdict-emoji { font-size: 24px; }

.simple-h2 {
    font-family: var(--head); font-size: 20px; color: var(--navy);
    text-align: center; margin: 6px 0 18px;
}

.bucket { margin-bottom: 18px; }
.bucket-top { display: flex; align-items: center; gap: 10px; }
.bucket-icon { font-size: 22px; }
.bucket-title { font-weight: 700; font-size: 15px; color: var(--ink); flex: 1; }
.bucket-amt { font-family: var(--head); font-weight: 800; font-size: 17px; color: #b91c1c; white-space: nowrap; }
.bucket-desc { font-size: 13px; color: var(--muted); margin: 4px 0 8px 32px; }
.bucket .bar-track { margin-left: 32px; height: 12px; }

.owner-note {
    background: #f0f7ff; border-left: 4px solid var(--brand);
    border-radius: 10px; padding: 14px 16px; font-size: 14px;
    color: var(--navy-2); margin: 20px 0;
}

.goodnews {
    background: #f0fdf4; border: 1px solid #bbf7d0;
    border-radius: 14px; padding: 20px 22px; margin: 22px 0;
}
.goodnews-title { font-family: var(--head); font-weight: 700; font-size: 17px; color: #15803d; margin-bottom: 8px; }
.goodnews p { font-size: 15px; color: var(--ink); margin: 0; }
.save-amt { color: #15803d; }

.cta-simple {
    text-align: center; background: #fff8f0;
    border: 2px dashed var(--brand); border-radius: var(--radius);
    padding: 24px; margin-top: 8px;
}
.cta-simple h3 { font-family: var(--head); font-size: 19px; color: var(--navy); margin: 0 0 8px; }
.cta-simple p { font-size: 15px; color: var(--muted); margin: 0 0 18px; }
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-buttons .btn { flex: 1; min-width: 200px; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }

.simple-note { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 20px; line-height: 1.5; }

.research-line {
    font-size: 13px; color: var(--navy-2);
    background: #f0f7ff; border-radius: 10px;
    padding: 10px 14px; max-width: 520px; margin: 14px auto 0;
}

/* Trust / "how did we get this number" box on the simple report */
.trust-box {
    background: #f8fafc; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px; margin: 22px 0;
}
.trust-title { font-family: var(--head); font-weight: 700; font-size: 17px; color: var(--navy); margin-bottom: 12px; }
.trust-steps { margin: 0 0 14px; padding-left: 20px; font-size: 15px; color: var(--ink); line-height: 1.7; }
.trust-steps li { margin-bottom: 4px; }
.trust-based { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.trust-chips span {
    font-size: 12px; font-weight: 600; color: var(--navy-2);
    background: #fff; border: 1px solid #dbe6f3;
    border-radius: 50px; padding: 6px 12px;
}
.src-simple { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 14px; }
.src-simple > summary {
    cursor: pointer; padding: 12px 16px; list-style: none;
    font-weight: 700; font-size: 14px; color: var(--brand-dark);
    display: flex; align-items: center; justify-content: space-between;
}
.src-simple > summary::-webkit-details-marker { display: none; }
.src-simple > summary::after { content: '▾'; color: var(--brand); }
.src-simple[open] > summary::after { content: '▴'; }
.src-simple-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.src-simple-item { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.src-simple-item:last-child { border-bottom: none; }
.src-simple-name { font-weight: 700; font-size: 13px; color: var(--navy); }
.src-simple-basis { font-size: 12px; color: var(--muted); margin: 2px 0 5px; }
.src-simple-cites a {
    display: inline-block; font-size: 11px; color: var(--brand-dark);
    text-decoration: none; border: 1px solid #f2d9b8; border-radius: 50px;
    padding: 2px 9px; margin: 2px 4px 2px 0;
}
.src-simple-cites a:hover { background: #fff7ec; }
.trust-final { font-size: 14px; color: var(--navy-2); background: #fff7ec; border-radius: 10px; padding: 12px 14px; margin: 4px 0 0; }
.disclaimer {
    font-size: 11px;
    color: #94a3b8;
    text-align: center;
    margin-top: 18px;
    line-height: 1.5;
}

/* ==========================================================================
   Mobile button refinements (placed last so they override earlier base rules
   of equal specificity, e.g. .btn-xl padding/size).
   ========================================================================== */
@media (max-width: 560px) {
    /* Slightly smaller, tighter CTAs so they read well on a phone */
    .btn-xl { font-size: 16px; padding: 15px 18px; }

    /* Keep the phone number and short CTAs on ONE line (no mid-number wrap) */
    .cta-buttons .btn { white-space: nowrap; }

    /* Call/WhatsApp icons sit snug to the label */
    .cta-buttons .btn, .report-actions .btn { gap: 6px; }
}

/* Very narrow phones: let the phone number shrink to fit rather than overflow */
@media (max-width: 360px) {
    .cta-buttons .btn { font-size: 15px; padding: 14px 14px; }
}
