:root {
    --navy: #061225;
    --navy-2: #0a1c36;
    --blue: #175fe6;
    --blue-2: #0f3b78;
    --orange: #ff7a00;
    --orange-2: #ff5e00;
    --green: #16b85f;
    --paper: #f3f7fc;
    --white: #ffffff;
    --ink: #0b1b36;
    --muted: #667188;
    --line: #dde6f2;
    --soft: #edf4ff;
    --shadow: 0 24px 70px rgba(6, 18, 37, 0.16);
    --font: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font);
    background:
        radial-gradient(circle at 20% 0, rgba(23, 95, 230, 0.22), transparent 32rem),
        linear-gradient(180deg, var(--navy) 0 50rem, var(--paper) 50rem 100%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.app-shell {
    width: min(1500px, calc(100% - 28px));
    margin: 14px auto 28px;
}

.sim-header {
    position: sticky;
    top: 12px;
    z-index: 30;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 10px 28px 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(12, 30, 58, 0.7);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px);
    transition:
        transform 0.28s ease,
        opacity 0.28s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
    will-change: transform, opacity;
}
.sim-header:hover,
.sim-header:focus-within,
.sim-header.is-open,
.sim-header.is-peeking {
    background: rgba(12, 30, 58, 0.7);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}
.sim-header.is-auto-hidden {
    transform: translateY(calc(-100% - 28px));
    opacity: 0;
    pointer-events: none;
}
.brand {
    width: 212px;
    padding-right: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 850;
    line-height: 1.2;
}
.trust-badge i {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 2px solid var(--orange);
    border-radius: 12px;
    color: var(--orange);
    font-size: 1.2rem;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.main-nav a {
    padding: 12px 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 900;
    white-space: nowrap;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.header-cta,
.primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--orange-2));
    color: var(--white);
    font-weight: 950;
    box-shadow: 0 18px 34px rgba(255, 122, 0, 0.26);
}
.header-cta {
    min-height: 54px;
    padding: 0 22px;
    white-space: nowrap;
}
.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 1.2rem;
}

.sim-main { padding-top: 26px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.88fr);
    gap: 34px;
    align-items: end;
}
.hero-copy {
    display: grid;
    align-content: start;
    gap: 18px;
    min-height: 500px;
    padding: 22px 18px 0 12px;
    color: var(--white);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.hero-copy h1 {
    max-width: 780px;
    color: var(--white);
    font-size: clamp(2.75rem, 4.1vw, 4.35rem);
    line-height: 0.98;
    font-weight: 950;
}
.hero-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.06rem;
    line-height: 1.45;
    font-weight: 650;
}
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}
.benefit-grid article {
    min-height: 92px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
}
.benefit-grid i {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: var(--white);
    font-size: 1.15rem;
}
.benefit-grid article:nth-child(2) i { background: var(--orange); }
.benefit-grid article:nth-child(3) i { background: var(--green); }
.benefit-grid strong { color: var(--white); font-size: 0.84rem; font-weight: 950; }
.benefit-grid span { color: rgba(255, 255, 255, 0.76); font-size: 0.7rem; line-height: 1.35; font-weight: 700; }
.route-visual {
    position: relative;
    min-height: 126px;
    margin-top: -4px;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.98), rgba(235, 242, 251, 0.96)),
        repeating-linear-gradient(35deg, rgba(6,18,37,0.035) 0 1px, transparent 1px 14px);
    border: 1px solid rgba(221, 230, 242, 0.95);
    box-shadow: 0 20px 48px rgba(6, 18, 37, 0.12);
}
.route-line {
    position: absolute;
    left: 16%;
    right: 14%;
    top: 56%;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), #fff, var(--orange));
    border-radius: 999px;
    transform: translateY(-50%);
}
.pin {
    position: absolute;
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--blue-2);
    font-size: 0.82rem;
    font-weight: 950;
}
.pin i { color: var(--blue); font-size: 3.7rem; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); }
.pin.destination i { color: var(--orange); }
.pin.origin { left: 9%; top: 14px; }
.pin.destination { right: 8%; top: 14px; }
.route-km {
    position: absolute;
    left: 50%;
    bottom: 17px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transform: translateX(-50%);
    padding: 10px 18px;
    border: 1px solid rgba(6,18,37,.12);
    border-radius: 8px;
    background: rgba(6,18,37,.9);
    color: var(--white);
    font-weight: 950;
}

