/* ==========================================================================
   BuildQuote customer site: design system + pages (plain CSS, no build step)
   Direction: delivery challan / dealer bill, cement-grey paper, steel ink,
   tipper-truck yellow for the one primary action. Mobile first.
   ========================================================================== */

@font-face {
    font-family: "Archivo";
    src: url("/fonts/archivo-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-stretch: 62% 125%;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    /* Colour */
    --paper: #F2F3F0;          /* concrete page */
    --surface: #FFFFFF;
    --fill: #E5E8E4;           /* quiet fills, chips */
    --line: #CDD2CD;           /* borders */
    --line-strong: #858C86;     /* control borders: ≥3:1 on white and paper */
    --ink: #16212B;            /* steel ink: text, dark surfaces */
    --ink-2: #3E4955;          /* secondary text (≈9:1 on paper) */
    --muted: #5B6570;          /* tertiary text (≈5.4:1 on paper) */
    --tipper: #F5B700;         /* primary action, live state */
    --tipper-press: #DCA300;
    --tipper-soft: #FFF4CC;
    --signal: #1D57BF;         /* links, focus */
    --oxide: #B42318;          /* errors */
    --oxide-soft: #FCEDEB;
    --site-green: #1B7A4A;     /* done */
    --site-green-soft: #E3F2EA;

    /* Type */
    --font: "Archivo", "Noto Sans Kannada", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --text-xs: 0.8125rem;      /* 13 */
    --text-sm: 0.875rem;       /* 14 */
    --text-md: 1rem;           /* 16: body, inputs (avoids iOS zoom) */
    --text-lg: 1.125rem;       /* 18 */
    --text-xl: 1.375rem;       /* 22 */
    --text-2xl: 1.75rem;       /* 28 */
    --text-display: clamp(2.125rem, 9vw, 3.5rem);
    --leading-tight: 1.04;
    --leading-snug: 1.25;
    --leading-body: 1.55;
    --wide: 118%;              /* signboard width for display type */

    /* Space (4px base) */
    --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
    --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
    --gutter: 16px;

    /* Shape: radius follows hierarchy (control < card < hero object) */
    --r-control: 8px;
    --r-card: 12px;
    --r-object: 18px;
    --r-pill: 999px;
    --border: 1px solid var(--line);

    /* Elevation: only lifted objects (challan, sticky bar) get shadow */
    --lift: 0 1px 0 rgba(22, 33, 43, 0.05), 0 14px 32px -18px rgba(22, 33, 43, 0.45);
    --bar: 0 -10px 24px -16px rgba(22, 33, 43, 0.35);

    /* Controls */
    --control-h: 52px;
    --tap: 44px;
    --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--signal);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: var(--text-md);
    line-height: var(--leading-body);
    font-variation-settings: normal;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
h1, h2, h3 { margin: 0; line-height: var(--leading-snug); text-wrap: balance; }
h2 { font-size: var(--text-xl); font-weight: 750; font-stretch: 108%; letter-spacing: -0.005em; }
h3 { font-size: var(--text-lg); font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--signal); text-underline-offset: 3px; }
img, svg { display: block; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-control); }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 600px; }
.stack > * + * { margin-top: var(--s-4); }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
    font-weight: 800; font-stretch: 112%; font-size: 1.1875rem; letter-spacing: -0.01em; min-height: var(--tap); }
.brand-mark { width: 30px; height: 22px; }
.place { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.place .icon { width: 16px; height: 16px; }
.site-footer { margin-top: var(--s-12); border-top: var(--border); background: var(--surface); color: var(--muted);
    font-size: var(--text-sm); }
.site-footer .wrap { padding-block: var(--s-6) var(--s-8); display: grid; gap: var(--s-1); }
.site-footer strong { color: var(--ink); font-weight: 700; }
.site-footer .footer-note { margin-top: var(--s-2); font-size: var(--text-xs); max-width: 70ch; }

/* ---------- 4. Components ------------------------------------------------ */

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
    min-height: var(--control-h); padding: 0 var(--s-6);
    border: 1.5px solid var(--ink); border-radius: var(--r-control);
    background: var(--surface); color: var(--ink);
    font: inherit; font-weight: 700; font-size: var(--text-md); text-decoration: none; cursor: pointer;
    transition: background-color 120ms ease, transform 80ms ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--fill); }
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: var(--tipper); border-color: var(--tipper); color: var(--ink);
    font-size: var(--text-lg); font-weight: 800; font-stretch: 106%;
    box-shadow: inset 0 -3px 0 rgba(22, 33, 43, 0.18);
}
.btn-primary:hover { background: var(--tipper-press); border-color: var(--tipper-press); }
.btn-block { width: 100%; }
.btn-quiet { border-color: var(--line); }
.btn[hidden] { display: none; }

