/* Homeowner side of the web quote. Wears the installer's brand (Wrenfield: deep teal and amber). */
.app { --brand: #0f5c56; --brand-2: #0b4843; --brand-soft: #e7f2f0; --accent: #f0a030; --text: #17252e; --muted: #5d6c75; --hair: #e3e9ec;
  height: 100%; display: flex; flex-direction: column; font-family: var(--sans); color: var(--text); background: #fff; position: relative; }
.ih { display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px; background: var(--brand); color: #fff; flex: none; }
.ih img { width: 34px; height: 34px; }
.ih .nm { font-weight: 800; font-size: 15px; line-height: 1.1; }
.ih .ph { font-size: 12px; opacity: .85; }
.ih .call { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.ih .call svg { width: 18px; height: 18px; fill: #fff; }
.prog { height: 4px; background: var(--brand-soft); flex: none; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }

.view { flex: 1; position: relative; overflow: hidden; }
.page { position: absolute; inset: 0; overflow-y: auto; padding: 20px 18px 110px; opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .38s ease, transform .38s ease; scrollbar-width: none; }
.page::-webkit-scrollbar { display: none; }
.page.on { opacity: 1; transform: none; pointer-events: auto; }
.page.left { transform: translateX(-24px); }
.page.flush { padding: 0 0 110px; }

.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.q { font-size: 25px; line-height: 1.12; font-weight: 800; margin: 6px 0 8px; letter-spacing: -.01em; }
.q.big { font-size: 30px; }
.lede { font-size: 15.5px; line-height: 1.45; color: var(--muted); margin: 0 0 16px; }
.why { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; line-height: 1.4; }
.why::before { content: "i"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font: 800 11px/16px var(--sans); text-align: center; }

/* bottom action */
.foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px 18px; background: linear-gradient(to top, #fff 70%, rgba(255,255,255,0)); display: flex; gap: 10px; align-items: center; z-index: 20; }
.btn { flex: 1; border: 0; border-radius: 14px; padding: 15px 18px; font: 800 16px var(--sans); background: var(--brand); color: #fff; cursor: pointer; box-shadow: 0 6px 16px rgba(15,92,86,.25); transition: transform .12s ease, opacity .2s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .35; box-shadow: none; }
.btn.ghost { flex: none; background: #fff; color: var(--text); border: 1px solid var(--hair); box-shadow: none; padding: 15px; }
.btn.amber { background: var(--accent); color: #1d1300; box-shadow: 0 6px 16px rgba(240,160,48,.3); }

/* choices */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles.three { grid-template-columns: 1fr 1fr 1fr; }
.tiles.one { grid-template-columns: 1fr; }
.tile { border: 1.5px solid var(--hair); border-radius: 16px; padding: 12px; background: #fff; cursor: pointer; text-align: left; font: 700 14px var(--sans); color: var(--text); display: flex; flex-direction: column; gap: 8px; transition: border-color .2s, background .2s, transform .12s; position: relative; }
.tile svg.pic { width: 100%; height: 74px; }
.tile small { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.tile.row { flex-direction: row; align-items: center; }
.tile.row svg.pic { width: 64px; height: 52px; flex: none; }
.tile.sel { border-color: var(--brand); background: var(--brand-soft); }
.tile.sel::after { content: ""; position: absolute; top: 9px; right: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='white' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--hair); background: #fff; border-radius: 999px; padding: 9px 13px; font: 700 13.5px var(--sans); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.chip.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip .e { font-size: 15px; }

.stepper { display: flex; align-items: center; justify-content: space-between; border: 1.5px solid var(--hair); border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.stepper .lbl { font-weight: 700; font-size: 15px; }
.stepper .lbl small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.stepper .ctl { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--hair); background: #fff; font: 800 18px var(--sans); color: var(--brand); cursor: pointer; }
.stepper output { font: 800 20px var(--sans); min-width: 18px; text-align: center; }

.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1.5px solid var(--hair); border-radius: 12px; padding: 13px 14px; font: 600 16px var(--sans); color: var(--text); background: #fff; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15,92,86,.12); }
.urgent { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: #fff6e8; border: 1px solid #f6d9a8; font-size: 13.5px; line-height: 1.35; }
.urgent b { display: block; }
.urgent a { margin-left: auto; color: var(--brand); font-weight: 800; text-decoration: none; white-space: nowrap; }

/* ESTIMATE */
.est-hero { background: linear-gradient(160deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 18px 18px 64px; position: relative; }
.est-hero .eyebrow { color: #a8dcd3; }
.est-hero h2 { margin: 6px 0 4px; font-size: 25px; line-height: 1.1; font-weight: 800; }
.est-hero p { margin: 0; color: #cfe9e4; font-size: 14px; }
.est-hero .house { position: absolute; right: 14px; top: 14px; width: 78px; height: 62px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,.35); background: #dfe9e7; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; margin-top: -48px; position: relative; }
.opt { background: #fff; border-radius: 18px; box-shadow: 0 10px 30px rgba(10,40,40,.16); padding: 12px 12px 14px; display: flex; flex-direction: column; border: 2px solid transparent; }
.opt.atag { border-color: #cfe4f6; }
.opt .brand { height: 18px; display: flex; align-items: center; }
.opt .brand img { height: 15px; }
.opt .model { font-size: 13px; font-weight: 700; color: #297ECB; margin: 6px 0 4px; min-height: 32px; line-height: 1.2; }
.opt.wb .model { color: #1f3f78; }
.opt .shot { height: 92px; display: grid; place-items: center; margin: 2px 0 6px; }
.opt .shot img { max-height: 92px; max-width: 70px; }
.opt .price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.opt .fitted { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.opt .cover { margin-top: 9px; font-size: 13px; font-weight: 700; }
.opt .cover small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.opt .pill { margin-top: 10px; border: 0; border-radius: 10px; background: #e8f5ec; color: #1f6b3a; font: 800 12px var(--sans); padding: 8px 8px; text-align: left; cursor: pointer; line-height: 1.25; }
.opt .pill b { display: block; font-size: 14px; color: #12502a; }
.opt .pill span { display: block; }
.opt .pill .cue { margin-top: 5px; color: #0f5c56; text-decoration: underline; font-size: 12px; }
.opt .pill.none { background: #f3f5f6; color: var(--muted); cursor: default; font-weight: 600; }
.warr { display: flex; background: #f1f4f6; border-radius: 10px; padding: 3px; margin-top: 8px; }
.warr button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 6px 4px; font: 800 12px var(--sans); color: var(--muted); cursor: pointer; }
.warr button.on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }

.sect { padding: 20px 18px 0; }
.sect h3 { font-size: 17px; font-weight: 800; margin: 0 0 10px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp th { text-align: left; font-weight: 400; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--hair); width: 42%; }
.cmp td { padding: 9px 4px; border-bottom: 1px solid var(--hair); font-weight: 700; }
.cmp td.win { color: #1f6b3a; }
.cmp thead td { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.bar { height: 8px; background: #eef2f4; border-radius: 8px; overflow: hidden; margin-top: 5px; }
.bar i { display: block; height: 100%; border-radius: 8px; background: #297ECB; transition: width .8s ease; }
.bar.wb i { background: #8aa0b8; }
.incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.incl li { display: flex; gap: 10px; align-items: flex-start; }
.incl li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%230f5c56' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.checks { background: #fff8ec; border: 1px solid #f3dfb9; border-radius: 16px; padding: 14px; }
.checks h3 { margin-bottom: 4px; }
.checks p { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.checks ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.trust { display: flex; gap: 12px; align-items: center; margin: 20px 18px 0; padding: 14px; border-radius: 16px; background: var(--brand-soft); }
.trust .face { width: 54px; height: 54px; border-radius: 50%; background-size: cover; background-position: 50% 30%; flex: none; border: 2px solid #fff; }
.trust p { margin: 0; font-size: 14px; line-height: 1.4; }
.trust p b { display: block; }
.tp { display: flex; align-items: center; gap: 8px; margin: 14px 18px 0; font-size: 12.5px; color: var(--muted); }
.tp img { height: 18px; }
.small { font-size: 11.5px; color: var(--muted); line-height: 1.45; padding: 14px 18px 0; }

/* finance sheet */
.sheet { position: absolute; inset: 0; background: rgba(8,20,24,.45); z-index: 60; display: flex; align-items: flex-end; opacity: 0; pointer-events: none; transition: opacity .3s; }
.sheet.on { opacity: 1; pointer-events: auto; }
.sheet .panel { background: #fff; width: 100%; border-radius: 22px 22px 0 0; padding: 10px 18px 22px; max-height: 92%; overflow-y: auto; transform: translateY(40px); transition: transform .35s ease; }
.sheet.on .panel { transform: none; }
.sheet .grab { width: 40px; height: 5px; border-radius: 4px; background: #d5dde1; margin: 0 auto 12px; }
.sheet h3 { margin: 0 0 4px; font-size: 21px; font-weight: 800; }
.sheet .sub { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); }
.plans { display: grid; gap: 8px; }
.plan { border: 1.5px solid var(--hair); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; cursor: pointer; }
.plan.sel { border-color: #1f6b3a; background: #f0f8f2; }
.plan .t { font-weight: 800; font-size: 14.5px; }
.plan .m { font-weight: 800; font-size: 16px; text-align: right; grid-row: span 2; align-self: center; }
.plan .m small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.plan .d { font-size: 12.5px; color: var(--muted); }
.repex { margin: 0 0 12px; border-radius: 12px; background: #f4f6f7; border: 1.5px solid #d9e2e6; padding: 11px 13px; font-size: 12.5px; line-height: 1.5; color: #39474f; }
.repex b { color: var(--text); }
.repex .apr { display: block; margin-top: 4px; font-size: 19px; color: var(--text); }
.sheet .fine { font-size: 11px; color: var(--muted); line-height: 1.45; margin: 10px 0 14px; }

/* firm up + done */
.callcard { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: linear-gradient(150deg, var(--brand), var(--brand-2)); color: #fff; margin-bottom: 16px; }
.callcard .face { width: 62px; height: 62px; border-radius: 50%; background-size: cover; background-position: 50% 30%; border: 2px solid rgba(255,255,255,.6); flex: none; }
.callcard p { margin: 0; font-size: 14px; line-height: 1.4; color: #d8eeea; }
.callcard p b { color: #fff; font-size: 16px; display: block; margin-bottom: 2px; }
.whenrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.whenrow .chip { justify-content: center; border-radius: 12px; padding: 10px 6px; flex-direction: column; gap: 2px; }
.whenrow .chip small { font-weight: 600; font-size: 11px; opacity: .75; }
.saveno { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px dashed #bcd3cf; font-size: 13px; line-height: 1.35; margin: 6px 0 4px; }
.saveno .ico { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 10px 0; line-height: 1.35; }
.tick input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }

.done-hero { text-align: center; padding: 26px 8px 8px; }
.done-hero .ok { width: 76px; height: 76px; margin: 0 auto 12px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.done-hero .ok svg { width: 38px; height: 38px; }
.smsprev { margin: 16px 0 0; background: #f1f1f4; border-radius: 20px; padding: 12px 14px; font-size: 13.5px; line-height: 1.4; text-align: left; position: relative; }
.smsprev .from { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.smsprev a { color: #1a6fd1; }
.nextsteps { list-style: none; padding: 0; margin: 18px 0 0; text-align: left; display: grid; gap: 12px; counter-reset: s; }
.nextsteps li { display: flex; gap: 12px; font-size: 14px; line-height: 1.4; }
.nextsteps li::before { counter-increment: s; content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 13px; }
.powered { text-align: center; font-size: 11px; color: #9aa8b0; padding: 18px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.powered img { height: 14px; opacity: .8; }

@media (prefers-reduced-motion: reduce) { .page, .sheet, .sheet .panel, .bar i { transition: none; } }
