/* ============================================================================
 * site-improver — interactive DEMO REVIEW overlay (styles)
 * Loaded ONLY on a preview opened with ?review=1 (see overlay.js gate).
 * Scoped under .siro-overlay-root so it can never leak into the client's site.
 * Desktop-first; the whole overlay hides under 1024px (mobile untouched).
 * ==========================================================================*/

.siro-overlay-root,
.siro-overlay-root * {
  box-sizing: border-box;
}

.siro-overlay-root {
  --siro-accent: #2f6bff;
  --siro-accent-ink: #ffffff;
  --siro-ink: #0f172a;
  --siro-muted: #64748b;
  --siro-surface: #ffffff;
  --siro-border: rgba(15, 23, 42, 0.10);
  --siro-shadow: 0 12px 40px -12px rgba(15, 23, 42, 0.35);
  --siro-radius: 14px;
  position: absolute;
  inset: 0;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--siro-ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Contextual pins ──────────────────────────────────────────────────────── */
.siro-pin {
  position: absolute;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;      /* center on its anchor point */
  border-radius: 50%;
  background: var(--siro-accent);
  color: var(--siro-accent-ink);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px -2px rgba(47, 107, 255, 0.6);
  pointer-events: auto;
  transition: transform 0.12s ease;
  animation: siro-pin-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.siro-pin:hover,
.siro-pin.is-open {
  transform: scale(1.15);
  z-index: 2;
}
.siro-pin::after {                /* soft pulse ring */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--siro-accent);
  opacity: 0.45;
  animation: siro-pulse 2.4s ease-out infinite;
}
@keyframes siro-pulse {
  0%   { transform: scale(0.85); opacity: 0.5; }
  70%  { transform: scale(1.5);  opacity: 0; }
  100% { opacity: 0; }
}
@keyframes siro-pin-in {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Stock-team placeholder marker ────────────────────────────────────────── */
/* A distinct "vision" accent (growth green) so the honest "this can be your team"
   callout reads as an opportunity to personalize, not a defect. Layers on top of
   the always-visible static ribbon baked into the placeholder card itself. */
.siro-pin--team-placeholder {
  background: #16a34a;
  box-shadow: 0 4px 14px -2px rgba(22, 163, 74, 0.6);
}
.siro-pin--team-placeholder::after { border-color: #16a34a; }
.siro-note--team-placeholder .siro-note-kicker { color: #16a34a; }

/* ── Note bubble (opens from a pin) ───────────────────────────────────────── */
.siro-note {
  position: absolute;
  width: 260px;
  background: var(--siro-surface);
  border: 1px solid var(--siro-border);
  border-radius: var(--siro-radius);
  box-shadow: var(--siro-shadow);
  padding: 14px 14px 12px;
  pointer-events: auto;
  animation: siro-pin-in 0.18s ease both;
}
.siro-note-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--siro-accent);
  margin: 0 0 4px;
}
.siro-note-body {
  margin: 0 0 10px;
  color: var(--siro-ink);
}
.siro-note-actions {
  display: flex;
  gap: 8px;
}
.siro-note-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--siro-muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}
.siro-note-close:hover { color: var(--siro-ink); }

/* ── Corner panel ─────────────────────────────────────────────────────────── */
.siro-panel {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--siro-surface);
  border: 1px solid var(--siro-border);
  border-radius: 18px;
  box-shadow: var(--siro-shadow);
  pointer-events: auto;
  overflow: hidden;
  animation: siro-panel-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes siro-panel-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.siro-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--siro-accent), #6f8bff);
  color: #fff;
}
.siro-panel-head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  flex: 1;
}
.siro-panel-head p {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}
.siro-panel-collapse {
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.siro-panel-collapse:hover { background: rgba(255, 255, 255, 0.32); }
.siro-panel-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 9px;
}
.siro-panel-hint {
  margin: 0 0 2px;
  font-size: 12.5px;
  color: var(--siro-muted);
}

/* Buttons */
.siro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--siro-border);
  background: #f8fafc;
  color: var(--siro-ink);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