/* Status badges */
.badge {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
    border-radius: var(--r-pill); font-size: var(--text-xs); font-weight: 700; line-height: 1.5;
    background: var(--fill); color: var(--ink-2);
}
.badge-live { background: var(--tipper-soft); color: #6B4E00; }
.badge-done { background: var(--site-green-soft); color: var(--site-green); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-live .dot { background: var(--tipper-press); box-shadow: 0 0 0 0 rgba(220, 163, 0, 0.6); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 163, 0, 0.55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(220, 163, 0, 0); } }

/* Cards: flat by default; .lifted only for the one object on a page */
.card { background: var(--surface); border: var(--border); border-radius: var(--r-card); padding: var(--s-5); }
.card > h2 + * { margin-top: var(--s-2); }
.card > * + .progress, .card > * + .linkbox { margin-top: var(--s-4); }

/* Checks list (reassurance) */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.checks li { display: flex; align-items: center; gap: var(--s-2); color: var(--ink-2); font-size: var(--text-sm); font-weight: 500; }
.checks .icon { width: 18px; height: 18px; color: var(--site-green); }

/* --- The challan: a perforated slip, the site's signature object --------- */
.challan {
    position: relative; background: var(--surface); border-radius: var(--r-object);
    box-shadow: var(--lift); border: 1px solid #D9DDD8;
}
.challan-head { padding: var(--s-5) var(--s-5) var(--s-4); }
.challan-body { padding: var(--s-4) var(--s-5) var(--s-5); }
.challan-tear {
    position: relative; height: 0; border-top: 2px dashed var(--line);
    margin-inline: var(--s-4);
}
.challan-tear::before, .challan-tear::after {
    content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--paper); border: 1px solid #D9DDD8;
}
.challan-tear::before { left: -27px; clip-path: inset(0 0 0 50%); }
.challan-tear::after { right: -27px; clip-path: inset(0 50% 0 0); }
.challan-title { font-size: var(--text-sm); color: var(--muted); font-weight: 600; }
.challan-ref { font-size: clamp(1.75rem, 8vw, 2.25rem); font-weight: 850; font-stretch: var(--wide);
    letter-spacing: 0.01em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-3); align-items: start;
    padding-block: var(--s-3); border-bottom: 1px solid var(--fill); }
.lines li:last-child { border-bottom: 0; }
.lines .icon { color: var(--ink-2); margin-top: 2px; }
.lines .what { font-weight: 600; }
.lines .detail { display: block; color: var(--muted); font-size: var(--text-sm); font-weight: 400; }
.lines .tick, .lines .tick .icon { color: var(--site-green); }
.challan-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3);
    padding-top: var(--s-4); margin-top: var(--s-1); border-top: 2px solid var(--ink); }
.challan-total .label { font-weight: 800; font-stretch: 110%; font-size: var(--text-lg); }
.challan-total .value { color: var(--ink-2); font-size: var(--text-sm); text-align: right; }

