:root {
  --ink: #11120f;
  --paper: #f4f0e5;
  --paper-2: #e8e0d0;
  --white: #fffdf8;
  --terracotta: #c98874;
  --rust: #8e3a2b;
  --muted: #67675f;
  --line: rgba(17,18,15,.18);
  --display: "Archivo Black", sans-serif;
  --body: "DM Sans", sans-serif;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-weight: 300; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.funnel-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; width: 32px; aspect-ratio: 1; place-items: center; background: var(--ink); color: var(--terracotta); font-family: var(--display); font-size: .82rem; transform: rotate(-7deg); }
.secure-note { color: var(--muted); font-size: .78rem; }
.progress { height: 5px; background: var(--paper-2); }
.progress span { display: block; width: var(--progress, 20%); height: 100%; background: var(--rust); transition: width .35s var(--ease); }
.funnel-main { padding-block: 64px 90px; }
.funnel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 5rem; align-items: start; }
.eyebrow { margin: 0 0 1rem; color: var(--rust); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.055em; text-wrap: balance; }
h1 { max-width: 800px; margin-bottom: 1rem; font-size: clamp(2.5rem, 6vw, 5.8rem); line-height: .94; }
h2 { font-size: clamp(1.8rem, 3.3vw, 3.2rem); line-height: 1; }
.lede { max-width: 680px; margin: 0 0 2.5rem; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.form-panel { padding: clamp(1.3rem, 3.5vw, 2.6rem); border: 2px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--terracotta); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
.field { display: grid; gap: .45rem; margin-bottom: 1.15rem; }
.field.full { grid-column: 1 / -1; }
.field label, .fieldset-label { font-size: .78rem; font-weight: 700; }
.field small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; border: 1px solid rgba(17,18,15,.35); border-radius: 0;
  background: var(--paper); color: var(--ink); padding: .8rem .9rem; outline: none;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rust); box-shadow: 0 0 0 3px rgba(142,58,43,.13); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.check-row { display: flex; align-items: flex-start; gap: .7rem; margin: 1.2rem 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.check-row input { width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--rust); flex: 0 0 auto; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: .6rem; border: 2px solid transparent; padding: .9rem 1.35rem; font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--rust); outline-offset: 4px; }
