/* Quote dialog */
.q { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: var(--grey-900); overflow: hidden;
  --bg: #fff; --surface: #fff; --fg: var(--grey-900); --fg-2: var(--grey-600); --fg-3: var(--grey-500); --line: var(--grey-200); --link: var(--amber-700); --focus: var(--cyan-700); --input-line: var(--grey-400); --error: var(--error-l); --success: var(--success-l); --eyebrow: var(--amber-700); color-scheme: light;
  opacity: 0; transition: opacity var(--dur-3) var(--ease-out), display var(--dur-3) allow-discrete, overlay var(--dur-3) allow-discrete; }
.q[open] { opacity: 1; display: grid; }
@starting-style { .q[open] { opacity: 0; } }
.q::backdrop { background: rgba(11,13,18,.6); }
.q-shell { display: grid; grid-template-columns: 340px 1fr; height: 100%; height: 100dvh; }
.q-rail { background: var(--grey-50); border-right: 1px solid var(--grey-200); padding: 28px 32px; display: flex; flex-direction: column; gap: 28px; overflow: auto; }
.q-rail .brand { color: var(--grey-900); }
.q-rail h2 { font-size: 1.75rem; }
.q-rail p { color: var(--grey-600); font-size: .9688rem; }
.q-outline { list-style: none; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.q-outline li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 8px; padding: 8px 0; color: var(--grey-500); font-size: .9375rem; }
.q-outline li span { font-family: var(--font-mono); font-size: .75rem; }
.q-outline li.done { color: var(--grey-900); }
.q-outline li.done span { color: var(--success-l); }
.q-outline li.cur { color: var(--grey-900); font-weight: 600; }
.q-outline li.cur span { color: var(--amber-700); }
.q-rail .contact-alt { margin-top: auto; font-size: .875rem; color: var(--grey-600); display: grid; gap: 6px; }
.q-rail .contact-alt a { color: var(--amber-700); font-weight: 600; }
.q-main { display: grid; grid-template-rows: auto 1fr auto; height: 100%; height: 100dvh; min-width: 0; }
.q-top { display: flex; align-items: center; gap: 20px; padding: 18px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--grey-200); }
.q-count { font-family: var(--font-mono); font-size: .875rem; color: var(--grey-600); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-count b { color: var(--grey-900); }
.q-prog { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.q-prog i { height: 4px; border-radius: 2px; background: var(--grey-200); position: relative; overflow: hidden; }
.q-prog i::after { content: ""; position: absolute; inset: 0; background: var(--amber-400); scale: 0 1; transform-origin: left; transition: scale var(--dur-4) var(--ease-out); }
.q-prog i.on::after { scale: 1 1; }
.q-close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; color: var(--grey-900); }
.q-close:hover { background: var(--grey-100); }
.q-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; }
.q-body { overflow: auto; padding: clamp(28px, 5vw, 64px) clamp(20px, 4vw, 56px); overscroll-behavior: contain; }
.q-step { max-width: 760px; display: grid; gap: 24px; animation: step-in var(--dur-4) var(--ease-out) both; }
.q-step[hidden] { display: none; }
.q-step.back { animation-name: step-in-back; }
@keyframes step-in { from { opacity: 0; translate: 24px 0; } }
@keyframes step-in-back { from { opacity: 0; translate: -24px 0; } }
.q-step h3 { font-size: var(--step-3); font-weight: 750; letter-spacing: -0.015em; }
.q-step .hint { color: var(--grey-600); margin-top: -12px; }
.q-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--grey-300); font-size: .9688rem; transition: border-color var(--dur-1), background-color var(--dur-1); }
.chip-opt span::before { content: "+"; font-family: var(--font-mono); color: var(--grey-500); }
.chip-opt input:checked + span { border-color: var(--amber-edge); background: color-mix(in srgb, var(--amber-200) 35%, #fff); box-shadow: inset 0 0 0 1px var(--amber-edge); }
.chip-opt input:checked + span::before { content: "✓"; color: var(--amber-700); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--cyan-700); outline-offset: 3px; }
.chip-opt:hover span { border-color: var(--grey-600); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (width < 640px) { .field-row { grid-template-columns: 1fr; } }
.field label, .field .lbl { font-weight: 600; font-size: .9688rem; }
.field label .opt { font-weight: 400; color: var(--grey-500); font-size: .875rem; }
.field label .req { color: var(--error-l); }
.field :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--grey-400); background: #fff; font-size: 1rem; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.field :is(input, select, textarea):hover { border-color: var(--grey-600); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--cyan-700); box-shadow: 0 0 0 3px rgba(14,116,144,.22); }
.field.invalid :is(input, textarea) { border-color: var(--error-l); }
.field .err { color: var(--error-l); font-size: .875rem; font-weight: 500; display: none; }
.field.invalid .err { display: block; }
.field .help { color: var(--grey-500); font-size: .8125rem; }
.seg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.slider { display: grid; gap: 8px; }
.slider .ends { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .75rem; color: var(--grey-600); text-transform: uppercase; letter-spacing: .06em; }
.slider input[type="range"] { width: 100%; accent-color: var(--amber-500); height: 32px; }
.vibe { display: grid; grid-template-columns: 1fr 180px; gap: 24px; align-items: center; }
.vibe-prev { aspect-ratio: 4/3; border-radius: 12px; border: 1px solid var(--grey-300); padding: 12px; display: grid; gap: 7px; align-content: start; transition: background-color var(--dur-3), border-radius var(--dur-3); background: color-mix(in srgb, #12151C calc(var(--dark, 50) * 1%), #fff); }
.vibe-prev i { height: 8px; border-radius: calc(var(--round, 4) * 1px); background: color-mix(in srgb, #E8ECF2 calc(var(--dark, 50) * 1%), #CBD0D8); transition: border-radius var(--dur-3); }
.vibe-prev i:nth-child(1) { width: 70%; height: 14px; } .vibe-prev i:nth-child(2) { width: 90%; } .vibe-prev i:nth-child(3) { width: 60%; }
.vibe-prev b { margin-top: 6px; width: 50%; height: 14px; border-radius: calc(var(--round, 4) * 1px); background: var(--pick, #FFA53D); }
@media (width < 640px) { .vibe { grid-template-columns: 1fr; } .vibe-prev { max-width: 200px; } }
.swatches { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.swatches label { position: relative; }
.swatches .sw { position: relative; display: inline-flex; }
.sw-add { width: 48px; height: 48px; display: grid; place-items: center; border: 1px dashed var(--grey-400); border-radius: 10px; color: var(--grey-600); background: #fff; transition: border-color var(--dur-1), color var(--dur-1), background-color var(--dur-1); }
.sw-add svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sw-add:hover { border-color: var(--amber-edge); color: var(--amber-700); background: color-mix(in srgb, var(--amber-200) 25%, #fff); }
.sw-remove { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--grey-900); color: #fff; box-shadow: 0 0 0 2px #fff; }
.sw-remove::after { content: ""; position: absolute; inset: -10px; }
.sw-remove svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.sw-remove:hover { background: var(--amber-700); }
.swatches input[type="color"] { width: 48px; height: 48px; border: 1px solid var(--grey-300); border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.review { display: grid; gap: 0; border: 1px solid var(--grey-200); border-radius: 14px; overflow: hidden; }
.review div { display: grid; grid-template-columns: 200px 1fr auto; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--grey-200); align-items: start; }
.review div:nth-child(odd) { background: var(--grey-50); }
.review div:last-child { border-bottom: 0; }
.review dt { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-500); padding-top: 3px; }
.review dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.review button { font-family: var(--font-mono); font-size: .8125rem; color: var(--amber-700); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
@media (width < 640px) { .review div { grid-template-columns: 1fr auto; } .review dt { grid-column: 1 / -1; } }
.q-foot { display: flex; align-items: center; gap: 14px; padding: 16px clamp(20px, 4vw, 56px); border-top: 1px solid var(--grey-200); background: #fff; }
.q-foot .spacer { flex: 1; }
.q-done { text-align: center; justify-items: center; margin-inline: auto; padding-top: 4vh; }
.q-done svg { width: 96px; height: 96px; }
.q-done circle { fill: none; stroke: var(--success-l); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 700ms var(--ease-out) forwards; }
.q-done path { fill: none; stroke: var(--success-l); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 500ms var(--ease-out) 550ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.q-done p { color: var(--grey-600); margin-inline: auto; }
.proto-note { font-family: var(--font-mono); font-size: .75rem; color: var(--grey-500); border: 1px dashed var(--grey-300); border-radius: 8px; padding: 10px 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.restore { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--grey-50); border: 1px solid var(--grey-200); font-size: .9375rem; }
.restore button { color: var(--amber-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
@media (width < 960px) {
  .q-shell { grid-template-columns: 1fr; }
  .q-rail { display: none; }
  .q-foot :is(.btn, .wp-block-button__link) { flex: 1; }
  .q-foot .spacer { display: none; }
}
::view-transition-group(quote-morph) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }
::view-transition-old(quote-morph), ::view-transition-new(quote-morph) { height: 100%; width: 100%; object-fit: cover; }
fieldset.q-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.field input[type="url"] + input[type="url"] { margin-top: 0; }
/* inline (quote page): same builder, in the page flow */
.q.q-inline { position: relative; inset: auto; height: auto; opacity: 1; display: block; overflow: visible; border: 1px solid var(--grey-200); border-radius: 20px; box-shadow: 0 1px 2px rgba(17,19,24,.06), 0 24px 48px -28px rgba(17,19,24,.28); scroll-margin-top: calc(var(--header-h, 72px) + 16px); transition: none; }
.q-inline .q-shell { height: auto; grid-template-columns: 300px 1fr; border-radius: inherit; overflow: hidden; }
.q-inline .q-rail { overflow: visible; border-radius: 20px 0 0 20px; }
.q-inline .q-main { height: auto; min-height: 620px; }
.q-inline .q-body { overflow: visible; padding: clamp(24px, 4vw, 48px) clamp(20px, 4vw, 48px); }
.q-inline .q-rail .brand { display: none; }
.q-inline:not(.is-js) .q-top { display: none; }
.q-inline:not(.is-js) .q-body { display: grid; gap: 48px; }
.q-inline:not(.is-js) .q-step { animation: none; }
.q-inline:not(.is-js) .q-tiles { display: none; }
.q-inline:not(.is-js) .q-step .hint { display: none; }
.q-notice { margin: 0 0 24px; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--grey-200); background: var(--grey-50); }
.q-notice.is-ok { border-color: color-mix(in srgb, var(--success-l) 50%, #fff); background: color-mix(in srgb, var(--success-l) 8%, #fff); }
.q-notice.is-err { border-color: color-mix(in srgb, var(--error-l) 50%, #fff); background: color-mix(in srgb, var(--error-l) 6%, #fff); }
@media (width < 960px) {
  .q-inline .q-shell { grid-template-columns: 1fr; }
  .q-inline .q-main { min-height: 0; }
  .q-inline .q-foot { position: sticky; bottom: 0; border-radius: 0 0 20px 20px; }
}
body:has(.q-inline) .mbar { display: none !important; } /* the quote page already is the call to action */