.data-card,
.builder-card,
.volume-strip,
.truck-card,
.live-summary,
.mobile-review {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}
.data-card {
    align-self: end;
    padding: 22px;
    border-radius: 18px;
}
.card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.card-heading > i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--soft);
    color: var(--blue);
}
.card-heading span { color: var(--blue); font-size: 0.72rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.card-heading h2 { font-size: 1.25rem; font-weight: 950; }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}
.form-grid > .full { grid-column: 1 / -1; }
.field {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 950;
}
.field.full { grid-column: 1 / -1; }
.field-hint {
    color: var(--blue);
    font-size: 0.66rem;
    line-height: 1.25;
    font-weight: 750;
}
.destination-block {
    display: grid;
    gap: 9px;
}
.extra-destinations {
    display: grid;
    gap: 9px;
}
.extra-destination-field {
    position: relative;
}
.extra-destination-field span {
    padding-right: 48px;
}
.remove-destination {
    position: absolute;
    right: 9px;
    bottom: 7px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #edf4ff;
    color: var(--blue-2);
}
.inline-add {
    width: fit-content;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--blue-2);
    font-size: 0.74rem;
    font-weight: 850;
}
.inline-add small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 750;
}
.inline-add:disabled {
    color: var(--muted);
    cursor: default;
}
.autocomplete-wrap { position: relative; }
.field span,
.field input,
.field select {
    min-height: 45px;
    border: 1px solid #d7e0ec;
    border-radius: 8px;
    background: #fbfcff;
    color: var(--ink);
}
.field span {
    display: grid;
    grid-template-columns: 30px 1fr auto;
    align-items: center;
    padding: 0 10px;
}
.field span i { color: var(--blue-2); opacity: .85; }
.field input,
.field select {
    width: 100%;
    padding: 0 12px;
    outline: 0;
    font-weight: 750;
}
.field span input {
    min-height: 43px;
    border: 0;
    background: transparent;
    padding: 0;
}
.address-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px);
    z-index: 20;
    display: none;
    max-height: 212px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(6, 18, 37, 0.18);
}
.address-suggestions.is-open { display: grid; }
.address-suggestions button {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 10px 12px;
    color: var(--ink);
    text-align: left;
    font-size: 0.76rem;
    line-height: 1.28;
    font-weight: 800;
}
.address-suggestions button:last-child { border-bottom: 0; }
.address-suggestions button:hover,
.address-suggestions button:focus {
    background: var(--soft);
    outline: 0;
}
.address-suggestions i {
    color: var(--orange);
}
.address-suggestions button span {
    min-height: 0;
    display: -webkit-box;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.readonly-volume input { color: var(--blue-2); font-weight: 950; }
.readonly-volume b {
    min-width: 44px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-right: -10px;
    border-left: 1px solid var(--line);
    color: var(--muted);
}
.calc-mode {
    display: grid;
    gap: 10px;
}
.calc-mode h3 {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 950;
}
.mode-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.mode-button {
    min-height: 50px;
    display: grid;
    place-items: center;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--blue-2);
    text-align: center;
}
.mode-button strong {
    font-size: 0.8rem;
    font-weight: 950;
}
.mode-button small {
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 750;
}
.mode-button.is-active {
    border-color: var(--blue);
    background: #eaf3ff;
    color: var(--blue-2);
}
.mode-panel {
    display: none;
    gap: 10px;
}
.mode-panel.is-active {
    display: grid;
}
.custom-area-field {
    display: none;
}
.custom-area-field.is-active {
    display: grid;
}
.import-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(23, 95, 230, 0.28);
    border-radius: 12px;
    background: #f4f8ff;
}
.import-card i {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e7f0ff;
    color: var(--blue);
}
.import-card strong {
    display: block;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 950;
}
.import-card span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 750;
}
.helper-note,
.technical-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--soft);
    color: var(--blue-2);
    font-size: 0.78rem;
    line-height: 1.36;
    font-weight: 750;
}
.helper-note span { display: block; }
.helper-note.is-success {
    background: rgba(22, 184, 95, 0.12);
    color: #0a6f37;
}
.helper-note.is-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #9f1d1d;
}
.primary-action {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    font-size: 0.94rem;
}
.advanced-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 12px;
}
.advanced-row button {
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--blue-2);
    font-size: 0.68rem;
    font-weight: 900;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: start;
    margin-top: 18px;
}
.builder {
    min-width: 0;
    padding: 24px 26px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}