/* --- Forms --------------------------------------------------------------- */
.field { display: grid; gap: 6px; }
.form-section > :not(:first-child) { margin-top: var(--s-6); }
.label { font-weight: 700; font-size: var(--text-md); }
.label .optional { color: var(--muted); font-weight: 400; }
.hint { color: var(--muted); font-size: var(--text-sm); }
.input {
    width: 100%; min-height: var(--control-h); padding: 12px 14px;
    font: inherit; font-size: var(--text-md); color: var(--ink); background: var(--surface);
    border: 1.5px solid var(--line-strong); border-radius: var(--r-control);
    transition: border-color 120ms ease, box-shadow 120ms ease;
    appearance: none; -webkit-appearance: none;
}
textarea.input { min-height: 88px; resize: vertical; line-height: var(--leading-body); }
.input::placeholder { color: #6E767E; }
.input:hover { border-color: var(--ink-2); }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(29, 87, 191, 0.22); }
.input[type="date"] { min-height: var(--control-h); }
.has-error .input { border-color: var(--oxide); background: #FFFBFA; }
.has-error .input:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.2); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--oxide); font-size: var(--text-sm); font-weight: 600; }
.field-error .icon { width: 16px; height: 16px; margin-top: 2px; }

/* Input with a fixed prefix/suffix (+91, bags) */
.affix { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--r-control);
    background: var(--surface); overflow: hidden; }
.affix:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(29, 87, 191, 0.22); }
.has-error .affix { border-color: var(--oxide); }
.affix .input { border: 0; border-radius: 0; box-shadow: none; min-width: 0; }
.affix .input:focus { box-shadow: none; }
.affix-text { display: inline-flex; align-items: center; padding: 0 14px; background: var(--fill); color: var(--ink-2);
    font-weight: 700; white-space: nowrap; }

/* Quantity stepper (buttons appear only with JavaScript) */
.stepper { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-2); align-items: stretch; }
.stepper .affix { min-width: 0; }
.stepper .input { text-align: center; font-size: var(--text-xl); font-weight: 750; font-variant-numeric: tabular-nums; }
.step-btn { width: var(--control-h); min-height: var(--control-h); display: inline-flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--line-strong); border-radius: var(--r-control); background: var(--surface); color: var(--ink);
    cursor: pointer; -webkit-tap-highlight-color: transparent; }
.step-btn:hover { background: var(--fill); }
.step-btn[hidden] { display: none; }
.stepper:has(.step-btn[hidden]) { grid-template-columns: 1fr; }

