/* ============================================ */
/* DEMO + LANDING PAGE CSS - ServiceCall.com   */
/* Scoped to /demo.html and /lp/* only.        */
/* Kept in its own file so forms.css,          */
/* components.css and main.css stay untouched. */
/* ============================================ */

/* ========== Demo form card ========== */

.demo-hero {
  padding: 3rem 0 2rem;
}

.demo-form-card {
  border-radius: 16px;
}

/* forms.css gives .hubspot-form-container a 500px cap and 20px of padding,
   which double-pads inside a Bootstrap .card-body. Neutralise both here
   rather than editing the shared stylesheet. */
.demo-form-mount.hubspot-form-container {
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* ========== Proof rail ========== */

.demo-proof-rail .hero-title {
  font-size: 2.25rem;
  line-height: 1.2;
}

.demo-bullets {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.demo-bullets li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: #374151;
  font-size: 1rem;
  line-height: 1.5;
}

.demo-bullets li::before {
  content: "";
  position: absolute;
  left: 0.375rem;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #F97316;
}

.demo-trust {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-bottom: 0;
}

/* ========== Enriched-report visual ========== */

.demo-report-card {
  background: #0F172A;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.demo-report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.demo-report-cell {
  background: #1E293B;
  border-radius: 10px;
  padding: 0.5rem 0.625rem;
}

.demo-report-label {
  font-size: 0.625rem;
  color: #94A3B8;
}

.demo-report-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #F8FAFC;
}

/* Lead-score footer row inside the card (same values as index.html's inline
   version, promoted to classes so demo.html carries no inline styling). */
.demo-report-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin-top: 0.625rem;
  background: #11203B;
  border: 1px solid #1E293B;
  border-radius: 10px;
  padding: 0.5625rem 0.75rem;
}

.demo-report-score-label {
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: #94A3B8;
}

.demo-report-score-pill {
  font-size: 0.75rem;
  font-weight: 800;
  color: #0F172A;
  background: #FBBF24;
  padding: 2px 0.625rem;
  border-radius: 50px;
}

.demo-report-score-rec {
  font-size: 0.75rem;
  color: #CBD5E1;
  margin-left: auto;
}

.demo-report-score-rec strong {
  color: #F8FAFC;
}

/* ========== Proof numbers under the card ========== */

.demo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.demo-stat {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0.75rem 0.625rem;
  text-align: center;
}

.demo-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-ink); /* #F97316 on #F9FAFB is 2.68:1 (DEV-15) */
}

.demo-stat-label {
  font-size: 0.8125rem;
  color: #6B7280;
  margin-top: 2px;
}

/* ========== CRM chips ========== */

.demo-bullets li strong {
  color: #111827;
  font-weight: 600;
}

.demo-crm {
  margin-top: 1.25rem;
}

.demo-crm-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  margin-bottom: 0.5rem;
}

.demo-crm-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.demo-crm-list li {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
}

/* ========== Step 3 / meetings embed ========== */

/* The HubSpot meetings iframe is the one element that will blow out the
   375px viewport if left to its own devices. The embed script sizes the
   frame itself to ~400px, which makes the calendar scroll inside it
   (LP-20); a min-height on the iframe, not only the container, lets the
   whole picker show. */
.meetings-iframe-container {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  min-height: 43.75rem;
  margin-top: 0.5rem;
}

.meetings-iframe-container iframe {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 43.75rem;
  border: 0;
}

#demo-step-3:focus {
  outline: none;
}

/* ========== Landing pages ========== */

.lp-hero {
  padding: 2rem 0 1.75rem;
}

/* Hero layout (LP-02 / LP-10). Four siblings: headline, subhead, form, art.
   From lg up a two-column grid — headline, subhead and art stacked on the
   left, the form spanning all three rows on the right. Below that, a column
   re-ordered to headline → form → subhead → art, so on a phone the email
   field is the second thing on screen even with the consent bar open. */
.lp-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lp-hero-sub {
  margin-left: 0;
  margin-right: 0;
}

/* The orange half of the hero H1 is an <em> so the emphasis is not conveyed
   by colour alone (WCAG 1.4.1, DEV-15). Keep the visual identical. */
.lp-hero-h1 em { font-style: normal; }

