/**
 * Estimator app styles — Muncly DS: dark forest base, Playfair Display
 * headings, DM Sans body, DM Mono numerals, orange #E8440A for action only.
 */

/* ── Page shell ─────────────────────────────────────────────────── */
.mn-est-body {
    margin: 0;
    background: #14261F;
    color: #DED5BE;
    font-family: 'DM Sans', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.mn-est-app { min-height: 100vh; display: flex; flex-direction: column; }

.mn-est-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 28px; border-bottom: 1px solid rgba(222, 213, 190, .10);
}
.mn-est-bar__logo { height: 22px; width: auto; opacity: .95; }
.mn-est-bar__return {
    font-size: 13px; font-weight: 600; color: rgba(222, 213, 190, .65);
    text-decoration: none; transition: color .15s ease;
}
.mn-est-bar__return:hover { color: #F4ECD8; }

.mn-est-main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 44px 20px 64px; box-sizing: border-box; }

/* ── Header ─────────────────────────────────────────────────────── */
.mn-est-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px; margin-bottom: 30px; }
.mn-est-head__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E8440A; }
.mn-est-head__title {
    margin: 0; font-family: 'Playfair Display', Georgia, serif; font-weight: 500;
    font-size: clamp(1.9rem, 5.4vw, 2.5rem); line-height: 1.1; letter-spacing: -.01em; color: #F4ECD8;
}
.mn-est-head__title em { font-style: italic; color: #E8440A; }
.mn-est-head__sub { margin: 0; font-size: 14.5px; line-height: 1.55; color: rgba(222, 213, 190, .62); max-width: 480px; }

/* ── Two-panel layout ───────────────────────────────────────────── */
.mn-est-layout { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(540px, 660px); gap: 24px; align-items: start; }
.mn-est-results { position: sticky; top: 20px; }
@media (max-width: 1180px) {
    .mn-est-layout { grid-template-columns: minmax(0, 1fr) minmax(440px, 520px); gap: 18px; }
}
@media (max-width: 980px) {
    .mn-est-layout { grid-template-columns: minmax(0, 1fr); }
    .mn-est-results { position: static; }
}
@media (max-width: 560px) {
    .mn-est-main { padding: 28px 14px 48px; }
    .mn-est-bar { padding: 14px 16px; }
    .mn-est-card { padding: 20px 16px 18px; border-radius: 18px; }
    .mn-est-panel { padding: 22px 16px 22px; border-radius: 16px; }
}

/* ── Left card + fields ─────────────────────────────────────────── */
.mn-est-card {
    position: relative; overflow: hidden; border-radius: 24px; padding: 28px 28px 26px;
    background: #192E28; border: 1px solid rgba(222, 213, 190, .14);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2), 0 24px 60px rgba(0, 0, 0, .35);
}
.mn-est-card__eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(222, 213, 190, .5); margin-bottom: 12px; }
.mn-est-fields { display: flex; flex-direction: column; gap: 12px; }
.mn-est-noscript { color: #E8A881; }

.mn-est-field {
    display: flex; flex-direction: column;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(222, 213, 190, .12);
    border-radius: 12px; padding: 15px 16px;
}
.mn-est-field__head { display: flex; gap: 9px; align-items: baseline; }
.mn-est-field__num { font-size: 12px; font-weight: 700; color: #E8440A; font-variant-numeric: tabular-nums; }
.mn-est-field__label { font-size: 13.5px; font-weight: 500; color: #DED5BE; line-height: 1.4; }

/* stepper */
.mn-est-stepper {
    margin-top: 12px; display: inline-flex; align-items: center; align-self: flex-start;
    border: 1.5px solid rgba(222, 213, 190, .20); border-radius: 8px; background: rgba(255, 255, 255, .06); overflow: hidden;
}
.mn-est-stepper button {
    width: 40px; height: 42px; border: none; background: transparent; color: #DED5BE;
    font-size: 21px; line-height: 1; cursor: pointer;
}
.mn-est-stepper button:hover { background: rgba(232, 68, 10, .18); }
.mn-est-stepper span { min-width: 52px; text-align: center; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: #F4ECD8; }

/* job cards */
.mn-est-jobs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mn-est-jobcard {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 13px 15px; border-radius: 10px; cursor: pointer;
    border: 1.5px solid rgba(222, 213, 190, .15); background: rgba(255, 255, 255, .04);
    transition: border-color .15s ease, background .15s ease;
}
.mn-est-jobcard.is-on { border-color: rgba(232, 68, 10, .55); background: rgba(232, 68, 10, .08); }
.mn-est-jobcard__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mn-est-jobcard__title { font-size: 14px; font-weight: 600; color: #F4ECD8; line-height: 1.35; }
.mn-est-jobcard__desc { font-size: 12.5px; line-height: 1.45; color: rgba(222, 213, 190, .55); }
.mn-est-jobcard__check {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: transparent;
    background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(222, 213, 190, .25);
}
.mn-est-jobcard.is-on .mn-est-jobcard__check { color: #fff; background: #E8440A; border-color: #E8440A; }

/* selects */
.mn-est-selectwrap { position: relative; margin-top: 12px; }
.mn-est-select {
    width: 100%; height: 42px; padding: 0 38px 0 14px; appearance: none; -webkit-appearance: none;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 14.5px; color: #DED5BE;
    background: rgba(255, 255, 255, .06); cursor: pointer;
    border: 1.5px solid rgba(222, 213, 190, .20); border-radius: 8px; outline: none;
}
.mn-est-select:focus { border-color: #E8440A; box-shadow: 0 0 0 3px rgba(232, 68, 10, .18); }
.mn-est-select option { background: #1E3C34; color: #DED5BE; }
.mn-est-selectwrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: rgba(222, 213, 190, .65); }

/* toggle rows */
.mn-est-rows { margin-top: 6px; display: flex; flex-direction: column; }
.mn-est-row {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 11px 0; cursor: pointer; border-top: 1px solid rgba(222, 213, 190, .07);
}
.mn-est-row:first-child { border-top: none; }
.mn-est-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mn-est-row__label { font-size: 14px; color: #DED5BE; line-height: 1.4; }
.mn-est-row__hint { font-size: 11px; letter-spacing: .03em; color: rgba(232, 168, 129, .75); line-height: 1.4; }
.mn-est-switch {
    position: relative; width: 42px; height: 24px; flex-shrink: 0; border-radius: 9999px;
    background: rgba(222, 213, 190, .20); transition: background .18s ease;
}
.mn-est-switch.is-on { background: #E8440A; box-shadow: 0 2px 10px rgba(232, 68, 10, .35); }
.mn-est-switch__knob {
    position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: left .18s ease;
}
.mn-est-switch.is-on .mn-est-switch__knob { left: 21px; }

/* number input */
.mn-est-number {
    margin-top: 12px; width: 140px; height: 42px; padding: 0 14px; box-sizing: border-box;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 18px; font-weight: 600;
    font-variant-numeric: tabular-nums; color: #F4ECD8;
    background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(222, 213, 190, .20);
    border-radius: 8px; outline: none; -moz-appearance: textfield;
}
.mn-est-number::-webkit-outer-spin-button, .mn-est-number::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mn-est-number:focus { border-color: #E8440A; box-shadow: 0 0 0 3px rgba(232, 68, 10, .18); }

/* segmented yes/no */
.mn-est-seg {
    margin-top: 12px; display: inline-flex; align-self: flex-start; padding: 3px;
    background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(222, 213, 190, .20); border-radius: 9999px;
}
.mn-est-seg button {
    border: none; cursor: pointer; border-radius: 9999px; padding: 8px 20px;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 14px; font-weight: 600;
    background: transparent; color: rgba(222, 213, 190, .7);
    transition: background .15s ease, color .15s ease;
}
.mn-est-seg button.is-on { background: #E8440A; color: #fff; box-shadow: 0 2px 10px rgba(232, 68, 10, .3); }

/* ── Results panel ──────────────────────────────────────────────── */
.mn-est-panel {
    position: relative; overflow: hidden; border-radius: 20px; padding: 30px 34px 28px; box-sizing: border-box;
    background: linear-gradient(150deg, #2f5a49 0%, #23362c 58%, #1b3028 100%);
    border: 1px solid rgba(222, 213, 190, .18);
    border-top-color: rgba(222, 213, 190, .38); border-left-color: rgba(222, 213, 190, .28);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .45);
}
.mn-est-panel::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(232, 200, 160, .5) 35%, rgba(232, 68, 10, .6) 65%, transparent 100%);
}
.mn-est-panel__content.is-gated { filter: blur(9px); opacity: .8; pointer-events: none; user-select: none; }

.mn-est-panel__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(222, 213, 190, .5); }

.mn-est-setup { display: flex; flex-direction: column; padding: 12px 0 18px; font-size: 16px; font-weight: 600; color: #F4ECD8; line-height: 1.4; }

.mn-est-sect { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #E8A881; }
.mn-est-sect__hint { font-size: 11.5px; color: rgba(222, 213, 190, .4); margin: 3px 0 6px; }

/* comparison table: label column, freelancer column, tinted Muncly column */
.mn-est-comprow { display: grid; grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) minmax(0, 1fr); gap: 0 18px; padding-left: 14px; }
@media (max-width: 560px) {
    /* Phones: the 3-column grid can't fit two money ranges next to a
       label column. Drop the label column — labels span their own row,
       the two tracks split the full width, amounts may wrap. */
    .mn-est-comprow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; padding-left: 0; }
    .mn-est-comprow > span:empty { display: none; } /* header rows' label placeholders */
    .mn-est-rowlabel { grid-column: 1 / -1; padding-top: 10px; }
    .mn-est-comprow--data .mn-est-cell { padding-top: 2px; }
    .mn-est-colb--badge { grid-column: 2; }
    .mn-est-cell__main, .mn-est-cell__sub { white-space: normal; overflow-wrap: break-word; }
    .mn-est-cell__main { font-size: 13.5px; }
    .is-hero .mn-est-cell__main { font-size: 14.5px; }
    .mn-est-cell__sub { font-size: 10.5px; }
}
.mn-est-comprow--names { align-items: end; }
.mn-est-comprow--data { border-top: 1px solid rgba(222, 213, 190, .10); }
.mn-est-rowlabel { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: rgba(222, 213, 190, .65); align-self: center; }

.mn-est-cell { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; }
.mn-est-cell__main { font-family: 'DM Mono', ui-monospace, monospace; font-size: 15px; color: #F4ECD8; line-height: 1.4; white-space: nowrap; }
.is-hero .mn-est-cell__main { font-size: 16px; font-weight: 500; }
.mn-est-cell__sub { font-family: 'DM Mono', ui-monospace, monospace; font-size: 11.5px; color: rgba(222, 213, 190, .45); white-space: nowrap; }

.mn-est-colb { background: rgba(232, 68, 10, .07); }
.mn-est-cell.mn-est-colb { padding: 12px 14px; }
.is-hero .mn-est-colb { border-radius: 0 0 12px 12px; }
.mn-est-colb--badge { display: flex; padding: 14px 14px 0; border-radius: 12px 12px 0 0; }
.mn-est-colb--name { padding: 10px 14px 0; }
.mn-est-colb--caption { padding: 0 14px 14px; }
.mn-est-badge {
    font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: #E8440A; border-radius: 9999px; padding: 3px 9px; white-space: nowrap;
}
.mn-est-trackname { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F4ECD8; white-space: nowrap; }
.mn-est-caption { font-size: 12.5px; line-height: 1.5; margin-top: 6px; color: rgba(222, 213, 190, .55); }
.mn-est-caption.is-warn { color: rgba(232, 168, 129, .9); }

/* drivers + software columns */
.mn-est-cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px 36px; align-items: start; margin-top: 24px; }
@media (max-width: 1180px) {
    .mn-est-cols { grid-template-columns: minmax(0, 1fr); }
}

/* dotted rows */
.mn-est-line { display: flex; align-items: flex-end; padding: 6px 0; }
.mn-est-line__label { font-size: 13.5px; color: #DED5BE; padding-right: 10px; }
.mn-est-line__dots { flex: 1; border-bottom: 1px dotted rgba(222, 213, 190, .28); margin-bottom: 4px; }
.mn-est-line__amt {
    font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px; color: #F4ECD8;
    white-space: nowrap; padding-left: 12px; min-width: 64px; text-align: right;
}

.mn-est-tiernote { font-size: 11.5px; line-height: 1.5; color: rgba(232, 168, 129, .8); padding: 4px 0 0; }

.mn-est-note {
    display: flex; gap: 11px; margin-top: 16px; padding: 13px 15px; border-radius: 12px;
    background: rgba(232, 68, 10, .10); border: 1px solid rgba(232, 68, 10, .28);
    font-size: 13px; line-height: 1.55; color: rgba(244, 236, 216, .9);
}
.mn-est-note__dot {
    flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; margin-top: 6px;
    background: #E8440A; box-shadow: 0 0 6px rgba(232, 68, 10, .5);
}

.mn-est-disclaimer {
    margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(222, 213, 190, .14);
    font-size: 11px; line-height: 1.6; color: rgba(222, 213, 190, .42);
}
.mn-est-disclaimer__head {
    display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em;
    text-transform: uppercase; color: rgba(222, 213, 190, .45); margin-bottom: 5px;
}

/* ── Email gate ─────────────────────────────────────────────────── */
.mn-est-gate {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(20, 38, 31, .35); border-radius: 20px;
}
/* the class display beats the UA [hidden] rule, so hide explicitly */
.mn-est-gate[hidden] { display: none; }
.mn-est-gate__card {
    width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 12px; text-align: center;
    border-radius: 16px; padding: 28px 26px; margin: 0;
    background: rgba(25, 46, 40, .96); border: 1px solid rgba(222, 213, 190, .22);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.mn-est-gate__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #E8440A; }
.mn-est-gate__title { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; font-size: 23px; line-height: 1.2; color: #F4ECD8; }
.mn-est-gate__input {
    width: 100%; height: 44px; padding: 0 14px; box-sizing: border-box;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 14.5px; color: #F4ECD8;
    background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(222, 213, 190, .22);
    border-radius: 9px; outline: none;
}
.mn-est-gate__input:focus { border-color: #E8440A; box-shadow: 0 0 0 3px rgba(232, 68, 10, .18); }
.mn-est-gate__error { font-size: 12px; color: #E8A881; }
.mn-est-gate__btn {
    border: none; cursor: not-allowed; border-radius: 9999px; padding: 13px 22px;
    font-family: 'DM Sans', system-ui, sans-serif; font-size: 14.5px; font-weight: 600;
    background: rgba(232, 68, 10, .28); color: rgba(255, 255, 255, .55);
    transition: background .15s ease;
}
.mn-est-gate__btn.is-ready { cursor: pointer; background: #E8440A; color: #fff; box-shadow: 0 2px 12px rgba(232, 68, 10, .35); }
.mn-est-gate__btn:disabled { opacity: .7; }
.mn-est-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.mn-est-gate__consent { font-size: 10.5px; line-height: 1.5; color: rgba(222, 213, 190, .45); }

/* ── Footer ─────────────────────────────────────────────────────── */
.mn-est-foot {
    margin-top: 26px; padding: 24px 20px 4px; border-top: 1px solid rgba(232, 68, 10, .3);
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.mn-est-foot__pitch { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(222, 213, 190, .72); max-width: 460px; }
.mn-est-foot__cta {
    display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; padding: 13px 26px;
    font-size: 14.5px; font-weight: 600; text-decoration: none;
    background: #E8440A; color: #fff; box-shadow: 0 2px 12px rgba(232, 68, 10, .35);
    transition: background .15s ease;
}
.mn-est-foot__cta:hover { background: #c93a08; color: #fff; }
.mn-est-foot__legal { margin: 0; font-size: 11px; line-height: 1.6; color: rgba(222, 213, 190, .38); max-width: 560px; }