/* Choice chips: real radio buttons styled as tappable chips (no JS) */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
    display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); padding: 0 16px;
    border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
    font-weight: 600; color: var(--ink); white-space: nowrap; transition: background-color 120ms ease;
}
.chip input:hover + span { background: var(--fill); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before {
    content: ""; width: 12px; height: 7px; border-left: 2.5px solid var(--tipper); border-bottom: 2.5px solid var(--tipper);
    transform: translateY(-2px) rotate(-45deg);
}
.chip input:focus-visible + span { box-shadow: var(--focus); }
.has-error .chip span { border-color: var(--oxide); }

/* "Other" brand box: hidden by CSS until "Other" is chosen; visible when :has() is unsupported */
@supports selector(:has(*)) {
    .brand-block:not(:has(input[data-other]:checked)) .other-brand { display: none; }
}
.other-brand { margin-top: var(--s-3); }

/* Quick date picks (JS) */
.quick { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.quick[hidden] { display: none; }
.quick button { min-height: var(--tap); padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
    background: var(--surface); font: inherit; font-size: var(--text-sm); font-weight: 600; color: var(--ink); cursor: pointer; }
.quick button:hover { background: var(--fill); }
.quick button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Optional Google Maps location: a quiet secondary action that opens the link field (JS) */
.maps { margin-top: var(--s-6); }
.maps-toggle { width: 100%; justify-content: flex-start; text-align: left; padding-inline: var(--s-4); font-weight: 600;
    color: var(--signal); border-style: dashed; border-color: var(--line-strong); }
.maps-toggle .icon { width: 18px; height: 18px; }
.maps-toggle .optional { color: var(--muted); font-weight: 400; }
.field[hidden] { display: none; }
.field .quick + .label-quiet { margin-top: var(--s-2); }
.label-quiet { font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); }
.field > .quick { margin-top: var(--s-1); }

/* Form sections */
.form-section { background: var(--surface); border: var(--border); border-radius: var(--r-card); padding: var(--s-5); }
.form-section + .form-section { margin-top: var(--s-4); }
.section-head { display: flex; align-items: center; gap: var(--s-3); }
.section-head .icon { width: 22px; height: 22px; color: var(--ink-2); }

.form-section-quiet { background: transparent; border-style: dashed; }
.form-section-quiet .label { font-weight: 600; }

/* Contact: the last question, set apart like the slip's signature line */
.contact { border: 2px solid var(--ink); }
.contact[hidden] { display: none; }
.contact:focus { outline: none; }
.contact-kicker { color: var(--site-green); font-weight: 700; font-size: var(--text-sm); }
.contact h2 { margin-top: var(--s-1); }
.contact > .field { margin-top: var(--s-4); }
.contact .affix .input { font-size: var(--text-lg); font-weight: 650; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.contact-enter { animation: contact-in 260ms ease-out; }
@keyframes contact-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Error summary */
.error-summary { border: 1.5px solid var(--oxide); background: var(--oxide-soft); border-radius: var(--r-card);
    padding: var(--s-4) var(--s-5); color: var(--ink); }
.error-summary h2 { font-size: var(--text-lg); font-stretch: 100%; color: var(--oxide); display: flex; gap: var(--s-2); align-items: center; }
.error-summary ul { margin: var(--s-2) 0 0; padding-left: 20px; }
.error-summary li { margin-top: 4px; }
.error-summary a { color: var(--oxide); font-weight: 600; }

/* Sticky action bar (mobile) */
.action-bar {
    position: sticky; bottom: 0; z-index: 5; margin-top: var(--s-4);
    margin-inline: calc(var(--gutter) * -1); padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
    background: rgba(242, 243, 240, 0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border-top: var(--border); box-shadow: var(--bar);
}
.action-bar .hint { margin-top: var(--s-2); text-align: center; }

/* Honeypot: off-screen rather than display:none, which some bots detect */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Progress (status) — a real sequence, so it is numbered/ordered */
.progress { list-style: none; margin: 0; padding: 0; }
.progress li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--s-3); padding-bottom: var(--s-5); }
.progress li:last-child { padding-bottom: 0; }
.progress li::before { /* connector */
    content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line);
}
.progress li:last-child::before { display: none; }
.progress .marker { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface); border: 2px solid var(--line-strong); color: var(--muted); font-size: var(--text-xs); font-weight: 800; }
.progress .done .marker { background: var(--site-green); border-color: var(--site-green); color: #fff; }
.progress .done::before { background: var(--site-green); }
.progress .current .marker { background: var(--tipper); border-color: var(--tipper); color: var(--ink); }
.progress .marker .icon { width: 16px; height: 16px; stroke-width: 3; }
.progress .step-title { font-weight: 700; line-height: 1.3; padding-top: 3px; }
.progress .upcoming .step-title { color: var(--muted); font-weight: 600; }
.progress .step-note { color: var(--muted); font-size: var(--text-sm); }

/* Link box */
.linkbox { display: grid; gap: var(--s-3); }
.linkbox .url { font-size: var(--text-md); color: var(--ink-2); background: var(--paper); border-color: var(--line);
    text-overflow: ellipsis; }
.linkbox .actions { display: grid; grid-template-columns: 1fr; gap: var(--s-2); }
.linkbox .actions:has(.btn:not([hidden]) + .btn:not([hidden])) { grid-template-columns: 1fr 1fr; }
.copied { color: var(--site-green); font-weight: 700; font-size: var(--text-sm); }
.copied:empty { margin-top: calc(var(--s-3) * -1); }

/* ---------- 5. Pages ----------------------------------------------------- */

/* Landing */
.hero { padding-block: var(--s-8) var(--s-6); }
.hero h1 {
    font-size: var(--text-display); line-height: var(--leading-tight); font-weight: 850; font-stretch: var(--wide);
    letter-spacing: -0.02em; max-width: 13ch;
}
.hero .lede { margin-top: var(--s-4); font-size: var(--text-lg); color: var(--ink-2); max-width: 36ch; }
.hero .btn-primary { margin-top: var(--s-6); }
.hero .checks { margin-top: var(--s-4); }
.hero { padding-bottom: var(--s-2); }

.section { padding-top: var(--s-10); }
.section > h2 { margin-bottom: var(--s-4); }

/* "What do you need?": six equal cards, the drawing does the recognising */
.materials { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: var(--s-3); }
.materials li { display: flex; }
.material-card {
    flex: 1; display: grid; grid-template-rows: auto 1fr auto; gap: var(--s-1);
    padding: var(--s-3) var(--s-3) var(--s-3); border-radius: var(--r-card);
    text-decoration: none; color: var(--ink); min-width: 0;
}
.material-art { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center;
    margin-bottom: var(--s-1); border-radius: var(--r-control); background: var(--fill); }
.material-name { font-weight: 750; font-stretch: 106%; line-height: 1.2; font-size: var(--text-md); overflow-wrap: anywhere; }
.material-card.is-live { background: var(--surface); border: 2px solid var(--ink); box-shadow: var(--lift); }
.material-go { display: flex; align-items: center; justify-content: center; min-height: var(--tap); margin-top: var(--s-2);
    padding: 0 var(--s-2); border-radius: var(--r-control); background: var(--tipper); color: var(--ink);
    font-weight: 800; font-size: var(--text-sm); text-align: center; line-height: 1.2;
    box-shadow: inset 0 -3px 0 rgba(22, 33, 43, 0.18); }
.material-card.is-live:hover .material-go { background: var(--tipper-press); }
.material-card.is-live:focus-visible { box-shadow: var(--focus); }
.material-card.is-soon { background: transparent; border: 1.5px dashed var(--line-strong); color: var(--ink-2); }
.material-card.is-soon .material-art { filter: grayscale(0.7); opacity: 0.7; }
.material-soon { display: flex; align-items: center; justify-content: center; min-height: var(--tap); margin-top: var(--s-2);
    border-radius: var(--r-control); background: var(--fill); color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; }

.how { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.how li { counter-increment: how; display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); align-items: start; }
.how li::before { content: counter(how); width: 40px; height: 40px; border-radius: 50%; display: inline-flex;
    align-items: center; justify-content: center; background: var(--surface); border: 1.5px solid var(--ink);
    font-weight: 800; font-stretch: 110%; }
.how strong { display: block; }
.how span { color: var(--ink-2); }

/* Request form page */
.page-head { padding-block: var(--s-5) var(--s-5); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); color: var(--ink-2);
    text-decoration: none; font-weight: 600; font-size: var(--text-sm); margin-left: -4px; }
