:root {
    --blue: #0867ff;
    --blue-2: #2f83ff;
    --blue-soft: #eaf2ff;
    --cyan: #31c8ff;
    --ink: #070b12;
    --ink-2: #111823;
    --ink-3: #1a2432;
    --steel: #667181;
    --silver: #b9c2cf;
    --line: #dce3ec;
    --paper: #ffffff;
    --cloud: #f4f7fb;
    --green: #19a86b;
    --amber: #f2a51f;
    --red: #d9485f;
    --shadow-sm: 0 10px 30px rgba(7, 11, 18, .08);
    --shadow-lg: 0 28px 70px rgba(7, 11, 18, .18);
    --radius: 18px;
    --font-display: "Barlow Condensed", Impact, sans-serif;
    --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.nav-open, body.portal-nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: .98; letter-spacing: -.025em; }
h1 { font-size: clamp(3.2rem, 7vw, 6.9rem); }
h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); }
h3 { font-size: 1.65rem; }
small { line-height: 1.35; }
.container { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }
.container.narrow { width: min(880px, calc(100% - 44px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 9999; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.skip-link:focus { top: 12px; }
.muted { color: #8a94a2; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; color: #4c5a6c; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 8px; padding: 12px 20px; font-weight: 700; line-height: 1; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(49, 200, 255, .55); outline-offset: 2px; }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue), #0756d5); box-shadow: 0 12px 28px rgba(8, 103, 255, .24); }
.button-primary:hover { background: linear-gradient(135deg, #1976ff, #064bc0); box-shadow: 0 16px 32px rgba(8, 103, 255, .3); }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: #172131; }
.button-ghost { color: #fff; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .32); backdrop-filter: blur(10px); }
.button-ghost:hover { background: rgba(255, 255, 255, .13); border-color: #fff; }
.button-quiet { color: #354153; background: #f5f7fa; }
.button-quiet.bordered { border-color: #d8e0ea; background: #fff; }
.button-small { min-height: 40px; padding: 10px 15px; font-size: .84rem; }
.button-large { min-height: 54px; padding: 16px 24px; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.text-link b { font-size: 1.2rem; transition: transform .2s; }
.text-link:hover b { transform: translateX(4px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow > span { display: inline-block; width: 28px; height: 2px; background: currentColor; }
.eyebrow.light { color: #7fc1ff; }
.section { position: relative; padding: 110px 0; }
.section-light { background: var(--cloud); }
.section-heading { margin-bottom: 50px; }
.section-heading h2 { margin-bottom: 18px; }
.section-heading > p, .split-heading > p { color: #5c6877; font-size: 1.05rem; line-height: 1.8; }
.section-heading.centered { max-width: 760px; margin-inline: auto; text-align: center; }
.split-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 80px; align-items: end; }
.split-heading > p { margin-bottom: 8px; }

/* Public navigation */
.emergency-bar { position: relative; z-index: 60; color: #dce9ff; background: #03060a; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .75rem; }
.emergency-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.emergency-inner a { color: #fff; font-weight: 700; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue-2); box-shadow: 0 0 0 0 rgba(47,131,255,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,131,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,131,255,0); } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 11, 18, .94); border-bottom: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(14px); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { width: 170px; height: 66px; display: flex; align-items: center; overflow: hidden; }
.brand img { width: 170px; height: auto; transform: scale(1.18); }
.site-nav { display: flex; align-items: center; gap: 7px; color: #e8edf5; }
.nav-link, .nav-drop-trigger { border: 0; background: transparent; color: inherit; padding: 13px 10px; font-size: .82rem; font-weight: 650; }
.nav-link:hover, .nav-drop-trigger:hover { color: #76baff; }
.nav-phone { margin-left: 5px; color: #fff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.nav-login { color: #aeb8c6; }
.nav-dropdown { position: relative; }
.nav-menu { position: absolute; top: calc(100% + 13px); left: -25px; width: 310px; display: grid; visibility: hidden; opacity: 0; transform: translateY(-8px); padding: 10px; border: 1px solid #263143; border-radius: 12px; background: #101722; box-shadow: 0 22px 55px rgba(0,0,0,.4); transition: .18s ease; }
.nav-dropdown:hover .nav-menu, .nav-dropdown:focus-within .nav-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.nav-menu a { display: grid; padding: 11px 12px; border-radius: 8px; }
.nav-menu a:hover { background: #172235; }
.nav-menu strong { color: #fff; font-size: .82rem; }
.nav-menu small { color: #8f9bad; font-size: .7rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #2f3948; border-radius: 8px; background: transparent; }
.nav-toggle span:not(.sr-only) { width: 20px; height: 2px; display: block; margin: 4px auto; background: #fff; }
.mobile-cta { display: none; }

/* Hero */
.hero { min-height: 710px; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--ink); }
.hero-media { position: absolute; inset: 0; background-image: url('../img/storm-truck-hero.webp'); background-size: cover; background-position: center; filter: saturate(.88) contrast(1.04); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,6,10,.98) 0%, rgba(5,9,15,.86) 43%, rgba(4,8,14,.32) 74%, rgba(3,6,10,.2) 100%), linear-gradient(0deg, rgba(3,6,10,.86) 0%, transparent 48%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to right, #000, transparent 70%); }
.hero-content { position: relative; z-index: 3; display: grid; grid-template-columns: 1.15fr .72fr; gap: 70px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.hero-copy { color: #fff; }
.hero-copy h1 { max-width: 720px; margin-bottom: 26px; font-size: clamp(3.6rem, 6.4vw, 6.4rem); text-transform: uppercase; }
.hero-copy h1 em { color: #60a9ff; font-style: normal; }
.hero-copy > p { max-width: 680px; color: #bdc7d5; font-size: 1.07rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-assurances { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; color: #b9c6d6; font-size: .75rem; font-weight: 650; }
.address-card { position: relative; padding: 28px; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 34px 80px rgba(0,0,0,.38); backdrop-filter: blur(20px); }
.address-card::before { content: ""; position: absolute; top: 0; left: 28px; right: 28px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.card-kicker { margin-bottom: 10px; color: var(--blue); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.address-card h2 { margin-bottom: 8px; font-size: 2.35rem; }
.address-card > p { margin-bottom: 20px; color: #667181; font-size: .82rem; }
.address-card label, .field > label, .field label, .facet-editor label { display: block; margin-bottom: 7px; color: #273344; font-size: .72rem; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid #ced7e3; border-radius: 8px; padding: 12px 13px; color: var(--ink); background: #fff; transition: border-color .18s, box-shadow .18s; }
input:hover, select:hover, textarea:hover { border-color: #aab7c6; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,103,255,.12); outline: 0; }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row.compact { grid-template-columns: 1fr 68px 90px; }
.address-card .form-row { margin-top: 12px; }
.address-card .button { margin-top: 18px; }
.address-card > small { display: block; margin-top: 12px; color: #738092; font-size: .66rem; text-align: center; }

.proof-strip { color: #fff; background: #0b111b; border-top: 1px solid #1e2a3a; border-bottom: 1px solid #1e2a3a; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { min-height: 100px; display: flex; flex-direction: column; justify-content: center; padding: 20px 26px; border-right: 1px solid #263245; }
.proof-grid > div:first-child { border-left: 1px solid #263245; }
.proof-grid strong { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; }
.proof-grid span { color: #98a5b6; font-size: .72rem; }

/* Marketing sections */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { min-height: 330px; position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px; border: 1px solid #dce3ec; border-radius: 14px; background: #fff; box-shadow: 0 7px 22px rgba(7,11,18,.04); transition: transform .25s, border-color .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-7px); border-color: #a7c9ff; box-shadow: var(--shadow-sm); }
.service-card::after { content: ""; position: absolute; right: -45px; bottom: -75px; width: 170px; height: 170px; border: 1px solid #dfebff; border-radius: 50%; box-shadow: 0 0 0 18px #f2f7ff, 0 0 0 36px #f7faff; }
.service-number { position: absolute; right: 24px; top: 20px; color: #dce5f0; font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 12px; color: #fff; background: var(--ink); font-family: var(--font-display); font-size: 1.8rem; }
.service-card h3 { margin-bottom: 12px; font-size: 1.75rem; }
.service-card p { position: relative; z-index: 1; color: #657181; font-size: .84rem; }
.service-card .text-link { position: relative; z-index: 1; margin-top: auto; font-size: .78rem; }
.process-section { overflow: hidden; color: #fff; background: #070b12; }
.process-section::before { content: ""; position: absolute; inset: 0; opacity: .09; background: radial-gradient(circle at 20% 20%, #1681ff 0, transparent 28%), linear-gradient(115deg, transparent 52%, #0a5de0 150%); }
.process-glow { position: absolute; width: 500px; height: 500px; top: -250px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(0,96,255,.15); filter: blur(90px); }
.process-section .section-heading > p { color: #9eabba; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #283448; border-bottom: 1px solid #283448; }
.process-card { min-height: 300px; position: relative; padding: 38px 38px 30px; border-right: 1px solid #283448; }
.process-card:first-child { border-left: 1px solid #283448; }
.process-card .step { color: #4097ff; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }
.process-line { width: 100%; height: 1px; margin: 24px 0 35px; background: linear-gradient(90deg, var(--blue), #263348 42%); }
.process-card h3 { font-size: 2.1rem; }
.process-card p { color: #a8b3c1; font-size: .85rem; }
.process-card small { position: absolute; left: 38px; bottom: 28px; color: #6aaeff; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.process-cta { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 42px; color: #8794a5; font-size: .8rem; }
.process-cta a:not(.button) { color: #fff; font-weight: 700; }
.split-feature-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 85px; align-items: center; }
.split-feature-grid.reverse { grid-template-columns: .95fr 1.05fr; }
.feature-image { position: relative; }
.feature-image::before { content: ""; position: absolute; inset: -18px 28px 18px -18px; z-index: -1; border: 1px solid #bfd6fa; }
.feature-image img { width: 100%; min-height: 460px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-lg); }
.image-badge { position: absolute; right: -28px; bottom: 34px; min-width: 230px; padding: 20px 24px; color: #fff; background: var(--ink); border-left: 4px solid var(--blue); box-shadow: var(--shadow-sm); }
.image-badge strong, .image-badge span { display: block; }
.image-badge strong { font-family: var(--font-display); font-size: 1.4rem; }
.image-badge span { color: #8fa0b5; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.feature-copy h2 { margin-bottom: 26px; }
.feature-copy > p { color: #5e6978; font-size: 1rem; line-height: 1.8; }
.check-list { display: grid; gap: 15px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list li > span { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: .72rem; }
.check-list strong, .check-list small { display: block; }
.check-list strong { font-size: .85rem; }
.check-list small { margin-top: 2px; color: #758191; font-size: .73rem; }
.compact-list { margin-bottom: 0; }
.options-section { background: #f6f8fb; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.option-card { position: relative; padding: 34px; border: 1px solid #dbe3ed; border-radius: 14px; background: #fff; }
.option-card.featured { transform: translateY(-12px); border: 2px solid var(--blue); box-shadow: 0 22px 50px rgba(8,103,255,.13); }
.recommended { position: absolute; top: 0; right: 28px; transform: translateY(-50%); padding: 6px 12px; border-radius: 20px; color: #fff; background: var(--blue); font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.option-label { display: block; margin-bottom: 18px; color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.option-card h3 { font-size: 2rem; }
.option-card p { color: #677384; font-size: .82rem; }
.option-card ul { display: grid; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; }
.option-card li { padding-top: 10px; border-top: 1px solid #edf0f4; font-size: .77rem; }
.option-card li::before { content: "✓"; margin-right: 9px; color: var(--blue); font-weight: 800; }
.options-note { max-width: 820px; margin: 30px auto 0; color: #7a8594; font-size: .7rem; text-align: center; }
.service-area-section { overflow: hidden; color: #fff; background: #0a1019; }
.service-area-section::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 70px 70px; transform: perspective(500px) rotateX(60deg) scale(1.4); transform-origin: center bottom; }
.service-area-grid { position: relative; display: grid; grid-template-columns: 1.15fr .65fr; gap: 100px; align-items: center; }
.service-area-copy p { max-width: 650px; color: #a7b2c0; }
.city-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.city-cloud span { padding: 8px 13px; border: 1px solid #2c3a4e; border-radius: 30px; color: #cbd4e0; font-size: .72rem; }
.service-area-card { padding: 36px; border: 1px solid #2d3b4f; border-radius: 16px; background: rgba(17,25,38,.92); box-shadow: 0 25px 60px rgba(0,0,0,.3); }
.map-pin { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; color: #fff; background: var(--blue); font-size: 1.5rem; }
.service-area-card h3 { font-size: 2rem; }
.service-area-card p { color: #9ba9ba; font-size: .82rem; }
.service-area-card small { display: block; margin-top: 14px; color: #7f8fa3; text-align: center; }
.service-area-card small a { color: #fff; font-weight: 700; }
.faq-section { background: #fff; }
.accordion { border-top: 1px solid #dce3ec; }
.faq-item { border-bottom: 1px solid #dce3ec; }
.faq-item summary { display: flex; justify-content: space-between; gap: 20px; padding: 24px 4px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { color: var(--blue); font-family: var(--font-body); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary span { transform: rotate(45deg); }
.faq-item p { max-width: 760px; margin: -3px 0 24px; color: #606d7d; font-size: .86rem; line-height: 1.8; }
.final-cta { position: relative; overflow: hidden; padding: 80px 0; color: #fff; background: #070b12; }
.final-cta::after { content: "STORM"; position: absolute; right: -30px; bottom: -46px; color: rgba(255,255,255,.025); font-family: var(--font-display); font-size: 17rem; font-weight: 800; line-height: .7; }
.final-cta-glow { position: absolute; width: 450px; height: 450px; left: 20%; top: -260px; border-radius: 50%; background: rgba(8,103,255,.2); filter: blur(75px); }
.final-cta-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.final-cta h2 { margin-bottom: 10px; }
.final-cta p { color: #9eabba; }
.final-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.final-cta-actions > a:not(.button) { color: #a9b5c4; font-size: .8rem; font-weight: 700; }

/* Public interior pages */
.page-hero { min-height: 520px; position: relative; overflow: hidden; display: flex; align-items: center; color: #fff; background: linear-gradient(125deg, #05080e 0%, #0c1523 65%, #09244d 100%); }
.page-hero.compact { min-height: 400px; }
.page-hero-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 52px 52px; }
.page-hero-glow { position: absolute; width: 520px; height: 520px; right: 8%; top: -270px; border-radius: 50%; background: rgba(8,103,255,.24); filter: blur(80px); }
.page-hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .55fr; gap: 70px; align-items: center; padding-block: 75px; }
.page-hero-inner.single { grid-template-columns: 1fr; }
.page-hero-inner.single > div { max-width: 900px; }
.page-hero h1 { margin-bottom: 24px; font-size: clamp(3.5rem, 7vw, 6.5rem); }
.page-hero p { max-width: 760px; color: #b3bfce; font-size: 1.05rem; }
.service-page-mark { width: 260px; height: 260px; display: grid; place-content: center; justify-items: center; border: 1px solid #355071; border-radius: 50%; box-shadow: 0 0 0 25px rgba(8,103,255,.06), 0 0 0 50px rgba(8,103,255,.03); text-align: center; }
.service-page-mark > span { color: #5ea7ff; font-family: var(--font-display); font-size: 7rem; font-weight: 800; line-height: .7; }
.service-page-mark small { color: #a9b7c8; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.content-two-col { display: grid; grid-template-columns: 1.35fr .65fr; gap: 95px; align-items: start; }
.content-two-col > div > p { color: #5d6978; font-size: .96rem; line-height: 1.9; }
.content-callout, .quote-card { padding: 34px; border: 1px solid #d4deea; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.callout-number { margin-bottom: 25px; color: #d3e4ff; font-family: var(--font-display); font-size: 4rem; font-weight: 800; }
.content-callout p { color: #6c7786; font-size: .82rem; }
.detail-band { padding: 0; color: #fff; background: #0a1019; }
.detail-band-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.detail-band-grid > div { min-height: 230px; padding: 40px 28px; border-right: 1px solid #28364a; }
.detail-band-grid > div:first-child { border-left: 1px solid #28364a; }
.detail-band-grid span { color: var(--blue-2); font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.detail-band-grid h3 { margin: 28px 0 12px; font-size: 1.75rem; }
.detail-band-grid p { color: #9da9b8; font-size: .75rem; }
.data-card { position: relative; padding: 34px; border: 1px solid #d8e1ec; border-radius: 18px; background: linear-gradient(150deg, #fff, #f2f6fc); box-shadow: var(--shadow-lg); }
.data-card-head { display: flex; justify-content: space-between; color: #657181; font-size: .75rem; }
.data-card-head strong { color: var(--blue); }
.confidence-ring { width: 170px; height: 170px; display: grid; place-items: center; margin: 30px auto; border: 15px solid #dce9ff; border-top-color: var(--blue); border-right-color: var(--blue); border-radius: 50%; transform: rotate(22deg); }
.confidence-ring span { transform: rotate(-22deg); font-family: var(--font-display); font-size: 3.8rem; font-weight: 800; }
.confidence-ring small { font-size: 1.4rem; }
.data-bars { display: grid; gap: 13px; }
.data-bars div { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; font-size: .7rem; }
.data-bars i { height: 7px; position: relative; overflow: hidden; border-radius: 10px; background: #dfe6ef; }
.data-bars i::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--value); background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.data-card > small { display: block; margin-top: 20px; color: #8a95a4; font-size: .63rem; text-align: center; }
.quote-card { position: relative; padding-top: 70px; }
.quote-mark { position: absolute; top: 16px; left: 28px; color: #d8e7ff; font-family: Georgia, serif; font-size: 6rem; line-height: 1; }
.quote-card p { position: relative; font-family: var(--font-display); font-size: 2rem; font-weight: 650; line-height: 1.15; }
.quote-card small { color: #718093; }
.values-section { background: #fff; }
.value-grid, .guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value-grid article, .guide-grid article { padding: 30px; border: 1px solid #dce3ec; border-radius: 12px; background: #fff; }
.value-grid span, .guide-grid span { color: var(--blue); font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; }
.value-grid h3, .guide-grid h3 { margin-top: 30px; }
.value-grid p, .guide-grid p { color: #6a7685; font-size: .78rem; }
.guide-grid { grid-template-columns: repeat(2, 1fr); }
.legal-note { max-width: 850px; margin: 35px auto 0; padding: 22px 26px; border-left: 4px solid var(--blue); background: #eaf2ff; }
.legal-note strong { display: block; margin-bottom: 5px; }
.legal-note p { margin: 0; color: #586678; font-size: .75rem; }
.roofing-guide { grid-template-columns: repeat(3, 1fr); }
.diagram-explainer { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; margin-top: 70px; padding: 55px; border-radius: 18px; color: #fff; background: #0a1019; }
.diagram-explainer p { color: #a5b1c0; }
.diagram-roof { height: 260px; position: relative; perspective: 700px; }
.facet { position: absolute; display: grid; place-items: center; color: #fff; background: rgba(8,103,255,.7); border: 2px solid #78b6ff; font-family: var(--font-display); font-size: 1.5rem; clip-path: polygon(50% 0,100% 100%,0 100%); }
.facet small { font-size: .8rem; }
.facet-a { inset: 38px 46% 40px 5%; }
.facet-b { inset: 38px 5% 40px 46%; background: rgba(47,131,255,.46); }
.ridge-label, .eave-label { position: absolute; color: #8fc3ff; font-size: .65rem; font-style: normal; letter-spacing: .1em; text-transform: uppercase; }
.ridge-label { top: 24px; left: 50%; transform: translateX(-50%); }
.eave-label { bottom: 24px; left: 50%; transform: translateX(-50%); }
.legal-content { max-width: 850px; }
.legal-content h2 { margin-top: 34px; font-size: 2rem; }
.legal-content p { color: #586574; }

/* Estimate wizard */
.estimate-shell { min-height: calc(100vh - 112px); position: relative; overflow: hidden; padding: 72px 0 90px; color: #fff; background: linear-gradient(135deg, #05080d, #0b1524 62%, #0b2752); }
.estimate-bg-grid, .success-grid, .share-grid { position: absolute; inset: 0; opacity: .11; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; }
.estimate-shell::before { content: ""; position: absolute; width: 600px; height: 600px; left: -250px; bottom: -300px; border-radius: 50%; background: rgba(8,103,255,.2); filter: blur(95px); }
.estimate-layout { position: relative; z-index: 2; display: grid; grid-template-columns: .72fr 1.1fr; gap: 75px; align-items: start; }
.estimate-intro { position: sticky; top: 150px; }
.back-link { display: inline-block; margin-bottom: 44px; color: #9dadbf; font-size: .77rem; font-weight: 700; }
.estimate-intro h1 { margin-bottom: 24px; font-size: clamp(3.7rem, 6vw, 5.7rem); text-transform: uppercase; }
.estimate-intro > p { color: #aeb9c7; }
.estimate-benefits { display: grid; gap: 18px; margin-top: 38px; }
.estimate-benefits > div { display: flex; gap: 15px; align-items: flex-start; }
.estimate-benefits > div > span { flex: 0 0 34px; color: #5ca6ff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; }
.estimate-benefits p, .privacy-promise p { margin: 0; }
.estimate-benefits strong, .estimate-benefits small, .privacy-promise strong, .privacy-promise small { display: block; }
.estimate-benefits strong { font-size: .8rem; }
.estimate-benefits small { color: #7f8d9f; font-size: .7rem; }
.privacy-promise { display: flex; gap: 14px; margin-top: 35px; padding-top: 25px; border-top: 1px solid #29364a; }
.privacy-promise > span { color: #5ca6ff; font-size: 1.4rem; }
.privacy-promise strong { font-size: .75rem; }
.privacy-promise small { color: #748397; font-size: .66rem; }
.estimate-form-card { min-height: 650px; overflow: hidden; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 35px 90px rgba(0,0,0,.38); }
.step-header { min-height: 86px; display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; border-bottom: 1px solid #e1e6ed; background: #f8fafc; }
.step-copy small, .step-copy strong { display: block; }
.step-copy small { color: #7b8796; font-size: .67rem; }
.step-copy strong { font-family: var(--font-display); font-size: 1.45rem; }
.step-dots { display: flex; gap: 8px; }
.step-dots span { width: 34px; height: 4px; border-radius: 8px; background: #d9e0e9; }
.step-dots span.active { background: var(--blue); }
.estimate-form-card form { padding: 32px; }
.form-step { display: none; min-height: 450px; }
.form-step.active { display: block; animation: formIn .25s ease; }
@keyframes formIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
.form-section-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 28px; }
.form-section-heading h2 { margin-bottom: 5px; font-size: 2rem; }
.form-section-heading p { margin: 0; color: #758191; font-size: .75rem; }
.form-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--blue); font-family: var(--font-display); font-size: 1.25rem; }
.field { margin-bottom: 17px; }
.field > label small { color: #8793a2; font-weight: 400; }
.field.has-error input, .field.has-error select { border-color: var(--red); }
.field-error { display: block; margin-top: 5px; color: var(--red); }
.form-error-summary { margin-bottom: 22px; padding: 14px 17px; border-left: 4px solid var(--red); border-radius: 5px; color: #8b2335; background: #fff0f3; font-size: .72rem; }
.form-error-summary ul { margin-bottom: 0; }
.estimate-note { display: flex; gap: 12px; margin-top: 22px; padding: 14px 16px; border: 1px solid #cfe0fa; border-radius: 8px; background: #eff5ff; }
.estimate-note > span { flex: 0 0 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-weight: 800; }
.estimate-note p { margin: 0; color: #5f6d80; font-size: .68rem; }
.upload-field { position: relative; }
.upload-field > label { min-height: 100px; display: grid; grid-template-columns: 42px 1fr; gap: 2px 13px; align-content: center; padding: 16px; border: 1px dashed #aebdd0; border-radius: 10px; background: #fafcff; cursor: pointer; }
.upload-field > label:hover { border-color: var(--blue); background: #f2f7ff; }
.upload-field > label strong, .upload-field > label small { grid-column: 2; }
.upload-field > label small { color: #7a8797; font-weight: 400; }
.upload-icon { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 1.4rem; }
.upload-field input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-list span { padding: 5px 8px; border-radius: 5px; background: #edf3fc; color: #536176; font-size: .65rem; }
.choice-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice-pills input { position: absolute; opacity: 0; }
.choice-pills span { display: block; padding: 11px; border: 1px solid #d3dbe6; border-radius: 8px; text-align: center; font-size: .76rem; cursor: pointer; }
.choice-pills input:checked + span { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); font-weight: 700; }
.review-card { display: grid; gap: 0; margin-bottom: 22px; border: 1px solid #dce3ec; border-radius: 10px; overflow: hidden; }
.review-card > div { padding: 12px 15px; border-bottom: 1px solid #e5eaf0; }
.review-card > div:last-child { border-bottom: 0; }
.review-card span, .review-card strong { display: block; }
.review-card span { color: #7f8b9a; font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.review-card strong { font-size: .76rem; }
.consent-list { display: grid; gap: 12px; }
.consent-list label { display: flex; gap: 10px; align-items: flex-start; color: #465365; font-size: .72rem; cursor: pointer; }
.consent-list input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.legal-copy { margin-top: 17px; color: #8490a0; font-size: .64rem; }
.legal-copy a { color: var(--blue); text-decoration: underline; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid #e6eaf0; }
.form-actions .button-quiet { margin-right: auto; }
.processing-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(3,6,10,.91); backdrop-filter: blur(14px); }
.processing-overlay[hidden] { display: none; }
.processing-card { width: min(520px, 100%); padding: 45px; border: 1px solid #273951; border-radius: 18px; color: #fff; background: #0b111b; text-align: center; box-shadow: 0 35px 90px rgba(0,0,0,.5); }
.scan-house { width: 130px; height: 105px; position: relative; margin: 0 auto 30px; }
.scan-house span { position: absolute; inset: 30px 18px 5px; border: 2px solid #4c9dff; clip-path: polygon(50% 0,100% 44%,100% 100%,0 100%,0 44%); }
.scan-house i { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, #30caff, transparent); box-shadow: 0 0 12px #30caff; animation: scan 1.7s ease-in-out infinite; }
@keyframes scan { 0%,100% { top: 10px; } 50% { top: 100px; } }
.processing-card h2 { margin-bottom: 28px; font-size: 2.4rem; }
.processing-steps { display: grid; gap: 8px; margin-bottom: 20px; }
.processing-steps span { padding: 8px 12px; border-radius: 7px; color: #6f7d8f; background: #111a27; font-size: .7rem; }
.processing-steps span.active { color: #fff; background: #142d52; }
.processing-card > p { color: #798799; font-size: .7rem; }

/* Submission, share, login */
.success-shell { min-height: 760px; position: relative; display: grid; place-items: center; overflow: hidden; padding: 85px 0; background: linear-gradient(135deg, #eef4fd, #fff); }
.success-grid { opacity: .4; background-image: linear-gradient(rgba(8,103,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(8,103,255,.08) 1px, transparent 1px); }
.success-card { position: relative; z-index: 1; max-width: 800px; padding: 55px; border: 1px solid #d7e2ef; border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; }
.compact-success { max-width: 650px; }
.success-check { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 26px; border-radius: 50%; color: #fff; background: var(--green); box-shadow: 0 0 0 12px #e7f8f1; font-size: 1.9rem; font-weight: 800; }
.success-check.muted { background: #7d8998; box-shadow: 0 0 0 12px #eef1f5; }
.success-card h1 { margin-bottom: 18px; font-size: clamp(3rem, 6vw, 5rem); }
.success-card > p { max-width: 650px; margin-inline: auto; color: #657181; }
.reference-card { margin: 28px auto; padding: 18px; border: 1px solid #d8e5f5; border-radius: 10px; background: #f3f7fd; }
.reference-card span, .reference-card strong, .reference-card small { display: block; }
.reference-card span { color: #7b8797; font-size: .63rem; text-transform: uppercase; letter-spacing: .1em; }
.reference-card strong { color: var(--blue); font-family: var(--font-display); font-size: 1.9rem; }
.reference-card small { color: #536174; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; text-align: left; }
.next-steps > div { padding: 20px; border: 1px solid #e1e6ed; border-radius: 10px; }
.next-steps > div > span { color: var(--blue); font-family: var(--font-display); font-weight: 800; }
.next-steps p { margin: 12px 0 0; }
.next-steps strong, .next-steps small { display: block; }
.next-steps strong { font-size: .78rem; }
.next-steps small { color: #798697; font-size: .66rem; }
.success-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.success-disclaimer { margin-top: 25px !important; color: #8a95a4 !important; font-size: .64rem !important; }
.share-shell { position: relative; min-height: 800px; padding: 70px 0 100px; color: #fff; background: #070b12; }
.shared-proposal { position: relative; z-index: 1; max-width: 930px; }
.proposal-head { display: flex; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.proposal-head h1 { margin-bottom: 6px; font-size: 4.2rem; }
.proposal-head p { color: #9eabba; }
.proposal-id { align-self: flex-end; text-align: right; }
.proposal-id span, .proposal-id small { display: block; }
.proposal-id span { font-family: var(--font-display); font-size: 1.5rem; }
.proposal-id small { color: #8796a9; }
.proposal-body { padding: 42px; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 35px 90px rgba(0,0,0,.38); }
.proposal-summary { padding-bottom: 28px; border-bottom: 1px solid #e0e5ec; text-align: center; }
.proposal-summary span, .proposal-summary strong, .proposal-summary small { display: block; }
.proposal-summary span { color: var(--blue); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.proposal-summary strong { margin: 7px 0; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; }
.proposal-summary small { color: #7c8796; }
.proposal-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 38px; border: 1px solid #e1e6ed; border-radius: 10px; }
.proposal-metrics > div { padding: 17px; border-right: 1px solid #e1e6ed; text-align: center; }
.proposal-metrics > div:last-child { border-right: 0; }
.proposal-metrics span, .proposal-metrics strong { display: block; }
.proposal-metrics span { color: #8490a0; font-size: .63rem; }
.proposal-metrics strong { font-size: .8rem; }
.proposal-body h2 { font-size: 2.2rem; }
.customer-lines { border-top: 1px solid #dce2e9; }
.customer-lines > div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 4px; border-bottom: 1px solid #e7ebf0; font-size: .78rem; }
.customer-lines span small { display: block; color: #8793a3; }
.proposal-totals { width: min(420px, 100%); margin: 25px 0 30px auto; }
.proposal-totals > div { display: flex; justify-content: space-between; padding: 8px 0; color: #5d6978; font-size: .78rem; }
.proposal-totals .grand-total { margin-top: 8px; padding-top: 16px; border-top: 2px solid var(--ink); color: var(--ink); font-size: 1rem; }
.proposal-disclaimer { padding: 20px 22px; border-left: 4px solid var(--blue); background: #eef4fd; }
.proposal-disclaimer strong { display: block; margin-bottom: 5px; }
.proposal-disclaimer p { margin: 0; color: #627083; font-size: .7rem; }
.proposal-actions { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.login-shell { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 1.1fr .9fr; }
.login-visual { position: relative; min-height: 680px; background: url('../img/storm-truck-hero.webp') center/cover no-repeat; }
.login-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,7,12,.95), rgba(4,7,12,.25)); }
.login-message { position: absolute; z-index: 1; left: 8%; right: 8%; bottom: 9%; color: #fff; }
.login-message h1 { max-width: 700px; font-size: clamp(3.2rem, 5vw, 5.4rem); }
.login-message p { max-width: 620px; color: #b3c0cf; }
.login-panel { display: grid; place-items: center; padding: 50px; background: #f4f7fb; }
.login-card { width: min(430px, 100%); padding: 40px; border: 1px solid #dce3ec; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.login-card > img { width: 180px; height: 105px; margin-bottom: 22px; object-fit: cover; }
.login-card h2 { margin-bottom: 5px; font-size: 2.6rem; }
.login-card > p { margin-bottom: 25px; color: #798596; font-size: .8rem; }
.remember-row { display: flex; gap: 8px; align-items: center; margin: 5px 0 18px; color: #657181; font-size: .72rem; cursor: pointer; }
.remember-row input { width: 16px; height: 16px; accent-color: var(--blue); }
.login-card > small { display: block; margin-top: 18px; color: #8b96a5; font-size: .65rem; text-align: center; }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding: 75px 0 24px; color: #fff; background: #05080d; }
.footer-glow { position: absolute; width: 450px; height: 450px; left: -230px; top: -240px; border-radius: 50%; background: rgba(8,103,255,.14); filter: blur(80px); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.4fr .65fr .65fr .85fr; gap: 55px; }
.footer-grid h2 { margin-bottom: 20px; color: #7fbaff; font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) > a { display: block; margin-bottom: 9px; color: #a8b3c1; font-size: .72rem; }
.footer-grid > div:not(.footer-brand) > a:hover { color: #fff; }
.footer-brand img { width: 225px; height: 130px; object-fit: cover; margin-bottom: 12px; }
.footer-brand p, .footer-grid > div > p { color: #7f8c9e; font-size: .72rem; }
.footer-phone { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.footer-meta { margin-bottom: 5px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding-top: 22px; border-top: 1px solid #1d2633; color: #687587; font-size: .62rem; }

/* Flash messages */
.flash-stack, .portal-flashes { position: fixed; z-index: 120; right: 20px; top: 128px; width: min(390px, calc(100% - 40px)); display: grid; gap: 8px; }
.portal-flashes { top: 84px; }
.flash { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; border: 1px solid #d7e1ee; border-radius: 9px; background: #fff; box-shadow: var(--shadow-sm); font-size: .75rem; }
.flash-success { border-left: 4px solid var(--green); }
.flash-error { border-left: 4px solid var(--red); }
.flash-info { border-left: 4px solid var(--blue); }
.flash button { border: 0; color: #7c8796; background: transparent; font-size: 1.2rem; }

/* Portal shell */
.portal-shell { min-height: 100vh; color: #192334; background: #f2f5f9; font-size: 14px; }
.portal-sidebar { width: 244px; position: fixed; inset: 0 auto 0 0; z-index: 80; display: flex; flex-direction: column; color: #9eabba; background: #070b12; border-right: 1px solid #1e2938; }
.portal-brand { min-height: 88px; display: flex; flex-direction: column; justify-content: center; padding: 0 24px; border-bottom: 1px solid #1d2735; }
.portal-brand img { width: 130px; height: 57px; object-fit: cover; }
.portal-brand span { margin-top: -4px; color: #657286; font-size: .55rem; letter-spacing: .14em; text-transform: uppercase; }
.portal-sidebar nav { flex: 1; overflow-y: auto; padding: 20px 13px; }
.nav-section-label { display: block; padding: 12px 11px 7px; color: #526075; font-size: .56rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.portal-sidebar nav a, .sidebar-footer > a { display: flex; align-items: center; gap: 12px; margin-bottom: 3px; padding: 10px 11px; border-radius: 7px; color: #9ba8ba; font-size: .73rem; font-weight: 600; }
.portal-sidebar nav a i, .sidebar-footer > a i { width: 22px; color: #6a7990; font-style: normal; font-size: 1.15rem; text-align: center; }
.portal-sidebar nav a:hover, .portal-sidebar nav a.active, .sidebar-footer > a:hover { color: #fff; background: #121b28; }
.portal-sidebar nav a.active { position: relative; }
.portal-sidebar nav a.active::before { content: ""; position: absolute; left: -13px; top: 8px; bottom: 8px; width: 3px; background: var(--blue); }
.portal-sidebar nav a.active i { color: #5ba4ff; }
.sidebar-footer { padding: 12px 13px 18px; border-top: 1px solid #1d2735; }
.sidebar-user { display: flex; gap: 10px; align-items: center; padding: 12px 10px 0; }
.sidebar-user > span, .topbar-user > span, .lead-avatar, .user-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--blue), #153565); font-weight: 800; }
.sidebar-user > span { width: 34px; height: 34px; }
.sidebar-user p { margin: 0; }
.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user strong { color: #e8edf4; font-size: .68rem; }
.sidebar-user small { color: #657286; font-size: .58rem; }
.portal-main { min-height: 100vh; margin-left: 244px; }
.portal-topbar { height: 68px; position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid #dce2ea; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.portal-breadcrumb { color: #6d7988; font-size: .69rem; }
.portal-breadcrumb a { color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.topbar-estimate { color: var(--blue); font-size: .68rem; font-weight: 750; }
.topbar-user { display: flex; align-items: center; gap: 9px; padding-left: 15px; border-left: 1px solid #dfe4ea; }
.topbar-user > span { width: 31px; height: 31px; font-size: .7rem; }
.topbar-user strong, .topbar-user small { display: block; line-height: 1.3; }
.topbar-user strong { font-size: .66rem; }
.topbar-user small { color: #8a95a4; font-size: .56rem; }
.logout-button { border: 0; color: #7d8998; background: transparent; font-size: 1.15rem; }
.portal-menu-button { display: none; border: 0; background: transparent; font-size: 1.3rem; }
.portal-content { padding: 30px; }
.portal-page-head, .lead-head, .measurement-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 25px; }
.portal-eyebrow { display: block; margin-bottom: 3px; color: var(--blue); font-size: .59rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.portal-page-head h1, .lead-head h1, .measurement-head h1 { margin-bottom: 6px; font-size: 2.75rem; line-height: 1; }
.portal-page-head p, .lead-head p, .measurement-head p { margin: 0; color: #748090; font-size: .73rem; }
.panel { border: 1px solid #dce3ec; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(7,11,18,.03); }
.panel-head { min-height: 67px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-bottom: 1px solid #e4e9ef; }
.panel-head h2 { margin: 0; font-family: var(--font-body); font-size: .87rem; letter-spacing: 0; }
.panel-head p { margin: 2px 0 0; color: #8490a0; font-size: .62rem; }
.panel-head > a { color: var(--blue); font-size: .65rem; font-weight: 700; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 18px; }
.stat-card { position: relative; padding: 20px; border: 1px solid #dce3ec; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(7,11,18,.03); }
.stat-icon { position: absolute; top: 17px; right: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; font-size: 1rem; }
.stat-icon.blue { color: #1269e7; background: #e7f1ff; }
.stat-icon.amber { color: #c27b00; background: #fff2d8; }
.stat-icon.cyan { color: #0083af; background: #e1f8ff; }
.stat-icon.green { color: #128354; background: #e4f8ef; }
.stat-card > span, .stat-card > strong, .stat-card > small { display: block; }
.stat-card > span { color: #778393; font-size: .63rem; }
.stat-card > strong { margin: 11px 0 5px; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.stat-card > small { color: #8793a2; font-size: .58rem; }
.stat-card > small b { color: var(--blue); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; margin-bottom: 18px; }
.pipeline-chart { display: grid; gap: 11px; padding: 19px 20px 22px; }
.pipeline-row { display: grid; grid-template-columns: 122px 1fr 28px; align-items: center; gap: 10px; font-size: .64rem; }
.pipeline-row > i { height: 7px; position: relative; overflow: hidden; border-radius: 8px; background: #e8edf3; }
.pipeline-row > i b { position: absolute; inset: 0 auto 0 0; width: var(--bar-width); min-width: 3px; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #4ea3ff); }
.pipeline-row > strong { text-align: right; }
.task-list a { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid #edf0f4; }
.task-list a:last-child { border-bottom: 0; }
.task-list p { flex: 1; margin: 0; }
.task-list strong, .task-list small { display: block; }
.task-list strong { font-size: .66rem; }
.task-list small { color: #8a95a4; font-size: .57rem; }
.task-list a > b { color: var(--blue); }
.priority-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: #8e99a7; }
.priority-dot.high { background: var(--amber); }
.priority-dot.urgent { background: var(--red); }
.recent-panel { margin-bottom: 30px; }
.table-wrap { width: 100%; overflow-x: auto; }
.portal-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.portal-table th { padding: 10px 16px; color: #7d8998; background: #f8fafc; border-bottom: 1px solid #e3e8ef; font-size: .56rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.portal-table td { padding: 13px 16px; border-bottom: 1px solid #edf0f4; font-size: .66rem; vertical-align: middle; }
.portal-table tbody tr:last-child td { border-bottom: 0; }
.portal-table tbody tr:hover { background: #fbfcfe; }
.portal-table td strong, .portal-table td small { display: block; }
.portal-table td small { color: #8995a4; font-size: .56rem; }
.row-action { border: 0; color: var(--blue); background: transparent; font-size: .62rem; font-weight: 750; }
.status-badge { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 20px; color: #536174; background: #edf1f5; font-size: .55rem; font-weight: 750; white-space: nowrap; }
.status-new { color: #0b62d4; background: #e6f0ff; }
.status-contacted, .status-follow-up { color: #765900; background: #fff3ce; }
.status-inspection-scheduled { color: #765900; background: #ffeed0; }
.status-measuring { color: #08778f; background: #e1f8fc; }
.status-estimate-ready, .status-draft { color: #5f45a0; background: #eee8ff; }
.status-sent { color: #0d6b55; background: #e2f7ef; }
.status-won { color: #097249; background: #ddf6eb; }
.status-lost { color: #a13447; background: #fee7eb; }
.empty-state { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 25px; color: #8190a1; text-align: center; }
.empty-state.compact { min-height: 105px; }
.empty-state > span { color: #a9c9f8; font-size: 2rem; }
.empty-state p { margin: 0; font-size: .68rem; }
.empty-state p strong, .empty-state p small { display: block; }
.empty-state p strong { color: #39475a; font-size: .75rem; }
.empty-state p small { margin-top: 4px; }
.filter-panel { margin-bottom: 16px; }
.lead-filters { min-height: 72px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; }
.search-box { flex: 1; position: relative; }
.search-box span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #8b97a6; font-size: 1rem; }
.search-box input { padding-left: 36px; }
.lead-filters select { width: 190px; }
.clear-filter { color: var(--blue); font-size: .64rem; font-weight: 700; }
.pagination { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 25px; border-top: 1px solid #e5eaf0; color: #8290a0; font-size: .64rem; }
.pagination a { color: var(--blue); font-weight: 700; }
.mini-avatar { width: 23px; height: 23px; display: inline-grid; margin-right: 5px; font-size: .55rem; }

/* Lead record */
.lead-identity { display: flex; align-items: center; gap: 14px; }
.lead-avatar { width: 52px; height: 52px; font-size: .85rem; }
.lead-head-actions { display: flex; gap: 8px; }
.lead-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.lead-main, .lead-side { display: grid; gap: 16px; }
.stage-form { display: flex; gap: 8px; padding: 16px 20px; }
.stage-form select { flex: 1; }
.source-pill { padding: 5px 9px; border-radius: 20px; color: #8a6200; background: #fff1d1; font-size: .55rem; font-weight: 700; }
.source-pill.matched { color: #08704a; background: #def7ea; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 6px 20px 18px; }
.detail-grid.single { grid-template-columns: 1fr 1fr; padding: 10px 20px 18px; }
.detail-grid > div { min-height: 66px; padding: 14px 12px 10px 0; border-bottom: 1px solid #edf0f4; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { margin-bottom: 4px; color: #8793a2; font-size: .56rem; }
.detail-grid strong { font-size: .67rem; font-weight: 650; }
.lead-notes { margin: 0 20px 20px; padding: 15px; border-left: 3px solid var(--blue); background: #f3f7fd; }
.lead-notes span { display: block; margin-bottom: 4px; color: #6e7c8e; font-size: .56rem; text-transform: uppercase; }
.lead-notes p { margin: 0; color: #485669; font-size: .66rem; }
.measure-metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.measure-metric-grid > div { padding: 18px 15px; border-right: 1px solid #e7ebf0; text-align: center; }
.measure-metric-grid > div:last-child { border-right: 0; }
.measure-metric-grid span, .measure-metric-grid strong { display: block; }
.measure-metric-grid span { color: #8793a2; font-size: .55rem; }
.measure-metric-grid strong { margin-top: 5px; font-family: var(--font-display); font-size: 1.45rem; }
.measure-metric-grid strong small { color: #6d7988; font-family: var(--font-body); font-size: .55rem; }
.panel-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 20px; border-top: 1px solid #e7ebf0; }
.estimate-preview { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px; }
.estimate-preview > div > span, .estimate-preview > div > strong, .estimate-preview > div > small { display: block; }
.estimate-preview > div > span { color: var(--blue); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
.estimate-preview > div > strong { font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.estimate-preview > div > small { color: #8190a1; font-size: .57rem; }
.package-form { padding: 20px; }
.package-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }
.package-choices input { position: absolute; opacity: 0; }
.package-choices label > span { display: block; padding: 14px; border: 1px solid #d8e0ea; border-radius: 8px; cursor: pointer; }
.package-choices label > span strong, .package-choices label > span small { display: block; }
.package-choices label > span strong { font-size: .7rem; }
.package-choices label > span small { color: #8793a2; font-size: .56rem; }
.package-choices input:checked + span { border-color: var(--blue); background: #edf4ff; box-shadow: inset 0 0 0 1px var(--blue); }
.activity-list { padding: 10px 20px 18px; }
.activity-list > div { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.activity-list > div:last-child { border-bottom: 0; }
.activity-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px #e9f2ff; }
.activity-list p { margin: 0; }
.activity-list strong, .activity-list small { display: block; }
.activity-list strong { font-size: .63rem; }
.activity-list small { color: #8a95a4; font-size: .55rem; }
.contact-lines { padding: 8px 18px 12px; }
.contact-lines > a, .contact-lines > div { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #edf0f4; }
.contact-lines > * > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px; color: var(--blue); background: #eaf2ff; }
.contact-lines p { margin: 0; min-width: 0; }
.contact-lines small, .contact-lines strong { display: block; }
.contact-lines small { color: #8a95a4; font-size: .54rem; }
.contact-lines strong { overflow: hidden; font-size: .63rem; text-overflow: ellipsis; }
.consent-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 18px; }
.consent-summary span { padding: 4px 7px; border-radius: 4px; color: #0c704d; background: #e4f7ef; font-size: .52rem; }
.attachment-grid { display: grid; gap: 7px; padding: 12px 18px 18px; }
.attachment-grid a { display: flex; gap: 10px; align-items: center; padding: 9px; border: 1px solid #e1e6ed; border-radius: 7px; }
.attachment-grid a > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; color: var(--blue); background: #e9f2ff; font-size: .53rem; font-weight: 800; }
.attachment-grid p { min-width: 0; margin: 0; }
.attachment-grid strong, .attachment-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-grid strong { font-size: .6rem; }
.attachment-grid small { color: #8a95a4; font-size: .52rem; }
.task-card form { padding: 14px 18px; }
.task-card .form-row { grid-template-columns: 1.4fr .6fr; }
.task-card input, .task-card select { padding: 9px 10px; font-size: .64rem; }
.mini-task-list { padding: 0 18px 15px; }
.mini-task-list > div { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid #edf0f4; }
.mini-task-list p { margin: 0; }
.mini-task-list strong, .mini-task-list small { display: block; }
.mini-task-list strong { font-size: .58rem; }
.mini-task-list small { color: #8995a4; font-size: .52rem; }

/* Measurement workspace */
.measurement-page .portal-content { padding: 18px; }
.measurement-head { margin-bottom: 14px; align-items: center; }
.measurement-head-actions { display: flex; align-items: center; gap: 7px; }
.save-state { margin-right: 5px; color: #7d8998; font-size: .59rem; }
.save-state.saved { color: var(--green); }
.measurement-layout { height: calc(100vh - 151px); min-height: 630px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; overflow: hidden; border: 1px solid #cfd8e4; border-radius: 11px; background: #fff; box-shadow: 0 12px 34px rgba(7,11,18,.08); }
.map-stage { min-width: 0; position: relative; background: #172331; }
#roof-map { width: 100%; height: 100%; }
.map-top-controls { position: absolute; z-index: 600; top: 12px; right: 12px; display: flex; gap: 7px; }
.map-mode-pill, .map-top-controls > button { min-height: 34px; display: flex; align-items: center; padding: 4px; border: 1px solid rgba(255,255,255,.4); border-radius: 7px; color: #fff; background: rgba(8,13,21,.84); backdrop-filter: blur(10px); box-shadow: 0 4px 15px rgba(0,0,0,.22); font-size: .56rem; }
.map-mode-pill span { padding: 5px 8px; border-radius: 4px; }
.map-mode-pill span.active { background: var(--blue); }
.map-top-controls > button { padding-inline: 12px; }
.map-help { position: absolute; z-index: 600; left: 50%; bottom: 22px; width: min(600px, calc(100% - 40px)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr auto; gap: 2px 15px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: #fff; background: rgba(7,11,18,.9); backdrop-filter: blur(12px); box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.map-help strong { font-size: .65rem; }
.map-help span { grid-column: 1; color: #9fabb9; font-size: .56rem; }
.map-help button { grid-row: 1 / 3; grid-column: 2; align-self: center; border: 0; color: #74b2ff; background: transparent; font-size: .6rem; font-weight: 800; }
.map-attribution-note { position: absolute; z-index: 500; left: 8px; top: 8px; max-width: 280px; padding: 5px 7px; border-radius: 4px; color: rgba(255,255,255,.75); background: rgba(0,0,0,.55); font-size: .49rem; pointer-events: none; }
.measurement-panel { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid #cfd8e4; background: #f8fafc; }
.measurement-tabs { flex: 0 0 52px; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #dce3ec; background: #fff; }
.measurement-tabs button { position: relative; border: 0; color: #748090; background: transparent; font-size: .62rem; font-weight: 700; }
.measurement-tabs button.active { color: var(--blue); }
.measurement-tabs button.active::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--blue); }
.measurement-tabs button span { padding: 2px 5px; border-radius: 10px; color: #fff; background: var(--red); font-size: .48rem; }
.measurement-tab-content { flex: 1; display: none; overflow-y: auto; }
.measurement-tab-content.active { display: block; }
.panel-instructions { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-bottom: 1px solid #e0e6ed; background: #fff; }
.panel-instructions p { margin: 0; }
.panel-instructions strong, .panel-instructions span { display: block; }
.panel-instructions strong { font-size: .63rem; }
.panel-instructions span { color: #8591a0; font-size: .53rem; }
.panel-instructions button, .editor-section-head button { border: 0; color: var(--blue); background: transparent; font-size: .58rem; font-weight: 800; }
.facet-editor-list { display: grid; gap: 9px; padding: 10px; }
.facet-editor { border: 1px solid #dce3ec; border-radius: 8px; background: #fff; }
.facet-editor-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 11px; border-bottom: 1px solid #e6eaf0; }
.facet-editor-head > div { display: grid; grid-template-columns: 11px 1fr; align-items: center; column-gap: 7px; }
.facet-color { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.facet-editor-head strong { font-size: .63rem; }
.facet-editor-head small { color: #8793a2; font-size: .52rem; }
.facet-editor-head button { border: 0; color: #9aa5b3; background: transparent; font-size: 1rem; }
.facet-editor > .form-row { padding: 10px 11px 5px; gap: 8px; }
.facet-editor select { padding: 7px 8px; font-size: .58rem; }
.facet-editor details { border-top: 1px solid #edf0f4; }
.facet-editor summary { display: flex; justify-content: space-between; padding: 9px 11px; color: #526074; font-size: .57rem; font-weight: 700; cursor: pointer; }
.edge-editor-list { max-height: 245px; overflow-y: auto; padding: 0 11px 8px; }
.edge-editor-list > label { display: grid; grid-template-columns: 1fr 135px; align-items: center; gap: 8px; margin: 0; padding: 6px 0; border-top: 1px solid #eef1f5; }
.edge-editor-list > label > span { display: grid; grid-template-columns: 7px 1fr; align-items: center; column-gap: 6px; }
.edge-editor-list i { grid-row: 1 / 3; width: 7px; height: 7px; border-radius: 50%; background: #48a0ff; }
.edge-editor-list b { font-size: .55rem; }
.edge-editor-list small { color: #8b96a5; font-size: .49rem; }
.penetration-editor { margin: 4px 10px 15px; border: 1px solid #dce3ec; border-radius: 8px; background: #fff; }
.editor-section-head { min-height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 8px 11px; border-bottom: 1px solid #e7ebf0; font-size: .59rem; font-weight: 750; }
.penetration-row { display: grid; grid-template-columns: 1fr 60px 28px; gap: 6px; padding: 7px 10px; border-bottom: 1px solid #edf0f4; }
.penetration-row:last-child { border-bottom: 0; }
.penetration-row select, .penetration-row input { padding: 6px; font-size: .55rem; }
.penetration-row button { border: 0; color: #9aa5b3; background: transparent; }
.live-metric { padding: 22px; border-bottom: 1px solid #dfe5ec; background: #fff; }
.live-metric span, .live-metric strong, .live-metric small { display: block; }
.live-metric span { color: #738091; font-size: .57rem; }
.live-metric strong { margin: 5px 0 0; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; }
.live-metric small { color: #8b96a5; font-size: .53rem; }
.live-metric-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #dfe5ec; }
.live-metric-grid > div { padding: 14px; border-right: 1px solid #dfe5ec; border-bottom: 1px solid #dfe5ec; background: #fff; }
.live-metric-grid span, .live-metric-grid strong { display: block; }
.live-metric-grid span { color: #7e8a9a; font-size: .52rem; }
.live-metric-grid strong { margin-top: 3px; font-family: var(--font-display); font-size: 1.35rem; }
.edge-summary { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 13px 14px; background: #fff; }
.edge-summary > div { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #edf0f4; font-size: .55rem; }
.waste-calculator { margin-top: 10px; border-top: 1px solid #dfe5ec; border-bottom: 1px solid #dfe5ec; background: #fff; }
.waste-grid { display: grid; grid-template-columns: repeat(5, 1fr); padding: 10px; gap: 5px; }
.waste-grid > div { padding: 8px 3px; border: 1px solid #e1e6ed; border-radius: 5px; text-align: center; }
.waste-grid > div.selected { border-color: var(--blue); background: #edf4ff; }
.waste-grid span, .waste-grid strong { display: block; }
.waste-grid span { color: #8190a1; font-size: .47rem; }
.waste-grid strong { font-size: .56rem; }
.confidence-card { margin: 12px; padding: 14px; border: 1px solid #d8e1ec; border-radius: 8px; background: #fff; }
.confidence-card > div:first-child { display: flex; justify-content: space-between; font-size: .58rem; }
.confidence-bar { height: 6px; overflow: hidden; margin: 9px 0; border-radius: 8px; background: #e1e7ee; }
.confidence-bar i { display: block; width: 50%; height: 100%; background: linear-gradient(90deg, var(--amber), var(--blue)); transition: width .2s; }
.confidence-card small { display: block; color: #8995a4; font-size: .5rem; }
.quality-list { display: grid; gap: 7px; padding: 12px; }
.quality-item { display: flex; gap: 9px; padding: 11px; border: 1px solid #f1d4a8; border-radius: 7px; background: #fff9ee; }
.quality-item.ok { border-color: #cde9dd; background: #effaf5; }
.quality-item > span { color: var(--amber); }
.quality-item.ok > span { color: var(--green); }
.quality-item p { margin: 0; }
.quality-item strong, .quality-item small { display: block; }
.quality-item strong { font-size: .58rem; }
.quality-item small { color: #7b8796; font-size: .5rem; }
.leaflet-draw-toolbar a { background-color: #fff; }
.facet-map-label { border: 0 !important; color: #fff; background: var(--blue) !important; box-shadow: 0 3px 8px rgba(0,0,0,.3); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.facet-map-label::before { border-top-color: var(--blue) !important; }

/* Estimate editor */
.estimate-page-head { align-items: center; }
.estimate-head-total { text-align: right; }
.estimate-head-total span, .estimate-head-total strong { display: block; }
.estimate-head-total span { color: #7f8b9a; font-size: .57rem; }
.estimate-head-total strong { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.estimate-layout-portal { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.estimate-line-table input { width: 90px; padding: 7px 8px; font-size: .62rem; }
.money-input { position: relative; display: inline-flex; align-items: center; }
.money-input span { position: absolute; left: 8px; color: #8a96a5; }
.money-input input { padding-left: 20px; }
.estimate-form-bottom { padding: 18px 20px; border-top: 1px solid #e5eaf0; }
.estimate-form-bottom .field { margin-bottom: 12px; }
.estimate-side-column { display: grid; gap: 16px; }
.total-lines { padding: 13px 20px; }
.total-lines > div { display: flex; justify-content: space-between; padding: 8px 0; color: #687485; font-size: .65rem; }
.total-lines .total-grand { margin-top: 5px; padding-top: 14px; border-top: 2px solid #182333; color: var(--ink); }
.total-lines .total-grand strong { font-family: var(--font-display); font-size: 1.35rem; }
.totals-card > small { display: block; padding: 0 20px 18px; color: #8995a4; font-size: .54rem; }
.measurement-source-card .button { margin: 0 20px 18px; width: calc(100% - 40px); }
.customer-share-card > p { padding: 15px 20px 0; color: #6f7c8d; font-size: .62rem; }
.share-status { display: flex; gap: 10px; align-items: center; margin: 12px 20px; padding: 11px; border-radius: 7px; background: #f3f6fa; }
.share-status > span { width: 9px; height: 9px; border-radius: 50%; background: #9aa5b3; }
.share-status > span.live { background: var(--green); box-shadow: 0 0 0 4px #dff6eb; }
.share-status p { margin: 0; }
.share-status strong, .share-status small { display: block; }
.share-status strong { font-size: .61rem; }
.share-status small { color: #8591a0; font-size: .52rem; }
.customer-share-card form { padding: 0 20px 20px; }

/* Admin */
.admin-two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.user-list { padding: 8px 20px 16px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.user-row:last-child { border-bottom: 0; }
.user-avatar { flex: 0 0 36px; width: 36px; height: 36px; font-size: .68rem; }
.user-row p { flex: 1; margin: 0; }
.user-row strong, .user-row small { display: block; }
.user-row strong { font-size: .66rem; }
.user-row strong small { display: inline; color: #8a95a4; font-weight: 400; }
.user-row > p > small { color: #8793a2; font-size: .56rem; }
.admin-form-card form { padding: 20px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) 360px; gap: 18px; align-items: start; }
.sticky-card { position: sticky; top: 88px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 18px; align-items: start; }
.settings-main { display: grid; gap: 16px; }
.settings-section > .form-row, .settings-section > .field, .settings-section > textarea { margin-left: 20px; margin-right: 20px; }
.settings-section > .form-row:first-of-type { margin-top: 20px; }
.small-field { max-width: 100px; }
.toggle-list { padding: 10px 18px; }
.toggle-list label { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 12px 0; border-bottom: 1px solid #edf0f4; cursor: pointer; }
.toggle-list label > span strong, .toggle-list label > span small { display: block; }
.toggle-list label > span strong { font-size: .63rem; }
.toggle-list label > span small { color: #8995a4; font-size: .52rem; }
.toggle-list input, .mini-switch input { position: absolute; opacity: 0; }
.toggle-list label > i, .mini-switch i { width: 36px; height: 20px; position: relative; flex: 0 0 36px; border-radius: 20px; background: #cfd6df; transition: background .2s; }
.toggle-list label > i::after, .mini-switch i::after { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
.toggle-list input:checked + i, .mini-switch input:checked + i { background: var(--blue); }
.toggle-list input:checked + i::after, .mini-switch input:checked + i::after { transform: translateX(16px); }
.settings-side .button { margin: 8px 18px 18px; width: calc(100% - 36px); }
.provider-table input[type=number] { width: 100px; padding: 7px; font-size: .61rem; }
.mini-switch { display: inline-flex; cursor: pointer; }
.provider-note { display: flex; gap: 20px; padding: 16px 20px; border-top: 1px solid #e5eaf0; background: #f7f9fc; }
.provider-note strong { flex: 0 0 110px; font-size: .64rem; }
.provider-note p { margin: 0; color: #748090; font-size: .58rem; }
.compact-stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.truncate-cell { display: block; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }

.error-page { min-height: 650px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; background: #f4f7fb; }
.error-page > span { color: #d6e5fb; font-family: var(--font-display); font-size: 8rem; font-weight: 800; line-height: 1; }
.error-page h1 { font-size: 3.4rem; }
.error-page p { color: #748090; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1180px) {
    .site-nav { gap: 2px; }
    .nav-phone { display: none; }
    .hero-content { grid-template-columns: 1fr .7fr; gap: 38px; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-sidebar { width: 218px; }
    .portal-main { margin-left: 218px; }
    .lead-layout { grid-template-columns: minmax(0, 1fr) 285px; }
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
    .measure-metric-grid { grid-template-columns: repeat(3, 1fr); }
    .measure-metric-grid > div:nth-child(3) { border-right: 0; }
    .measurement-layout { grid-template-columns: minmax(0, 1fr) 350px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-layout .sticky-card { position: static; }
}

@media (max-width: 960px) {
    body.public-shell { padding-bottom: 58px; }
    .nav-toggle { display: block; }
    .site-nav { position: fixed; inset: 112px 0 auto 0; max-height: calc(100vh - 112px); overflow-y: auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 22px 35px; background: #080d15; border-top: 1px solid #243044; }
    body.nav-open .site-nav { display: flex; }
    .site-nav .nav-link, .nav-drop-trigger, .nav-phone { display: block; width: 100%; padding: 14px 2px; border-bottom: 1px solid #202b3b; text-align: left; }
    .nav-menu { position: static; width: auto; display: grid; visibility: visible; opacity: 1; transform: none; padding: 5px 0 10px 14px; border: 0; background: transparent; box-shadow: none; }
    .site-nav .button { margin-top: 14px; }
    .mobile-cta { position: fixed; z-index: 90; inset: auto 0 0; display: grid; grid-template-columns: .75fr 1.25fr; height: 58px; box-shadow: 0 -8px 25px rgba(0,0,0,.25); }
    .mobile-cta a { display: grid; place-items: center; color: #fff; font-size: .75rem; font-weight: 800; }
    .mobile-call { background: #111927; }
    .mobile-estimate { background: var(--blue); }
    .hero { min-height: auto; }
    .hero-overlay { background: linear-gradient(90deg, rgba(3,6,10,.96), rgba(3,6,10,.73)), linear-gradient(0deg, rgba(3,6,10,.9), transparent); }
    .hero-content { grid-template-columns: 1fr; padding-block: 70px; }
    .hero-copy { max-width: 760px; }
    .address-card { max-width: 620px; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); }
    .proof-grid > div:nth-child(3) { border-left: 1px solid #263245; }
    .split-heading, .split-feature-grid, .split-feature-grid.reverse, .service-area-grid, .content-two-col, .diagram-explainer, .final-cta-inner { grid-template-columns: 1fr; gap: 45px; }
    .process-grid { grid-template-columns: 1fr; }
    .process-card { min-height: 240px; border-left: 1px solid #283448; border-bottom: 1px solid #283448; }
    .process-card:last-child { border-bottom: 0; }
    .option-grid { grid-template-columns: 1fr; }
    .option-card.featured { transform: none; }
    .service-area-card { max-width: 520px; }
    .final-cta-actions { align-items: flex-start; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
    .page-hero-inner { grid-template-columns: 1fr; }
    .service-page-mark { display: none; }
    .detail-band-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .roofing-guide { grid-template-columns: repeat(2, 1fr); }
    .estimate-layout { grid-template-columns: 1fr; }
    .estimate-intro { position: static; max-width: 760px; }
    .login-shell { grid-template-columns: 1fr; }
    .login-visual { min-height: 480px; }
    .portal-sidebar { transform: translateX(-100%); width: 244px; transition: transform .2s; box-shadow: 10px 0 30px rgba(0,0,0,.3); }
    body.portal-nav-open .portal-sidebar { transform: translateX(0); }
    .portal-main { margin-left: 0; }
    .portal-menu-button { display: block; }
    .portal-breadcrumb { flex: 1; margin-left: 12px; }
    .dashboard-grid, .lead-layout, .estimate-layout-portal, .admin-two-col, .settings-layout { grid-template-columns: 1fr; }
    .lead-side { grid-template-columns: repeat(2, 1fr); }
    .lead-side > :last-child { grid-column: 1 / -1; }
    .settings-side .sticky-card { position: static; }
    .measurement-layout { grid-template-columns: 1fr; height: auto; min-height: 0; overflow: visible; }
    .map-stage { height: 560px; }
    .measurement-panel { height: 650px; border-left: 0; border-top: 1px solid #cfd8e4; }
}

@media (max-width: 720px) {
    .container, .container.narrow { width: min(100% - 28px, 1180px); }
    .emergency-inner { justify-content: space-between; gap: 8px; font-size: .64rem; }
    .emergency-inner > span { display: none; }
    .emergency-inner a { width: 100%; text-align: center; }
    .header-inner { min-height: 70px; }
    .brand { width: 145px; height: 58px; }
    .brand img { width: 145px; }
    .site-nav { top: 104px; }
    h1 { font-size: 3.3rem; }
    h2 { font-size: 2.7rem; }
    .section { padding: 75px 0; }
    .hero-content { padding-block: 55px; }
    .hero-copy h1 { font-size: 3.65rem; }
    .hero-copy > p { font-size: .93rem; }
    .hero-actions { display: grid; }
    .hero-assurances { display: grid; gap: 7px; }
    .address-card { padding: 22px; }
    .form-row, .form-row.compact { grid-template-columns: 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
    .proof-grid > div, .proof-grid > div:nth-child(3) { min-height: 80px; border-left: 1px solid #263245; border-bottom: 1px solid #263245; }
    .service-grid, .guide-grid, .roofing-guide { grid-template-columns: 1fr; }
    .service-card { min-height: 290px; }
    .split-heading { gap: 20px; }
    .process-cta { flex-direction: column; text-align: center; }
    .feature-image img { min-height: 330px; }
    .image-badge { right: 10px; bottom: 15px; }
    .detail-band-grid, .value-grid { grid-template-columns: 1fr; }
    .detail-band-grid > div { min-height: 170px; border-left: 1px solid #28364a; border-bottom: 1px solid #28364a; }
    .diagram-explainer { padding: 32px 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 25px; }
    .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; }
    .estimate-shell { padding-top: 45px; }
    .estimate-intro h1 { font-size: 3.5rem; }
    .estimate-form-card form, .step-header { padding-inline: 20px; }
    .form-step { min-height: 520px; }
    .choice-pills { grid-template-columns: 1fr; }
    .form-actions { position: sticky; bottom: 0; background: #fff; }
    .processing-card { padding: 32px 20px; }
    .success-card { padding: 38px 20px; }
    .next-steps { grid-template-columns: 1fr; }
    .success-actions, .proposal-actions { flex-direction: column; }
    .proposal-head { flex-direction: column; }
    .proposal-id { align-self: auto; text-align: left; }
    .proposal-body { padding: 25px 18px; }
    .proposal-summary strong { font-size: 3.5rem; }
    .proposal-metrics { grid-template-columns: 1fr; }
    .proposal-metrics > div { border-right: 0; border-bottom: 1px solid #e1e6ed; }
    .login-message { left: 22px; right: 22px; bottom: 35px; }
    .login-panel { padding: 25px 14px; }
    .login-card { padding: 28px 20px; }
    .portal-topbar { padding-inline: 14px; }
    .topbar-user div, .topbar-estimate { display: none; }
    .portal-content { padding: 18px 12px; }
    .portal-page-head, .lead-head, .measurement-head { align-items: flex-start; flex-direction: column; }
    .portal-page-head .button, .lead-head-actions { width: 100%; }
    .lead-head-actions { display: grid; grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .lead-filters { align-items: stretch; flex-direction: column; }
    .lead-filters select { width: 100%; }
    .lead-side { grid-template-columns: 1fr; }
    .lead-side > :last-child { grid-column: auto; }
    .measure-metric-grid { grid-template-columns: repeat(2, 1fr); }
    .measure-metric-grid > div { border-bottom: 1px solid #e7ebf0; }
    .measure-metric-grid > div:nth-child(2n) { border-right: 0; }
    .package-choices { grid-template-columns: 1fr; }
    .detail-grid, .detail-grid.single { grid-template-columns: 1fr; }
    .measurement-head-actions { width: 100%; flex-wrap: wrap; }
    .measurement-head-actions .save-state { width: 100%; }
    .map-stage { height: 460px; }
    .measurement-panel { height: 700px; }
    .map-help { bottom: 10px; }
    .map-attribution-note { display: none; }
    .estimate-page-head { flex-direction: row; align-items: center; }
    .estimate-page-head > div:first-child { min-width: 0; }
    .estimate-head-total strong { font-size: 2rem; }
    .admin-two-col, .settings-layout { gap: 14px; }
    .settings-section > .form-row { grid-template-columns: 1fr; }
    .provider-note { flex-direction: column; gap: 6px; }
}

@media (max-width: 460px) {
    .hero-copy h1 { font-size: 3.05rem; }
    .address-card h2 { font-size: 2rem; }
    .stat-grid { grid-template-columns: 1fr; }
    .portal-table th, .portal-table td { padding-inline: 11px; }
    .estimate-page-head { flex-direction: column; }
    .estimate-head-total { text-align: left; }
    .live-metric-grid, .edge-summary { grid-template-columns: 1fr; }
    .waste-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Address autocomplete / USPS CASS scrubber */
.address-autocomplete-wrap { position: relative; }
.address-suggestions { position: absolute; z-index: 70; top: calc(100% - 21px); left: 0; right: 0; overflow: hidden; border: 1px solid #d5dce6; border-radius: 12px; background: #fff; box-shadow: 0 20px 50px rgba(7,11,18,.18); }
.address-suggestion { display: grid; grid-template-columns: 30px 1fr; gap: 1px 9px; width: 100%; padding: 12px 14px; border: 0; border-bottom: 1px solid #edf0f4; text-align: left; color: #1e2938; background: #fff; cursor: pointer; }
.address-suggestion:last-child { border-bottom: 0; }
.address-suggestion:hover, .address-suggestion:focus { background: #f1f6ff; outline: none; }
.address-suggestion > span { grid-row: 1 / span 2; align-self: center; color: var(--blue); font-size: 1.1rem; }
.address-suggestion strong { font-size: .76rem; line-height: 1.25; }
.address-suggestion small { color: #718096; font-size: .61rem; }
.address-verified-note { display: block; margin-top: 7px; color: #6f7c8c; font-size: .64rem; line-height: 1.4; }
.address-verified-note.matched { color: #147446; font-weight: 650; }

.address-attribution {
    padding: .45rem .8rem;
    text-align: right;
    font-size: .7rem;
    color: #6f7782;
    border-top: 1px solid rgba(15, 23, 42, .08);
    background: #fff;
}

/* Home: local proof first, then the estimator */
.homepage-hero-content { grid-template-columns: minmax(0, 780px); padding-block: 98px; }
.brand-proof-section { padding-block: 62px; background: #fff; }
.brand-proof-grid { display: grid; grid-template-columns: 1.13fr .87fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.brand-proof-grid img { display: block; width: 100%; max-height: 430px; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow-lg); }
.brand-proof-grid p { max-width: 520px; color: #647182; }
.brand-proof-grid .text-link { display: inline-block; margin-top: 12px; }
.why-storm-section { padding-block: 75px; background: #f1f5fa; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why-grid article { padding: 24px; border: 1px solid #dce4ed; border-radius: 12px; background: #fff; }
.why-grid strong { color: var(--blue); font-family: var(--font-display); font-size: 1.25rem; }
.why-grid h3 { margin: 12px 0 7px; font-size: 1.5rem; }
.why-grid p { margin: 0; color: #657181; font-size: .76rem; }
.estimator-feature { color: #fff; background: #0c1625; }
.estimator-feature-grid { display: grid; grid-template-columns: 1fr .85fr; gap: clamp(30px, 6vw, 95px); align-items: center; }
.estimator-feature-grid > div > p { max-width: 570px; color: #acb9c9; }
.estimator-feature .address-card { width: 100%; }
.estimator-feature .address-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 2.25rem; }
.simple-checks { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin-top: 25px; color: #bed5f6; list-style: none; font-size: .74rem; }
.process-section .section-heading { margin-bottom: 28px; }
.process-section .process-card { min-height: 190px; padding: 25px; }
.process-section .process-card h3 { margin: 12px 0 7px; }
.process-section .process-card p { margin-bottom: 0; }
.storm-restoration-section { background: #fff; }
.storm-restoration-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.storm-restoration-grid > div:first-child p { max-width: 680px; color: #647182; }
.storm-restoration-points { padding: 30px; border: 1px solid #dce5f0; border-radius: 14px; background: #f4f8fd; }
.storm-restoration-points > div { display: grid; gap: 4px; padding: 15px 0; border-bottom: 1px solid #dce5f0; }
.storm-restoration-points strong { font-size: .8rem; }
.storm-restoration-points span, .storm-restoration-points small { color: #647182; font-size: .72rem; }
.storm-restoration-points small { display: block; padding-top: 16px; }
.work-section { background: #f2f6fa; }
.proof-invitation { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 24px; padding: 24px; border-left: 4px solid var(--blue); background: #fff; }
.proof-invitation strong { font-size: 1rem; }
.proof-invitation span { flex: 1; min-width: 240px; color: #657181; font-size: .8rem; }
.proof-invitation a { color: var(--blue); font-weight: 800; }
.project-grid, .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { overflow: hidden; border: 1px solid #dde5ee; border-radius: 12px; background: #fff; }
.project-card img { width: 100%; height: 210px; object-fit: cover; }
.project-card > div { padding: 16px; }
.project-card h3 { margin-bottom: 4px; font-size: 1.3rem; }
.project-card p { margin: 0; color: #687687; font-size: .73rem; }
.review-grid { margin-top: 25px; }
.review-card { margin: 0; padding: 24px; border: 1px solid #dde5ee; border-radius: 12px; background: #fff; }
.review-card blockquote { margin: 0 0 14px; font-size: .9rem; }
.review-card figcaption { color: #687687; font-size: .72rem; }
.options-section .section-heading { margin-bottom: 42px; }
.options-section .option-card { padding: 23px; }
.options-section .option-card.featured { transform: none; }
.options-section .option-label { margin-bottom: 8px; }
.options-section .option-card h3 { font-size: 1.6rem; }
.options-section .option-card p { margin-bottom: 8px; }
.options-section .option-card ul { gap: 0; margin-top: 10px; }
.options-section .option-card li { padding-top: 7px; font-size: .7rem; }
.financing-callout { padding: 45px 0; color: #fff; background: #142943; }
.financing-callout-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.financing-callout h2 { margin: 3px 0; font-size: 2.6rem; }
.financing-callout p { margin: 0; color: #b4c4d8; font-size: .83rem; }
.coordinate-form { padding: 19px 20px 22px; }
.coordinate-form .field { margin-bottom: 8px; }
.coordinate-form p { color: #687687; font-size: .72rem; }
.form-hint { color: #718093; font-size: .7rem; }
.roof-preview { position: relative; height: 320px; overflow: hidden; border: 1px solid #dbe3ed; border-radius: 10px; background: #dbe6f1; }
#quote-roof-map { width: 100%; height: 100%; }
.roof-map-placeholder { position: absolute; z-index: 400; inset: 0; display: grid; place-content: center; gap: 8px; padding: 25px; text-align: center; background: #e9f0f8; }
.roof-map-placeholder[hidden] { display: none; }
.roof-map-placeholder strong, .roof-map-placeholder span { display: block; }
.roof-map-placeholder span { color: #637387; font-size: .75rem; }
.field-label { display: block; margin-bottom: 7px; color: #273344; font-size: .72rem; font-weight: 750; }
.roof-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roof-choices label { position: relative; display: block; }
.roof-choices input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.roof-choices span { display: block; padding: 13px; border: 1px solid #d3dce6; border-radius: 9px; color: #233246; font-size: .76rem; text-align: center; cursor: pointer; }
.roof-choices input:checked + span { border-color: var(--blue); background: #eaf2ff; color: var(--blue); font-weight: 750; }
.roof-choices input:focus-visible + span { outline: 3px solid #89b8ff; }
.roof-choices input:disabled + span { color: #8994a1; background: #f4f6f9; cursor: not-allowed; }
.more-project-details { margin: 10px 0 24px; padding: 14px 16px; border: 1px solid #dfe7ef; border-radius: 9px; }
.more-project-details summary { color: var(--blue); font-size: .76rem; font-weight: 750; cursor: pointer; }
.more-project-details[open] summary { margin-bottom: 18px; }
.quote-result { max-width: 900px; }
.quote-result-options, .quote-review-needed { margin: 24px 0; padding: 25px; border: 1px solid #dce6f1; border-radius: 12px; text-align: left; background: #f6f9fd; }
.quote-result-options h2, .quote-review-needed h2 { margin: 6px 0; font-size: 2rem; }
.quote-result-options p, .quote-review-needed p { color: #627084; font-size: .78rem; }
.quote-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }
.quote-prices article { display: grid; gap: 3px; padding: 19px; border: 1px solid #d8e4f1; border-radius: 10px; background: #fff; }
.quote-prices span { color: var(--blue); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.quote-prices strong { font-family: var(--font-display); font-size: 2.4rem; }
.quote-prices small { color: #778596; font-size: .6rem; }

@media (max-width: 960px) {
    .homepage-hero-content { grid-template-columns: 1fr; padding-block: 70px; }
    .brand-proof-grid, .estimator-feature-grid, .storm-restoration-grid { grid-template-columns: 1fr; gap: 26px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .homepage-hero-content { padding-block: 50px; }
    .hero-assurances { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
    .brand-proof-section, .why-storm-section { padding-block: 50px; }
    .brand-proof-grid img { max-height: 270px; }
    .why-grid { gap: 9px; }
    .why-grid article { padding: 15px; }
    .why-grid h3 { font-size: 1.3rem; }
    .service-card { min-height: 205px; padding: 21px; }
    .service-card p { margin-bottom: 12px; }
    .process-section .process-card { min-height: 0; padding: 22px; }
    .options-section .option-grid { gap: 14px; }
    .project-grid, .review-grid, .quote-prices { grid-template-columns: 1fr; }
    .financing-callout-inner { flex-direction: column; align-items: flex-start; }
    .roof-preview { height: 260px; }
    .roof-choices { grid-template-columns: 1fr; }
    .estimate-form-card { min-height: 0; }
    .estimate-page .form-step { min-height: 0; }
    .estimate-page .form-actions { z-index: 3; }
    .quote-result-options, .quote-review-needed { padding: 17px; }
}

/* ----------------------------------------------------------
   STORM landing design — reference layout, Oct 2026
   Scoped to the public homepage to preserve estimator/portal UX.
   ---------------------------------------------------------- */
:root { --storm-electric: #0799fb; }
/* Use the supplied horizontal STORM logo across all layouts. */
.site-header .header-inner { min-height: 91px; gap: 18px; }
.site-header .brand { width: 209px; height: 84px; flex: 0 0 209px; overflow: visible; }
.site-header .brand img { width: 100%; height: auto; transform: none; object-fit: contain; }
.footer-brand img { width: 245px; height: auto; object-fit: contain; }
.portal-brand img { width: 160px; height: auto; max-height: 66px; object-fit: contain; }
.header-phone { display: none; align-items: center; gap: 13px; margin-left: auto; color: #fff; white-space: nowrap; }
.header-phone svg { color: var(--storm-electric); flex-shrink: 0; }
.header-phone span { display: grid; gap: 0; }
.header-phone strong { font-size: 1rem; line-height: 1.2; }
.header-phone small { color: #abb6c7; font-size: .67rem; line-height: 1.3; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }

 .login-card > img { width: 195px; height: auto; max-height: none; object-fit: contain; }
/* The target homepage starts with the black STORM header, not the emergency ribbon. */
.storm-home .emergency-bar { display: none; }
.storm-home .site-header { background: #03070b; }
.storm-home .mobile-cta { display: none; }
body.storm-home { padding-bottom: 0; }
.storm-hero { isolation: isolate; position: relative; overflow: hidden; background: #07111b; color: #fff; }
.storm-hero-photo { position: absolute; z-index: -2; inset: 0; background: url('../img/storm-landing-hero.webp') center center/cover no-repeat; }
.storm-hero-shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg,rgba(0,4,9,.83) 0%,rgba(0,6,12,.36) 54%,rgba(1,9,17,.08) 100%),linear-gradient(0deg,rgba(0,4,7,.46),transparent 45%); }
.storm-hero .container, .storm-benefits .container, .storm-promise .container { width: min(1260px,calc(100% - 84px)); }
.storm-hero-inner { display: flex; flex-direction: column; justify-content: space-between; min-height: 720px; padding-top: 55px; padding-bottom: 28px; }
.storm-hero-copy { max-width: 920px; }
.storm-kicker { display: inline-flex; align-items: center; gap: 14px; color: #e2e8ef; font-size: clamp(.68rem,1.5vw,.86rem); font-weight: 800; letter-spacing: .13em; text-transform: uppercase; line-height: 1.45; }
.storm-kicker > span { width: 40px; height: 3px; background: var(--storm-electric); flex-shrink: 0; }
.storm-hero h1 { margin: 16px 0 15px; font-family: var(--font-display); font-size: clamp(3.6rem,6.8vw,7.7rem); font-weight: 800; line-height: .91; letter-spacing: -.025em; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.storm-hero h1 em, .storm-promise h2 em { color: var(--storm-electric); font-style: normal; }
.storm-service-line { font-size: clamp(.97rem,2vw,1.3rem); font-weight: 500; color: #f1f5fa; text-shadow: 0 2px 9px rgba(0,0,0,.55); }
.storm-service-line b { color: var(--storm-electric); font-weight: 800; }
.storm-hero-actions { display: grid; gap: 14px; max-width: 470px; margin-top: 36px; }
.storm-action { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 62px; padding: 13px 24px; border: 2px solid var(--storm-electric); border-radius: 7px; font-family: var(--font-body); font-size: .91rem; font-weight: 800; line-height: 1.2; text-transform: uppercase; text-align: center; transition: background .2s,transform .2s; }
.storm-action:hover { transform: translateY(-2px); }
.storm-action-primary { color: #fff; background: #098cf1; box-shadow: 0 12px 22px rgba(0,0,0,.2); }
.storm-action-primary:hover { background: #0077d8; }
.storm-action-outline { color: #fff; background: rgba(0,9,18,.62); }
.storm-action-outline:hover { background: rgba(4,70,130,.65); }
.storm-action span { font-size: 1.35rem; line-height: 0; }
.storm-benefits { color: #fff; background: #03070b; border-top: 1px solid rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.13); }
.storm-benefit-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); min-height: 148px; align-items: center; }
.storm-benefit { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; min-height: 90px; padding: 0 16px; text-align: center; border-right: 2px solid #006ebd; }
.storm-benefit:last-child { border-right: 0; }
.storm-benefit svg { width: 51px; height: 51px; fill: none; stroke: var(--storm-electric); stroke-width: 2.6px; stroke-linecap: round; stroke-linejoin: round; }
.storm-benefit span { font-family: var(--font-display); font-size: clamp(.87rem,1.6vw,1.1rem); font-weight: 800; line-height: .97; text-transform: uppercase; }
.storm-promise { position: relative; overflow: hidden; color: #fff; background: linear-gradient(90deg,rgba(1,5,10,.97),rgba(1,7,14,.83) 52%,rgba(1,6,13,.72)),url('../img/storm-warranty-roof.webp') center/cover no-repeat; }
.storm-promise-grid { display: grid; grid-template-columns: minmax(0,1.07fr) minmax(260px,.83fr); gap: 24px; min-height: 635px; align-items: center; padding-block: 45px; }
.storm-promise-copy { position: relative; z-index: 2; }
.storm-kicker.promise-kicker { color: var(--storm-electric); margin-bottom: 18px; }
.storm-promise h2 { font-size: clamp(3.6rem,6.7vw,6rem); line-height: .89; text-transform: uppercase; font-weight: 800; letter-spacing: -.018em; margin-bottom: 17px; }
.storm-promise h2 em { display: block; font-size: 1.29em; margin-top: 5px; }
.storm-promise-rule { width: 67px; height: 3px; margin-bottom: 14px; background: var(--storm-electric); }
.storm-promise-copy p { max-width: 485px; margin-bottom: 23px; font-size: clamp(.96rem,1.5vw,1.15rem); line-height: 1.55; color: #e9edf3; }
.storm-warranty-link { min-height: 58px; width: min(100%,405px); justify-content: center; }
.storm-promise-copy small { display: block; margin-top: 12px; font-size: .69rem; line-height: 1.35; color: #a7b6c7; }
.storm-warranty-art { position: relative; display: grid; place-items: center; }
.storm-warranty-art img { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 27px rgba(0,0,0,.5)); }

@media (max-width: 1180px) {
    .site-header .brand { width: 190px; height: 78px; flex-basis: 190px; }
}
@media (max-width: 960px) {
    .site-header .header-inner { min-height: 108px; gap: 18px; }
    .site-header .brand { width: 245px; height: 101px; flex-basis: 245px; }
    .site-header .brand img { width: 245px; }
    .header-phone { display: inline-flex; }
    .site-header .nav-toggle { flex-shrink: 0; display: block; margin-left: 15px; border-color: transparent; }
    .storm-home .site-nav { top: 108px; max-height: calc(100vh - 108px); }
    .storm-hero-inner { min-height: 715px; }
    .storm-promise-grid { grid-template-columns: minmax(0,1.1fr) minmax(215px,.86fr); gap: 10px; }
    .storm-promise h2 { font-size: clamp(3.3rem,7.4vw,5rem); }
}
@media (max-width: 720px) {
    .site-header .header-inner { min-height: 94px; }
    .site-header .brand { width: 205px; height: 86px; flex-basis: 205px; }
    .site-header .brand img { width: 205px; }
    .site-header .nav-toggle { margin-left: 0; }
    .header-phone { gap: 8px; }
    .header-phone svg { width: 22px; height: 22px; }
    .header-phone strong { font-size: .8rem; }
    .header-phone small { font-size: .52rem; }
    .storm-home .site-nav { top: 94px; max-height: calc(100vh - 94px); }
    .storm-hero-inner { min-height: 660px; padding-top: 48px; }
    .storm-hero h1 { font-size: clamp(3.15rem,8.1vw,3.9rem); }
    .storm-benefit { padding-inline: 6px; }
    .storm-benefit svg { width: 42px; height: 42px; }
    .storm-benefit span { font-size: .85rem; }
    .storm-promise-grid { min-height: 585px; }
    .storm-promise h2 { font-size: clamp(3.05rem,7.4vw,3.6rem); }
}
@media (max-width: 620px) {
    .storm-hero .container, .storm-benefits .container, .storm-promise .container { width: calc(100% - 34px); }
    .header-phone small { display: none; }
    .storm-hero-inner { min-height: 650px; }
    .storm-hero-photo { background-position: 54% center; }
    .storm-hero-shade { background: linear-gradient(90deg,rgba(0,4,8,.77),rgba(0,4,8,.22)),linear-gradient(0deg,rgba(0,5,9,.43),transparent 60%); }
    .storm-hero h1 { font-size: clamp(2.45rem,9.0vw,3.25rem); }
    .storm-kicker { font-size: .63rem; letter-spacing: .07em; gap: 8px; }
    .storm-kicker > span { width: 24px; }
    .storm-service-line { font-size: .84rem; }
    .storm-hero-actions { max-width: 100%; }
    .storm-benefit-grid { min-height: 115px; }
    .storm-benefit svg { width: 34px; height: 34px; }
    .storm-benefit span { font-size: .67rem; }
    .storm-benefit { min-height: 76px; }
    .storm-promise-grid { grid-template-columns: 1fr; gap: 0; padding-block: 48px; }
    .storm-promise h2 { font-size: clamp(3.5rem,10vw,4.5rem); }
    .storm-warranty-art img { max-width: 330px; }
    .storm-promise-copy p { font-size: 1rem; }
}
@media (max-width: 390px) {
    .site-header .header-inner { gap: 5px; min-height: 77px; }
    .site-header .brand { width: 150px; height: 69px; flex-basis: 150px; }
    .site-header .brand img { width: 150px; }
    .header-phone svg { width: 17px; height: 17px; }
    .header-phone strong { font-size: .71rem; }
    .site-header .nav-toggle { width: 35px; }
    .storm-home .site-nav { top: 77px; max-height: calc(100vh - 77px); }
    .storm-hero h1 { font-size: 2.35rem; }
    .storm-action { font-size: .76rem; padding-inline: 10px; }
}
