/*
 * Lead Express Sales Assessment
 * Brand: black #000000, white #ffffff, cyan #0dd2df, typeface Barlow (bundled, SIL OFL licence).
 * Cyan is too light to read as text on white, so it is only ever a fill with black text on it.
 * Green / yellow / red appear only in the result indicator.
 */

@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/barlow-800.woff2") format("woff2"); }

:root {
    --black: #000000;
    --white: #ffffff;
    --cyan: #0dd2df;
    --cyan-tint: #e7fafb;
    --ink-2: #2e353b;
    --grey: #5c6670;
    --grey-2: #4a535c;
    --grey-light: #a7b0b8;
    --line: #e4e7ea;
    --surface: #f4f6f7;
    --error: #c4282d;
    --amber: #f0b429;
    --green: #1a9a5c;
    --red: #e5484d;

    --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --radius: 16px;
    --radius-l: 24px;
    --column: 48.75rem;   /* 780px conversation column */
    --wide: 75rem;
    --gutter: clamp(1.1rem, 4vw, 3rem);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.55; color: var(--black); background: var(--white);
    display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased;
}
main { flex: 1; display: flex; flex-direction: column; }
a { color: var(--black); text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--black); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { letter-spacing: -0.02em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -3rem; z-index: 30; background: var(--cyan); color: var(--black); padding: .5rem .9rem; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: .75rem; }

/* ------------------------------------------------------------------ */
/* Header, progress, footer                                            */
/* ------------------------------------------------------------------ */

