:root {
  --navy: #112638;
  --blue: #146ef5;
  --muted: #617181;
  --line: #dfe6eb;
  --green: #159b61;
}

* { box-sizing: border-box; }
html { background: #edf2f5; }
body { color: var(--navy); -webkit-font-smoothing: antialiased; margin: 0; font-family: Arial, Helvetica, sans-serif; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.site-shell { background: linear-gradient(#fff 0 72px, #f2f6f8 72px); min-height: 100dvh; padding-bottom: 28px; }
.topbar { border-bottom: 1px solid #edf0f2; justify-content: space-between; align-items: center; gap: 12px; max-width: 720px; min-height: 72px; margin: auto; padding: 10px 24px; display: flex; }
.brand { align-items: center; gap: 10px; min-width: 0; max-width: 72%; font-size: 15px; font-weight: 750; line-height: 1.2; display: flex; }
.brand > span:last-child { overflow-wrap: anywhere; }
.roof-mark, .mark { color: #fff; background: var(--navy); border-radius: 8px; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; font-size: 18px; display: grid; }
.demo-label { color: #476071; letter-spacing: .08em; text-transform: uppercase; background: #edf2f5; border: 1px solid #d9e2e8; border-radius: 999px; padding: 7px 10px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.progress-wrap { width: min(620px, 100%); margin: 25px auto 17px; padding: 0 22px; }
.progress-meta { color: #758592; justify-content: space-between; margin-bottom: 8px; font-size: 10px; font-weight: 700; display: flex; }
.progress-track { background: #dfe6eb; border-radius: 999px; height: 4px; overflow: hidden; }
.progress-fill { background: var(--blue); border-radius: inherit; height: 100%; transition: width .3s ease; }
.demo-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; width: min(576px, calc(100% - 28px)); min-height: 430px; margin: auto; padding: 42px 44px; box-shadow: 0 14px 38px #11263814; }
.intro { text-align: center; padding-top: 30px; }
.eyebrow { color: #526678; letter-spacing: .07em; text-transform: uppercase; justify-content: center; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 10px; font-weight: 800; display: flex; }
.pulse { background: var(--blue); border-radius: 50%; width: 7px; height: 7px; box-shadow: 0 0 0 5px #146ef516; }
h1 { letter-spacing: -.035em; margin: 0; font-size: 34px; line-height: 1.08; }
.intro > p { color: var(--muted); max-width: 420px; margin: 18px auto 30px; font-size: 16px; line-height: 1.6; }
.primary { color: #fff; cursor: pointer; background: var(--blue); border: 0; border-radius: 12px; justify-content: center; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 15px 20px; font-weight: 750; transition: all .15s; display: flex; box-shadow: 0 6px 16px #146ef538; }
.primary:hover { background: #0757c9; transform: translateY(-1px); }
.primary:disabled { box-shadow: none; cursor: not-allowed; background: #a8b8c7; transform: none; }
.primary span { font-size: 20px; }
.privacy-note { color: #82909c; margin-top: 22px; font-size: 11px; }
.question h1 { font-size: 27px; }
.subtitle { color: var(--muted); margin: 10px 0 26px; font-size: 14px; line-height: 1.5; }
.options { gap: 10px; display: grid; }
.option { text-align: left; width: 100%; min-height: 58px; color: var(--navy); border: 1px solid var(--line); cursor: pointer; background: #fff; border-radius: 11px; justify-content: space-between; align-items: center; padding: 13px 16px; font-weight: 650; transition: all .14s; display: flex; }
.option:hover, .option.selected { border-color: var(--blue); color: #0757c9; background: #f4f8ff; box-shadow: 0 0 0 2px #146ef514; }
.chevron { color: #8b99a5; font-size: 24px; font-weight: 400; }
.field { margin: 0 0 18px; }
.field label { margin-bottom: 8px; font-size: 12px; font-weight: 750; display: block; }
.optional, .required { float: right; font-weight: 500; }
.optional { color: #8a98a4; }
.required { color: #526678; }
input, textarea { width: 100%; color: var(--navy); background: #fff; border: 1px solid #ccd6dd; border-radius: 10px; outline: none; padding: 14px; font-size: 16px; }
textarea { resize: vertical; min-height: 94px; }
input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #146ef51c; }
input[aria-invalid="true"] { border-color: #c53c35; box-shadow: 0 0 0 3px #c53c3514; }
.field-help, .field-error { margin-top: 6px; font-size: 11px; line-height: 1.35; display: block; }
.field-help { color: #7a8995; }
.field-error { color: #b22f29; font-weight: 650; }
.property-grid { grid-template-columns: 1fr 1fr; gap: 8px; display: grid; }
.property-option { border: 1px solid var(--line); min-height: 48px; color: var(--navy); cursor: pointer; background: #fff; border-radius: 9px; padding: 10px; font-size: 12px; font-weight: 650; }
.property-option.selected { border-color: var(--blue); color: #0757c9; box-shadow: inset 0 0 0 1px var(--blue); background: #f2f7ff; }
.upload { cursor: pointer; background: #f8fafb; border: 1px dashed #b9c6cf; border-radius: 10px; align-items: center; gap: 13px; min-height: 70px; padding: 12px 16px; display: flex !important; }
.upload-icon { width: 34px; height: 34px; color: var(--blue); background: #e7f0ff; border-radius: 8px; place-items: center; font-size: 20px; display: grid; }
.upload strong, .upload small { display: block; }
.upload small { color: #84919c; margin-top: 3px; font-weight: 400; }
.file-input { opacity: 0; pointer-events: none; width: 1px; height: 1px; position: absolute; }
.filename { overflow-wrap: anywhere; color: var(--green); margin: 6px 0; font-size: 11px; }
.demo-fill { color: #526678; cursor: pointer; background: #f7f9fa; border: 1px solid #cbd5dc; border-radius: 9px; width: 100%; margin: -5px 0 18px; padding: 10px 12px; font-size: 12px; font-weight: 700; }
.demo-fill:hover { background: #f1f5f7; border-color: #9eb3c1; }
.warning { color: #72591d; background: #fff8e8; border: 1px solid #f4dfaa; border-radius: 10px; gap: 12px; margin: 20px 0; padding: 14px; font-size: 12px; line-height: 1.5; display: flex; }
.warning p { margin: 0; }
.back-nav { width: min(576px, 100% - 28px); margin: 13px auto 0; }
.back-nav button { color: #657584; cursor: pointer; background: none; border: 0; padding: 9px 4px; font-size: 13px; font-weight: 650; }
footer { text-align: center; color: #8a98a4; margin: 18px 15px; font-size: 10px; }
.complete { text-align: center; padding-top: 20px; }
.check { width: 60px; height: 60px; color: var(--green); background: #e8f8f0; border-radius: 50%; place-items: center; margin: 0 auto 22px; font-size: 28px; font-weight: 800; display: grid; }
.complete .eyebrow { color: var(--green); margin-bottom: 13px; display: block; }
.no-submit { color: var(--navy); background: #f1f5f7; border-radius: 12px; gap: 4px; margin: 25px 0; padding: 16px; font-size: 13px; display: grid; }
.no-submit span { color: var(--muted); }
.secondary { min-height: 48px; color: var(--navy); cursor: pointer; background: #fff; border: 1px solid #cbd5dc; border-radius: 10px; padding: 12px 24px; font-weight: 700; }
.unavailable-shell { background: #f1f5f7; place-items: center; min-height: 100dvh; padding: 24px; display: grid; }
.unavailable-card { text-align: center; border: 1px solid var(--line); background: #fff; border-radius: 20px; width: min(420px, 100%); padding: 42px; box-shadow: 0 14px 38px #11263814; }
.unavailable-card .mark { margin: 0 auto 20px; }
.unavailable-card h1 { font-size: 28px; }
.unavailable-card p { color: var(--muted); line-height: 1.5; }

@media (max-width: 600px) {
  .site-shell { background: linear-gradient(#fff 0 65px, #f3f6f8 65px); }
  .topbar { min-height: 65px; padding: 9px 16px; }
  .brand { gap: 8px; max-width: 68%; font-size: 13px; }
  .roof-mark { width: 29px; height: 29px; }
  .demo-label { padding: 6px 7px; font-size: 8px; }
  .progress-wrap { margin: 18px auto 13px; padding: 0 20px; }
  .demo-card { border-radius: 18px; min-height: 0; padding: 32px 22px; }
  .intro { padding-top: 12px; }
  h1 { font-size: 29px; }
  .question h1 { font-size: 25px; }
  .intro > p { font-size: 15px; }
  .option { min-height: 56px; font-size: 14px; }
  .property-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .demo-label { display: none; }
  .brand { max-width: 100%; }
}

@media (max-width: 370px) {
  .demo-card { width: calc(100% - 18px); padding: 27px 18px; }
}
