/*
 * X18Reviews · /home3 · "Help your clinic get more" tabs (More calls, More
 * reviews, Auto reply, Multi clinics; renamed by Yaniv, 29 Nov 2026)
 *
 * Text tabs with a progress line, and one large rounded panel per tab:
 * a short kicker and headline on the left, an animated product picture on the
 * right (search -> Google profile -> X18's "What Google brought you" card; the
 * QR review path; replies; clinics side by side). No caption under the
 * pictures (removed, Yaniv, 29 Nov 2026); they show no result figures (the founders' rule:
 * figures only in the hero and the ranking animation, tests/home3.test.mts).
 *
 * Base styles are each picture's finished frame; the motion only runs under
 * .is-play (added by tabs.js when a panel is shown), so no-JS and reduced
 * motion both get the finished frame.
 */

.h3-tx {
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 80px 30px 50px;
  background: var(--token-3d13a8c1-a6ce-4a0e-87c9-1b4360ed4abe, #fff);
  font-family: "Inter", "Inter Placeholder", sans-serif;
  color: #0a0a0a;
}
.h3-tx *, .h3-tx *::before, .h3-tx *::after { box-sizing: border-box; }
.h3-tx-in { width: 100%; max-width: 1200px; }

.h3-tx-title {
  margin: 0 0 44px;
  max-width: 860px;
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: 56px;
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--token-35fcbc83-ee9d-4b1e-82fa-54a3134888cc, #0a0a0a);
  font-feature-settings: "cv11";
}
/* "more", the heading's last word, stands out (Yaniv, 29 Nov 2026): the words
   before it in grey and "more" in black, like the hero headline's grey lead
   (.h3-hl-lead in home3.html) */
.h3-tx-lead { color: rgba(10, 10, 10, 0.48); }
.h3-tx-more { white-space: nowrap; }

/* ---------------------------------------------------------------- tabs */
.h3-tx-tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h3-tx-tab {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  padding: 0 0 16px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(10, 10, 10, 0.56);
  position: relative;
  transition: color 0.25s ease;
}
.h3-tx-tab:hover { color: rgba(10, 10, 10, 0.6); }
.h3-tx-tab[aria-selected="true"] { color: #0a0a0a; }
.h3-tx-tab:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 4px; border-radius: 4px; }
.h3-tx-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #ececec; overflow: hidden; border-radius: 2px; }
.h3-tx-bar b { position: absolute; inset: 0; background: #0a0a0a; transform-origin: left center; transform: scaleX(0); }
.h3-tx-tab[aria-selected="true"] .h3-tx-bar b { transform: scaleX(0.18); }
.h3-tx-tab[aria-selected="true"].is-run .h3-tx-bar b { animation: h3-tx-bar var(--h3-tx-dur, 8s) linear both; }
@keyframes h3-tx-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* -------------------------------------------------------------- panels */
/* All four panels share one grid cell, so the section is always as tall as
   the tallest panel and the page never jumps when the tab changes. A hidden
   panel keeps its place but is invisible (and out of reach of the keyboard
   and screen readers). */
.h3-tx-panels { margin-top: 24px; display: grid; }
/* a "Use cases" link moves the keyboard here (runtime.js), with no ring
   around the whole section */
.h3-tx:focus { outline: none; }
.h3-tx-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 560px;
  padding: 56px 64px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  grid-area: 1 / 1;
}
.h3-tx-panel[hidden] { display: grid; visibility: hidden; }
.h3-tx-panel.is-play { animation: h3-tx-in 0.5s ease both; }
@keyframes h3-tx-in { from { opacity: 0; } to { opacity: 1; } }
.h3-tx-panel[data-k="calls"] { background: #ecf2ee; }
.h3-tx-panel[data-k="reviews"] { background: #f6efe7; }
.h3-tx-panel[data-k="replies"] { background: linear-gradient(135deg, #eceffd 0%, #f5f1fd 100%); }
.h3-tx-panel[data-k="clinics"] { background: #f2f3f5; }

.h3-tx-copy { max-width: 430px; padding-left: 8%; }
.h3-tx-kicker { margin: 0 0 14px; font-size: 15px; line-height: 1.4; font-weight: 500; color: rgb(82, 82, 82); }
.h3-tx-head {
  margin: 0;
  font-family: "Inter Display", "Inter Display Placeholder", sans-serif;
  font-size: 36px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.h3-tx-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 440px; }
.h3-tx-cap { margin-top: 18px; font-size: 11px; line-height: 1.2; font-weight: 500; letter-spacing: 0.01em; color: rgba(10, 10, 10, 0.62); }

/* ------------------------------------------------------- shared parts */
.h3-tx-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(24, 31, 31, 0.055), 0 1px 2px rgba(24, 31, 31, 0.04), 0 16px 36px -12px rgba(24, 31, 31, 0.14);
}
.h3-tx-stars { color: #f5b400; letter-spacing: 1px; font-size: 13px; line-height: 1; }
.h3-tx-stars i { font-style: normal; color: #d9dbe0; }
.h3-tx-ic { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; }
.h3-tx-logo { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none; background: #f3f4f6; }
.h3-tx-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.h3-tx-chip.ok { background: #e7f4ec; color: #1f6b43; }
.h3-tx-chip.wait { background: #fff2df; color: #9a5b00; }
.h3-tx-chip.ai { background: #ecebff; color: #4a43c4; }
.h3-tx-chip.mute { background: #f1f2f4; color: #4b5563; }

/* --------------------------------------------- 1. calls: search -> card */
.h3-tx-calls { width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.h3-tx-search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 18px; border-radius: 999px; font-size: 16px; font-weight: 500; color: #1a1a1a; }
.h3-tx-search .h3-tx-ic { color: #6b7280; }
.h3-tx-q { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.h3-tx-prof { padding: 16px; }
.h3-tx-prof-top { display: flex; align-items: center; gap: 12px; }
.h3-tx-prof-name { margin: 0; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.h3-tx-prof-sub { margin: 4px 0 0; font-size: 12.5px; color: #6b7280; display: flex; align-items: center; gap: 6px; }
.h3-tx-open { color: #1f7a45; font-weight: 600; }
.h3-tx-acts { display: flex; gap: 8px; margin-top: 14px; }
.h3-tx-act { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border-radius: 999px; border: 1px solid #d7dbe3; font-size: 12.5px; font-weight: 600; color: #1a56c4; }
.h3-tx-act.call { background: #eef3fe; border-color: #c9d7f6; }
.h3-tx-tapring { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid rgba(26, 86, 196, 0.55); opacity: 0; pointer-events: none; }
.h3-tx-gb { padding: 14px 16px 12px; }
.h3-tx-gb-t { margin: 0; font-size: 14px; font-weight: 600; color: #1a1a1a; }
.h3-tx-gb-s { margin: 3px 0 8px; font-size: 12px; color: #6b7280; }
.h3-tx-gb-row { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-top: 1px solid #f0f1f3; font-size: 13px; color: #1f2937; border-radius: 8px; }
.h3-tx-gb-row .h3-tx-ic { color: #1f7a45; }
.h3-tx-gb-row span { flex: 1; min-width: 0; line-height: 1.25; }
.h3-tx-spark { width: 58px; height: 22px; flex: none; }
.h3-tx-spark path { fill: none; stroke: #2f9a5c; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 120; stroke-dashoffset: 0; }
.h3-tx-gb-f { margin: 8px 6px 0; font-size: 11px; color: #6b7280; }
/* sample figures (founders' call, 25 Nov 2026): a clinic's first 28 days
   with X18 against the 28 days before; tabs.js counts each number up from
   its data-from, then the "↑ n more" tags pop in */
.h3-tx-gb-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
.h3-tx-gb-pill { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 3px 9px 3px 7px; border-radius: 999px; background: #e3f3e9; color: #17603a; font-size: 11px; font-weight: 600; line-height: 1.3; }
.h3-tx-gb-pill svg { width: 12px; height: 12px; flex: none; }
/* computers and tablets: the card is a little wider than the title and the
   "First 28 days with X18" pill side by side, so the pill stays on the
   title's line (at 360px it fitted with 0.4px to spare, then dropped). On
   tablets its column keeps at least that width (iPads held upright, 810 -
   890px, squeezed it to 321px); the words beside it take the squeeze */
@media (min-width: 810px) {
  .h3-tx-calls { width: 372px; }
}
@media (min-width: 810px) and (max-width: 1199.98px) {
  .h3-tx-panel[data-k="calls"] { grid-template-columns: minmax(0, 1fr) minmax(372px, 1fr); }
}
/* wide enough for the widest tag ("↑ 1,180 more"), so the four sparklines
   line up */
.h3-tx-gb-v { display: flex; flex-direction: column; align-items: flex-end; min-width: 70px; flex: none; line-height: 1.2; }
.h3-tx-gb-n { font-size: 15px; font-weight: 700; color: #111827; font-variant-numeric: tabular-nums; }
.h3-tx-gb-d { font-style: normal; font-size: 11px; font-weight: 600; color: #1f7a45; white-space: nowrap; }

.is-play .h3-tx-q { animation: h3-tx-type 1.3s steps(11, end) 0.25s both; }
@keyframes h3-tx-type { from { max-width: 0; } to { max-width: 11ch; } }
.is-play .h3-tx-prof { animation: h3-tx-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 1.6s both; }
.is-play .h3-tx-tapring { animation: h3-tx-tap 0.9s ease-out 2.6s both; }
.is-play .h3-tx-act.call { animation: h3-tx-press 0.4s ease 2.6s both; }
.is-play .h3-tx-gb { animation: h3-tx-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) 3.2s both; }
.is-play .h3-tx-spark path { animation: h3-tx-draw 1.1s ease-out 3.6s both; }
.is-play .h3-tx-gb-row.hot { animation: h3-tx-hot 1.6s ease 4.1s both; }
.is-play .h3-tx-gb-pill { animation: h3-tx-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.5s both; }
.is-play .h3-tx-gb-d { animation: h3-tx-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(4.7s + var(--i, 0) * 0.12s); }
@keyframes h3-tx-pop { from { opacity: 0; transform: translateY(4px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes h3-tx-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes h3-tx-tap { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes h3-tx-press { 0%, 100% { transform: none; } 45% { transform: scale(0.94); } }
@keyframes h3-tx-draw { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }
@keyframes h3-tx-hot { 0% { background: transparent; } 30% { background: #e3f3e9; } 100% { background: #f1f8f3; } }
.h3-tx-gb-row.hot { background: #f1f8f3; }

/* ------------------------------------------ 2. reviews: the QR path */
.h3-tx-flow { width: 340px; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.h3-tx-who { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; }
.h3-tx-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.h3-tx-who p { margin: 0; font-size: 12px; color: #6b7280; }
.h3-tx-who p b { display: block; font-size: 15px; color: #1a1a1a; font-weight: 600; }
.h3-tx-line { width: 2px; height: 22px; background: rgba(10, 10, 10, 0.14); }
.h3-tx-note { font-size: 12.5px; color: #6b7280; margin: 6px 0; }
.h3-tx-pill { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #1a1a1a; }
.h3-tx-pill .h3-tx-ic { color: #b26a1e; }
.h3-tx-pill.g .h3-tx-ic { color: #1a56c4; }
.h3-tx-new { width: 100%; padding: 14px 16px; }
.h3-tx-new-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.h3-tx-new-top b { font-size: 13.5px; color: #1a1a1a; }
.h3-tx-new q { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: #374151; quotes: "\201C" "\201D"; }

.is-play .h3-tx-flow > * { animation: h3-tx-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.25s + var(--i, 0) * 0.42s); }

/* ------------------------------------------------- 3. replies */
.h3-tx-replies { width: 370px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.h3-tx-rv { padding: 16px; }
.h3-tx-rv-top { display: flex; align-items: center; gap: 10px; }
.h3-tx-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.h3-tx-av.a { background: #fde7d9; color: #b4531a; }
.h3-tx-av.b { background: #dfe9fb; color: #2b5cb8; }
.h3-tx-rv-name { margin: 0; font-size: 13.5px; font-weight: 600; color: #1a1a1a; }
.h3-tx-rv-top .h3-tx-stars { margin-top: 3px; }
.h3-tx-rv-top > div { flex: 1; }
.h3-tx-rv-text { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #374151; }
.h3-tx-reply { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #f6f6fb; font-size: 12.5px; line-height: 1.5; color: #1f2937; }
.h3-tx-reply small { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; color: #6b7280; }
.h3-tx-swap { position: relative; display: inline-grid; justify-items: end; }
.h3-tx-swap > * { grid-area: 1 / 1; }
.h3-tx-swap .first { opacity: 0; }
.h3-tx-rv-b .h3-tx-chip { margin-top: 10px; }

.is-play .h3-tx-rv-a { animation: h3-tx-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.is-play .h3-tx-reply { animation: h3-tx-up 0.45s ease 0.9s both; }
.is-play .h3-tx-reply em { animation: h3-tx-word 0.3s ease both; animation-delay: calc(1.2s + var(--i, 0) * 0.09s); }
.h3-tx-reply em { font-style: normal; }
@keyframes h3-tx-word { from { opacity: 0; } to { opacity: 1; } }
.is-play .h3-tx-swap .first { animation: h3-tx-first 2.4s ease 1s both; }
.is-play .h3-tx-swap .then { animation: h3-tx-then 0.4s ease 3.3s both; }
@keyframes h3-tx-first { 0% { opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes h3-tx-then { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
.is-play .h3-tx-rv-b { animation: h3-tx-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 3.9s both; }

/* ------------------------------------------------- 4. clinics */
.h3-tx-clin { width: 400px; max-width: 100%; padding: 16px 16px 8px; }
.h3-tx-clin-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.h3-tx-clin-h b { font-size: 14px; color: #1a1a1a; }
.h3-tx-clin-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid #f0f1f3; }
.h3-tx-clin-row .h3-tx-logo { width: 34px; height: 34px; border-radius: 9px; }
.h3-tx-clin-row > div { flex: 1; min-width: 0; }
.h3-tx-clin-row p { margin: 0; font-size: 13px; font-weight: 600; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-tx-clin-row small { display: block; margin-top: 3px; font-size: 11.5px; color: #6b7280; }

.is-play .h3-tx-clin { animation: h3-tx-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.is-play .h3-tx-clin-row { animation: h3-tx-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(0.5s + var(--i, 0) * 0.28s); }
.is-play .h3-tx-clin .h3-tx-swap .first { animation: h3-tx-first 2.2s ease 1.2s both; }
.is-play .h3-tx-clin .h3-tx-swap .then { animation: h3-tx-then 0.4s ease 3.3s both; }

/* Desktop: the pictures a touch larger, so they hold the panel. */
@media (min-width: 1200px) {
  .h3-tx-stage { zoom: 1.2; }
}

/* ------------------------------------------------------------ tablet */
@media (max-width: 1199.98px) {
  .h3-tx-title { font-size: 46px; }
  .h3-tx-panel { padding: 48px 40px; gap: 28px; }
  .h3-tx-copy { padding-left: 0; }
  .h3-tx-head { font-size: 30px; }
}
/* ------------------------------------------------------------- phone */
@media (max-width: 809.98px) {
  .h3-tx { padding: 50px 0 30px; }
  .h3-tx-title { font-size: 34px; margin: 0 24px 28px; text-align: center; }
  /* all four tabs fit on one line (Yaniv, 26 Nov 2026): they share the row
     and the labels shrink a little on narrow phones (scale.css sets the
     size); the row can still scroll if a fallback font runs wide */
  .h3-tx-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .h3-tx-tabs::-webkit-scrollbar { display: none; }
  .h3-tx-tab { flex: 1 1 auto; white-space: nowrap; font-size: 17px; padding-bottom: 12px; }
  .h3-tx-panels { margin-top: 20px; padding: 0 12px; }
  /* every tab's words start at the top of the panel; a shorter picture sits
     in the middle of the space left under them, instead of pushing the
     words down */
  /* the panel lines up with the cards below it: 12px from the screen
     edges, 20px corners, words 20px in */
  .h3-tx-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; min-height: 0; padding: 28px 20px 24px; border-radius: 20px; gap: 24px; }
  .h3-tx-panel > .h3-tx-stage { align-self: stretch; }
  .h3-tx-stage > [role="img"] { width: 100%; }
  .h3-tx-acts { gap: 6px; }
  .h3-tx-act { font-size: 11.5px; gap: 4px; padding: 0 4px; }
  .h3-tx-act .h3-tx-ic { width: 14px; height: 14px; }
  .h3-tx-clin-row .h3-tx-chip { font-size: 10.5px; padding: 3px 7px; }
  /* a long clinic name takes another line instead of being cut off */
  .h3-tx-clin-row p { white-space: normal; text-overflow: clip; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
  .h3-tx-gb { padding: 14px 12px 12px; }
  .h3-tx-gb-row { gap: 8px; padding: 7px 4px; }
  .h3-tx-spark { width: 38px; }
  .h3-tx-gb-v { min-width: 70px; }
  .h3-tx-copy { max-width: none; }
  .h3-tx-head { font-size: 26px; }
  .h3-tx-stage { min-height: 0; }
}

/* a very narrow screen, or a phone with its text zoomed in: the four tabs
   take two rows instead of hiding the last one */
@media (max-width: 319.98px) {
  .h3-tx-tabs { flex-wrap: wrap; row-gap: 6px; overflow-x: visible; }
  .h3-tx-tab { flex: 1 1 calc(50% - 5px); }
}

@media (prefers-reduced-motion: reduce) {
  .h3-tx-panel.is-play, .h3-tx-panel.is-play * { animation: none !important; }
  .h3-tx-tab[aria-selected="true"] .h3-tx-bar b { transform: scaleX(1); }
}

/* the reviews tab's text at checkout (Yaniv, 1 Dec 2026): a phone-style message */
.h3-tx-sms { width: 100%; padding: 12px 14px 14px; text-align: left; }
.h3-tx-sms-h { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #1a1a1a; }
.h3-tx-sms-h .h3-tx-ic { width: 14px; height: 14px; color: #16a34a; }
.h3-tx-sms-h span { margin-left: auto; font-weight: 500; color: #9ca3af; }
.h3-tx-sms-b { margin: 0; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #f1f2f4; font-size: 13px; line-height: 1.45; color: #1f2937; }
.h3-tx-sms-b u { color: #1a56c4; text-decoration: none; font-weight: 500; white-space: nowrap; }
/* the reviews tab's timing step (Yaniv, 1 Dec 2026): X18 improves when the text goes out and what it says */
.h3-tx-tune { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; }
.h3-tx-tune-ic { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; background: linear-gradient(180deg, #4fa9ff, #1d6ff2); color: #fff; }
.h3-tx-tune-ic .h3-tx-ic { width: 18px; height: 18px; }
.h3-tx-tune p { margin: 0; font-size: 12px; color: #6b7280; }
.h3-tx-tune p b { display: block; font-size: 14px; color: #1a1a1a; font-weight: 600; }