.site-header { background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header__inner { max-width: var(--wide); margin: 0 auto; padding: 1.1rem var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; color: var(--black); text-decoration: none; }
.brand__logo { display: block; height: 39px; width: auto; }
.brand__wordmark { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.pill-link { text-decoration: none; font-weight: 700; border: 1.5px solid var(--black); border-radius: 999px; padding: .5rem 1.1rem; white-space: nowrap; }
.pill-link:hover { background: var(--black); color: var(--white); }

.progress { height: 4px; background: var(--surface); }
.progress__fill { display: block; height: 4px; width: 0; background: var(--cyan); border-radius: 0 4px 4px 0; transition: width .5s var(--ease); }

.menu { position: relative; }
.menu__button { font: inherit; font-size: .95rem; font-weight: 600; background: var(--surface); border: 0; border-radius: 999px; padding: .6rem 1.1rem; display: flex; align-items: center; gap: .5rem; cursor: pointer; color: var(--black); }
.menu__button:hover { background: var(--line); }
.menu__list { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 15rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); padding: .4rem; display: flex; flex-direction: column; }
.menu__item { font: inherit; font-size: 1rem; font-weight: 600; text-align: left; background: none; border: 0; border-radius: 10px; padding: .7rem .9rem; cursor: pointer; color: var(--black); text-decoration: none; }
.menu__item:hover, .menu__item:focus-visible { background: var(--surface); }

.site-footer { background: var(--black); color: var(--grey-light); font-size: .9rem; border-top: 1px solid #262626; }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; padding: 2.25rem var(--gutter); display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 1.25rem 3rem; align-items: start; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--white); }
.brand--footer { color: var(--white); }
.brand--footer .brand__wordmark { font-size: 1.25rem; }

/* ------------------------------------------------------------------ */
/* Buttons and notices                                                 */
/* ------------------------------------------------------------------ */

.button {
    font: inherit; font-size: 1.0625rem; font-weight: 700; line-height: 1.2; cursor: pointer;
    border: 2px solid transparent; border-radius: 999px; padding: 1rem 1.9rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; text-decoration: none;
    transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button--primary { background: var(--cyan); color: var(--black); }
.button--primary:hover:not(:disabled) { background: var(--black); color: var(--white); }
.button--primary:disabled { background: var(--line); color: var(--grey); cursor: not-allowed; }
.button--dark { background: var(--black); color: var(--white); }
.button--dark:hover { background: var(--white); color: var(--black); border-color: var(--black); }
.button--quiet { background: var(--white); color: var(--black); border-color: var(--black); }
.button--quiet:hover { background: var(--black); color: var(--white); }
.button--ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.button--ghost-light:hover { border-color: var(--white); }
.button--large { font-size: 1.2rem; padding: 1.1rem 2.1rem; }
.button.is-busy { opacity: .7; pointer-events: none; }

.text-button { font: inherit; font-size: 1rem; font-weight: 600; background: none; border: 0; padding: .75rem .25rem; display: inline-flex; align-items: center; gap: .5rem; color: var(--black); cursor: pointer; }
.text-button--link { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; padding: .25rem 0; }
.text-button--link:hover { text-decoration-color: var(--black); }

.notice { margin: 1rem 0 0; padding: .85rem 1.1rem; border-radius: var(--radius); background: #fdecec; color: var(--error); font-weight: 500; }
.notice button { font: inherit; font-weight: 700; background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0 0 0 .4rem; }

/* ------------------------------------------------------------------ */
/* Welcome                                                             */
/* ------------------------------------------------------------------ */

.welcome { flex: 1; display: flex; background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: -14rem; bottom: -16rem; width: 39rem; height: 39rem; border-radius: 50%; border: 4rem solid var(--cyan); pointer-events: none; }
.welcome__inner { position: relative; z-index: 1; width: 100%; max-width: 77.5rem; margin: 0 auto; padding: clamp(3rem, 8vw, 6.5rem) var(--gutter); display: flex; flex-wrap: wrap; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.welcome__copy { flex: 1 1 30rem; min-width: 0; max-width: 36rem; display: flex; flex-direction: column; gap: 1.5rem; }
.welcome__title { margin: 0; font-size: clamp(3.25rem, 7vw, 5.75rem); font-weight: 800; line-height: .95; letter-spacing: -0.045em; }
.welcome__lead { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.375rem); font-weight: 500; line-height: 1.45; color: #d5dade; }
.welcome__points { margin: .25rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .75rem; font-size: 1.125rem; font-weight: 500; }
.welcome__points li { display: flex; gap: .75rem; align-items: center; }
.tick { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--cyan); color: var(--black); display: grid; place-items: center; }
.welcome__actions { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.welcome__actions .button--primary:hover:not(:disabled) { background: var(--white); color: var(--black); }
.welcome__note { margin: 0; font-size: .95rem; color: var(--grey-light); line-height: 1.5; }
.welcome__note a { color: var(--white); }
.welcome__preview { flex: 1 1 22rem; max-width: 29rem; }
.preview { background: var(--white); color: var(--black); border-radius: 28px; padding: 1.75rem; display: flex; flex-direction: column; gap: .5rem; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); }
.preview__row { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .4rem; }
.preview__question { margin: .25rem 0 .4rem 3rem; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.preview__option { margin-left: 3rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .6rem .9rem; font-size: .95rem; font-weight: 600; }
.preview__option--chosen { border: 2px solid var(--cyan); background: var(--cyan-tint); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Conversation                                                        */
/* ------------------------------------------------------------------ */

.flow { flex: 1; background: var(--white); }
.flow__inner { width: 100%; max-width: var(--column); margin: 0 auto; padding: 3rem clamp(1.1rem, 4vw, 2rem) 5rem; display: flex; flex-direction: column; gap: 1rem; }
.flow__error { width: calc(100% - 2.2rem); max-width: calc(var(--column) - 4rem); margin: 0 auto 2rem; }

.avatar { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--black); color: var(--cyan); display: grid; place-items: center; font-size: .85rem; font-weight: 800; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.assistant { display: flex; gap: .9rem; align-items: flex-start; }
.assistant__lines { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.bubble { margin: 0; align-self: flex-start; background: var(--surface); padding: 1rem 1.25rem; border-radius: 22px; border-top-left-radius: 4px; font-size: 1.1875rem; font-weight: 500; line-height: 1.5; }
.bubble + .bubble { border-top-left-radius: 22px; }
.reply { margin: 0; align-self: flex-end; max-width: 78%; background: var(--black); color: var(--white); font-size: 1rem; font-weight: 600; line-height: 1.4; padding: .65rem 1.1rem; border-radius: 18px 18px 4px 18px; }

.milestone { display: flex; align-items: center; gap: 1rem; margin: 1rem 0 .4rem; }
.milestone::before, .milestone::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.milestone > span { display: inline-flex; align-items: center; gap: .6rem; background: var(--black); color: var(--white); border-radius: 999px; padding: .45rem 1rem .45rem .45rem; font-size: .95rem; font-weight: 600; }
.milestone .tick { width: 1.5rem; height: 1.5rem; }

.offset { margin-left: 3.65rem; }
.question { margin-top: .4rem; display: flex; flex-direction: column; }
.question__title { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.125rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.question__title:focus { outline: none; }
.options { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .75rem; }
.option {
    font: inherit; text-align: left; cursor: pointer; width: 100%; display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--white); color: var(--black);
    font-size: 1.125rem; font-weight: 500; line-height: 1.45;
    transition: border-color .15s var(--ease), background .15s var(--ease);
}
.option:hover { border-color: var(--black); }
.option__mark { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--grey-light); display: grid; place-items: center; margin-top: .05rem; color: var(--black); }
.option__mark svg { display: none; }
.option__text { display: flex; flex-direction: column; gap: .15rem; }
.option__label { font-weight: 700; }
.option__detail { color: var(--grey-2); }
.option__detail::first-letter { text-transform: uppercase; }
.option[aria-checked="true"] .option__detail { color: var(--ink-2); }
.option[aria-checked="true"] { border: 2px solid var(--cyan); background: var(--cyan-tint); font-weight: 600; padding: calc(1.1rem - .5px) calc(1.25rem - .5px); }
.option[aria-checked="true"] .option__mark { border: 0; background: var(--cyan); }
.option[aria-checked="true"] .option__mark svg { display: block; }
.question__actions { margin-top: 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.question__actions .spacer { flex: 1; }
.question__hint { font-size: .95rem; color: var(--grey); }
.question__continue { display: flex; align-items: center; gap: 1rem; margin-left: auto; }

/* Entrance: the newest content rises in, one piece after another.
   "backwards" fill means nothing is left applied once an animation ends. That matters: a
   leftover transform would make the phone's fixed Back/Continue bar stick to the question
   instead of the screen. The question block itself only fades, for the same reason. */
@media (prefers-reduced-motion: no-preference) {
    .enter > * { animation: rise .38s var(--ease) backwards; }
    .enter > .question { animation-name: fade; }
    .enter > *:nth-child(2) { animation-delay: .06s; }
    .enter > *:nth-child(3) { animation-delay: .14s; }
    .enter > *:nth-child(4) { animation-delay: .22s; }
    .enter > *:nth-child(5) { animation-delay: .3s; }
    .enter .assistant__lines > * { animation: rise .35s var(--ease) backwards; }
    .enter .assistant__lines > *:nth-child(2) { animation-delay: .35s; }
    .enter .option { animation: rise .32s var(--ease) backwards; }
    .enter .option:nth-child(1) { animation-delay: .22s; }
    .enter .option:nth-child(2) { animation-delay: .27s; }
    .enter .option:nth-child(3) { animation-delay: .32s; }
    .enter .option:nth-child(4) { animation-delay: .37s; }
    @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
    @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* The conversation so far */
.thread { display: flex; flex-direction: column; gap: 1rem; }
.current { display: flex; flex-direction: column; gap: 1rem; }
.thread .assistant__lines { gap: .5rem; }
.bubble--question { background: var(--white); border: 1.5px solid var(--line); font-weight: 700; }
.bubble--strong { font-weight: 800; font-size: 1.375rem; }
.reply-row { align-self: flex-end; max-width: 78%; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; scroll-margin-top: 6.5rem; }
.reply-row .reply { max-width: 100%; }
.reply__change { font-size: .875rem; color: var(--grey); padding: .15rem 0; }
.reply__change:hover { color: var(--black); }
.thread + .current { margin-top: .25rem; }

/* Details form */
.card { border: 1.5px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.4rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; }
.form-section { padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.25rem; }
.form-section__title { margin: 0; font-size: 1.0625rem; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.field input {
    font: inherit; font-size: 1.0625rem; font-weight: 500; width: 100%; color: var(--black);
    background: var(--surface); border: 2px solid transparent; border-radius: 14px; padding: .8rem 1rem; margin-top: auto;
}
.field input:focus { outline: none; background: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-tint); }
.field input[aria-invalid="true"] { background: var(--white); border-color: var(--error); }
.field__error { font-size: .95rem; font-weight: 500; color: var(--error); }
.field--short input { max-width: 14rem; }
.form-grid .field--wide { grid-column: 1 / -1; }
.phone { display: flex; margin-top: auto; gap: .5rem; max-width: 30rem; }
.phone__country {
    flex: none; width: 10rem; font: inherit; font-size: 1rem; font-weight: 600; color: var(--black);
    background: var(--surface); border: 2px solid transparent; border-radius: 14px; padding: .8rem .75rem; cursor: pointer;
}
.phone__country:focus { outline: none; background: var(--white); border-color: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-tint); }
.phone input { flex: 1; min-width: 0; margin-top: 0; }
.money { display: flex; margin-top: auto; }
.money span { display: grid; place-items: center; padding: 0 .9rem; background: var(--line); border-radius: 14px 0 0 14px; font-weight: 700; }
.money input { border-radius: 0 14px 14px 0; margin-top: 0; }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: 1rem; line-height: 1.45; cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; accent-color: var(--black); flex: none; }
.form-actions { display: flex; justify-content: flex-end; }

/* Review */
.review__head { display: flex; gap: .9rem; align-items: flex-start; }
.review__title { margin: .2rem 0 .5rem; font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
.review__title:focus { outline: none; }
.review__intro { margin: 0; font-size: 1.1875rem; font-weight: 500; line-height: 1.5; color: var(--ink-2); }
.review__section { margin-top: 1.5rem; }
.review__section h2 { margin: 0; font-size: 1.375rem; font-weight: 800; }
.review__note { margin: .4rem 0 0; font-size: .95rem; color: var(--grey); }
.answer-list { margin: .9rem 0 0; }
.answer-row { display: flex; gap: 1.25rem; justify-content: space-between; align-items: flex-start; padding: 1rem 0; border-top: 1px solid var(--line); }
.answer-row dt { font-size: .95rem; color: var(--grey); line-height: 1.4; }
.answer-row dd { margin: .2rem 0 0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.answer-row > div { min-width: 0; }
.review__confirm { margin-top: 1.5rem; background: var(--surface); border-radius: var(--radius-l); padding: 1.5rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; }
.review__confirm p { margin: 0; font-size: 1.0625rem; font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Results                                                             */
/* ------------------------------------------------------------------ */

.results { flex: 1; background: var(--white); }
.result-band { background: var(--black); color: var(--white); position: relative; overflow: hidden; }
.result-band::after { content: ""; position: absolute; right: -10rem; top: -12.5rem; width: 32.5rem; height: 32.5rem; border-radius: 50%; border: 3.75rem solid var(--cyan); pointer-events: none; }
.result-band__inner { position: relative; z-index: 1; max-width: var(--wide); margin: 0 auto; padding: clamp(2.75rem, 6vw, 5rem) var(--gutter); display: flex; flex-wrap: wrap; gap: 2.75rem; align-items: center; }
.lights { display: flex; flex-direction: column; gap: .75rem; padding: .9rem; border-radius: 999px; background: #161616; }
.lights span { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: #2b2b2b; }
.lights .is-on.green { background: var(--green); box-shadow: 0 0 28px var(--green); }
.lights .is-on.yellow { background: var(--amber); box-shadow: 0 0 28px var(--amber); }
.lights .is-on.red { background: var(--red); box-shadow: 0 0 28px var(--red); }
.result-band__text { flex: 1 1 26rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.result-band__for { margin: 0; font-size: 1.0625rem; font-weight: 500; color: #c9cfd4; }
.result-band__title { margin: 0; font-size: clamp(2.5rem, 5vw, 4.125rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; max-width: 14ch; }
.result-band__title:focus { outline: none; }
.result-band__pathway { margin: .4rem 0 0; align-self: flex-start; background: var(--cyan); color: var(--black); border-radius: 999px; padding: .45rem 1rem; font-size: 1rem; font-weight: 700; }

.results__body { max-width: var(--wide); margin: 0 auto; padding: 4rem var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 3.5rem; align-items: flex-start; }
.report { flex: 999 1 35rem; min-width: 0; font-size: 1.125rem; line-height: 1.65; }
.report p { margin: 0 0 1.1rem; }
.report h2 { margin: 2rem 0 .9rem; font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.report ul { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.report ul ul { margin: .75rem 0 0; }
.report li { position: relative; padding-left: 1.5rem; }
.report li::before { content: ""; position: absolute; left: 0; top: .68em; width: .625rem; height: .625rem; border-radius: 50%; background: var(--cyan); }
.report ul ul li::before { background: transparent; border: 2px solid var(--cyan); }
.consultant { flex: 1 1 18rem; max-width: 22.5rem; position: sticky; top: 6.5rem; background: var(--cyan); border-radius: var(--radius-l); padding: 1.9rem; display: flex; flex-direction: column; gap: 1rem; }
.consultant h2 { margin: 0; font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.consultant p { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.consultant .button { margin-top: .5rem; }
.consultant__phone { text-align: center; font-weight: 700; text-decoration-color: var(--black); }

.told-us { max-width: var(--wide); margin: 4.5rem auto 0; padding: 0 var(--gutter) 5rem; }
.told-us__head { border-top: 1.5px solid var(--line); padding-top: 3rem; }
.told-us__head h2 { margin: 0; font-size: 1.9rem; font-weight: 800; }
.told-us__head p { margin: .4rem 0 0; font-size: 1.0625rem; color: var(--grey-2); }
.told-us__grid { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3.5rem; align-items: flex-start; }
.told-us__col { flex: 1 1 27rem; min-width: 0; display: flex; flex-direction: column; gap: 2rem; }
.told-us h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 800; }
.told-us .answer-row { display: block; padding: .9rem 0; }
.results__actions { margin-top: 2.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ------------------------------------------------------------------ */
/* Dialogs                                                             */
/* ------------------------------------------------------------------ */

.dialog { border: 0; border-radius: var(--radius-l); padding: 1.9rem; width: min(28rem, calc(100% - 2rem)); color: var(--black); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); }
.dialog::backdrop { background: rgba(0, 0, 0, .6); }
.dialog__title { margin: 0 0 .5rem; font-size: 1.5rem; font-weight: 800; }
.dialog p { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.dialog__actions { margin-top: 1.5rem; display: flex; gap: .6rem; flex-wrap: wrap; }

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */

.admin { max-width: 62rem; margin: 0 auto; padding: 2.75rem var(--gutter); width: 100%; }
.admin h1 { margin-top: 0; font-size: 2.25rem; }
.admin h2 { margin: 0 0 1rem; font-size: 1.3rem; }
.admin .card { margin: 0 0 1.5rem; }
.admin fieldset { border: 0; padding: 0; margin: 0; }
.admin table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.admin th, .admin td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); }
.admin .stats { display: flex; gap: 3rem; margin: 0; }
.admin .stats dt { color: var(--grey); font-size: .9rem; font-weight: 600; }
.admin .stats dd { margin: 0; font-size: 2.5rem; font-weight: 800; }
.table-wrap { overflow-x: auto; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 600; }
.tag::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: var(--grey-light); }
.tag--green::before { background: var(--green); }
.tag--yellow::before { background: var(--amber); }
.tag--red::before { background: var(--red); }
.radio-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.tag--ok::before { background: var(--green); }
.tag--bad::before { background: var(--red); }
.tag--wait::before { background: var(--amber); }
.tag--off { color: var(--grey); }
.notice--ok { background: #e7f6ee; color: #11663d; }
.admin__hint { margin: 0 0 1rem; color: var(--grey); font-size: .95rem; }
.admin td form { margin: 0; }
.checks { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.checks li { display: flex; gap: .75rem; align-items: flex-start; }
.checks__mark { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--white); background: var(--green); }
.checks .is-bad .checks__mark { background: var(--red); }
.checks__fix { color: var(--grey-2); font-size: .95rem; }
.form-actions--start { justify-content: flex-start; }

/* ------------------------------------------------------------------ */
/* Phones                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
    .welcome__preview { display: none; }
    .consultant { position: static; max-width: none; }
    .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .site-header__inner { padding-block: .8rem; }
    .brand__logo { height: 32px; }
    .brand__wordmark { font-size: 1.3rem; }
    .welcome::after { display: none; }
    .flow__inner { padding-top: 1.5rem; padding-bottom: 7.5rem; }
    .offset { margin-left: 0; }
    .avatar { width: 2.1rem; height: 2.1rem; font-size: .7rem; }
    .assistant { gap: .6rem; }
    .bubble { font-size: 1.0625rem; padding: .8rem 1rem; }
    .reply { font-size: .95rem; }
    .reply-row { max-width: 90%; }
    .bubble--strong { font-size: 1.2rem; }
    .question__title { font-size: 1.45rem; }
    .phone__country { width: 8.5rem; font-size: .95rem; }
    .option { font-size: 1rem; padding: .85rem 1rem; gap: .8rem; }
    .option[aria-checked="true"] { padding: calc(.85rem - .5px) calc(1rem - .5px); }
    .question__actions {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; margin: 0; flex-wrap: nowrap;
        background: var(--white); border-top: 1px solid var(--line); padding: .75rem 1rem calc(.9rem + env(safe-area-inset-bottom));
    }
    .question__hint { display: none; }
    .question__continue { flex: 1; }
    .question__continue .button { flex: 1; }
    .review__confirm { position: sticky; bottom: .75rem; box-shadow: 0 10px 30px -15px rgba(0, 0, 0, .4); }
    .review__confirm p { display: none; }
    .review__confirm .button { width: 100%; }
    .result-band::after { display: none; }
    .result-band__inner { gap: 1.25rem; }
    .lights { flex-direction: row; padding: .5rem; }
    .lights span { width: 1.6rem; height: 1.6rem; }
    .site-footer__inner { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/* Print: the result only                                              */
/* ------------------------------------------------------------------ */

@media print {
    .site-header, .site-footer, .welcome, .flow, .results__actions, .consultant .button, .skip-link { display: none !important; }
    .result-band, .lights, .consultant { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .consultant { position: static; }
    .result-band::after { display: none; }
}
.admin .notice { margin: 0 0 1.5rem; }
