/* Shared UI kit v3 for all sections. Workers reuse these classes instead of inventing new card styles. */

/* text */
.tb-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font: 600 12.5px/1 var(--font); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.tb-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2);
  box-shadow: 0 0 0 4px rgba(27, 23, 19, .06); }
body.no-kickers .tb-kicker { display: none; }  /* G3: prototype toggle, headings must speak for themselves */
.tb-h2 { font: var(--h-weight) clamp(32px, 4vw, 56px)/1.04 var(--h-font); letter-spacing: var(--h-track);
  color: var(--ink); margin: 0; text-wrap: balance; }
.tb-h3 { font: var(--h3-weight) 21px/1.2 var(--h3-font); letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.tb-lead { font: 400 clamp(17px, 1.35vw, 20px)/1.5 var(--font); color: var(--ink-2); margin: 0; text-wrap: pretty; }
.tb-body { font: 400 15.5px/1.5 var(--font); color: var(--ink-2); margin: 0; }
.tb-small { font: 400 13px/1.45 var(--font); color: var(--muted); }
.tb-grad-text { background: linear-gradient(135deg, #C7795E 0%, #B9688F 55%, #8A74C9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons (G18). Black CTA like the booking button of the real widget v8: soft top highlight, a pastel ring that follows the
   pointer and a slight lift on hover. Motion style comes from the prototype bar: body[data-btn="1|2|3|4"]
   1 widget (default) · 2 Relovisa · 3 shiny · 4 flame. Our colours only. */
.tb-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 15.5px/1 var(--font);
  letter-spacing: -0.01em; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease), border-radius .2s; }
.tb-btn:active { transform: scale(.98); }
.tb-btn svg { transition: transform .26s cubic-bezier(.23, 1, .32, 1); }
.tb-btn-cta { background: var(--cta-bg); color: var(--cta-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 2px 4px rgba(27, 23, 19, .12), 0 8px 20px -12px rgba(27, 23, 19, .45); }
.tb-btn-cta:hover { background: #26201B; }
.tb-btn-ghost { background: var(--sheet); border-color: var(--line-2); color: var(--ink); }
.tb-btn-ghost:hover { border-color: var(--ink); }
.tb-btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* 1 · widget v8: pointer-tracked pastel ring (js/shell.js sets --px/--py), warm glow, 1px lift */
.tb-btn-cta::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: radial-gradient(60px circle at var(--px, 50%) var(--py, 50%), #FFD1B8 0%, #F6C4DD 45%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; opacity: 0; transition: opacity .25s; }
@media (hover: hover) and (pointer: fine) {
  body:not([data-btn]) .tb-btn-cta:hover, body[data-btn="1"] .tb-btn-cta:hover { transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 0 18px rgba(255, 201, 181, .35), 0 10px 24px -12px rgba(27, 23, 19, .5); }
  body:not([data-btn]) .tb-btn-cta:hover::before, body[data-btn="1"] .tb-btn-cta:hover::before { opacity: .9; }
  .tb-btn:hover svg { transform: translateX(3px); }
}

/* 2 · Relovisa: asymmetric corner, calm darkening, arrow glides */
body[data-btn="2"] .tb-btn { border-radius: 12px 12px 12px 4px; }
body[data-btn="2"] .tb-btn-cta::before { display: none; }
body[data-btn="2"] .tb-btn-cta:hover { background: #000; box-shadow: 0 10px 24px -12px rgba(27, 23, 19, .55); }

/* 3 · shiny: a soft light passes over the button every few seconds and once on hover */
body[data-btn="3"] .tb-btn-cta { overflow: hidden; }
body[data-btn="3"] .tb-btn-cta::before { inset: 0; padding: 0; opacity: 1; -webkit-mask: none; mask: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 228, 214, .28) 46%, rgba(246, 210, 232, .34) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0; animation: tb-shine 5.5s var(--ease) 1.2s infinite; }
body[data-btn="3"] .tb-btn-cta:hover::before { animation: tb-shine 1s var(--ease) 1; }
@keyframes tb-shine { 0% { background-position: 160% 0; } 22%, 100% { background-position: -60% 0; } }

/* 4 · flame: a warm pastel glow under the button that breathes on hover */
body[data-btn="4"] .tb-btn-cta::before { inset: 6px 10% -6px; padding: 0; z-index: -1; -webkit-mask: none; mask: none; border-radius: inherit;
  background: linear-gradient(90deg, #FFC9B5, #F9C6DC, #D6CCFA, #FFC9B5); background-size: 300% 100%; filter: blur(12px);
  opacity: .35; transition: opacity .3s, inset .3s var(--ease); }
body[data-btn="4"] .tb-btn-cta:hover::before { opacity: .95; inset: 4px 4% -9px; animation: tb-flame 2.4s linear infinite; }
body[data-btn="4"] .tb-btn-cta:hover { transform: translateY(-1px); }
@keyframes tb-flame { to { background-position: 300% 0; } }
@media (prefers-reduced-motion: reduce) { .tb-btn-cta::before { animation: none !important; } }

/* G16: light hover motion for cards. Lift 3px + softer, larger shadow; touch devices get nothing. */
.tb-hov { transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tb-hov:hover, .tb-card:hover, .tb-outcome:hover { transform: translateY(-3px);
    box-shadow: 0 1px 2px rgba(27, 23, 19, .05), 0 22px 44px -18px rgba(60, 30, 10, .24); }
}

/* surfaces */
.tb-card { background: var(--sheet); border-radius: var(--r-card); box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease); }  /* G8: no outline, shadow only */
.tb-panel { background: var(--soft); border-radius: 24px; }
.tb-wash { background: var(--wash); }
.tb-wash-soft { background: var(--wash-soft); }

/* avatars and logos */
.tb-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft);
  box-shadow: 0 0 0 2px #fff; }
.tb-avatar.sm { width: 26px; height: 26px; }
.tb-avatar.lg { width: 48px; height: 48px; }
.tb-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tb-logo img, .tb-logo svg { width: 20px; height: 20px; }
.tb-logo.sm { width: 26px; height: 26px; border-radius: 8px; }
.tb-logo.sm img, .tb-logo.sm svg { width: 15px; height: 15px; }
.tb-logo.dark { background: #1B1713; box-shadow: none; }
.tb-logo.dark img { filter: invert(1); }

/* chat bubbles (same language as the real widget) */
.tb-bubble { max-width: 88%; padding: 11px 15px; border-radius: 18px; font: 400 15px/1.45 var(--font); }
.tb-bubble.user { background: #1B1713; color: #fff; border-bottom-right-radius: 6px; margin-left: auto; }
.tb-bubble.agent { background: var(--soft); color: var(--ink); border-bottom-left-radius: 6px; }
.tb-bubble.ai { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); border-bottom-left-radius: 6px; }

/* tags / status pills */
.tb-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--r-pill);
  font: 600 12.5px/1 var(--font); white-space: nowrap; }
.tb-tag img { width: 13px; height: 13px; }
.tb-tag.ai { background: var(--tag-ai-bg); color: var(--tag-ai-ink); }
.tb-tag.ai img { filter: invert(1); }
.tb-tag.ok { background: var(--tag-ok-bg); color: var(--tag-ok-ink); }
.tb-tag.warm { background: var(--tag-warm-bg); color: var(--tag-warm-ink); }
.tb-tag.grey { background: var(--tag-grey-bg); color: var(--tag-grey-ink); }
.tb-tag.grad { background: var(--brand-grad); color: var(--ink); }
.tb-dot-live { width: 8px; height: 8px; border-radius: 50%; background: #4FB37E; box-shadow: 0 0 0 3px rgba(79, 179, 126, .16); }

/* calm checks (G1, G19): just a tick, no circle and no outline, sitting on the text baseline. */
.tb-check { display: inline-grid; place-items: center; width: 16px; height: 1.2em; flex: none; vertical-align: -0.2em;
  background: none; box-shadow: none; color: var(--check-ink); }
.tb-check::before { content: ""; width: 10px; height: 5.5px; margin-top: -3px; border: solid currentColor; border-width: 0 0 1.7px 1.7px;
  transform: rotate(-45deg); }
.tb-check.soft { background: none; color: #2E6B48; }
.tb-check.none { color: var(--faint); }
.tb-check.none::before { width: 9px; height: 0; margin: 0; border-width: 0 0 1.6px 0; transform: none; }
.tb-outline { box-shadow: inset 0 0 0 1px var(--accent-line); }

/* pastel square (hero V4 language): a small tile with a soft gradient instead of an icon */
.tb-sq { width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--pastel-peach); }
.tb-sq.pink { background: var(--pastel-pink); } .tb-sq.lilac { background: var(--pastel-lilac); }
.tb-sq.mint { background: var(--pastel-mint); } .tb-sq.sky { background: var(--pastel-sky); }
.tb-sq.sm { width: 26px; height: 26px; border-radius: 8px; }

/* outcome card: the familiar "result" card used in hero, owner, AI sections */
.tb-outcome { transition: transform .22s var(--ease), box-shadow .22s var(--ease); display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; min-width: 260px; }
.tb-outcome .tb-outcome-t { font: 650 15px/1.3 var(--font); color: var(--ink); letter-spacing: -0.01em; }
.tb-outcome .tb-outcome-s { font: 400 13px/1.4 var(--font); color: var(--muted); margin-top: 3px; }

/* section variant chrome (prototype only) */
.tbv-chrome { position: absolute; top: 18px; right: 20px; z-index: 30; display: inline-flex; align-items: center; gap: 2px;
  padding: 4px 4px 4px 12px; border-radius: var(--r-pill); background: rgba(27, 23, 19, .88); color: #fff;
  font: 600 11.5px/1 var(--font); letter-spacing: .04em; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.tbv-chrome span { opacity: .7; margin-right: 6px; text-transform: uppercase; }
.tbv-chrome button { border: 0; background: transparent; color: #fff; height: 26px; min-width: 26px; padding: 0 9px;
  border-radius: var(--r-pill); font: 600 12px/1 var(--font); cursor: pointer; }
.tbv-chrome button[aria-pressed="true"] { background: #fff; color: #1B1713; }
body.clean .tbv-chrome { display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