@media (min-width: 992px) {
  .lp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 2rem;
    row-gap: 1rem;
    align-items: start;
  }

  .lp-hero-h1   { grid-column: 1; grid-row: 1; }
  .lp-hero-sub  { grid-column: 1; grid-row: 2; }
  .lp-hero-art  { grid-column: 1; grid-row: 3; }
  .lp-hero-form { grid-column: 2; grid-row: 1 / span 3; }
}

/* blind-lead's phone-only comparison strip (S-03): hidden from lg up, where
   the two-phone art already sits beside the form. */
.lp-hero-strip { display: none; }

@media (max-width: 991px) {
  .lp-hero-h1    { order: 1; }
  .lp-hero-strip { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .lp-hero-form  { order: 3; }
  .lp-hero-sub   { order: 4; }
  .lp-hero-art   { order: 5; }

  .lp-strip {
    display: block;
    padding: 0.5rem 0.625rem;
    border-radius: 10px;
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .lp-strip b {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.125rem;
  }
  .lp-strip-blind { background: #F3F4F6; color: #4B5563; border: 1px dashed #D1D5DB; }
  .lp-strip-sc    { background: #0F172A; color: #F9FAFB; }
  .lp-strip-sc b span { color: #FB923C; }
}

/* Proof numbers under the card — same figures as /demo.html (LP-09). */
.demo-proof-line {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
}

.lp-hero-visual {
  display: block;
  width: 100%;
  height: auto;
  /* The crops vary in aspect ratio (1080x700, 1080x800, 560x420), so height is
     left intrinsic and only capped — forcing one ratio would clip the feature
     bubbles off the lead-profile art. The width/height attributes on the tag
     reserve the right box, so swapping art via ?cta= shifts nothing. */
  max-height: 46vh;
  object-fit: contain;
  border-radius: 14px;
  background: #0F172A;
}

/* ---------- Two-phone hero (blind-lead) ----------
   Live HTML rather than a JPG so every label reads at 540px wide (LP-04), the
   product side is unmistakable (LP-02), and rows follow ?trade= (LP-03). Type
   never drops below 0.75rem labels / 1rem values from md up. */

.lp-hero-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.lp-phone {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lp-phone-caption {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 0.5rem;
}

.lp-phone-sc .lp-phone-caption span {
  color: #C2410C;
}

.lp-phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  background: #0F172A;
  border: 6px solid #1E293B;
  border-radius: 22px;
  padding: 0.875rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.lp-phone-lead {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  border-bottom: 1px solid #334155;
}

.lp-phone-name {
  font-size: 1rem;
  font-weight: 700;
  color: #F8FAFC;
}

.lp-phone-meta {
  font-size: 0.8125rem;
  color: #94A3B8;
}

.lp-phone-note {
  font-size: 0.875rem;
  font-style: italic;
  color: #E2E8F0;
  margin-top: 0.25rem;
}

.lp-phone-badge {
  align-self: flex-start;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #0F172A;
  background: #34D399;
  padding: 2px 0.5rem;
  border-radius: 50px;
}

.lp-phone-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #475569;
  border-radius: 10px;
  padding: 1.25rem 0.625rem;
  text-align: center;
  color: #94A3B8;
  font-size: 0.875rem;
}

.lp-phone-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lp-phone-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #1E293B;
  border-radius: 10px;
  padding: 0.5rem 0.625rem;
}

.lp-phone-label {
  font-size: 0.75rem;
  color: #94A3B8;
}

.lp-phone-value {
  font-size: 1rem;
  font-weight: 700;
  color: #F8FAFC;
  overflow-wrap: anywhere;
}

.lp-benefit h3 {
  font-size: 1.125rem;
}

.lp-benefit p {
  font-size: 0.9375rem;
  color: #6B7280;
}

.lp-compare {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 1.5rem;
}

.lp-compare-from {
  color: #6B7280;
  text-decoration: line-through;
}

.lp-compare-to {
  color: #111827;
  font-weight: 700;
}

.lp-footer {
  padding: 1.5rem 0;
  border-top: 1px solid #F3F4F6;
  font-size: 0.875rem;
  color: #6B7280;
}

.lp-footer a {
  color: #6B7280;
  margin-right: 1rem;
}

/* The support address sits inside a sentence, so colour alone cannot mark it
   as a link (WCAG 1.4.1 link-in-text-block, DEV-15). */
.lp-footer p a {
  text-decoration: underline;
  margin-right: 0;
}

/* ========== Mobile ========== */

@media (max-width: 991px) {
  .demo-hero {
    padding: 1.5rem 0 1rem;
  }

  /* LP hero on a phone: only the headline sits above the form, and the
     card chrome is tightened, so the email field, the button and the
     "Bring 5 addresses" line all fit inside a real Safari viewport
     (~390x660 with toolbars) with the consent bar open (LP-10). The art is
     below the form and may be cropped freely. */
  .lp-hero {
    padding: 0.75rem 0 1.5rem;
  }

  .lp-hero-grid {
    gap: 0.75rem;
  }

  .lp-hero-h1 {
    font-size: 1.625rem;
  }

  .lp-hero-sub {
    font-size: 1rem;
  }

  .lp-hero-form .card-body.p-4 {
    padding: 1.125rem !important;
  }

  .lp-hero-form .h4 {
    font-size: 1.25rem;
  }

  .lp-hero-visual {
    max-height: 15rem;
    object-fit: cover;
  }

  .demo-proof-rail .hero-title {
    font-size: 1.75rem;
  }

  /* On mobile the proof rail sits below the form, so its headline would push
     the form off the fold if it rendered first. Order is handled by Bootstrap
     order-* classes; this just tightens the spacing. */
  .demo-proof-rail {
    margin-top: 0.5rem;
  }

  .meetings-iframe-container,
  .meetings-iframe-container iframe {
    min-height: 47.5rem;
  }
}

@media (max-width: 575px) {
  .demo-report-grid {
    grid-template-columns: 1fr;
  }

  /* Three stats stay on one row at 375px; only the numeral steps down. */
  .demo-stat-value {
    font-size: 1.25rem;
  }

  .demo-stat-label {
    font-size: 0.75rem;
  }

  /* The two phones stay side by side — the juxtaposition is the concept —
     so each gets ~165px at 375px wide. One type step down, tighter chrome. */
  .lp-hero-compare {
    gap: 0.625rem;
  }

  .lp-phone-screen {
    min-height: 16.25rem;
    padding: 0.625rem;
    border-width: 4px;
    border-radius: 16px;
  }

  .lp-phone-meta {
    font-size: 0.75rem;
  }

  .lp-phone-value {
    font-size: 0.9375rem;
  }

  .lp-phone-empty {
    padding: 0.875rem 0.5rem;
  }
}

/* "Next: pick a time" above the step-2 fields (S-01). */
.demo-step-cue {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F97316;
  margin: 0 0 0.75rem;
}

/* Service-area helper sits under the City/State row, above Trade (LP-04). */
.demo-area-help {
  margin: -0.5rem 0 1rem;
}

/* Consent rows: the label is the statement only, so the checkbox's
   accessible name is the statement; the caveat is a sibling wired in with
   aria-describedby (LP-19). forms.css lays out checkbox + label; this adds
   the wrapper the caveat needs. */
.consent-text {
  flex: 1 1 auto;
  min-width: 0;
}

.consent-text label {
  margin: 0;
}

.consent-caveat {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6B7280;
}

/* ========== Step-2 disclosure (LP-03) ========== */

.demo-more {
  margin-bottom: 1rem;
}

.demo-more summary {
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  list-style: none;
  padding: 0.625rem 0.75rem;
  border: 1px dashed #D1D5DB;
  border-radius: 8px;
}

.demo-more summary::-webkit-details-marker {
  display: none;
}

.demo-more summary::before {
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: #F97316;
  font-weight: 700;
}

.demo-more[open] summary::before {
  content: "\2013";
}

.demo-more summary:focus-visible {
  outline: 2px solid #F97316;
  outline-offset: 2px;
}

.demo-more-opt {
  font-weight: 400;
  color: #6B7280;
}

/* Turnstile is interaction-only (LP-08): the container costs nothing until a
   challenge actually renders, at which point demo-form.js adds this class. */
.demo-turnstile-visible {
  margin-top: 1rem;
}

/* ========== Demo form messages ========== */

/* Step-level alert (server / verification errors). Pre-rendered empty so the
   live region exists before the first error; empty must cost no space. */
.demo-form-error {
  color: #B02A37;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.demo-form-error:empty {
  margin: 0;
}