.section-heading {
    max-width: 820px;
    margin: 0 auto 16px;
    text-align: center;
}
.section-heading h2 {
    margin-top: 6px;
    color: var(--ink);
    font-size: clamp(1.5rem, 2.8vw, 2.15rem);
    line-height: 1.05;
    font-weight: 950;
}
.section-heading p {
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 720;
}
.builder-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-radius: 16px;
}
.category-list {
    display: grid;
    align-content: start;
    gap: 8px;
}
.category-button {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    text-align: left;
    font-weight: 950;
}
.category-button img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}
.category-button small {
    display: block;
    margin-top: 2px;
    color: var(--blue);
    font-size: 0.68rem;
}
.category-button i { color: var(--blue); opacity: 0; }
.category-button.is-active {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(23, 95, 230, 0.12);
}
.category-button.is-active i { opacity: 1; }
.items-area {
    min-width: 0;
    display: grid;
    gap: 14px;
}
.items-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.items-title h3 { font-size: 1.05rem; font-weight: 950; text-transform: uppercase; }
.items-title span {
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 950;
}
.advanced-toggle {
    margin-left: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #cfdcf0;
    border-radius: 999px;
    background: #f8fbff;
    color: var(--blue-2);
    font-size: 0.74rem;
    font-weight: 950;
}
.advanced-toggle.is-active {
    border-color: rgba(255, 122, 0, 0.55);
    background: rgba(255, 122, 0, 0.1);
    color: var(--orange-2);
}
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.item-card {
    min-height: 132px;
    display: grid;
    grid-template-rows: 58px 1fr auto;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
}
.item-card img {
    justify-self: center;
    width: 64px;
    height: 56px;
    object-fit: contain;
}
.item-card strong {
    align-self: center;
    color: var(--ink);
    font-size: 0.78rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 950;
}
.item-copy {
    display: grid;
    gap: 4px;
    align-content: center;
}
.item-copy small {
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.15;
    text-align: center;
    font-weight: 800;
}
.item-volume-edit {
    display: none;
    grid-column: 1 / -1;
    gap: 5px;
    color: var(--blue-2);
    font-size: 0.68rem;
    font-weight: 950;
}
.advanced-mode .item-volume-edit {
    display: grid;
}
.item-volume-edit input {
    width: 100%;
    height: 34px;
    border: 1px solid #cfdcf0;
    border-radius: 8px;
    background: #f8fbff;
    color: var(--ink);
    text-align: center;
    font-weight: 950;
}
.stepper {
    display: grid;
    grid-template-columns: 30px 1fr 30px;
    align-items: center;
    gap: 4px;
}
.stepper button,
.stepper span {
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 950;
}
.stepper button {
    border: 1px solid #cfdcf0;
    background: #f8fbff;
    color: var(--blue);
}
.stepper span {
    color: var(--ink);
    background: var(--soft);
}
.volume-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 14px;
}
.volume-strip article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 92px;
    padding: 18px;
    border-right: 1px solid var(--line);
}
.volume-strip article:last-child { border-right: 0; }
.volume-strip i {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--blue);
    font-size: 1.2rem;
}
.volume-strip span { color: var(--muted); font-size: 0.76rem; font-weight: 850; }
.volume-strip strong { color: var(--ink); font-size: 1rem; font-weight: 950; }
.truck-card {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) minmax(260px, .9fr);
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
}
.truck-card img {
    width: 280px;
    border-radius: 10px;
}
.truck-card h2 {
    margin-top: 6px;
    color: var(--ink);
    font-size: 1.55rem;
    line-height: 1.1;
}
.truck-card dl {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}
.truck-card dt { color: var(--muted); font-size: .74rem; font-weight: 850; }
.truck-card dd { color: var(--ink); font-size: 1.05rem; font-weight: 950; }
.cubage-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}
.cubage-breakdown p {
    display: grid;
    gap: 3px;
    padding: 10px;
    border: 1px solid #dbe7f7;
    border-radius: 10px;
    background: #f8fbff;
}
.cubage-breakdown span {
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 900;
}
.cubage-breakdown strong {
    color: var(--blue-2);
    font-size: 0.88rem;
    font-weight: 950;
}
.truck-card aside {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    background: #f7faff;
}
.truck-card aside h3 { font-size: .92rem; }
.truck-card aside p { display: flex; gap: 8px; color: var(--blue-2); font-size: .8rem; line-height: 1.35; font-weight: 750; }
.technical-note { margin-top: 14px; }

