/* =========================================================================
   The instant-estimator pages (RapidLights, RapidPaving, RapidLawn): the
   page around the estimator. One stylesheet; body[data-variant] sets the
   palette. The estimator itself is estimator.css.
   ========================================================================= */
@font-face { font-family: 'Inter Variable'; src: url('/rapid-roofing/fonts/inter-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Source Serif Variable'; src: url('/rapid-estimate/fonts/source-serif-variable.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }

.rx {
    --bg: #0a1020; --bg-2: #0f1830; --bg-3: #17223f; --glow: rgba(216, 0, 84, .32);
    --acc: #d80054; --acc-dk: #b80048; --acc-ink: #fff; --hi: #ffc96b; --hi-glow: rgba(255, 201, 107, .45);
    --paper: #fbf6ee; --paper-2: #f4ece0; --rule: #e6ddcf; --text: #141a2a; --text-soft: #4b5468;
    --on-dark: #eef1f7; --on-dark-soft: #b4bdd0; --dark-line: rgba(255, 255, 255, .1);
    --serif: 'Source Serif Variable', 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --sans: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.rx[data-variant="paving"] {
    --bg: #15171a; --bg-2: #1b1d21; --bg-3: #26292e; --glow: rgba(246, 184, 0, .22);
    --acc: #f6b800; --acc-dk: #dba400; --acc-ink: #17181b; --hi: #ffd23f; --hi-glow: rgba(255, 210, 63, .35);
    --paper: #f6f5f1; --paper-2: #eceae3; --rule: #dedbd1; --text: #17181b; --text-soft: #50545c;
    --on-dark: #f2f2ef; --on-dark-soft: #b9bbc0;
}
.rx[data-variant="lawn"] {
    --bg: #0e2a1a; --bg-2: #123421; --bg-3: #1a4530; --glow: rgba(183, 226, 63, .2);
    --acc: #b7e23f; --acc-dk: #a3cf2c; --acc-ink: #10240f; --hi: #d6f08a; --hi-glow: rgba(214, 240, 138, .35);
    --paper: #f6f8ef; --paper-2: #eaf0dc; --rule: #d9e2c6; --text: #12241a; --text-soft: #47584d;
    --on-dark: #eef5ec; --on-dark-soft: #b3c6b6;
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
.rx *, .rx *::before, .rx *::after { box-sizing: border-box; }
.rx img, .rx svg { max-width: 100%; }
.rx h1, .rx h2, .rx h3, .rx p { margin: 0; }
.rx h1, .rx h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -.015em; line-height: 1.1; text-wrap: balance; }
.rx h1 { font-size: clamp(34px, 5vw, 58px); }
.rx h2 { font-size: clamp(28px, 3.6vw, 42px); }
.rx h3 { font-size: 20px; font-weight: 750; line-height: 1.25; }
.rx h1 em, .rx h2 em { font-style: normal; color: var(--hi); text-shadow: 0 0 28px var(--hi-glow); }
.rx a { color: inherit; }
.rx :focus-visible { outline: 3px solid var(--hi); outline-offset: 3px; border-radius: 4px; }
.rx .ui-icon { flex: none; }

.rx-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 28px); }
.rx-wrap--narrow { max-width: 860px; }
.rx-skip { position: absolute; left: -9999px; top: 0; background: var(--hi); color: #111; padding: 10px 16px; z-index: 2000; font-weight: 700; border-radius: 10px; }
.rx-skip:focus { left: 12px; top: 12px; }

.rx-demo { background: #05080f; color: var(--on-dark-soft); font-size: 12.5px; text-align: center; padding: 7px 16px; }
.rx-demo-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--hi); margin-right: 6px; box-shadow: 0 0 8px var(--hi); }

.rx-header { position: sticky; top: 0; z-index: 900; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--dark-line); color: var(--on-dark); }
.rx-header-row { display: flex; align-items: center; gap: 18px; height: 64px; }
.rx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 22px; font-weight: 500; letter-spacing: -.02em; color: var(--on-dark); }
.rx-brand svg { width: 42px; height: 34px; }
.rx-brand b { font-weight: 800; color: var(--hi); }
.rx-nav { display: none; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; }
.rx-nav a { text-decoration: none; color: var(--on-dark-soft); }
.rx-nav a:hover { color: #fff; }
.rx-header .rx-btn { margin-left: auto; }
@media (min-width: 860px) { .rx-nav { display: flex; } .rx-header .rx-btn { margin-left: 0; } }

.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 var(--sans); text-decoration: none; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s; }
.rx-btn--lg { font-size: 17px; padding: 16px 24px; }
.rx-btn--acc { background: var(--acc); color: var(--acc-ink) !important; box-shadow: 0 8px 28px var(--glow); }
.rx-btn--acc:hover { background: var(--acc-dk); }
.rx-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.rx-btn--ghost:hover { border-color: #fff; }

.rx-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hi); margin-bottom: 14px !important; }
.rx-eyebrow--dark { color: color-mix(in srgb, var(--acc) 70%, var(--text)); }
.rx-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--on-dark-soft); max-width: 64ch; margin-top: 16px !important; }
.rx-lead strong { color: var(--on-dark); }
.rx-lead--dark { color: var(--text-soft); }

