/* ===========================================================================
   INCAFE Structural Systems · assistent de naus
   Mateix llenguatge visual que web3_incafe i els seus assistents:
   fons gris fosc amb degradats irregulars, targetes fosques, accent préssec
   (#f2a692), vermell de marca (#832817 / #b64c38), Inter + Commissioner 900.
   =========================================================================== */

:root {
    --bg: #171b21;
    --bg2: #1e242b;
    --card: #242a32;
    --card2: #2c333c;
    --card3: #343c46;
    --ink: #eef2f6;
    --muted: #aeb7c2;
    --muted2: #8c97a4;
    --peach: #f2a692;
    --peach2: #d9826e;
    --peach-soft: rgba(242, 166, 146, .12);
    --brand: #832817;
    --brand2: #b64c38;
    --link: #a8d2f0;
    --line: rgba(255, 255, 255, .09);
    --line2: rgba(255, 255, 255, .16);
    --cream: #f7f3ec;
    --ok: #9bd7a1;
    --warn: #f3d38b;
    --err: #ff9b91;
    --radius: 16px;
    --radius-s: 10px;
    --shadow: 0 18px 50px rgba(0, 0, 0, .25);
    --c-col: #385c9e;
    --c-raf: #db7829;
    --c-gab: #4d995c;
    --c-pur: #b8babf;
    --c-gir: #949ba8;
    --c-rod: #cc2929;
    --c-str: #8c66b3;
    --head-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
    background: #33383f;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    position: relative;
}