.extras-card {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}
.extras-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.extras-heading h2 {
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.1;
}
.extras-heading p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
}
.extras-heading > span {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--blue-2);
    font-size: 0.74rem;
    font-weight: 950;
}
.extras-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.extra-option {
    position: relative;
    min-height: 66px;
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    background: #f8fbff;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 900;
}
.extra-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.extra-option span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--white);
    color: #9aacbf;
    box-shadow: inset 0 0 0 1px #dbe7f7;
}
.extra-option.is-selected {
    border-color: rgba(255, 122, 0, 0.55);
    background: rgba(255, 122, 0, 0.08);
}
.extra-option.is-selected span {
    background: var(--orange);
    color: var(--white);
    box-shadow: none;
}
.care-alerts {
    display: grid;
    gap: 8px;
    padding-top: 4px;
}
.care-alerts h3 {
    color: var(--ink);
    font-size: 0.92rem;
}
.care-alerts article {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 122, 0, 0.32);
    border-radius: 12px;
    background: rgba(255, 122, 0, 0.08);
}
.care-alerts i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 122, 0, 0.14);
    color: var(--orange);
}
.care-alerts strong {
    display: block;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 950;
}
.care-alerts span,
.empty-alert {
    color: var(--muted);
    font-size: 0.76rem;
    line-height: 1.35;
    font-weight: 750;
}

.live-summary {
    position: sticky;
    top: 120px;
    overflow: hidden;
    padding: 18px;
    border-radius: 18px;
    background: var(--navy);
    color: var(--white);
}
.summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.summary-head div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.summary-head h2 { font-size: 1.05rem; }
.summary-head span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--green);
    color: var(--white);
    font-size: .7rem;
    font-weight: 950;
    text-transform: uppercase;
}
.summary-head span i { font-size: .45rem; }
.receipt-stack,
.mobile-receipts {
    display: grid;
    gap: 12px;
}
.receipt {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 14px 16px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(6, 18, 37, 0.06);
}
.receipt::before,
.receipt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background: radial-gradient(circle at 6px 3px, var(--navy) 3px, transparent 3.5px) repeat-x;
    background-size: 12px 6px;
}
.receipt::before { top: -3px; }
.receipt::after { bottom: -3px; }
.receipt .watermark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0.055;
    pointer-events: none;
}
.receipt .watermark img { width: 170px; }
.receipt-head {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.receipt-head strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .82rem;
    text-transform: uppercase;
}
.receipt-head b {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--blue);
}
.receipt-head time { color: var(--blue-2); font-size: .74rem; font-weight: 850; }
.receipt-body {
    position: relative;
    display: grid;
    gap: 5px;
    padding-top: 9px;
    font-size: .78rem;
    line-height: 1.35;
    font-weight: 750;
}
.receipt-body p { display: flex; justify-content: space-between; gap: 8px; }
.receipt-body em { color: var(--blue); font-style: normal; font-weight: 950; }
.receipt-body ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 16px;
    padding-left: 16px;
}
.summary-actions {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}
.summary-actions button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    font-weight: 950;
}
.summary-actions button:first-child { background: var(--orange); }
.summary-actions button:last-child { background: var(--green); }
.live-summary small {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    color: rgba(255,255,255,.72);
    font-size: .78rem;
    font-weight: 750;
}
.mobile-review { display: none; }

