/* Simply Tech: "Free efficiency review" + "Hear it answer" buttons, the mobile bottom bar and the desktop call card.
   Uses the site's own variables and .btn from site.css. Paste after site.css (or link it). */
.er-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.er-pair .btn { white-space: nowrap; }
.btn.er-hear { background: var(--white); color: var(--navy); border: 2px solid #dfe7f1; box-shadow: 0 6px 16px rgba(2, 48, 126, .08); }
.btn.er-hear:hover { box-shadow: 0 10px 22px rgba(2, 48, 126, .14); }
.er-hear svg { width: 20px; height: 20px; flex: none; color: var(--green-icon); }

/* header pair: desktop and tablet; phones use the bottom bar instead */
.top .er-pair { gap: 10px; }
@media (max-width: 719px) { .top .er-pair { display: none; } }

/* hero: the question above, the pair, the line under */
.er-hero { margin-top: 30px; }
.er-ask { color: var(--navy); font-weight: 800; font-size: clamp(19px, 5vw, 23px); line-height: 1.25; margin: 0 0 14px; }
.er-sub { color: var(--blue-sub); font-size: 16px; line-height: 1.5; margin: 14px 0 0; max-width: 30em; }
.er-hero .textlink { display: inline-block; margin-top: 18px; }

/* mobile bottom bar */
.er-bar { display: none; }
@media (max-width: 719px) {
  .er-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(254, 254, 254, .97);
    border-top: 1px solid #e6ecf2; box-shadow: 0 -6px 20px rgba(2, 48, 126, .08);
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .er-bar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 8px 10px; font-size: 15px; line-height: 1.15; letter-spacing: -.01em;
    text-align: center; border-radius: 16px; gap: 6px; }
  .er-bar .btn:first-child { flex-grow: 1.2; }
  .er-bar .er-hear svg { width: 18px; height: 18px; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* the chat bubble sits above the bar (the widget reads this through its shadow root) */
  :root { --st-bubble-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* desktop "Hear it answer" card */
dialog.er-card { width: min(420px, 92vw); border: 0; border-radius: 22px; padding: 28px 26px 24px; box-shadow: 0 20px 60px rgba(2, 48, 126, .3);
  color: var(--blue-body); text-align: center; }
dialog.er-card::backdrop { background: rgba(2, 48, 126, .45); }
.er-card .eyebrow { display: block; margin-bottom: 10px; }
.er-card .er-num { display: block; color: var(--navy); font-weight: 800; font-size: clamp(34px, 7vw, 42px); letter-spacing: -.01em; text-decoration: none;
  font-variant-numeric: tabular-nums; margin: 0 0 14px; }
.er-card .er-qr { width: 168px; height: 168px; margin: 0 auto 10px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid #e6ecf2; }
.er-card .er-qr svg { width: 100%; height: 100%; display: block; }
.er-card .er-scan { font-size: 14px; color: var(--blue-eyebrow-soft); margin: 0 0 14px; }
.er-card .er-line { color: var(--navy); font-weight: 700; font-size: 18px; line-height: 1.4; margin: 0; }
.er-card .dialog-close { position: absolute; top: 8px; right: 10px; }

/* the line under the call button */
.er-callcol { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.er-note { color: var(--blue-sub); font-size: 14px; line-height: 1.4; margin: 0; max-width: 17em; }
.er-card .er-note { max-width: none; margin-top: 10px; }
@media (max-width: 719px) { .er-bar .btn { font-size: 14px; } }

/* Hero: the text column has a fixed width range and the photo starts after it, so nothing can overlap from 1280 to 2560.
   The two buttons stack inside the text column, each the full width of it (also on phones). */
.er-hero .er-pair { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 14px; }
.er-hero .er-pair .btn, .er-hero .er-callcol, .er-hero .er-callcol .btn { width: 100%; box-sizing: border-box; white-space: normal; text-align: center; justify-content: center; }
.er-hero .er-callcol { align-items: stretch; gap: 8px; }
.er-hero .er-note { max-width: none; text-align: center; }
.er-hero .er-sub { max-width: none; }
.hero-text { min-width: 0; }
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(340px, 520px) minmax(0, 1fr); column-gap: 48px; }
  .hero-text { max-width: 520px; }
}