/* Fons de web3_incafe: taques fosques i clares alternades sobre un degradat. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(34% 70% at 6% 14%, rgba(10, 11, 13, .85), transparent 66%),
        radial-gradient(80% 28% at 90% 16%, rgba(94, 103, 114, .40), transparent 70%),
        radial-gradient(26% 52% at 58% 4%, rgba(118, 128, 140, .24), transparent 64%),
        radial-gradient(86% 52% at 82% 78%, rgba(12, 14, 16, .78), transparent 72%),
        radial-gradient(40% 72% at 14% 86%, rgba(112, 122, 134, .26), transparent 66%),
        radial-gradient(30% 22% at 44% 44%, rgba(255, 255, 255, .06), transparent 68%),
        radial-gradient(22% 44% at 97% 50%, rgba(8, 9, 11, .70), transparent 62%),
        linear-gradient(150deg, #454b53 0%, #2b3037 48%, #141619 100%);
}

a { color: var(--link); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--peach); color: #1b1b1b; padding: 8px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 3px solid var(--peach); outline-offset: 2px; }

/* --------------------------------------------------------------- capçalera */
.site-header {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    height: var(--head-h);
    padding: 0 clamp(14px, 3vw, 40px);
    background: rgba(23, 27, 33, .86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.logo {
    font-family: Commissioner, Inter, sans-serif; font-weight: 900; font-size: 1.9rem;
    letter-spacing: -.03em; line-height: 1;
}
.logo__a { color: #f4f5f7; }
.logo__b { color: var(--brand2); }
.brand__sub {
    font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
    font-weight: 600;
}
.header-nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.header-link, .header-tel { color: var(--muted); text-decoration: none; font-weight: 600; }
.header-link:hover, .header-tel:hover { color: var(--peach); }
.lang-picker select {
    background: var(--card); border: 1px solid var(--line2); border-radius: 8px;
    padding: 6px 8px; font-weight: 700; font-size: .85rem; cursor: pointer;
}

/* ----------------------------------------------------------------- botons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px;
    border: 1px solid var(--line2); border-radius: 12px;
    background: var(--card2); color: var(--ink);
    font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none;
    transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--card3); border-color: rgba(255, 255, 255, .28); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--peach); border-color: var(--peach); color: #2a1a15; }
.btn--primary:hover { background: #f7b9a8; border-color: #f7b9a8; color: #2a1a15; }
.btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn--round { width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 1.5rem; }

/* ----------------------------------------------------------------- portada */
.hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 60px);
    align-items: center;
    width: min(1440px, 100%); margin: 0 auto;
    padding: clamp(28px, 6vh, 70px) clamp(14px, 3vw, 40px) clamp(30px, 6vh, 60px);
}
.eyebrow {
    margin: 0 0 14px; color: var(--peach); font-weight: 700; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase;
}
.hero__title {
    font-family: Commissioner, Inter, sans-serif; font-weight: 900;
    font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.9rem); letter-spacing: -.01em;
    text-transform: uppercase; text-wrap: balance;
}
.hero__lead { margin: 18px 0 22px; color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.hero__points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.hero__points li {
    display: grid; gap: 2px; padding: 12px 16px;
    border-left: 3px solid var(--brand2); background: rgba(36, 42, 50, .65); border-radius: 0 12px 12px 0;
}
.hero__points strong { font-size: .98rem; }
.hero__points span { color: var(--muted); font-size: .92rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero__note { color: var(--muted2); font-size: .85rem; max-width: 34ch; }
.hero__figure {
    margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
    border: 1px solid var(--line2); background: #d9dbdd; aspect-ratio: 16 / 10;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
/* arrencada directa a un pas (?pas=…): sense portada, només un indicador mentre arriba el catàleg */
.boot-wiz #hero { display: none; }
.boot-wiz #main::before {
    content: ""; display: block; width: 34px; height: 34px; margin: 28vh auto;
    border: 3px solid var(--line2); border-top-color: var(--peach); border-radius: 50%;
    animation: boot-spin .8s linear infinite;
}
@keyframes boot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .boot-wiz #main::before { animation-duration: 2.4s; } }

/* ----------------------------------------------------------------- passos */
.wizard { width: min(1440px, 100%); margin: 0 auto; padding: 18px clamp(14px, 3vw, 40px) 50px; }
.steps { margin: 0 0 22px; overflow-x: auto; scrollbar-width: thin; }
.steps ol {
    list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 8px; min-width: max-content;
    counter-reset: step;
}
.steps li button {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px 8px 8px; border-radius: 999px;
    background: rgba(36, 42, 50, .75); border: 1px solid var(--line); color: var(--muted);
    font-size: .86rem; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.steps li button::before {
    counter-increment: step; content: counter(step);
    display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
    background: var(--card3); color: var(--ink); font-size: .8rem; font-weight: 700;
}
.steps li button[aria-current="step"] { color: var(--ink); border-color: var(--peach); background: var(--peach-soft); }
.steps li button[aria-current="step"]::before { background: var(--peach); color: #2a1a15; }
.steps li button.is-done::before { content: "✓"; background: rgba(155, 215, 161, .22); color: var(--ok); }
.steps li button:disabled { opacity: .45; cursor: default; }

.wizard__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.wizard__main { min-width: 0; }

.card {
    background: rgba(36, 42, 50, .92); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step__head { margin-bottom: 20px; }
.step__num { margin: 0 0 6px; color: var(--peach); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.step__head h2 {
    font-family: Commissioner, Inter, sans-serif; font-weight: 900; text-transform: uppercase;
    font-size: clamp(1.5rem, 1rem + 1.6vw, 2.3rem); letter-spacing: -.005em;
}
.step__lead { margin: 10px 0 0; color: var(--muted); max-width: 70ch; }
.sub-title { margin: 26px 0 12px; font-size: 1.05rem; color: var(--ink); }
.hint--lead { margin: -4px 0 14px; max-width: 75ch; }
.hint { color: var(--muted2); font-size: .88rem; margin: 12px 0 0; }

/* ------------------------------------------------------- targetes d'opció */
.options { display: grid; gap: 16px; }
.options--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opt {
    position: relative; display: flex; flex-direction: column; text-align: left;
    padding: 0; overflow: hidden; cursor: pointer;
    background: rgba(36, 42, 50, .92); border: 2px solid var(--line); border-radius: var(--radius);
    color: var(--ink); transition: border-color .15s, transform .15s, background .15s;
}
.opt:hover { border-color: rgba(242, 166, 146, .55); transform: translateY(-2px); }
.opt[aria-checked="true"] { border-color: var(--peach); background: rgba(52, 44, 44, .95); }
.opt[aria-checked="true"]::after {
    content: "✓"; position: absolute; top: 10px; right: 10px;
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--peach); color: #2a1a15; font-weight: 900;
}
.opt__img { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; }
.opt__img img { width: 100%; height: 100%; object-fit: contain; }
.opt__img--photo img { object-fit: cover; }
.opt__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.opt__title { font-weight: 800; font-size: 1.25rem; }
.opt__sub { color: var(--muted); font-size: .9rem; }
.opt__list { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .86rem; }
.opt__list li { margin: 2px 0; }
.options--text .opt__body { padding: 16px; }
.options--text .opt__title { font-size: 1.02rem; }

/* ----------------------------------------------------------------- llargada */
.length { padding: 22px; margin-bottom: 18px; }
.length__ctrl { display: flex; align-items: center; justify-content: center; gap: 24px; }
.length__value { text-align: center; min-width: 220px; }
.length__big { display: block; font-family: Commissioner, Inter, sans-serif; font-weight: 900; font-size: 3rem; line-height: 1; }
.length__sub { color: var(--muted); font-size: .92rem; }
.length input[type="range"] { width: 100%; margin: 20px 0 6px; accent-color: var(--peach); height: 28px; }
.length__scale { display: flex; justify-content: space-between; color: var(--muted2); font-size: .78rem; }

.drawing { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); }
.drawing img { width: 100%; aspect-ratio: 1800 / 760; object-fit: contain; background: #fff; }
.drawing figcaption, .viewer figcaption { padding: 8px 14px; background: var(--cream); color: #4a4f57; font-size: .82rem; }

/* ----------------------------------------------------------------- camps */
.fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; padding: 18px; }
.field { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; min-height: 46px; padding: 10px 12px;
    background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--radius-s); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--peach); outline: none; box-shadow: 0 0 0 3px var(--peach-soft); }
.field--notes { padding: 18px; margin-top: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.req { color: var(--peach); text-decoration: none; }

.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check-card {
    display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
    padding: 14px 16px; border-radius: var(--radius); cursor: pointer;
    background: rgba(36, 42, 50, .92); border: 1px solid var(--line);
}
.check-card:has(input:checked) { border-color: var(--peach); background: rgba(52, 44, 44, .95); }
.check-card input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--peach); grid-row: span 2; }
.check-card strong { font-size: .98rem; }
.check-card span { color: var(--muted); font-size: .86rem; grid-column: 2; }
.check-card .extra-field { grid-column: 2; margin-top: 8px; display: none; }
.check-card:has(input:checked) .extra-field { display: grid; }
.extra-field input { min-height: 40px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-size: .9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--peach); flex: none; }

/* --------------------------------------------------------------- navegació */
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.wizard__nav[hidden] { display: none; }

/* --------------------------------------------------------------- resum viu */
.live { position: sticky; top: calc(var(--head-h) + 18px); padding: 14px; }
.live__fig { margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: #d9dbdd; aspect-ratio: 16 / 10; }
.live__fig img { width: 100%; height: 100%; object-fit: cover; }
.live__title { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--peach); margin: 0 4px 8px; }
.live__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; padding: 0 4px; font-size: .92rem; }
.live__list dt { color: var(--muted2); }
.live__list dd { margin: 0; text-align: right; font-weight: 700; }
.live__list .live__weight { font-size: 1.25rem; color: var(--peach); }
.live__note { color: var(--muted2); font-size: .76rem; margin: 12px 4px 0; }