@media (max-width: 1180px) {
    .app-shell { width: min(980px, calc(100% - 22px)); }
    .sim-header { gap: 14px; padding-inline: 16px; }
    .brand { width: 165px; }
    .trust-badge { display: none; }
    .main-nav { gap: 4px; }
    .header-cta { padding-inline: 16px; }
    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy { min-height: auto; }
    .live-summary { position: relative; top: auto; }
    .truck-card { grid-template-columns: 220px 1fr; }
    .truck-card aside { grid-column: 1 / -1; }
    .extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) and (max-width: 820px) {
    .sim-header { flex-wrap: wrap; gap: 8px; padding-inline: 12px; }
    .brand { flex: 0 0 165px; }
    .main-nav { order: 1; flex-basis: 100%; justify-content: center; gap: 0; }
    .main-nav a { padding-inline: 6px; }
    .header-cta { margin-left: auto; padding-inline: 12px; }
}

@media (hover: none) {
    .sim-header.is-auto-hidden {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 1450px) {
    .wizard-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .compact-summary {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        background: linear-gradient(180deg, var(--navy) 0 32rem, var(--paper) 32rem 100%);
    }
    .app-shell {
        width: 100%;
        margin: 0;
    }
    .sim-header {
        top: 7px;
        width: calc(100% - 14px);
        min-height: 58px;
        margin: 7px auto 0;
        padding: 7px 8px 7px 11px;
        border-radius: 17px;
    }
    .brand {
        width: 108px;
        padding-right: 0;
        border-right: 0;
    }
    .main-nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 8px;
        right: 8px;
        display: none;
        padding: 10px;
        border-radius: 16px;
        background: rgba(4, 17, 38, 0.98);
        box-shadow: 0 18px 36px rgba(0,0,0,.24);
    }
    .sim-header.is-open .main-nav { display: grid; }
    .main-nav a { background: rgba(255,255,255,.06); }
    .header-cta {
        margin-left: auto;
        min-height: 38px;
        padding: 0 12px;
        border-radius: 13px;
        font-size: 0;
    }
    .header-cta::after {
        content: "Orçamento";
        font-size: .72rem;
    }
    .menu-toggle {
        display: grid;
        width: 40px;
        height: 40px;
    }
    .sim-main { padding-top: 14px; }
    .hero-grid,
    .content-grid {
        gap: 14px;
        margin-inline: 9px;
    }
    .hero-grid {
        justify-items: center;
    }
    .hero-copy {
        gap: 11px;
        padding: 22px 0 0;
    }
    .eyebrow { font-size: .66rem; }
    .hero-copy h1 {
        font-size: clamp(2.05rem, 9.2vw, 3rem);
        line-height: 1;
    }
    .hero-copy p {
        font-size: .86rem;
        line-height: 1.42;
    }
    .benefit-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .benefit-grid article {
        min-height: 62px;
        grid-template-columns: 36px 1fr;
        padding: 9px;
    }
    .benefit-grid i {
        width: 36px;
        height: 36px;
        font-size: .95rem;
    }
    .route-visual { min-height: 96px; }
    .pin i { font-size: 2.5rem; }
    .route-km { bottom: 8px; padding: 7px 12px; }
    .data-card {
        width: min(100%, 420px);
        padding: 14px;
        border-radius: 16px;
        box-shadow: 0 18px 42px rgba(6, 18, 37, 0.14);
    }
    .card-heading {
        gap: 9px;
        margin-bottom: 12px;
    }
    .card-heading > i {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }
    .card-heading span {
        font-size: .66rem;
    }
    .card-heading h2 {
        font-size: 1.08rem;
    }
    .form-grid {
        gap: 10px;
    }
    .mode-buttons {
        grid-template-columns: 1fr;
        gap: 7px;
    }
    .mode-button {
        min-height: 46px;
    }
    .helper-note {
        margin-top: 12px;
        padding: 11px 12px;
        font-size: .74rem;
    }
    .primary-action {
        min-height: 46px;
        font-size: .82rem;
    }
    .form-grid,
    .advanced-row,
    .builder-card,
    .items-grid,
    .volume-strip,
    .truck-card {
        grid-template-columns: 1fr;
    }
    .field.full { grid-column: auto; }
    .advanced-row button {
        min-height: 36px;
        font-size: .74rem;
    }
    .builder {
        padding: 22px 0 24px;
        background: transparent;
    }
    .section-heading {
        padding-inline: 8px;
        margin-bottom: 12px;
    }
    .section-heading h2 {
        font-size: 1.35rem;
    }
    .section-heading p {
        font-size: .78rem;
    }
    .builder-card {
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
    }
    .category-list {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scroll-snap-type: x mandatory;
    }
    .category-button {
        width: 132px;
        flex: 0 0 132px;
        grid-template-columns: 36px 1fr;
        scroll-snap-align: start;
    }
    .category-button i { display: none; }
    .items-grid {
        gap: 9px;
    }
    .item-card {
        min-height: 116px;
        grid-template-columns: 58px 1fr 94px;
        grid-template-rows: auto;
        align-items: center;
    }
    .item-card img {
        width: 54px;
        height: 48px;
    }
    .item-card strong {
        text-align: left;
    }
    .item-copy small {
        text-align: left;
    }
    .advanced-toggle {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }
    .volume-strip {
        margin-top: 12px;
        border-radius: 16px;
    }
    .volume-strip article {
        min-height: 72px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 13px;
    }
    .volume-strip article:last-child { border-bottom: 0; }
    .truck-card {
        padding: 14px;
        gap: 12px;
    }
    .truck-card img {
        width: 100%;
        max-width: 330px;
        justify-self: center;
    }
    .truck-card h2 {
        font-size: 1.22rem;
    }
    .cubage-breakdown,
    .extras-grid {
        grid-template-columns: 1fr;
    }
    .extras-card {
        padding: 14px;
        border-radius: 16px;
    }
    .extras-heading {
        display: grid;
        align-items: start;
    }
    .live-summary {
        display: none;
    }
    .mobile-review {
        display: grid;
        gap: 14px;
        margin-top: 14px;
        padding: 16px;
        border-radius: 16px;
    }
    .mobile-review h2 {
        font-size: 1.15rem;
    }
    .receipt-body ul {
        grid-template-columns: 1fr;
    }
}

