/* Customer review flow: one step per screen + sticky action bar */
.flow-body { padding-bottom: 0; }
.flow { padding-bottom: 24px; }
.biz.compact { padding: 26px 0 14px; }
.biz.compact .logo-wide { padding: 10px 18px; margin-bottom: 4px; }
.biz.compact .logo-wide img { max-height: 76px; max-width: 200px; }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-between h2 { margin: 0; }

/* stepper */
.stepper { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--border); transition: border-color .4s, color .4s; }
.stepper li span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; background: var(--muted-bg); color: var(--muted); transition: all .3s; }
.stepper li.on { border-color: var(--brand); color: var(--fg); }
.stepper li.on span { background: var(--brand); color: #fff; }
.stepper li.done span { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }

/* screens */
.screen { display: none; }
.screen.on { display: block; animation: slideIn .38s cubic-bezier(.2,.8,.2,1) both; }
.screen.on.backward { animation-name: slideBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes slideBack { from { opacity: 0; transform: translateX(-24px); } }
.screen .card + .card { margin-top: 12px; }

.stars svg { fill: currentColor; stroke: none; }

/* chips with emoji + tick */
.chip { padding: 9px 13px; gap: 7px; }
.chip .emo { font-style: normal; font-size: 1rem; line-height: 1; }
.chip .tick { display: none; width: 14px; height: 14px; }
.chip.on .tick { display: block; }
.chip.on { transform: translateY(-1px); }
.chip:active { transform: scale(.96); }

.link-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 4px; color: var(--brand); font-weight: 600; font-size: .88rem; cursor: pointer; }
.link-btn:disabled { opacity: .5; }
.center-btn { display: flex; margin: 10px auto 0; }
.count { text-align: right; margin-top: -4px; }

/* typing caret while AI text streams into the textarea */
.typing { caret-color: var(--brand); }

/* action bar: sits right under the content; sticks to the screen bottom when content is long */
.cta-bar {
  position: sticky; bottom: 0; z-index: 30; margin: 12px -16px 0;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent);
}
.cta-inner { display: flex; gap: 10px; align-items: center; }
.cta-inner .btn { margin: 0; flex: 1; }
.cta-inner .back { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.btn:disabled { opacity: 1; cursor: not-allowed; background: var(--muted-bg); color: var(--muted); box-shadow: none; border: 1px dashed var(--border); }
.btn:disabled.shimmer::after { display: none; }
.google-btn { background: #fff; color: #1f1f1f; border: 1px solid var(--border); box-shadow: var(--shadow); }
.google-btn:hover { filter: none; background: #f8f8f8; }
.btn.google-solid { background: var(--brand); }

/* success screen */
.success { text-align: center; padding-top: 28px; }
.burst { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--brand) 16%, transparent), 0 10px 30px -8px var(--brand); animation: pop2 .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes pop2 { from { transform: scale(.3); opacity: 0; } }
.success h2 { font-size: 1.4rem; }
.mini-steps { list-style: none; padding: 0; margin: 18px 0 18px; text-align: left; display: grid; gap: 8px; }
.mini-steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--muted-bg); font-size: .9rem; }
.mini-steps li > b:first-child { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--card); font-size: .75rem; flex: none; }
.star-i { color: var(--star); }
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
@media (prefers-reduced-motion: reduce) { .screen.on, .burst { animation: none; } }

.biz.compact .badge { margin-top: 10px; }
.trust-row { list-style: none; padding: 0; margin: 14px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .8rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { color: var(--brand); }
.biz.compact { display: flex; flex-direction: column; align-items: center; }

/* many review languages: wrapping pills instead of a segmented bar */
.lang-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-pills button { border: 1px solid var(--border); background: var(--card); color: var(--fg); border-radius: 999px; padding: 7px 13px; font-size: .86rem; font-weight: 500; cursor: pointer; }
.lang-pills button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.option span:last-child { unicode-bidi: plaintext; }

/* footer heart */
.footer .heart { display: inline-flex; vertical-align: -2px; margin: 0 2px; color: #f43f5e; animation: beat 1.6s ease-in-out infinite; }
.footer b { color: var(--fg); font-weight: 600; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } }

/* "Powered by" promo */
.promo-link {
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 18px auto 0; padding: 10px 16px;
  border: 1px dashed var(--border); border-radius: 14px; background: transparent; color: var(--muted);
  font-size: .78rem; cursor: pointer; transition: border-color .15s, background .15s;
}
.promo-link:hover { border-color: var(--brand); background: var(--card); }
.promo-link b { color: var(--fg); }
.promo-cta { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; }

/* bottom sheet */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.45); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.sheet { position: relative; width: 100%; max-width: 480px; background: var(--card); border-radius: 22px 22px 0 0; padding: 26px 18px calc(22px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .32s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 560px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; } }
.sheet h2 { font-size: 1.2rem; letter-spacing: -.02em; margin: 10px 0 6px; }
.sheet .btn { margin-top: 6px; }
.sheet-close { position: absolute; top: 12px; right: 12px; font-size: .9rem; }
.eyebrow-sm { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 99px; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }

/* ================================================================
   Responsive polish (phones + tablets)
   ================================================================ */
@media (max-width: 420px) {
  .wrap { padding: 0 14px 24px; }
  .biz.compact { padding: 18px 0 10px; }
  .biz.compact .logo-wide img { max-height: 64px; max-width: 170px; }
  .card { padding: 16px; border-radius: 16px; }
  .stars { gap: 2px; }
  .stars svg { width: 44px; height: 44px; }
  .star-label { height: 20px; margin-top: 4px; }
  .trust-row { gap: 4px 10px; font-size: .74rem; }
  .chips { gap: 6px; }
  .chip { padding: 8px 11px; font-size: .84rem; }
  .seg button { font-size: .8rem; padding: 8px 4px; }
  .cta-bar { margin: 10px -14px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .cta-inner .back { width: 50px; height: 50px; }
  .option { padding: 12px; font-size: .92rem; }
  .theme-toggle.floating { top: 10px; right: 10px; width: 34px; height: 34px; }
}
@media (max-width: 340px) {
  .stars svg { width: 38px; height: 38px; }
  .stepper li { font-size: .7rem; gap: 5px; }
}
/* tablets / desktop: a little more breathing room */
@media (min-width: 600px) {
  .flow { padding-top: 12px; }
  .wrap.flow { max-width: 520px; }
}

/* lead form: hint above each pair, pairs side by side */
.pair-hint { margin: 6px 0 6px; font-size: .8rem; color: var(--muted); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair input { min-width: 0; }
@media (max-width: 340px) { .pair { grid-template-columns: 1fr; gap: 0; } }