/* --- Hero, with the estimator in it --------------------------------------- */
.rx-hero { position: relative; isolation: isolate; background: var(--bg); color: var(--on-dark); padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 6vw, 84px); overflow: hidden; }
.rx-hero-bg { position: absolute; inset: 0; z-index: -1; }
.rx-hero-bg > img { width: 100%; height: 100%; max-height: 760px; object-fit: cover; object-position: center 35%; opacity: .5; }
.rx-tiles { display: grid; grid-template-columns: repeat(var(--cols), 256px); justify-content: center; opacity: .42; filter: saturate(.8); }
.rx-tiles img { display: block; width: 256px; height: 256px; max-width: none; }
.rx-hero-bg::after { content: ''; position: absolute; inset: 0; background:
    radial-gradient(ellipse at 50% 0%, transparent 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, var(--bg) 100%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 35%, transparent) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 46%, var(--bg) 78%); }
.rx-hero-head { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.rx-hero-head .rx-lead { margin-left: auto; margin-right: auto; }
.rx-assurances { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin: 22px 0 0; padding: 0; font-size: 15px; font-weight: 600; color: var(--on-dark); }
.rx-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.rx-assurances svg { color: var(--hi); }
.hhx-tries { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 14px 0 0; font-size: 14px; color: var(--on-dark-soft); }
.hhx-tries .hhx-link { font-size: 14px; }

/* --- Bands ---------------------------------------------------------------- */
.rx-powered { background: var(--bg-2); color: var(--on-dark-soft); border-top: 1px solid var(--dark-line); font-size: 14px; font-weight: 600; }
.rx-powered .rx-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding-top: 16px; padding-bottom: 16px; }
.rx-powered span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hi); margin-right: 9px; vertical-align: middle; }

.rx-section { padding: clamp(56px, 7vw, 96px) 0; }
.rx-section--deep { background: var(--bg); color: var(--on-dark); }
.rx-section--tint { background: var(--paper-2); }

.rx-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rx-steps li { background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 24px; }
.rx-steps p { margin-top: 8px; color: var(--text-soft); font-size: 16px; }
.rx-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg); color: var(--hi); font-weight: 800; margin-bottom: 14px; }

.rx-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 40px; }
.rx-card { background: var(--bg-3); border: 1px solid var(--dark-line); border-radius: 18px; padding: 26px; }
.rx-card h3 { color: #fff; font-family: var(--serif); font-size: 24px; }
.rx-card p { margin-top: 10px; color: var(--on-dark-soft); font-size: 16px; }
.rx-card .rx-good { font-size: 15px; padding-top: 12px; border-top: 1px solid var(--dark-line); }
.rx-good b { color: var(--hi); }
.rx-cards--family .rx-card { background: #fff; border-color: var(--rule); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.rx-cards--family .rx-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 16, 32, .12); }
.rx-cards--family h3 { color: var(--text); }
.rx-cards--family p { color: var(--text-soft); flex: 1; }
.rx-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 15px; color: color-mix(in srgb, var(--acc) 70%, var(--text)); }

.rx-split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .rx-split { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.rx-rates { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; font-size: 16px; border-spacing: 0; }
.rx-rates th, .rx-rates td { text-align: left; padding: 16px 20px; vertical-align: top; border-top: 1px solid var(--rule); }
.rx-rates tr:first-child th, .rx-rates tr:first-child td { border-top: 0; }
.rx-rates th { font-weight: 700; width: 42%; }
.rx-rates td { color: var(--text-soft); font-variant-numeric: tabular-nums; }

.rx-faq { margin-top: 32px; display: grid; gap: 10px; }
.rx-faq details { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 0 20px; }
.rx-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 18px 28px 18px 0; position: relative; }
.rx-faq summary::-webkit-details-marker { display: none; }
.rx-faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--text-soft); }
.rx-faq details[open] summary::after { content: '–'; }
.rx-faq details p { padding: 0 0 20px; color: var(--text-soft); }

.rx-cta { background: var(--bg); color: var(--on-dark); padding: clamp(48px, 6vw, 80px) 0; border-top: 1px solid var(--dark-line); }
.rx-cta-row { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .rx-cta-row { grid-template-columns: 1.4fr 1fr; } .rx-cta-actions { justify-content: flex-end; } }
.rx-cta p:not(.rx-eyebrow) { margin-top: 14px; color: var(--on-dark-soft); max-width: 60ch; }
.rx-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.rx-footer { background: #05080f; color: var(--on-dark-soft); font-size: 13px; padding: 22px 0 28px; }
.rx-footer .rx-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

@media (max-width: 560px) {
    .rx-brand { font-size: 19px; }
    .rx-brand svg { width: 34px; height: 28px; }
    .rx-header .rx-btn { padding: 10px 12px; font-size: 14px; }
    .rx-rates th, .rx-rates td { display: block; width: 100%; padding: 12px 16px; }
    .rx-rates td { border-top: 0; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