.button-primary { background: var(--terracotta); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.button-dark { background: var(--ink); color: white; }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-block { width: 100%; }
.button[disabled] { cursor: wait; opacity: .58; transform: none; }
.form-error, .form-success, .notice { display: none; margin: 1rem 0; padding: .85rem 1rem; border-left: 4px solid var(--rust); background: #f8e7df; font-size: .84rem; line-height: 1.5; }
.form-error.show, .form-success.show, .notice.show { display: block; }
.form-success { border-color: #416c57; background: #e6f0e8; }
.brief-rail { position: sticky; top: 24px; }
.brief-card { overflow: hidden; border: 2px solid var(--ink); background: var(--ink); color: white; box-shadow: 10px 10px 0 var(--rust); }
.brief-card header { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.2); color: var(--terracotta); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.brief-body { padding: 1.3rem; }
.brief-body h2 { margin-bottom: 1.5rem; font-size: 1.65rem; }
.brief-list { display: grid; gap: 1rem; margin: 0; }
.brief-list div { display: grid; gap: .25rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.13); }
.brief-list dt { color: rgba(255,255,255,.54); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.brief-list dd { margin: 0; font-size: .86rem; line-height: 1.45; }
.brief-foot { margin: 1.3rem 0 0; color: rgba(255,255,255,.6); font-size: .72rem; line-height: 1.5; }
.price-lock { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: end; margin: 2rem 0; padding: 1.3rem 0; border-block: 1px solid var(--line); }
.price-lock strong { display: block; font-family: var(--display); font-size: clamp(3.6rem, 8vw, 6.5rem); letter-spacing: -.08em; line-height: .8; }
.price-lock span { color: var(--muted); font-size: .82rem; }
.price-lock .due { color: var(--rust); font-weight: 700; text-align: right; }
.scope-list, .trigger-list { display: grid; gap: .75rem; padding: 0; list-style: none; }
.scope-list li, .trigger-list li { position: relative; padding-left: 1.55rem; line-height: 1.5; }
.scope-list li::before, .trigger-list li::before { content: "✓"; position: absolute; left: 0; color: var(--rust); font-weight: 700; }
.guarantee-box { margin: 1.5rem 0; padding: 1rem; border: 1px solid var(--ink); background: var(--paper); font-size: .83rem; line-height: 1.55; }
.deadline-box { margin: 1rem 0; padding: 1rem; background: var(--terracotta); font-size: .82rem; line-height: 1.5; }
.downsell { display: none; margin-top: 1.5rem; padding: 1.4rem; border: 2px solid var(--rust); background: #fff5ef; }
.downsell.show { display: block; }
.downsell h3 { margin-bottom: .6rem; font-family: var(--display); font-size: 1.45rem; letter-spacing: -.035em; }
.step-tabs { display: flex; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.step-tabs li { flex: 1; height: 5px; background: var(--paper-2); }
.step-tabs li.active, .step-tabs li.done { background: var(--rust); }
.form-step { display: none; }
.form-step.active { display: block; animation: enter .35s var(--ease); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } }
.step-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.brand-scan { margin: 1.8rem 0; padding: clamp(1rem, 3vw, 1.6rem); border: 2px solid var(--ink); background: var(--paper); }
.brand-scan-heading, .brand-output-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.brand-scan-heading .eyebrow { margin-bottom: .55rem; }
.brand-scan-heading h3 { max-width: 520px; margin: 0; font-family: var(--display); font-size: clamp(1.45rem, 3vw, 2.15rem); letter-spacing: -.045em; line-height: 1; }
.brand-scan-badge { flex: 0 0 auto; padding: .42rem .58rem; background: var(--terracotta); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.brand-scan-intro { max-width: 650px; margin: .9rem 0 1.3rem; color: var(--muted); font-size: .8rem; line-height: 1.55; }
.brand-scan-layout { display: grid; grid-template-columns: minmax(190px, .72fr) minmax(0, 1.6fr); gap: 1.2rem; }
.logo-upload-card { display: grid; align-content: start; gap: .75rem; }
.logo-stage { position: relative; display: grid; min-height: 230px; overflow: hidden; place-items: center; border: 1px solid var(--ink); background: var(--white); }
.logo-stage > span { font-family: var(--display); font-size: 2rem; letter-spacing: -.08em; line-height: .85; text-align: center; }
.logo-stage img { display: block; width: min(78%, 210px); max-height: 170px; object-fit: contain; }
.logo-stage img[hidden] { display: none; }
.scan-beam { position: absolute; z-index: 2; left: 0; right: 0; top: -8px; height: 5px; background: var(--terracotta); box-shadow: 0 0 18px 6px rgba(201,136,116,.55); opacity: 0; }
.brand-scan.is-scanning .scan-beam { opacity: 1; animation: brand-sweep 1.35s var(--ease) infinite; }
@keyframes brand-sweep { 0% { transform: translateY(0); } 100% { transform: translateY(238px); } }
.logo-upload-card .button { width: 100%; min-height: 48px; }
.brand-scan-status { min-height: 2.2em; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.brand-output { padding: 1rem; border: 1px solid var(--line); background: var(--white); }
.brand-output-head { align-items: center; font-size: .72rem; }
.brand-output-head > span { color: var(--rust); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.brand-palette { display: flex; min-height: 68px; align-items: center; gap: .55rem; margin: .9rem 0 1.05rem; padding-block: .8rem; border-block: 1px solid var(--line); }
.brand-swatch { display: grid; width: 48px; aspect-ratio: 1; place-items: end center; border: 1px solid rgba(17,18,15,.25); box-shadow: inset 0 -18px rgba(255,255,255,.9); font-size: .52rem; font-style: normal; font-weight: 700; }
.empty-swatch { color: var(--muted); font-size: .7rem; }
.compact-fields { gap: .75rem; }
.compact-fields .field, .brand-style-field { margin-bottom: .75rem; }
.brand-style-field textarea { min-height: 74px; }
.brand-preview { display: grid; gap: .4rem; position: relative; overflow: hidden; margin-top: .35rem; padding: 1rem; background: var(--brand-primary, var(--ink)); color: var(--brand-contrast, white); }
.brand-preview::after { content: ""; position: absolute; width: 86px; aspect-ratio: 1; right: -24px; bottom: -37px; border: 15px solid var(--brand-secondary, var(--terracotta)); border-radius: 50%; opacity: .8; }
.brand-preview span { position: relative; z-index: 1; font-size: .55rem; font-weight: 700; letter-spacing: .13em; }
.brand-preview strong { position: relative; z-index: 1; max-width: 80%; font-family: var(--brand-heading, var(--display)); font-size: 1.2rem; line-height: 1.05; }
.brand-preview p { position: relative; z-index: 1; max-width: 80%; margin: 0; font-family: var(--brand-body, var(--body)); font-size: .68rem; line-height: 1.4; }
.brand-scan-foot { margin: .9rem 0 0; }
.upload-zone { padding: 1.5rem; border: 2px dashed rgba(17,18,15,.35); background: var(--paper); text-align: center; }
.upload-zone input { width: 100%; margin-top: 1rem; }
.upload-list { display: grid; gap: .6rem; margin-top: 1rem; }
.upload-item { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .8rem; background: var(--white); font-size: .75rem; }
.upload-item span:last-child { color: var(--rust); font-weight: 700; }
.pipeline { display: grid; gap: 0; margin: 2rem 0; padding: 0; list-style: none; }
.pipeline li { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; position: relative; padding-bottom: 1.25rem; color: var(--muted); }
.pipeline li::before { content: ""; width: 12px; height: 12px; margin-top: .25rem; border: 2px solid var(--muted); border-radius: 50%; background: var(--paper); }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: 6px; bottom: 0; width: 2px; background: var(--line); }
.pipeline li.done, .pipeline li.active { color: var(--ink); font-weight: 700; }
.pipeline li.done::before, .pipeline li.active::before { border-color: var(--rust); background: var(--rust); }
.preview-frame { width: 100%; min-height: 620px; border: 2px solid var(--ink); background: white; }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 1.5rem; }
.review-panel { padding: 1.4rem; border: 2px solid var(--ink); background: var(--white); }
.note-list { display: grid; gap: .8rem; margin: 1rem 0; }
.note-card { padding: .8rem; border-left: 4px solid var(--terracotta); background: var(--paper); font-size: .8rem; line-height: 1.5; }
.oto { padding: clamp(1.5rem,4vw,3rem); border: 2px solid var(--ink); background: var(--terracotta); box-shadow: 12px 12px 0 var(--rust); }
.oto-price { font-family: var(--display); font-size: 4rem; letter-spacing: -.07em; }
.choice-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.text-button { border: 0; background: none; padding: .8rem; text-decoration: underline; text-underline-offset: 4px; }
.microcopy { color: var(--muted); font-size: .72rem; line-height: 1.5; }
.funnel-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.funnel-footer .shell { display: flex; justify-content: space-between; gap: 1rem; }
.funnel-footer nav { display: flex; gap: 1rem; }
@media (max-width: 900px) {
  .funnel-grid, .review-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .brief-rail { position: static; }
  .brief-card { max-width: 650px; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .secure-note { display: none; }
  .funnel-main { padding-block: 42px 70px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .brand-scan-heading { display: grid; }
  .brand-scan-badge { justify-self: start; }
  .brand-scan-layout { grid-template-columns: 1fr; }
  .logo-stage { min-height: 190px; }
  .compact-fields { gap: 0; }
  .form-panel { box-shadow: 7px 7px 0 var(--terracotta); }
  .price-lock { grid-template-columns: 1fr; }
  .price-lock .due { text-align: left; }
  .step-actions, .choice-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions .button, .choice-actions .button { width: 100%; }
  .funnel-footer .shell { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