.siro-btn:hover { background: #eef2ff; border-color: rgba(47, 107, 255, 0.4); }
.siro-btn:active { transform: translateY(1px); }
.siro-btn-primary {
  background: var(--siro-accent);
  color: var(--siro-accent-ink);
  border-color: var(--siro-accent);
}
.siro-btn-primary:hover { background: #2357db; border-color: #2357db; }
.siro-btn-sm { width: auto; padding: 7px 10px; font-size: 13px; }

/* Suggest-a-change form */
.siro-form { display: grid; gap: 8px; }
.siro-form textarea {
  width: 100%;
  min-height: 74px;
  resize: vertical;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--siro-border);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--siro-ink);
  background: #fff;
}
.siro-form textarea:focus {
  outline: none;
  border-color: var(--siro-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}
.siro-form-target {
  font-size: 12px;
  color: var(--siro-muted);
  background: #f1f5f9;
  border-radius: 8px;
  padding: 5px 8px;
}
.siro-form-row { display: flex; gap: 8px; }

/* Thank-you / confirmation state */
.siro-done {
  text-align: center;
  padding: 8px 4px 4px;
}
.siro-done-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.siro-done h4 { margin: 0 0 4px; font-size: 15px; }
.siro-done p { margin: 0; font-size: 13px; color: var(--siro-muted); }

/* Collapsed state → floating launcher button */
.siro-panel.is-collapsed .siro-panel-body { display: none; }
.siro-panel.is-collapsed { width: auto; }
.siro-panel.is-collapsed .siro-panel-head p { display: none; }

.siro-hidden { display: none !important; }

/* Mobile: hide the whole overlay (desktop-first per operator). The underlying
   client site is untouched. */
@media (max-width: 1023px) {
  .siro-overlay-root { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .siro-pin, .siro-note, .siro-panel { animation: none !important; }
  .siro-pin::after { animation: none !important; opacity: 0; }
}

/* ── Conversion CTA button + modal (A/B copy via overlay.js) ─────────────── */
.siro-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2147483000;
  background: var(--siro-accent);
  color: var(--siro-accent-ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  font: 600 16px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  box-shadow: var(--siro-shadow), 0 0 0 4px rgba(47, 107, 255, 0.18);
  cursor: pointer;
  animation: siro-cta-in 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.8s both;
}
.siro-cta:hover { filter: brightness(1.06); transform: translateX(-50%) translateY(-1px); }
@keyframes siro-cta-in {
  from { opacity: 0; transform: translateX(-50%) translateY(16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.siro-modal-wrap { position: fixed; inset: 0; z-index: 2147483400; display: flex; align-items: center; justify-content: center; }
.siro-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(3px); }
.siro-modal {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  background: var(--siro-surface);
  color: var(--siro-ink);
  border-radius: var(--siro-radius);
  box-shadow: var(--siro-shadow);
  padding: 26px 24px 22px;
  text-align: center;
  animation: siro-cta-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}
.siro-modal .siro-note-close { position: absolute; top: 10px; right: 12px; }
.siro-modal-head { margin: 2px 0 6px; font: 700 22px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.siro-modal-sub { margin: 0 0 14px; color: var(--siro-muted); font-size: 14.5px; line-height: 1.5; }
.siro-modal-note {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid var(--siro-border);
  border-radius: 10px;
  padding: 10px 12px;
  font: 400 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-bottom: 12px;
  box-sizing: border-box;
}
.siro-modal-confirm { width: 100%; justify-content: center; font-size: 15px; padding: 12px 16px; }
.siro-modal-meetlink { display: inline-block; margin-top: 10px; color: var(--siro-muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.siro-modal-meetlink:hover { color: var(--siro-ink); }
.siro-modal .siro-done-badge { margin: 0 auto 10px; }
@media (max-width: 640px) {
  .siro-cta { bottom: 14px; padding: 12px 20px; font-size: 15px; width: max-content; max-width: calc(100vw - 24px); }
}