/* Wizard refactor */
.wizard-main {
    padding-top: 24px;
}
.wizard-hero {
    display: grid;
    grid-template-columns: minmax(360px, .9fr) minmax(620px, 1.1fr);
    gap: 32px;
    align-items: start;
}
.wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}
.wizard-card {
    align-self: start;
    min-height: 560px;
}
.wizard-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: .78rem;
    font-weight: 950;
    text-transform: uppercase;
}
.wizard-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 950;
}
.wizard-back:disabled {
    opacity: .35;
    cursor: default;
}
.wizard-progress {
    height: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 999px;
    background: #e6edf7;
}
.wizard-progress span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), #18b7d8);
    transition: width .25s ease;
}
.wizard-step[hidden],
.wizard-step:not(.is-active) {
    display: none !important;
}
.wizard-step.is-active {
    display: grid;
    gap: 16px;
}
.card-heading p {
    margin-top: 4px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.35;
    font-weight: 750;
}
.wizard-actions {
    display: grid;
    grid-template-columns: minmax(130px, .36fr) minmax(0, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.secondary-action {
    min-height: 48px;
    border: 1px solid #d7e0ec;
    border-radius: 14px;
    background: #fff;
    color: var(--blue-2);
    font-weight: 950;
}
.mode-buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
#upload-mode-panel textarea {
    width: 100%;
    min-height: 128px;
    resize: vertical;
    padding: 12px;
    border: 1px solid #d7e0ec;
    border-radius: 10px;
    background: #fbfcff;
    color: var(--ink);
    font-weight: 750;
    outline: 0;
}
.file-field input {
    min-height: 48px;
    padding: 12px;
    border: 1px dashed #b9c8dc;
    border-radius: 10px;
    background: #f8fbff;
}
.builder-card {
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1fr);
}
.category-button {
    min-height: 88px;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
        "icon label"
        "actions actions";
}
.category-button img {
    grid-area: icon;
}
.category-button > span {
    grid-area: label;
}
.category-button > i {
    display: none;
}
.category-button em {
    grid-area: actions;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-style: normal;
}
.category-button em b {
    min-height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--soft);
    color: var(--blue-2);
    font-size: .65rem;
    font-weight: 950;
}
.category-button em b:last-child {
    background: var(--orange);
    color: #fff;
}
.item-empty-state {
    grid-column: 1 / -1;
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 24px;
    border: 1px dashed #cfdcf0;
    border-radius: 14px;
    background: #f8fbff;
    text-align: center;
}
.item-empty-state i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--blue);
}
.item-empty-state strong {
    color: var(--ink);
    font-size: .95rem;
}
.item-empty-state span {
    max-width: 360px;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
    font-weight: 750;
}
.boxes-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.boxes-levels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.box-level-button {
    min-height: 54px;
    padding: 8px;
    border: 1px solid #d7e0ec;
    border-radius: 12px;
    background: #f8fbff;
    color: var(--blue-2);
    font-size: .74rem;
    line-height: 1.2;
    font-weight: 950;
}
.box-level-button.is-active {
    border-color: var(--orange);
    background: rgba(255, 122, 0, .1);
    color: var(--orange-2);
}
.compact-summary {
    max-height: calc(100vh - 142px);
    overflow: auto;
    padding: 14px;
}
.compact-summary .receipt:nth-child(n+5) {
    display: none;
}
.final-actions {
    margin-top: 0;
}
.mobile-review.is-final {
    display: grid;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body[data-wizard-step="5"] .compact-summary {
    display: none;
}

@media (max-width: 1450px) {
    .wizard-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .compact-summary {
        display: none;
    }
}

@media (max-width: 1180px) {
    .wizard-hero {
        grid-template-columns: 1fr;
    }
    .wizard-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .compact-summary {
        display: none;
    }
}

@media (max-width: 760px) {
    body {
        background: linear-gradient(180deg, var(--navy) 0 26rem, var(--paper) 26rem 100%);
    }
    .wizard-main {
        padding-top: 12px;
    }
    .wizard-hero {
        gap: 12px;
        margin-inline: 9px;
    }
    .hero-copy {
        padding: 16px 0 0;
    }
    .hero-copy h1 {
        font-size: clamp(1.9rem, 8.2vw, 2.45rem);
    }
    .benefit-grid,
    .route-visual {
        display: none;
    }
    .wizard-card {
        width: 100%;
        min-height: auto;
        padding: 14px;
        border-radius: 18px;
    }
    .wizard-step.is-active {
        gap: 13px;
    }
    .mode-buttons,
    .wizard-actions,
    .builder-card,
    .boxes-levels,
    .volume-strip,
    .truck-card {
        grid-template-columns: 1fr;
    }
    .category-button {
        min-height: 92px;
    }
    .items-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .item-card {
        min-height: 150px;
    }
    .extras-grid {
        grid-template-columns: 1fr;
    }
    .mobile-review.is-final {
        margin-top: 0;
    }
}

@media print {
    body { background: #fff; }
    .sim-header,
    .hero-copy,
    .data-card,
    .builder,
    .summary-actions,
    .live-summary small { display: none !important; }
    .app-shell { width: 100%; margin: 0; }
    .live-summary {
        display: block !important;
        position: static;
        padding: 0;
        border: 0;
        background: #fff;
        color: #000;
        box-shadow: none;
    }
    .receipt { break-inside: avoid; border: 1px solid #ddd; }
}

/* Wizard etapa 4: layout tecnico limpo e responsivo */
body[data-wizard-step="4"] .wizard-layout {
    grid-template-columns: minmax(680px, 1fr) minmax(300px, 360px);
    gap: 32px;
    align-items: start;
    width: 100%;
}

body[data-wizard-step="4"] .wizard-hero {
    grid-template-columns: minmax(0, 1fr);
}

body[data-wizard-step="4"] .hero-copy {
    display: none;
}

body[data-wizard-step="4"] .wizard-card {
    max-width: 940px;
    justify-self: end;
    overflow: visible;
}

body[data-wizard-step="4"] .compact-summary {
    display: block;
    position: sticky;
    top: 118px;
    max-width: 360px;
    justify-self: start;
}

body[data-wizard-step="4"] .volume-strip {
    gap: 10px;
    overflow: visible;
    border-radius: 0;
}

body[data-wizard-step="4"] .volume-strip article {
    min-height: 86px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.truck-card-v2 {
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.truck-card-v2 figure {
    display: grid;
    place-items: center;
    min-height: 210px;
    margin: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbff, #eef4fc);
    overflow: hidden;
}

.truck-card-v2 img {
    width: min(100%, 330px);
    max-height: 190px;
    object-fit: contain;
    border-radius: 0;
}

.truck-card-v2 .truck-data {
    display: grid;
    align-content: center;
    min-width: 0;
}

.truck-card-v2 h2 {
    margin-top: 4px;
    font-size: clamp(1.65rem, 2.2vw, 2.15rem);
}

.truck-card-v2 dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.truck-card-v2 dl div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    background: #f8fbff;
}

.truck-card-v2 dd {
    overflow-wrap: anywhere;
}

.truck-observation {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 132, 0, .1);
    color: var(--blue-2);
    font-size: .84rem;
    font-weight: 850;
}

.estimate-composition {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.estimate-composition h3 {
    margin-top: 4px;
    color: var(--ink);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    line-height: 1.08;
}

.estimate-composition > div:first-child p {
    margin-top: 5px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 750;
}

.estimate-composition .cubage-breakdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
}

.estimate-composition .cubage-breakdown p:last-child {
    border-color: rgba(255, 132, 0, .35);
    background: #fff6eb;
}

.technical-note-v2 {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #dbe7f7;
    border-radius: 14px;
    background: #f3f8ff;
    color: var(--blue-2);
}

.technical-note-v2 > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5f0ff;
    color: var(--blue);
}

.technical-note-v2 strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.technical-note-v2 p {
    margin: 3px 0;
    font-size: .86rem;
    font-weight: 750;
    line-height: 1.35;
}

@media (max-width: 1280px) {
    body[data-wizard-step="4"] .wizard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body[data-wizard-step="4"] .wizard-card {
        justify-self: center;
        max-width: min(940px, calc(100vw - 36px));
    }

    body[data-wizard-step="4"] .compact-summary {
        display: none;
    }
}

@media (max-width: 980px) {
    .truck-card-v2 {
        grid-template-columns: 1fr;
    }

    .truck-card-v2 dl,
    .estimate-composition .cubage-breakdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    body[data-wizard-step="4"] .wizard-card {
        max-width: calc(100vw - 18px);
    }

    body[data-wizard-step="4"] .volume-strip,
    .truck-card-v2 dl,
    .estimate-composition .cubage-breakdown {
        grid-template-columns: 1fr;
    }

    .truck-card-v2,
    .estimate-composition,
    .technical-note-v2 {
        padding: 14px;
    }

    .truck-card-v2 figure {
        min-height: 170px;
    }

    .wizard-actions {
        gap: 10px;
    }
}
