/* Quote chasing v2: Crestline Roofing's own site, after Waida's Steelcrest. A full-bleed roofer
   photo hero with a white pill nav in the middle, a soft humanist headline bottom left and a
   pill button with a round arrow; then a centred letter-spaced about paragraph with three rounded
   photos, a wordmark row, light grey rounded cards, a photo stats card and photo process cards. */
.demo--quote-chasing {
  --ink: #161616; --ink-2: #3b3b3b; --muted: #6a6a6a; --line: #e4e4e4; --line-2: #cfcfcf; --grey: #f4f4f4;
  --good: #1e7a4b; --warn: #9a5b00; --cold: #4e5b68; --blue: #1450b0;
  background: #fff; color: var(--ink); font: 400 16px/1.55 Figtree, system-ui, sans-serif;
}
.demo--quote-chasing main { overflow-x: clip; }
.cr-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 50px); }
.demo--quote-chasing :focus-visible { outline: 2px solid #1d6fe8; outline-offset: 3px; }
.cr-hero a { text-decoration: none; }

/* pill button with a round arrow */
.cr-go { display: inline-flex; align-items: center; gap: 14px; border: 0; border-radius: 999px; background: #fff; color: var(--ink); padding: 6px 6px 6px 22px;
  font: 500 16px/1 Figtree, sans-serif; text-decoration: none; box-shadow: 0 0 0 4px rgba(255,255,255,.35); transition: transform .2s; }
.cr-go i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; font-size: 20px; transition: transform .2s; }
.cr-go:hover i { transform: translateX(3px); }
.cr-go--dark { background: var(--ink); color: #fff; box-shadow: none; }
.cr-go--dark i { background: #fff; color: var(--ink); }
.cr-go:disabled { opacity: .45; cursor: default; }
.cr-pill { border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 18px; font: 500 14px/1 Figtree, sans-serif; }
.cr-pill:hover:not(:disabled) { border-color: var(--ink); }
.cr-pill--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.cr-pill--dark:hover:not(:disabled) { background: #333; }
.cr-pill:disabled { opacity: .4; cursor: default; }
.cr-chip { display: block; width: max-content; margin: 0 auto 18px; font-size: 13px; color: var(--muted); padding: 4px 10px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #ececec, 0 2px 6px rgba(0,0,0,.04); }
.cr-chip--left { margin-left: 0; }

/* ---------- hero ---------- */
.cr-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; min-height: clamp(640px, 60vw, 860px); display: flex; flex-direction: column; background: #3d4a5a; }
.cr-hero__bg { position: absolute; inset: 0; z-index: -1; }
.cr-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.cr-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,26,34,.72) 0%, rgba(20,26,34,.42) 45%, rgba(20,26,34,.05) 75%), linear-gradient(0deg, rgba(20,26,34,.55), transparent 45%); }
.cr-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(16px, 3.5vw, 50px); }
.cr-logo { display: flex; align-items: center; gap: 10px; color: #fff; font: 500 19px/1 Figtree, sans-serif; letter-spacing: -.01em; }
.cr-nav__pill { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: #f4f4f4; box-shadow: 0 0 0 3px rgba(255,255,255,.5); }
.cr-nav__pill a { color: var(--ink); font-size: 15px; padding: 10px 20px; border-radius: 999px; }
.cr-nav__pill a.is-on { background: var(--ink); color: #fff; }
.cr-nav__pill a:hover:not(.is-on) { background: #e6e6e6; }
.cr-nav__cta { background: #fff; color: var(--ink); border-radius: 999px; padding: 13px 30px; font-size: 15px; }
.cr-hero__copy { margin-top: auto; padding: 40px clamp(16px, 3.5vw, 50px) clamp(50px, 9vw, 150px); max-width: 980px; }
.cr-eyebrow { font-size: 14px; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.cr-hero h1 { font: 400 clamp(2.6rem, 5.2vw, 4.6rem)/1.08 Figtree, sans-serif; letter-spacing: -.035em; }
.cr-lede { margin-top: 22px; font-size: 18px; line-height: 1.45; max-width: 34em; color: rgba(255,255,255,.95); }
.cr-hero .cr-go { margin-top: 36px; }

/* ---------- about ---------- */
.cr-about { padding: clamp(70px, 8vw, 100px) 16px 0; text-align: center; }
.cr-spaced { max-width: 640px; margin: 0 auto; font: 400 clamp(1.25rem, 2.1vw, 1.85rem)/1.45 Figtree, sans-serif; letter-spacing: .09em; color: #5d5d5d; }
.cr-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 222px)); justify-content: center; gap: 10px; margin: 44px auto 0; }
.cr-trio img { width: 100%; height: auto; aspect-ratio: 222 / 182; object-fit: cover; border-radius: 18px; }
.cr-logos { max-width: 1100px; margin: clamp(70px, 9vw, 150px) auto 0; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 18px 36px; padding-bottom: 20px; }
.cr-logos li { font: 600 clamp(17px, 1.6vw, 21px)/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: #7a7a7a; }
.cr-logos li:nth-child(even) { font-family: 'DM Serif Display', serif; font-weight: 400; letter-spacing: 0; }

/* ---------- demo ---------- */
.cr-demo { padding: clamp(70px, 8vw, 110px) 0 clamp(60px, 8vw, 100px); }
.cr-demo__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 36px; }
.cr-demo__head h2 { font: 400 clamp(2rem, 3.4vw, 2.9rem)/1.18 Figtree, sans-serif; letter-spacing: -.025em; max-width: 16em; }
.cr-demo__intro p { color: var(--ink-2); font-size: 16.5px; margin-bottom: 20px; }

.qc-track { background: var(--grey); border-radius: 24px; padding: 20px 26px 34px; margin-bottom: 16px; }
.qc-track__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.qc-track__day { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 15px; }
.qc-track__day b { font: 400 50px/1 Figtree, sans-serif; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.qc-track__date { font-weight: 500; color: var(--ink-2); }
.qc-track__ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.qc-status { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--ink-2); }
.qc-status.is-live { background: #e5eefc; color: var(--blue); }
.qc-status.is-owner { background: #fff1dc; color: var(--warn); }
.qc-status.is-won { background: #dff3e8; color: var(--good); }
.qc-status.is-cold { background: #e3e8ee; color: var(--cold); }
.qc-bar { position: relative; margin-top: 18px; height: 6px; border-radius: 999px; background: #dedede; }
.qc-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: var(--ink); transition: width .4s ease; }
.qc-bar__marks { position: absolute; inset: 0; }
.qc-mark { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2px solid #bdbdbd; transition: background .3s, border-color .3s; }
.qc-mark.is-sent { background: var(--ink); border-color: var(--ink); }
.qc-mark.is-off { border-style: dashed; opacity: .5; }
.qc-mark span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.qc-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
.qc-panel { background: var(--grey); border-radius: 24px; padding: 12px 12px 18px; min-width: 0; }
.qc-cap { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); padding: 8px 8px 14px; }
.qc-cap b { display: block; color: var(--ink); font-weight: 600; font-size: 16px; }
.qc-cap__av { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; }
.qc-cap__av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.qc-panel--owner, .qc-panel--log { padding: 20px; }
.qc-cap--plain { padding: 0 0 14px; }

.qc-phone { margin: 0 auto; max-width: 320px; height: 590px; border-radius: 46px; border: 9px solid #111; background: #fff; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 0 0 1px #2b2b2b, 0 30px 50px -28px rgba(0,0,0,.45); }
.qc-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 22px 6px; font-size: 12.5px; font-weight: 600; }
.qc-phone__isl { width: 82px; height: 23px; border-radius: 20px; background: #0a0a0a; }
.qc-phone__who { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 2px 0 10px; font-size: 11.5px; font-weight: 500; border-bottom: 1px solid #ececec; background: #f8f8f8; }
.qc-phone__who span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }
.qc-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.qc-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 20px 8px; }
.qc-empty b { color: var(--ink); }
.qc-msg { max-width: 88%; font-size: 13.5px; line-height: 1.45; animation: cr-pop .3s ease both; }
.qc-msg__meta { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.qc-msg__body { padding: 9px 12px; border-radius: 18px; background: #ececee; border-bottom-left-radius: 5px; }
.qc-msg--email .qc-msg__body { border-radius: 12px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--ink); }
.qc-msg--email .qc-msg__body b { display: block; font-weight: 600; margin-bottom: 3px; }
.qc-msg--out { align-self: flex-end; }
.qc-msg--out .qc-msg__meta { text-align: right; }
.qc-msg--out .qc-msg__body { background: var(--ink); color: #fff; border-radius: 18px; border-bottom-right-radius: 5px; }
.qc-msg--sys { align-self: center; max-width: 100%; font-size: 11.5px; color: var(--muted); text-align: center; }
.qc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 16px; border-top: 1px solid #ececec; background: #fafafa; }
.qc-chips:empty { display: none; }
.qc-chips__hint { width: 100%; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.qc-chip { border: 1px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: 13px; line-height: 1.3; }
.qc-chip:hover { background: var(--ink); color: #fff; }
.qc-chip--quiet { border-color: var(--line-2); color: var(--muted); }

.qc-quote { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 18px; background: #fff; }
.qc-quote__ref { font-size: 12.5px; color: var(--muted); }
.qc-quote__title { margin-top: 4px; font: 400 26px/1.1 Figtree, sans-serif; letter-spacing: -.03em; }
.qc-quote__lines { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.qc-quote__amt { font: 400 34px/1 Figtree, sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.qc-sub { margin: 20px 0 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.qc-plan { margin-top: 6px; display: flex; flex-direction: column; }
.qc-step { position: relative; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 0 11px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.qc-step::before { content: ""; position: absolute; left: 0; top: 17px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #bdbdbd; background: var(--grey); }
.qc-step__day { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.qc-step__what { color: var(--ink); }
.qc-step__what small { display: block; color: var(--muted); font-size: 12.5px; }
.qc-step__st { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--muted); white-space: nowrap; }
.qc-step.is-sent::before { background: var(--ink); border-color: var(--ink); }
.qc-step.is-sent .qc-step__st { background: #e5eefc; color: var(--blue); }
.qc-step.is-off .qc-step__what { color: var(--muted); text-decoration: line-through; }
.qc-step.is-off .qc-step__st { background: transparent; color: var(--muted); }
.qc-step.is-moved .qc-step__st { background: #fff1dc; color: var(--warn); }
.qc-notes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.qc-note { padding: 13px 15px; border-radius: 16px; font-size: 13.5px; background: #fff; animation: cr-pop .3s ease both; }
.qc-note b { display: block; font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.qc-note--owner b { color: var(--warn); } .qc-note--won b { color: var(--good); } .qc-note--cold b { color: var(--cold); }
.qc-note--won { box-shadow: inset 0 0 0 1.5px #9fd7b8; } .qc-note--owner { box-shadow: inset 0 0 0 1.5px #ecc98f; }

.qc-log__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.qc-log__head h3 { font: 400 23px/1.15 Figtree, sans-serif; letter-spacing: -.03em; }
.qc-log__body { height: 540px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #c9c9c9 transparent; }
.rf-log { display: flex; flex-direction: column; gap: 6px; }
.rf-log__empty { color: var(--muted); font-size: 14px; padding-top: 6px; }
.rf-log__item { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 2px 10px; padding: 11px 12px; border-radius: 14px; background: #fff; font-size: 13.5px; line-height: 1.45;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.rf-log__item.is-in { opacity: 1; transform: none; }
.rf-log__time { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.9; }
.rf-log__tag { grid-column: 2; justify-self: start; margin-top: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--grey); color: var(--ink-2); }
.rf-log__item.is-hot .rf-log__text { color: var(--warn); font-weight: 600; }
.rf-log__item.is-done .rf-log__text::before { content: "✓ "; color: var(--good); font-weight: 700; }

/* result: the template's rounded photo card with a stats row */
.cr-result { position: relative; isolation: isolate; overflow: hidden; margin-top: 16px; border-radius: 24px; color: #fff; padding: clamp(60px, 9vw, 150px) clamp(20px, 3vw, 36px) 30px;
  background: #2e3a47 url(img/hero-sm.webp) 50% 80% / cover; animation: cr-pop .4s ease both; }
.cr-result::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,22,28,.92), rgba(18,22,28,.55) 60%, rgba(18,22,28,.25)); }
.cr-result__lede { text-align: center; font-size: 16.5px; max-width: 32em; margin: 0 auto 30px; }
.cr-result__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; }
.cr-result__row div { display: flex; flex-direction: column-reverse; gap: 8px; }
.cr-result__row dd { margin: 0; font: 400 clamp(1.7rem, 3.4vw, 3.1rem)/1.05 Figtree, sans-serif; letter-spacing: .02em; }
.cr-result__row dt { font-size: 16px; color: rgba(255,255,255,.88); }
@keyframes cr-pop { from { opacity: 0; transform: translateY(6px); } }

/* ---------- how (process photo cards) ---------- */
.cr-how { padding: clamp(40px, 5vw, 60px) 0 clamp(80px, 9vw, 130px); }
.cr-how__h { font: 400 clamp(1.8rem, 2.8vw, 2.5rem)/1.25 Figtree, sans-serif; letter-spacing: -.015em; max-width: 24em; margin-bottom: 40px; }
.cr-steps { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.cr-step { position: relative; border-radius: 24px; overflow: hidden; min-height: 320px; }
.cr-step img { width: 100%; height: 100%; object-fit: cover; }
.cr-step--open { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 30px; background: var(--grey); padding: 10px; }
.cr-step--open img { border-radius: 18px; min-height: 300px; }
.cr-step--open > div { display: flex; flex-direction: column; padding: 12px 20px 10px 0; }
.cr-step__n { font-size: 22px; }
.cr-step--open h3 { margin-top: auto; font: 400 23px/1.2 Figtree, sans-serif; letter-spacing: -.02em; }
.cr-step--open p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.cr-step--photo img { position: absolute; inset: 0; }
.cr-step--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,18,22,.9), rgba(15,18,22,.25) 65%, rgba(15,18,22,.55)); }
.cr-step--photo > div { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; padding: 22px; color: #fff; }
.cr-step--photo h3 { margin-top: auto; font: 400 20px/1.2 Figtree, sans-serif; letter-spacing: -.02em; }
.cr-step--photo p { margin-top: 8px; font-size: 14.5px; color: rgba(255,255,255,.88); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .qc-grid { grid-template-columns: 1fr 1fr; }
  .qc-panel--log { grid-column: 1 / -1; }
  .qc-log__body { height: 360px; }
  .cr-steps { grid-template-columns: 1fr 1fr; }
  .cr-step--open { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cr-nav__pill { display: none; }
  .cr-demo__head { grid-template-columns: 1fr; }
  .cr-result__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .qc-grid { grid-template-columns: 1fr; }
  .qc-track { padding: 16px 18px 34px; }
  .qc-track__day b { font-size: 40px; }
  .qc-step { grid-template-columns: 50px minmax(0, 1fr); font-size: 13.5px; }
  .qc-step__st { grid-column: 2; justify-self: start; }
  .cr-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cr-trio img { border-radius: 12px; }
  .cr-spaced { letter-spacing: .05em; }
  .cr-steps { grid-template-columns: 1fr; }
  .cr-step--open { grid-template-columns: 1fr; gap: 16px; }
  .cr-step--open img { min-height: 200px; aspect-ratio: 3 / 2; }
  .cr-step--open > div { padding: 0 10px 12px; }
  .cr-step--open h3 { margin-top: 12px; }
  .cr-step { min-height: 280px; }
  .cr-nav__cta { padding: 11px 20px; }
  .cr-lede { font-size: 17px; }
  .cr-hero { min-height: 640px; }
  .qc-phone { height: 560px; }
  .qc-quote { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .demo--quote-chasing *, .demo--quote-chasing *::before, .demo--quote-chasing *::after { animation: none !important; transition: none !important; }
}