/* ----------------------------------------------------------------- resum */
.viewer { overflow: hidden; margin-bottom: 18px; }
.viewer__tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.viewer__tabs button {
    padding: 8px 14px; border-radius: 10px; border: 1px solid transparent; background: transparent;
    color: var(--muted); font-weight: 700; font-size: .88rem; cursor: pointer;
}
.viewer__tabs button[aria-selected="true"] { background: var(--peach-soft); color: var(--ink); border-color: rgba(242, 166, 146, .45); }
.viewer__fig { margin: 0; background: #fff; }
.viewer__fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #fff; }
.viewer__fig img.is-render { object-fit: cover; background: #d9dbdd; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; }
.kpi__label { color: var(--muted2); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.kpi__value { font-family: Commissioner, Inter, sans-serif; font-weight: 900; font-size: 1.6rem; line-height: 1.15; }
.kpi__value small { font-family: Inter, sans-serif; font-weight: 600; font-size: .85rem; color: var(--muted); }
.kpi--accent .kpi__value { color: var(--peach); }

.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 6px; }
.card__head h3 { font-size: 1.05rem; }
.tag { font-size: .72rem; font-weight: 700; color: var(--peach); border: 1px solid rgba(242, 166, 146, .4); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.table-card { margin-bottom: 14px; }
.table-wrap { overflow-x: auto; padding: 0 8px; }
.table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted2); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 800; border-bottom: 0; }
.table tfoot tr:first-child td { border-top: 2px solid var(--line2); }
.table .muted { color: var(--muted2); font-weight: 500; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.note { color: var(--muted2); font-size: .82rem; padding: 4px 18px 16px; margin: 0; }
.note--top { padding: 0 18px 8px; font-size: .88rem; color: var(--muted); }

/* entre mitgeres i resistència al foc */
.hint--accent { color: var(--ink); background: var(--peach-soft); border-left: 3px solid var(--peach); border-radius: 0 10px 10px 0; padding: 10px 14px; margin: 0 0 14px; font-size: .92rem; }
.party-card { margin-bottom: 14px; border-color: rgba(242, 166, 146, .35); }
.party-width { margin: 4px 18px 10px; font-size: 1rem; font-weight: 700; color: var(--peach); }
.party-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 26px; padding: 0 18px 16px; }
.party-grid h4 { margin: 4px 0 8px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); }
.party-legend { margin: 0; padding-left: 1.5em; color: var(--muted); font-size: .88rem; }
.party-legend li { margin: 0 0 5px; padding-left: 2px; }
.party-legend li::marker { color: var(--peach); font-weight: 800; }
.party-points { margin: 0; padding-left: 1.1em; color: var(--ink); font-size: .9rem; }
.party-points li { margin: 0 0 9px; }
.fire-notes .fire-note { display: block; margin: 0 0 6px; }
#fireTable { min-width: 0; }
#fireTable th.num { white-space: normal; }
@media (max-width: 520px) {
    #fireTable th, #fireTable td { padding: 8px 6px; font-size: .8rem; }
    #fireTable th { letter-spacing: 0; font-size: .68rem; }
}
@media (max-width: 860px) { .party-grid { grid-template-columns: 1fr; } }
@media print {
    .party-width { color: #111; }
    .party-legend, .party-points { color: #333; }
    .hint--accent { display: none; }
}
.table .sec-row td { padding-top: 14px; color: var(--peach); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-bottom: 0; }
.table--text { min-width: 0; }
.table--text th { width: 200px; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 700; }
.table--text td { color: var(--muted); }
.det-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 6px 16px 18px; }
.det { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--line2); }
.det img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; transition: transform .2s; }
.det a:hover img { transform: scale(1.03); }
.det figcaption { padding: 6px 10px; background: var(--cream); color: #4a4f57; font-size: .78rem; }
@media (max-width: 860px) { .table--text th { width: 120px; } }

.details { margin-bottom: 14px; }
.details summary { padding: 16px 18px; cursor: pointer; font-weight: 700; }
.details > div, .details > ul { padding: 0 18px 18px; }
.hyp { margin: 0; color: var(--muted); font-size: .88rem; display: grid; gap: 6px; padding-left: 36px !important; }

.bars { display: grid; gap: 10px; margin: 4px 0 18px; }
.bar { display: grid; grid-template-columns: 170px 1fr 52px; gap: 12px; align-items: center; font-size: .88rem; }
.bar__track { height: 10px; border-radius: 99px; background: var(--card3); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--warn)); }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-top: 6px; }
.mini-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.mini-table td:last-child { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; background: rgba(243, 211, 139, .12); border: 1px solid rgba(243, 211, 139, .4); color: var(--warn); }

