/* The Instant Quote showcase (WRG-165), on the home page and /instant-quote. The phone wears the
   funnel canvas's Stormline Gutters skin, because the funnel wears the contractor's brand and not
   ours. Fonts are the system's (D-75). The page is laid out as the phone from the first paint;
   site.js adds .is-live and plays the steps. Without script, quote-noscript.css lays every screen
   out in a grid instead. */

/* ---------- the showcase: phone and captions ---------- */
.qsx {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}
.qsx-dev {
  position: relative;
  justify-self: center;
}
.qsx-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-width: 520px;
}
.qsx-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  transition: background 0.3s;
}
.qsx-steps em {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  padding-top: 3px;
}
.qsx-steps h2,
.qsx-steps h3,
.qsx-steps h4 {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.qsx-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}
.qsx-prog {
  display: none;
}
.qsx-ctl {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 0 18px;
}
.qsx-ctl small {
  font-size: 13px;
  color: #555;
}
/* The pause button's look lives in site.css (.pausebtn, .qsx-pause), shared with the template reel. */
.qsx-lead {
  display: none;
}

/* Playing (site.js): one phone, the current caption lit, a bar that fills for each step. */
.qsx.is-live .qsx-steps li[aria-current='step'] {
  background: var(--soft);
}
.qsx.is-live .qsx-steps li[aria-current='step'] em {
  color: var(--k);
}
.qsx.is-live .qsx-prog {
  display: block;
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 3px;
  border-radius: 2px;
  background: transparent;
  overflow: hidden;
}
.qsx.is-live li[aria-current='step'] .qsx-prog {
  background: #e4e2dc;
}
.qsx.is-live li[aria-current='step'] .qsx-prog i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--hv);
  transform-origin: left;
  animation: qs-fill var(--qs-d, 4500ms) linear forwards;
}
.qsx.is-idle li[aria-current='step'] .qsx-prog i {
  animation-play-state: paused;
}
@keyframes qs-fill {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.qsx.is-live .qsx-lead {
  display: flex;
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 3;
  align-items: center;
  gap: 10px;
  width: max-content;
  padding: 10px 16px;
  white-space: nowrap;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.4s,
    transform 0.4s;
  pointer-events: none;
}
.qsx-lead b {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #2fa36b;
  box-shadow: 0 0 0 4px rgba(47, 163, 107, 0.16);
}
.qsx-lead small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}
.qsx.is-live[data-step='5'] .qsx-lead {
  opacity: 1;
  transform: translate(-50%, 0);
  transition-delay: 0.9s;
}

@media (max-width: 900px) {
  .qsx {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .qsx-steps {
    max-width: none;
  }
  /* On a phone only the current caption shows under the phone. The others are hidden visually,
     never removed, so a screen reader still reads all six (WRG-166). */
  .qsx.is-live .qsx-steps li:not([aria-current='step']) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

/* ---------- the phone ---------- */
.qs {
  --ground: #f4f3ef;
  --surface: #fff;
  --ink: #12161c;
  --muted: #5a6069;
  --line: #e4e2dc;
  --tint: #fff3c4;
  --accent: #f4c21b;
  --on-accent: #111;
  --accent-ink: #7a5f00;
  --dark: #0c141c;
  --dark-ink: #f2f4f6;
  --dark-muted: #a9b3bd;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
.qs-phone {
  width: 340px;
  max-width: calc(100vw - 32px);
  height: 700px;
  padding: 10px;
  border-radius: 46px;
  background: #0b0f13;
  box-shadow: 0 30px 80px rgba(20, 20, 10, 0.24);
}
.qs-screens {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--ground);
}
.qs-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.45s,
    visibility 0s linear 0.45s;
}
.qs-screen.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s;
}

/* Without script every screen shows at once, in a grid: quote-noscript.css, loaded only inside
   <noscript>, so a visitor with script never sees the page change shape at load (WRG-176). */