.back .icon { width: 18px; height: 18px; }
.page-head h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 850; font-stretch: var(--wide);
    line-height: 1.08; letter-spacing: -0.015em; margin-top: var(--s-2); }
.page-head p { margin-top: var(--s-2); color: var(--ink-2); }

/* Status page */
.status-top { padding-top: var(--s-6); }
.status-top .challan-head { display: grid; gap: var(--s-2); }
.status-message { font-size: var(--text-lg); font-weight: 600; line-height: var(--leading-snug); margin-top: var(--s-2); }
.contact-line { display: flex; gap: var(--s-2); align-items: center; color: var(--ink-2); font-size: var(--text-sm); }
.contact-line .icon { width: 18px; height: 18px; }
.status-grid { display: grid; gap: var(--s-4); margin-top: var(--s-4); }

/* Quotation bill (Phase 1c.4): the request receipt becomes the bill */
.badge .icon { width: 14px; height: 14px; stroke-width: 3; }
.badge-expired { background: var(--oxide-soft); color: var(--oxide); }
.challan-body { position: relative; }
.item-head { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--s-3); align-items: start; }
.item-head .icon { color: var(--ink-2); margin-top: 2px; }
.item-head .what { font-weight: 700; }
.item-head .detail { color: var(--muted); font-size: var(--text-sm); }
.item-head .qty { font-weight: 800; font-stretch: 108%; font-variant-numeric: tabular-nums; white-space: nowrap; }

.bill { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--fill); }
.bill li { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4);
    padding-block: 10px; border-bottom: 1px dashed var(--line); }
.bill li:last-child { border-bottom: 0; }
.bill .detail { display: block; color: var(--muted); font-size: var(--text-sm); }
.bill .amt { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

.grand-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
    margin-top: var(--s-2); padding-top: var(--s-3); border-top: 3px solid var(--ink); }