.sum-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* -------------------------------------------------------------- formulari */
.form { padding: 20px; }
.field--file input { padding: 10px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 155, 145, .12); border: 1px solid rgba(255, 155, 145, .45); color: var(--err); }
.form__actions { margin-top: 18px; }
.success { padding: 24px; border-color: rgba(155, 215, 161, .5); }
.success h3 { color: var(--ok); font-size: 1.3rem; margin-bottom: 10px; }

/* ----------------------------------------------------------------- peu */
.site-footer { border-top: 1px solid var(--line); background: rgba(16, 18, 21, .75); margin-top: 30px; }
.site-footer__in { width: min(1440px, 100%); margin: 0 auto; padding: 24px clamp(14px, 3vw, 40px) 30px; color: var(--muted2); font-size: .85rem; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer__brand strong { color: var(--muted); }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
    background: var(--card3); border: 1px solid var(--line2); padding: 12px 18px; border-radius: 12px;
    box-shadow: var(--shadow); font-weight: 600;
}

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .wizard__grid { grid-template-columns: minmax(0, 1fr); }
    .live {
        position: sticky; bottom: 0; top: auto; z-index: 20; order: 2; background: #242a32;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, .45);
        display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 4px 14px;
        padding: 10px 12px; border-radius: 16px 16px 0 0;
    }
    .live__fig { grid-row: span 2; margin: 0; }
    .live__title, .live__note { display: none; }
    .live__list { grid-template-columns: repeat(3, auto 1fr); font-size: .82rem; gap: 2px 8px; }
    .live__list .live__weight { font-size: 1rem; }
    .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hero { grid-template-columns: 1fr; }
    .hero__figure { order: -1; }
    .options--3, .options--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .checks, .grid2, .fields { grid-template-columns: 1fr; }
    .header-link { display: none; }
    .bar { grid-template-columns: 120px 1fr 46px; }
}
@media (max-width: 520px) {
    .options--2, .options--3, .options--4 { grid-template-columns: 1fr; }
    .opt { flex-direction: row; }
    .opt__img { width: 42%; flex: none; aspect-ratio: 4 / 3; }
    .brand__sub { display: none; }
    .live__list { grid-template-columns: auto 1fr; }
    .length__big { font-size: 2.3rem; }
    .length__value { min-width: 0; }
}

/* ----------------------------------------------------------------- impressió */
@media print {
    body::before, .site-header, .steps, .wizard__nav, .live, .sum-actions, .hero, .site-footer__legal,
    .toast, .viewer__tabs, [data-step]:not([data-step="resum"]) { display: none !important; }
    html, body { background: #fff; color: #111; }
    .wizard { padding: 0; }
    .wizard__grid { display: block; }
    .card { background: #fff; border: 1px solid #ccc; box-shadow: none; break-inside: avoid; }
    .step__head h2, .kpi__value, .kpi--accent .kpi__value { color: #111; }
    .step__lead, .note, .hyp, .table th, .kpi__label { color: #444; }
    .table th, .table td { border-color: #ddd; }
    details { display: block; }
    details > * { display: block !important; }
    .print-head { display: block !important; }
    a { color: #111; }
    .site-footer { background: #fff; border-top: 1px solid #ccc; }
    .site-footer__in, .site-footer a, .site-footer__brand strong { color: #444; }
    .bar__track { background: #eee; }
    .mini-table td { border-color: #ddd; }
}
.print-head { display: none; }