.qs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 14px 0 16px;
  flex: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.qs-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.qs-logo i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--on-accent);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.qs-call {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.qs-stage {
  position: relative;
  flex: none;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1d232b;
}
.qs-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qs-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 40%);
}
.qs-ov {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.qs-glass {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.qs-tl {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
}
.qs-br {
  position: absolute;
  right: 8px;
  bottom: 18px;
  z-index: 2;
  font-size: 10px;
}
.qs-pill {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.qs-mk {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-11px, -50%);
}
.qs-mk.left {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 11px), -50%);
}
.qs-mk .dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.qs-mk .dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  animation: qs-ping 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
}
.qs-mk .core {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.qs-mk.on .dot {
  background: var(--accent);
  color: var(--on-accent);
}
.qs-mk.on .dot::before {
  animation: none;
  inset: -4px;
  border-color: var(--accent);
}
.qs-mk .lbl {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.qs-panel {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  margin-top: -16px;
  padding: 16px 16px 8px;
  border-radius: 20px 20px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.1);
}
.qs-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.qs-bars {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
}
.qs-bars span {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
}
.qs-bars span.done {
  background: var(--ink);
}
.qs-bars span.now {
  background: var(--accent);
}
.qs-h {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.qs-lede {
  margin: 6px 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.qs-input {
  display: block;
  margin: 0 0 10px;
  padding: 7px 12px 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.qs-input small {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.qs-addr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 10px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  font-size: 12px;
  color: var(--muted);
}
.qs-addr > svg {
  flex: none;
  color: var(--accent-ink);
}
.qs-addr > span {
  flex: 1;
  min-width: 0;
}
.qs-addr b {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.qs-addr i,
.qs-chip.on svg {
  display: grid;
  place-items: center;
}
.qs-addr i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
}
.qs-label {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
}
.qs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.qs-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}
.qs-chip.on {
  border-color: var(--ink);
  background: var(--tint);
  font-weight: 700;
}
.qs-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}
.qs-stats > span {
  padding: 8px 12px;
  background: var(--surface);
}
.qs-stats small {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.qs-stats b {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.qs-seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 3px;
  padding: 3px;
  border-radius: 11px;
  background: var(--ground);
}
.qs-seg span {
  padding: 8px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.qs-seg span.on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}
.qs-opt {
  display: block;
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 0 0 3px var(--tint);
}
.qs-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.qs-tag i {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--tint);
  font-style: normal;
  letter-spacing: 0.04em;
}
.qs-optrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 15px;
}
.qs-range {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.qs-optsub {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}
.qs-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.qs-slot {
  padding: 8px 10px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font-size: 11.5px;
  color: var(--muted);
}
.qs-slot b {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.qs-slot.on {
  border-color: var(--ink);
  background: var(--tint);
}
.qs-donep {
  padding-top: 22px;
}
.qs-done {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}
.qs-card {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--dark);
  color: var(--dark-ink);
  font-size: 13px;
}
.qs-card small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.qs-card b {
  display: block;
  margin: 2px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.qs-card > span {
  display: block;
}
.qs-cardline {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.qs-cardmut {
  color: var(--dark-muted);
}

.qs-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 10px 14px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.qs-est {
  flex: 1;
  min-width: 0;
}
.qs-est small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.qs-est b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.qs-lock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.qs-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* motion: the gutter line draws itself when its screen comes up */
@keyframes qs-ping {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes qs-draw {
  from {
    stroke-dashoffset: 1400;
  }
  to {
    stroke-dashoffset: 0;
  }
}
.qsx.is-live .qs-screen.is-on .qs-draw {
  stroke-dasharray: 1400;
  animation: qs-draw 1.3s cubic-bezier(0.4, 0.1, 0.2, 1) 0.3s both;
}
.qsx.is-live .qs-screen.is-on .qs-draw.d2 {
  animation-delay: 0.9s;
}
@media (prefers-reduced-motion: reduce) {
  .qs-mk .dot::before,
  .qsx.is-live .qs-screen.is-on .qs-draw {
    animation: none;
  }
  .qs-screen,
  .qs-screen.is-on,
  .qsx.is-live .qsx-lead {
    transition: none;
  }
}

/* ---------- home: the section ---------- */
.iqs .qsx {
  margin-top: 48px;
}

/* ---------- /instant-quote ---------- */
.iq-hero {
  padding: 72px 0 0;
  text-align: center;
}
.iq-kick {
  margin: 0 0 18px;
}
.iq-kick span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff3c4;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.iq-hero h1 {
  margin: 0 auto;
  font-weight: 400;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.iq-hero .sub {
  margin: 22px auto 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.5;
}
.iq-show {
  padding: 16px 0 96px;
}
.iq-why {
  padding: 96px 0;
  background: var(--soft);
}
.iq-why h2,
.iq-live h2,
.iq-plan h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.iq-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.iq-tile {
  padding: 26px 24px 28px;
  border-radius: 18px;
  background: #fff;
}
.iq-tile h3 {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.iq-tile p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}
.iq-plan {
  padding: 96px 0 110px;
}
/* WRG-450: the live example and the questions. */
.iq-live {
  padding: 96px 0 0;
}
.iq-faq {
  padding: 0 0 96px;
}
.iq-planin {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}
.iq-planin p,
.iq-live p {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.5;
  color: #333;
}
.iq-planin .row,
.iq-live .row {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .iq-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .iq-hero {
    padding-top: 48px;
  }
  .iq-why,
  .iq-plan {
    padding: 64px 0;
  }
}
