:root {
  --ink: #071a2b;
  --ink-2: #0c263b;
  --paper: #f5f2eb;
  --paper-2: #ebe7de;
  --white: #fff;
  --orange: #ff6b2c;
  --orange-2: #ff8a38;
  --lime: #b9db71;
  --muted: #68727a;
  --line: #d8d5ce;
  --danger: #c54528;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(7, 26, 43, .12);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  max-width: 1440px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 42px);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 242, 235, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  padding-top: max(14px, env(safe-area-inset-top));
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(7, 26, 43, .09); }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--orange); }
.brand-mark svg { width: 29px; fill: none; stroke: var(--ink); stroke-width: 2.4; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.brand strong { letter-spacing: .15em; font-size: 18px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.header-link { text-decoration: none; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.header-link span { color: var(--orange); }

main { overflow: clip; }
.hero { max-width: 1440px; min-height: 580px; margin: 0 auto; padding: 70px clamp(16px, 4vw, 42px) 90px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.hero-copy { max-width: 720px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(255,107,44,.12); }
.hero h1 { font-size: clamp(52px, 6vw, 88px); line-height: .97; letter-spacing: -.065em; margin: 26px 0 28px; font-weight: 790; }
.hero h1 em { color: var(--orange); font-family: Georgia, serif; font-weight: 500; }
.hero-copy > p { max-width: 620px; font-size: 19px; line-height: 1.65; color: #50606b; }
.trust-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.trust-row span { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; }
.trust-row b { color: var(--orange); margin-right: 7px; }

.hero-visual { position: relative; height: 440px; }
.hero-visual::before { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255,107,44,.18), transparent 66%); left: 70px; top: 38px; }
.orbit { position: absolute; border: 1px solid rgba(7,26,43,.13); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 370px; height: 370px; }
.orbit-two { width: 265px; height: 265px; border-style: dashed; animation: spin 32s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.machine-card { position: absolute; z-index: 2; width: 176px; height: 116px; padding: 18px; background: var(--ink); color: white; border-radius: 18px; box-shadow: 0 25px 55px rgba(7,26,43,.25); overflow: hidden; }
.machine-card::before { content: ""; position: absolute; width: 70px; height: 70px; border: 13px solid rgba(255,255,255,.05); border-radius: 50%; right: -25px; bottom: -24px; }
.machine-card span { font-size: 9px; color: #8aa0b0; letter-spacing: .18em; }
.machine-card strong { display: block; margin-top: 10px; font-size: 20px; }
.machine-card i { position: absolute; bottom: 17px; left: 18px; width: 42px; height: 3px; background: var(--orange); }
.machine-card-a { top: 24px; left: 15px; transform: rotate(-4deg); }
.machine-card-b { top: 138px; left: 190px; width: 192px; height: 128px; background: var(--orange); color: var(--ink); transform: rotate(2deg); }
.machine-card-b span { color: rgba(7,26,43,.58); }.machine-card-b i { background: var(--ink); }
.machine-card-c { right: 0; bottom: 24px; transform: rotate(4deg); }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(7,26,43,.35); stroke-width: 1.5; stroke-dasharray: 6 8; }
/* Compact hero flow for screens where the orbit visual is hidden —
   the same machine-card design as the desktop: ink blocks, one orange,
   accent bars. Layout is identical at every width. */
.hero-flow { display: none; gap: 9px; align-items: stretch; margin-top: 34px; }
.hero-flow span { flex: 1; min-width: 0; position: relative; overflow: hidden; background: var(--ink); color: white; border-radius: 16px; padding: 12px 12px 21px; display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 700; box-shadow: 0 16px 34px rgba(7,26,43,.16); }
.hero-flow b { font-size: 8px; letter-spacing: .16em; color: #8aa0b0; }
.hero-flow span::after { content: ""; position: absolute; left: 12px; bottom: 11px; width: 26px; height: 3px; background: var(--orange); }
.hero-flow span:nth-child(3) { background: var(--orange); color: var(--ink); }
.hero-flow span:nth-child(3) b { color: rgba(7,26,43,.58); }
.hero-flow span:nth-child(3)::after { background: var(--ink); }
.hero-flow i { align-self: center; color: var(--orange); font-style: normal; font-weight: 900; flex: none; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(3px); opacity: 1; } }

.composer-shell { max-width: 1360px; margin: 0 auto 120px; background: var(--white); min-height: 720px; border-radius: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 330px 1fr; overflow: hidden; }
.composer-sidebar { padding: 48px 38px; background: var(--ink); color: white; display: flex; flex-direction: column; }
.sidebar-label { color: var(--orange); font-size: 10px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; margin: 0 0 9px; }
.composer-sidebar h2 { margin: 0; font-size: 35px; letter-spacing: -.04em; }
.sidebar-copy { color: #9badba; font-size: 14px; line-height: 1.55; margin: 14px 0 37px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.step-list li { display: flex; align-items: center; gap: 13px; min-height: 70px; padding: 11px 12px; border-radius: 14px; color: #7f94a3; transition: .25s ease; }
.step-list li > span { width: 33px; height: 33px; border-radius: 50%; border: 1px solid #365064; display: grid; place-items: center; font-size: 11px; flex: none; }
.step-list li div { display: flex; flex-direction: column; gap: 4px; }
.step-list b { font-size: 13px; color: #9eb0bd; }.step-list small { font-size: 11px; }
.step-list li.active { background: rgba(255,255,255,.08); color: white; }
.step-list li.active > span { background: var(--orange); border-color: var(--orange); color: var(--ink); font-weight: 800; }
.step-list li.active b { color: white; }
.step-list li.done > span { background: #294558; color: var(--lime); border-color: #294558; }
.catalog-state { margin-top: auto; border-top: 1px solid #263d50; padding-top: 23px; display: flex; gap: 11px; align-items: center; }
.catalog-state .status-dot { width: 9px; height: 9px; border-radius: 50%; background: #e7a33d; box-shadow: 0 0 0 5px rgba(231,163,61,.1); }
.catalog-state.live .status-dot { background: var(--lime); }.catalog-state.error .status-dot { background: #ff755e; }
.catalog-state div { display: flex; flex-direction: column; gap: 3px; }.catalog-state b { font-size: 11px; }.catalog-state small { color: #7990a0; font-size: 10px; }

.composer-panel { min-width: 0; padding: 54px 64px 42px; position: relative; }
#composer-form { height: 100%; display: flex; flex-direction: column; }
.form-step { display: none; animation: reveal .35s ease; }
.form-step.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.step-heading > span, .card-kicker { color: var(--orange); font-size: 10px; letter-spacing: .16em; font-weight: 850; }
.step-heading h3 { margin: 12px 0 8px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.045em; }
.step-heading p { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice-card { position: relative; min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; transition: .2s ease; cursor: pointer; }
.choice-card:hover { transform: translateY(-2px); border-color: #8e969a; }
.choice-card:has(input:checked) { border: 2px solid var(--orange); padding: 17px; background: #fff8f3; box-shadow: 0 8px 24px rgba(255,107,44,.10); }
.choice-card input, .material-list input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon { font-size: 22px; color: var(--orange); margin-bottom: 14px; }
.choice-card b { font-size: 14px; }.choice-card small { font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 5px; }
.wide-choice { min-height: 82px; grid-column: span 3; display: grid; grid-template-columns: 38px 145px 1fr; align-items: center; }
.wide-choice .choice-icon { margin: 0; }.wide-choice small { margin: 0; }
.field-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; margin: 23px 0 8px; }.field-label small { color: var(--muted); font-weight: 500; }
textarea, input { border: 1px solid var(--line); border-radius: 12px; background: #faf9f6; color: var(--ink); outline: none; transition: .2s; }
textarea { width: 100%; resize: vertical; padding: 14px 15px; line-height: 1.5; }
textarea:focus, input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,107,44,.11); background: white; }

.material-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.material-list label { position: relative; cursor: pointer; }
.material-list label > span { min-height: 72px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 1fr 1fr; align-items: center; transition: .2s; }
.material-list i { grid-row: span 2; font-style: normal; color: #9da4a7; font-size: 10px; }.material-list b { font-size: 14px; align-self: end; }.material-list small { color: var(--muted); font-size: 11px; align-self: start; margin-top: 3px; }
.material-list label:has(input:checked) > span { border: 2px solid var(--orange); padding: 11px 15px; background: #fff8f3; }.material-list label:has(input:checked) i { color: var(--orange); font-weight: 800; }

.number-field { max-width: 580px; margin: 50px auto 28px; position: relative; border-bottom: 2px solid var(--ink); display: flex; align-items: baseline; gap: 14px; }
.number-field > span { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); white-space: nowrap; }
.number-field input { min-width: 0; width: 100%; border: none; background: transparent; box-shadow: none; border-radius: 0; font-size: clamp(45px, 6vw, 76px); font-weight: 750; letter-spacing: -.05em; padding: 0 5px 6px; }
.number-field input:focus { box-shadow: none; }.number-field input::placeholder { color: #d1d1cc; }
.currency-field > span { color: var(--orange); font-size: 48px; }.currency-field > small { font-weight: 800; color: var(--muted); }
.preset-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 auto 32px; max-width: 660px; }
.preset-row button { border: 1px solid var(--line); border-radius: 13px; background: white; padding: 13px 8px; display: flex; flex-direction: column; gap: 3px; color: var(--ink); }
.preset-row button:hover, .preset-row button.selected { border-color: var(--orange); background: #fff8f3; }.preset-row b { font-size: 14px; }.preset-row small { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.budget-presets button { display: block; font-size: 12px; font-weight: 700; }
.info-card, .budget-note { max-width: 660px; margin: 0 auto; padding: 16px 18px; border-radius: 14px; background: #f0eee8; display: flex; gap: 12px; align-items: flex-start; }
.info-card span { flex: none; width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #aeb4b4; border-radius: 50%; font-size: 11px; }
.info-card p, .budget-note p { margin: 0; font-size: 11px; line-height: 1.55; color: var(--muted); }
.budget-note { display: block; }.budget-note b { display: block; font-size: 11px; margin-bottom: 5px; }
.voice-field { position: relative; }.voice-field textarea { min-height: 180px; padding-bottom: 55px; }
/* Old composer dictation button — pinned inside .voice-field only. The chat
   voice-bar button must stay in flow, or it floats over the chat input row. */
.voice-field .voice-button { position: absolute; left: 13px; bottom: 12px; }.voice-button { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 13px; font-size: 11px; font-weight: 800; }.voice-button span { color: var(--orange); }.voice-button.listening { color: white; background: var(--orange); border-color: var(--orange); }
.review-strip { display: grid; grid-template-columns: repeat(4, 1fr); background: #f0eee8; border-radius: 14px; margin-top: 22px; padding: 14px 4px; }
.review-strip div { padding: 0 14px; border-right: 1px solid var(--line); min-width: 0; }.review-strip div:last-child { border: none; }.review-strip span, .review-strip b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.review-strip span { font-size: 8px; letter-spacing: .12em; color: var(--muted); }.review-strip b { font-size: 11px; margin-top: 5px; }
.form-error { min-height: 19px; margin: auto 0 5px; color: var(--danger); font-size: 12px; font-weight: 650; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.button { border: 0; border-radius: 11px; padding: 13px 19px; font-weight: 800; font-size: 12px; letter-spacing: .01em; }
.button.primary { margin-left: auto; background: var(--ink); color: white; min-width: 150px; display: flex; justify-content: space-between; align-items: center; }.button.primary span { color: var(--orange); }
.button.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button:disabled { opacity: .6; cursor: wait; }
.compose-button { min-width: 208px !important; background: var(--orange) !important; color: var(--ink) !important; }.compose-button span { color: inherit !important; }
.mobile-progress { display: none; }

.loading-state { min-height: 580px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.loader-core { width: 100px; height: 100px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; }
.loader-core::before, .loader-core::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed var(--orange); animation: spin 4s linear infinite; }.loader-core::before { width: 76px; height: 76px; }.loader-core::after { width: 122px; height: 122px; animation-direction: reverse; animation-duration: 7s; }
.loader-core span { width: 34px; height: 34px; border-radius: 8px; background: var(--orange); animation: throb 1.4s ease-in-out infinite; }
@keyframes throb { 50% { transform: scale(.75) rotate(45deg); } }
.loading-state h3 { font-size: 28px; margin: 38px 0 8px; }.loading-state p { color: var(--muted); margin: 0; }
.loading-steps { margin-top: 45px; display: flex; gap: 8px; }.loading-steps span { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; padding: 7px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }.loading-steps .done { background: var(--ink); color: white; border-color: var(--ink); }

.results { max-width: 1360px; margin: 0 auto 120px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.results-head h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -.055em; margin: 15px 0 10px; }.results-head p { color: var(--muted); max-width: 780px; line-height: 1.55; }.results-actions { display: flex; gap: 8px; padding-bottom: 10px; }.button.dark { border-color: #a9aca9; }
.source-banner { display: flex; align-items: center; gap: 13px; background: #e5eddb; padding: 15px 18px; border: 1px solid #cbdcb6; border-radius: 14px; margin-bottom: 26px; }
.source-icon { width: 28px; height: 28px; background: #789b49; color: white; display: grid; place-items: center; border-radius: 50%; font-size: 12px; }.source-banner div { display: flex; flex-direction: column; gap: 2px; }.source-banner b { font-size: 12px; }.source-banner small { font-size: 10px; color: #657354; }.ai-badge { margin-left: auto; font-size: 9px; letter-spacing: .1em; border: 1px solid #a9bd8b; border-radius: 999px; padding: 6px 9px; }
.source-banner.stale { background: #fff0d6; border-color: #ebca90; }

.workflow-line { display: grid; gap: 20px; position: relative; }
.workflow-line::before { content: ""; position: absolute; left: 36px; top: 38px; bottom: 38px; width: 1px; background: #b9bfbd; }
.workflow-stage { display: grid; grid-template-columns: 74px 1fr; position: relative; }
.stage-number { z-index: 1; width: 72px; display: grid; place-items: start center; padding-top: 28px; }.stage-number span { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-size: 10px; font-weight: 800; border: 5px solid var(--paper); }
.stage-card { background: white; border-radius: 20px; border: 1px solid var(--line); min-height: 196px; display: grid; grid-template-columns: 230px 1fr 165px; overflow: hidden; box-shadow: 0 12px 40px rgba(7,26,43,.06); }
.machine-image { background: #efeee9; min-height: 196px; display: grid; place-items: center; position: relative; overflow: hidden; }.machine-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 12px; }.machine-image .placeholder { color: #9ba4a5; font-size: 11px; text-align: center; padding: 20px; }.machine-image small { position: absolute; left: 10px; top: 10px; color: white; background: rgba(7,26,43,.76); border-radius: 999px; padding: 5px 8px; font-size: 8px; letter-spacing: .07em; }
.machine-copy { padding: 25px 28px; }.stage-label { color: var(--orange); font-size: 9px; letter-spacing: .14em; font-weight: 850; }.machine-copy h3 { margin: 8px 0 7px; font-size: 22px; letter-spacing: -.025em; }.machine-copy > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.match-reason { margin-top: 15px; display: flex; gap: 7px; align-items: flex-start; color: #617079; font-size: 10px; line-height: 1.45; }.match-reason span { color: #83a651; }
.machine-commerce { padding: 24px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-end; text-align: right; }.stock { font-size: 9px; letter-spacing: .09em; text-transform: uppercase; padding: 5px 7px; border-radius: 999px; background: #e7efdc; color: #52702e; }.stock.out { background: #f7ded7; color: #a3432d; }.stock.unknown { background: #eeeae1; color: #747474; }.price { font-size: 22px; font-weight: 800; margin-top: 19px; }.regular-price { color: var(--muted); text-decoration: line-through; font-size: 10px; margin-top: 3px; }.product-link { margin-top: auto; font-size: 10px; font-weight: 850; color: var(--orange); text-decoration: none; border-bottom: 1px solid var(--orange); padding-bottom: 3px; }
.existing-stage .stage-card { grid-template-columns: 1fr; min-height: 130px; background: #eaf0e2; }.existing-stage .machine-copy { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; align-items: center; }.existing-stage .machine-copy h3 { margin-bottom: 0; }

.result-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; margin: 28px 0 20px; }
.bottleneck-card, .budget-card { border-radius: 20px; padding: 28px; min-height: 245px; }.bottleneck-card { background: var(--ink); color: white; }.budget-card { border: 1px solid var(--line); background: white; }
.risk-title { display: flex; align-items: center; gap: 12px; margin: 23px 0 13px; }.risk-title span { background: var(--orange); color: var(--ink); font-size: 9px; letter-spacing: .09em; font-weight: 900; border-radius: 999px; padding: 6px 9px; }.risk-title h3 { margin: 0; font-size: 25px; }.bottleneck-card p { color: #afbdc6; font-size: 13px; line-height: 1.6; max-width: 570px; }
.bottleneck-meter { display: flex; gap: 5px; margin-top: 28px; }.bottleneck-meter i { height: 5px; border-radius: 99px; background: #294153; flex: 1; }.bottleneck-meter i.on { background: var(--orange); }
.budget-total { font-size: 42px; font-weight: 800; letter-spacing: -.04em; margin: 20px 0; }.budget-compare { display: flex; justify-content: space-between; font-size: 10px; }.budget-compare span { color: var(--muted); letter-spacing: .08em; }.budget-bar { height: 7px; background: #ecebe7; border-radius: 99px; margin: 10px 0 13px; overflow: hidden; }.budget-bar i { display: block; height: 100%; background: var(--orange); width: 0; }.budget-card p { color: var(--muted); font-size: 10px; line-height: 1.45; }
.questions-card { background: #e8e4da; border-radius: 20px; padding: 26px 30px; display: grid; grid-template-columns: 260px 1fr; gap: 35px; }.questions-card > div span { font-size: 9px; letter-spacing: .12em; color: var(--orange); font-weight: 850; }.questions-card h3 { margin: 8px 0 0; font-size: 22px; }.questions-card ol { padding: 0; margin: 0; counter-reset: q; display: grid; gap: 8px; }.questions-card li { list-style: none; counter-increment: q; min-height: 36px; padding: 9px 12px 9px 44px; background: rgba(255,255,255,.55); border-radius: 10px; position: relative; font-size: 11px; line-height: 1.5; }.questions-card li::before { content: counter(q); position: absolute; left: 12px; top: 8px; width: 21px; height: 21px; border-radius: 50%; border: 1px solid #b5b8b3; display: grid; place-items: center; font-size: 8px; }

.quote-section { margin-top: 70px; border-radius: 28px; background: var(--ink); color: white; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; padding: 58px; position: relative; overflow: hidden; }.quote-section::before { content: ""; width: 380px; height: 380px; border-radius: 50%; border: 80px solid rgba(255,107,44,.05); position: absolute; left: -130px; bottom: -180px; }.eyebrow.light { color: #8da1af; }.quote-copy { position: relative; z-index: 1; }.quote-copy h2 { font-size: 46px; letter-spacing: -.05em; line-height: 1.03; margin: 23px 0; }.quote-copy > p { color: #9eb0bc; font-size: 14px; line-height: 1.6; }.quote-contact { margin-top: 50px; }.quote-contact span { color: var(--orange); font-size: 9px; letter-spacing: .13em; }.quote-contact p { color: #9eb0bc; font-size: 11px; line-height: 1.5; }
.quote-form { position: relative; z-index: 1; background: white; color: var(--ink); border-radius: 20px; padding: 28px; display: grid; gap: 14px; }.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.quote-form label > span { display: block; font-size: 9px; letter-spacing: .08em; font-weight: 800; margin-bottom: 6px; color: #5e6b74; }.quote-form input, .quote-form textarea { width: 100%; padding: 11px 12px; }.consent { display: flex; gap: 9px; align-items: center; cursor: pointer; }.consent input { width: 15px; height: 15px; accent-color: var(--orange); }.consent span { margin: 0 !important; font-size: 10px !important; font-weight: 500 !important; letter-spacing: 0 !important; }.quote-button { background: var(--orange); display: flex; justify-content: space-between; color: var(--ink); }.quote-success { padding: 13px; background: #e6efda; color: #3a5b22; border-radius: 10px; font-size: 11px; line-height: 1.5; }

footer { max-width: 1360px; margin: 0 auto; padding: 28px 0 38px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr auto; gap: 20px; font-size: 9px; letter-spacing: .1em; color: var(--muted); } footer p { margin: 0; text-align: center; text-transform: none; letter-spacing: 0; } footer a { text-decoration: none; font-weight: 800; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; gap: 40px; }.hero-copy { max-width: 900px; }.hero-visual { display: none; }
  .hero-flow { display: flex; }
  .composer-shell { margin-left: 20px; margin-right: 20px; grid-template-columns: 270px 1fr; }.composer-sidebar { padding: 40px 25px; }.composer-panel { padding: 48px 38px 38px; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }.wide-choice { grid-column: span 2; }
  .stage-card { grid-template-columns: 190px 1fr 150px; }
  .results { margin-left: 24px; margin-right: 24px; }
}
@media (max-width: 900px) {
  .composer-shell { grid-template-columns: 1fr; margin: 0 16px 80px; min-height: 0; }
  .composer-sidebar { padding: 22px 20px 18px; }
  .composer-sidebar h2 { font-size: 22px; }
  .sidebar-copy { margin: 8px 0 14px; font-size: 12.5px; }
  /* Every agent stays a full visible block — 3×2 grid, nothing scrolled away. */
  .agent-list { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .agent-list li { min-height: 0; padding: 10px 11px; gap: 9px; align-items: flex-start; }
  .agent-list li > span { width: 26px; height: 26px; font-size: 10px; }
  .agent-list b { font-size: 12px; }
  .agent-list small { font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
  .brief-state { margin: 14px 0 0; }
  .brief-missing { overflow-wrap: anywhere; }
  .catalog-state { margin-top: 12px; padding-top: 12px; }
  .composer-panel { padding: 26px 20px 20px; }
  .header-link { display: none; }
  .hero { min-height: auto; padding: 46px 16px 56px; }
  .hero h1 { font-size: clamp(38px, 9.5vw, 54px); }
  .hero-copy > p { font-size: 16px; }
  .quote-section { gap: 36px; padding: 40px 24px; }
  .quote-copy h2 { font-size: clamp(30px, 6.5vw, 40px); }
  .composer-shell.chat-shell { margin-bottom: 60px; }
}
@media (max-width: 780px) {
  .mobile-progress { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }.mobile-progress i { height: 3px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }.mobile-progress b { display: block; height: 100%; background: var(--orange); transition: width .25s; }
  .choice-grid, .material-list { grid-template-columns: 1fr; }.wide-choice { grid-column: span 1; display: flex; min-height: 105px; }.wide-choice .choice-icon { margin-right: 10px; }.wide-choice small { margin-top: 5px; }
  .preset-row { grid-template-columns: 1fr 1fr; }.review-strip { grid-template-columns: 1fr 1fr; gap: 14px 0; }.review-strip div:nth-child(2) { border: none; }
  .results { margin: 0 14px 70px; }.results-head { display: block; }.results-actions { margin-top: 20px; }.source-banner { align-items: flex-start; }.ai-badge { display: none; }
  .workflow-stage { grid-template-columns: 42px 1fr; }.workflow-line::before { left: 20px; }.stage-number { width: 40px; padding-top: 24px; }.stage-number span { width: 28px; height: 28px; }
  .stage-card { grid-template-columns: 1fr; }.machine-image { height: 175px; min-height: 0; }.machine-commerce { border-left: 0; border-top: 1px solid var(--line); align-items: flex-start; text-align: left; min-height: 120px; }.product-link { margin-top: 18px; }.existing-stage .machine-copy { display: block; }
  .result-grid, .questions-card, .quote-section { grid-template-columns: 1fr; }.questions-card { gap: 20px; }.two-fields { grid-template-columns: 1fr; }
  footer { margin: 0 16px; grid-template-columns: 1fr; text-align: center; padding-bottom: calc(38px + env(safe-area-inset-bottom)); } footer p { order: 3; }
  .hero-flow { gap: 7px; }.hero-flow span { padding: 11px 11px 20px; font-size: 11.5px; }
  .agent-list { grid-template-columns: repeat(2, 1fr); }
  .standalone-quote { margin: 0 14px 70px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(34px, 11vw, 44px); }
  .hero-flow span { font-size: 11px; padding: 10px 10px 19px; }
  .hero-flow b { font-size: 7.5px; }
  .chat-plan-totals { grid-template-columns: repeat(2, 1fr); }
  .chat-plan-totals b { font-size: 13px; }
  .agent-list li { padding: 9px 10px; }
  .chat-products { grid-template-columns: 1fr; }
  .quote-copy .quote-contact { margin-top: 28px; }
}
@media (max-width: 400px) {
  .chat-plan-totals { grid-template-columns: 1fr 1fr; gap: 6px; }
  .chat-plan-totals div { padding: 8px 9px; }
  .brand strong { font-size: 15px; letter-spacing: .1em; }
  .hero-flow { gap: 5px; }.hero-flow span { font-size: 10.5px; border-radius: 13px; }
  .hero-flow span::after { width: 20px; left: 10px; bottom: 9px; }
  .agent-list li > span { width: 22px; height: 22px; font-size: 9px; }
  .button { padding: 12px 15px; }
}
/* Landscape phones: shallow viewport — compress hero and thread. */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: 0; padding: 28px 16px 34px; }
  .hero h1 { font-size: clamp(30px, 8vh, 42px); }
  .hero-flow { margin-top: 18px; }
  .sidebar-copy { display: none; }
  .chat-thread { max-height: 52vh; max-height: 52dvh; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }

/* Chat interface (multi-agent assistant) */
.chat-panel { display: flex; flex-direction: column; min-height: 720px; }
.chat-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; padding: 6px 4px 18px; scroll-behavior: smooth; }
.chat-message { max-width: 92%; border-radius: 18px; padding: 15px 18px; font-size: 13px; line-height: 1.6; }
.chat-bot { align-self: flex-start; background: white; border: 1px solid var(--line); border-bottom-left-radius: 6px; box-shadow: 0 6px 24px rgba(7,26,43,.06); }
.chat-user { align-self: flex-end; background: var(--ink); color: white; border-bottom-right-radius: 6px; }
.bubble-text p { margin: 0 0 8px; }.bubble-text p:last-child { margin-bottom: 0; }.bubble-text ul { margin: 6px 0; padding-left: 18px; display: grid; gap: 5px; }.bubble-text b { font-weight: 800; }
.agent-trace { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.agent-badge { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; font-weight: 800; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; background: var(--paper); }
.chat-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.chat-product { display: grid; grid-template-columns: 84px 1fr; gap: 11px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; color: var(--ink); transition: .2s; }.chat-product:hover { border-color: var(--orange); transform: translateY(-2px); }
.chat-product.no-link { pointer-events: none; opacity: .9; }
.chat-product-image img { width: 84px; height: 68px; object-fit: cover; border-radius: 9px; }.chat-product-image .placeholder { width: 84px; height: 68px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; font-size: 8px; color: var(--muted); text-align: center; padding: 4px; }
.chat-product-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }.chat-product-copy b { font-size: 11.5px; line-height: 1.35; }.chat-product .price { font-weight: 800; font-size: 12px; }.chat-product .stock { font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: #3a5b22; text-transform: uppercase; }.chat-product .stock.out { color: var(--danger); }.chat-product .stock.unknown { color: var(--muted); }
.chat-plan { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 16px; }
.chat-plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }.chat-plan-head h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; }
.small-button { font-size: 10px; padding: 8px 12px; white-space: nowrap; }
.chat-plan-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }.chat-plan-totals div { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; min-width: 0; }.chat-plan-totals span { display: block; font-size: 8px; letter-spacing: .1em; color: var(--muted); font-weight: 800; }.chat-plan-totals b { font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.chat-plan .workflow-line { margin: 0; }.chat-plan .stage-card { background: white; }.chat-plan-note { font-size: 10px; color: var(--muted); margin: 12px 0 0; }
.chat-usage { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 9px; }
.chat-usage summary { cursor: pointer; list-style: none; font-size: 9.5px; letter-spacing: .04em; color: var(--muted); font-weight: 700; }.chat-usage summary::-webkit-details-marker { display: none; }.chat-usage summary::before { content: "▸ "; color: var(--orange); }.chat-usage[open] summary::before { content: "▾ "; }
.chat-usage table { width: 100%; border-collapse: collapse; margin: 9px 0 5px; font-size: 9.5px; }.chat-usage th { text-align: left; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 4px 7px 5px 0; border-bottom: 1px solid var(--line); }.chat-usage td { padding: 5px 7px 5px 0; border-bottom: 1px solid var(--paper-2); }.chat-usage small { color: var(--muted); font-size: 9px; }.chat-usage table { overflow-x: auto; display: block; }
.chat-typing { display: flex; align-items: center; gap: 5px; padding: 4px 4px 14px; }
.typing-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); opacity: .4; animation: typingPulse 1.2s infinite; }.typing-dot:nth-child(2) { animation-delay: .18s; }.typing-dot:nth-child(3) { animation-delay: .36s; }
@keyframes typingPulse { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-typing small { margin-left: 7px; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 14px; }
.suggestion-chip { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 8px 14px; font-size: 11px; font-weight: 700; color: var(--ink); transition: .2s; }.suggestion-chip:hover { border-color: var(--orange); color: var(--orange); }
.chat-input-row { display: flex; gap: 9px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 15px; }
.chat-voice { flex: 1; }
.chat-voice textarea { min-height: 46px; max-height: 140px; padding: 12px 15px; resize: none; }
.chat-send { flex: none; }
.brief-state { margin: 26px 0 0; }
.brief-title { font-size: 9px; letter-spacing: .13em; color: #7f94a3; font-weight: 800; margin: 0 0 9px; }
.brief-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.brief-chip { font-size: 9.5px; font-weight: 700; border-radius: 999px; padding: 5px 10px; background: rgba(185,219,113,.14); color: var(--lime); border: 1px solid rgba(185,219,113,.3); }
.brief-missing { font-size: 10px; color: #7f94a3; margin: 8px 0 0; }
.agent-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; counter-reset: agent; }
.agent-list li { display: flex; align-items: center; gap: 13px; min-height: 64px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.05); color: #9eb0bd; }
.agent-list li > span { width: 33px; height: 33px; border-radius: 50%; border: 1px solid #365064; display: grid; place-items: center; font-size: 11px; flex: none; color: var(--lime); }
.agent-list li div { display: flex; flex-direction: column; gap: 4px; }
.agent-list b { font-size: 13px; color: white; }.agent-list small { font-size: 11px; }
.chat-sources { display: flex; flex-wrap: wrap; gap: 7px; align-items: baseline; margin-top: 10px; }
.chat-sources span { font-size: 8px; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.chat-sources a { font-size: 10px; color: #2563eb; text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.chat-sources a:hover { color: var(--orange); }
.web-note { display: flex; gap: 6px; align-items: baseline; margin-top: 7px; font-size: 10px; line-height: 1.45; }
.web-note span { flex: none; font-size: 7.5px; letter-spacing: .1em; font-weight: 800; color: #2563eb; border: 1px solid rgba(37,99,235,.35); border-radius: 4px; padding: 2px 5px; }
.web-note a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }
.web-note a:hover { color: #2563eb; }
.standalone-quote { max-width: 1360px; margin: 0 auto 120px; }

/* Print Preneur brand treatment — the name is the hero, in the page's
   warm orange family (no rainbow: ink + paper + orange only). */
.brand-name {
  background: linear-gradient(100deg, #ffbe93 0%, var(--orange) 55%, #e04e1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .15em;
}
.brand-inline {
  background: linear-gradient(100deg, #ffbe93, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 12.5px; letter-spacing: .05em;
}
.brand-word {
  background: linear-gradient(100deg, #ffceaa 0%, var(--orange) 55%, #e04e1a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(255,107,44,.26));
  padding-right: .04em;
}
.hero h1 .brand-word { animation: brand-glow 3.2s ease-in-out infinite; }
@keyframes brand-glow {
  0%, 100% { filter: drop-shadow(0 6px 22px rgba(255,107,44,.22)); }
  50% { filter: drop-shadow(0 8px 34px rgba(255,178,107,.36)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .brand-word { animation: none; }
}
.deferred-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; }
.deferred-divider::before, .deferred-divider::after { content: ""; flex: 1; border-top: 1px dashed rgba(255,148,62,.4); }
.deferred-divider span { font-size: 9.5px; letter-spacing: .11em; font-weight: 800; color: var(--orange); white-space: nowrap; }
.deferred-stage .stage-number { border-color: rgba(255,148,62,.5); }
.deferred-stage .stage-number span { color: var(--orange); }
.deferred-stage .stage-card { background: rgba(255,148,62,.05); border-color: rgba(255,148,62,.22); }
.deferred-stage .machine-image small { color: var(--orange); }
.deferred-stage .machine-commerce { align-items: flex-start; }
.quote-price { font-size: 10.5px; font-weight: 700; color: var(--orange); border: 1px solid rgba(255,148,62,.35); border-radius: 6px; padding: 4px 8px; }
.chat-plan-totals small { font-size: 9px; color: var(--orange); font-weight: 800; }

@media (max-width: 780px) {
  .chat-panel { min-height: 0; }.chat-thread { max-height: 62vh; max-height: 62dvh; }.chat-message { max-width: 100%; }
  .chat-plan-totals { grid-template-columns: repeat(2, 1fr); }.chat-plan .workflow-stage { grid-template-columns: 42px 1fr; }.chat-plan .stage-card { grid-template-columns: 1fr; }
  .chat-input-row { flex-wrap: wrap; padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .chat-voice { flex: 1 1 100%; order: 1; }.chat-voice textarea { width: 100%; }
  .chat-send { order: 3; flex: 1; min-width: 0; margin-left: 0; }
  .chat-products { grid-template-columns: 1fr; }
  .chat-thread { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .chat-scroll-btn { right: 14px; bottom: 132px; }
  .chat-input-row .button { min-height: 46px; }
}

/* ── Interaction layer ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.16,.84,.32,1); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.chat-message { animation: bubbleIn .38s cubic-bezier(.16,.84,.32,1) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

.suggestion-chip { animation: chipIn .34s ease both; cursor: pointer; min-height: 40px; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.chat-scroll-btn { position: absolute; right: 18px; bottom: 128px; z-index: 5; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 999px; padding: 9px 15px; font-size: 11px; font-weight: 800; letter-spacing: .04em; box-shadow: 0 8px 26px rgba(7,26,43,.16); cursor: pointer; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .25s, border-color .2s; }
.chat-scroll-btn.show { opacity: 1; transform: none; pointer-events: auto; }
.chat-scroll-btn:hover { border-color: var(--orange); color: var(--orange); }
.chat-scroll-btn span { background: var(--orange); color: white; border-radius: 999px; padding: 2px 8px; font-size: 9px; letter-spacing: .08em; }

.budget-meter { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 10px 0 12px; }
.budget-meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--orange), #ff9d4d); width: 0; transition: width .8s cubic-bezier(.16,.84,.32,1); }
.budget-meter.complete i { background: linear-gradient(90deg, var(--lime), #8fd15f); }

.button { transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,107,44,.24); }
.button:active { transform: translateY(0) scale(.975); }
.button:focus-visible, .suggestion-chip:focus-visible, .chat-scroll-btn:focus-visible, a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.button, .suggestion-chip, .preset-row button, .chat-scroll-btn, .agent-list li { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

@media (hover: none) {
  .button:hover { transform: none; box-shadow: none; }
  .choice-card:hover, .chat-product:hover { transform: none; }
}

/* ── Feasibility agent: interview chips + economic insights report ────────── */

.fe-confirm { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.fe-progress { margin-top: 10px; position: relative; height: 22px; border-radius: 999px; background: white; border: 1px solid var(--line); overflow: hidden; }
.fe-progress i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--orange), var(--orange-2)); border-radius: 999px; transition: width .5s ease; }
.fe-progress small { position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; font-weight: 800; letter-spacing: .08em; color: var(--ink); }

.fe-report { margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); padding: 16px; }
.fe-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.fe-head h3 { margin: 6px 0 3px; font-size: 19px; letter-spacing: -.02em; }
.fe-head small { color: var(--muted); font-size: 10px; }

.fe-score { margin: 14px 0 4px; display: flex; gap: 16px; align-items: center; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.fe-score-ring { flex: 0 0 auto; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; align-content: center; line-height: 1;
  background: conic-gradient(var(--ring, var(--orange)) calc(var(--pct, 0) * 1%), var(--line) 0); position: relative; }
.fe-score-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: white; }
.fe-score-ring b { position: relative; font-size: 24px; letter-spacing: -.03em; }
.fe-score-ring small { position: relative; font-size: 9px; color: var(--muted); font-weight: 700; }
.fe-score.good { --ring: #83a651; }
.fe-score.mid { --ring: var(--orange); }
.fe-score.weak { --ring: var(--danger); }
.fe-score-side { min-width: 0; }
.fe-score-side .stage-label { display: block; }
.fe-score-side p { margin: 7px 0 0; font-size: 11px; color: var(--muted); line-height: 1.5; }

.fe-summary { font-size: 12px; line-height: 1.6; color: var(--ink-2); margin: 12px 0; }

.fe-keynumbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.fe-keynumbers div { background: white; border: 1px solid var(--line); border-radius: 11px; padding: 9px 11px; min-width: 0; }
.fe-keynumbers span { display: block; font-size: 8px; letter-spacing: .1em; color: var(--muted); font-weight: 800; }
.fe-keynumbers b { display: block; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; margin-top: 3px; }
.fe-keynumbers small { display: block; font-size: 9px; color: var(--muted); margin-top: 2px; }

.fe-section { border: 1px solid var(--line); border-radius: 12px; background: white; margin-top: 8px; overflow: hidden; }
.fe-section > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 13px; font-size: 11px; font-weight: 800; letter-spacing: .01em; }
.fe-section > summary::-webkit-details-marker { display: none; }
.fe-section > summary::after { content: "+"; color: var(--orange); font-weight: 850; font-size: 14px; }
.fe-section[open] > summary::after { content: "–"; }
.fe-section[open] > summary { border-bottom: 1px dashed var(--line); }
.fe-section-body { padding: 11px 13px; font-size: 11px; line-height: 1.55; color: var(--ink-2); overflow-x: auto; }
.fe-section-body ul { margin: 0; padding-left: 16px; }
.fe-section-body p { margin: 6px 0; }

.fe-badge { flex: 0 0 auto; font-size: 8px; letter-spacing: .08em; font-weight: 850; text-transform: uppercase; border-radius: 999px; padding: 3px 8px; }
.fe-badge.high { background: #eaf3da; color: #4f7028; }
.fe-badge.medium { background: #fdeada; color: #9a4d12; }
.fe-badge.low, .fe-badge.suppressed { background: #f6e3de; color: #8f2f18; }
.fe-badge.assumption { background: var(--paper-2); color: var(--muted); }

.fe-kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 14px; margin: 0; }
.fe-kv dt { font-size: 9px; letter-spacing: .07em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.fe-kv dd { margin: 2px 0 0; font-size: 11px; overflow-wrap: anywhere; }
.fe-kv-wide { grid-column: 1 / -1; }
.fe-kv-group { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 6px; }
.fe-kv-group:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

.fe-table { width: 100%; border-collapse: collapse; font-size: 10.5px; }
.fe-table th { text-align: left; font-size: 8px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 4px 6px 5px 0; }
.fe-table td { padding: 5px 6px 5px 0; border-bottom: 1px dashed var(--line); vertical-align: top; overflow-wrap: anywhere; }
.fe-table tfoot td { border-top: 1px solid var(--line); border-bottom: 0; font-weight: 800; }
.fe-table .fe-base td { background: #fdf6ee; }
.fe-table small { color: var(--muted); }

.fe-big { font-size: 16px; font-weight: 850; letter-spacing: -.02em; margin: 2px 0 6px; }
.fe-big small { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.fe-machine { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 11px; }
.fe-machine:last-child { border-bottom: 0; }
.fe-machine b { font-size: 11.5px; }
.fe-machine span { color: var(--muted); font-size: 10px; }
.fe-machine a { color: var(--orange); font-size: 10px; font-weight: 700; text-decoration: none; }
.fe-note { font-size: 10px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.fe-empty { color: var(--muted); font-size: 10.5px; font-style: italic; }
.fe-link { padding: 3px 0; font-size: 10.5px; }
.fe-link a { color: var(--orange); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.fe-link small { display: block; color: var(--muted); font-size: 9px; }
.fe-plan li { margin: 4px 0; }
.fe-plan b { color: var(--orange); font-size: 10px; letter-spacing: .04em; }

.fe-edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.fe-edit-grid label { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fe-edit-grid span { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.fe-edit-grid input { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12px; width: 100%; background: var(--paper); }
.fe-edit-grid input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.fe-edit-grid small { font-size: 8.5px; color: var(--muted); }
.fe-recompute-out { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }

.fe-lead-form { display: grid; gap: 8px; }
.fe-lead-form label { display: flex; flex-direction: column; gap: 3px; }
.fe-lead-form label span { font-size: 8.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.fe-lead-form input:not([type="checkbox"]) { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; background: var(--paper); }
.fe-lead-form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.fe-consent { flex-direction: row !important; align-items: flex-start; gap: 8px !important; }
.fe-consent input { width: 15px; height: 15px; accent-color: var(--orange); margin-top: 1px; }
.fe-consent span { text-transform: none !important; letter-spacing: 0 !important; font-size: 10.5px !important; font-weight: 600 !important; color: var(--ink-2) !important; line-height: 1.45; }
.fe-lead .form-success { color: #4f7028; font-size: 11px; margin: 0; }

.fe-disclaimers { margin: 12px 0 0; padding: 10px 12px 10px 30px; background: var(--paper-2); border-radius: 10px; font-size: 9.5px; color: var(--muted); line-height: 1.55; }

@media (max-width: 780px) {
  .fe-keynumbers { grid-template-columns: repeat(2, 1fr); }
  .fe-edit-grid { grid-template-columns: repeat(2, 1fr); }
  .fe-score { flex-direction: column; text-align: center; }
  .fe-score-side .stage-label { margin-top: 4px; }
}
@media (max-width: 560px) {
  .fe-report { padding: 12px; }
  .fe-kv { grid-template-columns: 1fr; }
  .fe-edit-grid { grid-template-columns: 1fr 1fr; }
  .fe-section-body { padding: 10px; }
  .fe-table { font-size: 10px; }
}
@media (max-width: 400px) {
  .fe-edit-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN v2 — 2026 refresh
   Layered on top of the original sheet rather than rewritten, so every rule
   below is an intentional override and easy to audit. Three goals:
   1. Voice-first composer (orb, hands-free bar, live state).
   2. Calmer, deeper chat surface — softer bubbles, clearer agent trace.
   3. Demand-map + extraction-agent UI (essentials progress, quick answers).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink-3: #123853;
  --accent: #ff6b2c;
  --accent-soft: rgba(255, 107, 44, .12);
  --teal: #0f7b73;
  --teal-soft: rgba(15, 123, 115, .1);
  --surface: #fffdf9;
  --surface-2: #f7f4ed;
  --line-2: #e6e2d9;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(7, 26, 43, .06);
  --shadow-md: 0 12px 34px rgba(7, 26, 43, .1);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── Chat surface ─────────────────────────────────────────────────────── */

.chat-panel {
  position: relative;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255, 107, 44, .07), transparent 60%),
    radial-gradient(90% 70% at 0% 100%, rgba(15, 123, 115, .07), transparent 55%),
    var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.chat-thread { scroll-behavior: smooth; scrollbar-width: thin; }
.chat-thread::-webkit-scrollbar { width: 8px; }
.chat-thread::-webkit-scrollbar-thumb {
  background: rgba(7, 26, 43, .16); border-radius: 8px;
}

.chat-message { animation: bubble-in .34s var(--ease) both; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: none; }
}

.chat-bot .bubble-text, .chat-bot > div:first-child {
  border-radius: 4px var(--radius-lg) var(--radius-lg) var(--radius-lg);
}
.chat-user .bubble-text {
  border-radius: var(--radius-lg) 4px var(--radius-lg) var(--radius-lg);
}

.agent-trace { gap: 6px; }
.agent-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--ink-3);
}
.agent-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); flex: none;
}

/* ── Voice conversation bar ───────────────────────────────────────────── */

.voice-bar {
  display: flex; align-items: center; gap: 14px;
  margin: 0 clamp(12px, 3vw, 24px) 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  box-shadow: var(--shadow-sm);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
body.voice-live .voice-bar {
  border-color: rgba(255, 107, 44, .55);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm);
}

.voice-copy { display: flex; flex-direction: column; line-height: 1.25; margin-right: auto; }
.voice-copy b { font-size: 13px; }
.voice-copy small { color: var(--muted); font-size: 11.5px; }

/* Three bars that idle flat, breathe while listening and pulse while speaking. */
.voice-orb {
  flex: none; width: 40px; height: 40px; border-radius: 14px;
  display: grid; grid-auto-flow: column; align-items: center; justify-content: center;
  gap: 3px; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.voice-orb i {
  display: block; width: 4px; height: 8px; border-radius: 2px;
  background: var(--paper); transition: height .2s var(--ease), background .3s var(--ease);
}
.voice-orb[data-state="listening"] i { background: var(--accent); animation: voice-wave 1s infinite ease-in-out; }
.voice-orb[data-state="listening"] i:nth-child(2) { animation-delay: .16s; }
.voice-orb[data-state="listening"] i:nth-child(3) { animation-delay: .32s; }
.voice-orb[data-state="thinking"] i { background: var(--lime); animation: voice-think 1.3s infinite ease-in-out; }
.voice-orb[data-state="thinking"] i:nth-child(2) { animation-delay: .2s; }
.voice-orb[data-state="thinking"] i:nth-child(3) { animation-delay: .4s; }
.voice-orb[data-state="speaking"] i { background: #7fd3cd; animation: voice-wave .6s infinite ease-in-out; }
.voice-orb[data-state="speaking"] i:nth-child(2) { animation-delay: .1s; }
.voice-orb[data-state="speaking"] i:nth-child(3) { animation-delay: .2s; }
@keyframes voice-wave { 0%, 100% { height: 7px; } 50% { height: 22px; } }
@keyframes voice-think { 0%, 100% { height: 6px; opacity: .5; } 50% { height: 12px; opacity: 1; } }

.voice-switch { display: flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.voice-switch input { position: absolute; opacity: 0; pointer-events: none; }
.voice-switch > span {
  width: 34px; height: 20px; border-radius: 999px; background: var(--line);
  position: relative; transition: background .25s var(--ease); flex: none;
}
.voice-switch > span::after {
  content: ""; position: absolute; inset: 2px auto 2px 2px; width: 16px;
  border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease);
}
.voice-switch input:checked + span { background: var(--teal); }
.voice-switch input:checked + span::after { transform: translateX(14px); }
.voice-switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.voice-switch input:disabled + span { opacity: .45; }
.voice-switch small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.voice-button { white-space: nowrap; }
.voice-button .voice-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); margin-right: 2px;
}
.voice-button.listening { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.voice-button.listening .voice-dot { background: var(--accent); animation: voice-blink 1s infinite; }
.voice-button.speaking .voice-dot { background: #7fd3cd; animation: voice-blink .6s infinite; }
@keyframes voice-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.voice-button[disabled] { opacity: .5; cursor: not-allowed; }

/* ── Extraction-agent progress + quick answers ────────────────────────── */

.fe-progress {
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; height: 6px; border-radius: 999px;
  background: var(--line-2); position: relative; overflow: visible;
}
.fe-progress i {
  display: block; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--accent));
  transition: width .5s var(--ease);
}
.fe-progress small {
  position: absolute; left: 0; top: 12px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.fe-confirm { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Demand map ───────────────────────────────────────────────────────── */

.fe-demand-card {
  margin-top: 12px; padding: 16px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
}
.fe-demand { width: 100%; border-collapse: collapse; font-size: 13px; }
.fe-demand th {
  text-align: left; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line-2);
}
.fe-demand td { padding: 8px; border-bottom: 1px solid rgba(216, 213, 206, .5); }
.fe-demand td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; width: 28px; }
.fe-demand td small { display: block; color: var(--muted); font-size: 11px; }
.fe-demand tr:hover td { background: var(--accent-soft); }
.fe-howto {
  margin: 12px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted);
}
.fe-howto li { margin-bottom: 4px; }
.fe-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fe-badge {
  background: var(--teal-soft); color: var(--teal); border-radius: 999px;
  padding: 3px 10px; font-size: 11px; font-weight: 700;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */

@media (max-width: 760px) {
  .voice-bar {
    flex-wrap: wrap; gap: 10px;
    margin-inline: 10px; padding: 10px 12px;
  }
  .voice-copy { order: 1; flex: 1 1 60%; }
  .voice-orb { order: 0; }
  .voice-switch { order: 3; }
  .voice-button { order: 2; flex: 1 1 100%; justify-content: center; min-height: 46px; }
  .fe-demand { font-size: 12px; }
  .fe-demand th:nth-child(5), .fe-demand td:nth-child(5) { display: none; }
  .chat-input-row { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-message, .voice-orb i, .voice-button .voice-dot, .fe-progress i { animation: none; transition: none; }
}

/* ── Documentation download ───────────────────────────────────────────────
   Sits between the quotation form and the footer: the visitor who wants to
   know how the agents, keys and data actually work takes the PDF away. */

.doc-section {
  max-width: 1360px; margin: 0 auto 90px;
  display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(20px, 4vw, 56px);
  align-items: center;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: clamp(24px, 4vw, 46px);
}
.doc-copy h2 { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -.045em; line-height: 1.06; margin: 18px 0 12px; }
.doc-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; max-width: 620px; }
.doc-points { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.doc-points li {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 10px 14px; background: var(--surface-2);
}
.doc-points b { font-size: 12.5px; }
.doc-points small { font-size: 10.5px; color: var(--muted); }

.doc-download {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--ink); color: white; border-radius: 18px;
  padding: 18px 22px; min-height: 76px;
}
.doc-download .doc-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: var(--orange); display: grid; place-items: center;
}
.doc-download .doc-icon svg {
  width: 22px; height: 22px; fill: none; stroke: var(--ink);
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.doc-download .doc-label { display: flex; flex-direction: column; gap: 3px; margin-right: auto; min-width: 0; }
.doc-download .doc-label b { font-size: 14px; letter-spacing: 0; }
.doc-download .doc-label small { font-size: 10.5px; color: #9badba; letter-spacing: .06em; text-transform: uppercase; }
.doc-download .doc-arrow { flex: none; color: var(--orange); font-size: 18px; font-weight: 900; }
.doc-download:hover .doc-arrow { animation: doc-nudge .9s ease-in-out infinite; }
@keyframes doc-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

@media (max-width: 900px) {
  .doc-section { grid-template-columns: 1fr; margin: 0 16px 60px; gap: 22px; }
  .doc-copy h2 { margin-top: 14px; }
}
@media (max-width: 560px) {
  .doc-points li { flex: 1 1 100%; }
  .doc-download { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-download:hover .doc-arrow { animation: none; }
}