.grand-total .label { font-size: var(--text-lg); font-weight: 800; font-stretch: 110%; }
.grand-total .value { font-size: clamp(2rem, 9.5vw, 2.75rem); font-weight: 850; font-stretch: var(--wide);
    letter-spacing: -0.01em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.total-note { margin-top: var(--s-1); text-align: right; color: var(--muted); font-size: var(--text-sm); }

/* Rubber stamp under an expired bill: the amounts stay readable for reference */
.is-expired .bill, .is-expired .grand-total, .is-expired .total-note { opacity: 0.55; }
.stamp { display: table; margin: var(--s-4) auto 0; padding: 4px 16px;
    border: 3px solid var(--oxide); border-radius: var(--r-control); color: var(--oxide);
    font-size: var(--text-xl); font-weight: 850; font-stretch: var(--wide); letter-spacing: 0.04em;
    transform: rotate(-6deg); }

.challan-foot { padding: var(--s-2) var(--s-5) var(--s-5); }
.note-from { margin-top: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--paper);
    border-left: 3px solid var(--tipper); border-radius: 0 var(--r-control) var(--r-control) 0; }
.note-from .note-label { font-size: var(--text-sm); font-weight: 700; color: var(--ink-2); }
.na-note { margin-top: var(--s-4); color: var(--ink-2); }

.next-step { border-color: var(--ink); }
.next-step p { color: var(--ink-2); }

/* 404 */
.notfound { padding-top: var(--s-10); }
.notfound h1 { font-size: var(--text-2xl); font-weight: 850; font-stretch: var(--wide); }
.notfound p { margin-top: var(--s-3); color: var(--ink-2); }
.notfound .btn { margin-top: var(--s-6); }

/* ---------- 6. Larger screens ------------------------------------------- */
@media (min-width: 720px) {
    :root { --gutter: 28px; }
    .hero { padding-block: var(--s-12) var(--s-8); }
    .btn-block.hero-cta { width: auto; min-width: 280px; }
    .linkbox .actions { grid-template-columns: auto auto; justify-content: start; }
    .linkbox .actions:has(.btn:not([hidden]) + .btn:not([hidden])) { grid-template-columns: auto auto; }
    .action-bar { position: static; margin-inline: 0; padding: var(--s-4) 0 0; background: none; border: 0; box-shadow: none;
        backdrop-filter: none; -webkit-backdrop-filter: none; }
    .action-bar .btn { width: auto; min-width: 280px; }
    .action-bar .hint { text-align: left; }
    .materials { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
    .material-card { padding: var(--s-4); }
    .material-name { font-size: var(--text-lg); }
}
@media (min-width: 960px) {
    .landing-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--s-12); align-items: start; }
}

/* ---------- 7. Preferences ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Customer answer (Phase 1c.5): accept is primary, decline quiet; both open a confirmation panel */
.response-error { margin-bottom: var(--s-4); }
.respond .hint { margin-top: var(--s-1); }
.answer { margin-top: var(--s-4); }
.answer + .answer { margin-top: var(--s-3); }
.answer > summary { list-style: none; cursor: pointer; }
.answer > summary::-webkit-details-marker { display: none; }
.answer[open] > summary.btn-primary { background: var(--tipper-press); border-color: var(--tipper-press); }
.answer[open] > summary.btn-quiet { background: var(--fill); }
.answer-panel { margin-top: var(--s-3); padding: var(--s-4); border-radius: var(--r-card); background: var(--paper);
    border: 1px solid var(--line); display: grid; gap: var(--s-4); }
.confirm-text { font-size: var(--text-lg); line-height: var(--leading-snug); }
.answer-accept .answer-panel { border-color: var(--tipper); background: var(--tipper-soft); }
.btn-decline { border-color: var(--oxide); color: var(--oxide); background: var(--surface); }
.btn-decline:hover { background: var(--oxide-soft); }
.answer-decline .chip span { min-height: var(--tap); }
/* A declined request ends calmly, not as an error */
.progress .ended .marker { background: var(--fill); border-color: var(--line-strong); color: var(--ink-2); font-size: var(--text-md); }
.progress li.ended::before { display: none; }
@media (min-width: 720px) {
    .answer > summary.btn-block { width: 100%; }
}
