/* VioVerse -- ACR Report Guide styles
   Both delivery methods: inline walkthrough + PiP launcher.
   Overlay animations gated behind prefers-reduced-motion. */

/* === Animations (screenshot overlays) === */
@keyframes pulseRing {
  0%   { box-shadow: 0 0 0 0 rgba(242,100,25,.45); }
  70%  { box-shadow: 0 0 0 16px rgba(242,100,25,0); }
  100% { box-shadow: 0 0 0 0 rgba(242,100,25,0); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .acr-ring { animation: none !important; }
  .acr-callout { animation: none !important; }
}

/* === Screenshot overlays === */
.acr-ring {
  position: absolute;
  border: 4px solid #f26419;
  animation: pulseRing 1.7s ease-out infinite;
  pointer-events: none;
}
.acr-callout {
  position: absolute;
  animation: bob 1.7s ease-in-out infinite;
  pointer-events: none;
}
.acr-callout-pill {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  background: #f26419;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff, 0 6px 16px rgba(242,100,25,.35);
}
/* Triangle tail -- centered (default) */
.acr-callout-pill::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 9px solid #fff;
}
.acr-callout-pill::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #f26419;
}
/* Triangle tail -- left-aligned variant */
.acr-callout-pill.acr-tail-left::before {
  left: 26px;
  transform: none;
}
.acr-callout-pill.acr-tail-left::after {
  left: 27px;
  transform: none;
}

/* === Back button === */
.acr-back {
  display: inline-block;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: rgba(30,42,53,0.5);
  cursor: pointer;
  padding: 0;
  margin-bottom: 16px;
}
.acr-back:hover { color: #f26419; }

/* === Wordmark === */
.acr-wordmark {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}
.acr-wordmark-left {
  font-size: 22px;
  margin-bottom: 14px;
}
.acr-wm-vio { color: #f26419; }
.acr-wm-verse { color: #1E2A35; }

/* === Text button (underline link style) === */
.acr-text-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  color: rgba(30,42,53,0.5);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.acr-back-simple {
  display: block;
  margin-bottom: 14px;
  text-decoration: none;
  font-size: 13px;
  color: rgba(30,42,53,0.5);
}

/* === Launcher (Method 1) === */
.acr-launcher {
  text-align: center;
  padding: 26px 0 8px;
}
.acr-launcher-h1 {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
}
.acr-launcher-sub {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(30,42,53,0.72);
  margin: 0 auto 30px;
  max-width: 38ch;
}
.acr-pip-btn {
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: #f26419;
  border: none;
  padding: 16px 32px;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(242,100,25,.32);
}
.acr-pip-btn:hover { background: #dd571a; }

/* Explainer card */
.acr-explainer-card {
  margin: 26px auto 0;
  max-width: 440px;
  text-align: left;
  background: #fff;
  border: 1px solid #f0ebe1;
  border-radius: 16px;
  padding: 17px 19px;
  display: flex;
  gap: 16px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(28,20,14,.05);
}
.acr-explainer-icon { flex: none; }
.acr-explainer-body { flex: 1; }
.acr-explainer-title {
  font-weight: 800;
  font-size: 14.5px;
  color: #1E2A35;
  margin-bottom: 4px;
}
.acr-explainer-text {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(30,42,53,0.72);
}
.acr-explainer-text strong { color: #1E2A35; }

/* PiP error */
.acr-pip-error {
  margin: 18px auto 0;
  max-width: 42ch;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(30,42,53,0.8);
  background: rgba(214,88,76,0.08);
  border: 1px solid rgba(214,88,76,0.28);
  padding: 12px 15px;
  border-radius: 12px;
  text-align: left;
}
.acr-fallback-link {
  margin-top: 26px;
}

/* === In-tab wrapper (results-state "Get your report" panel) === */
.acr-tab-wrap {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(28,20,14,.07);
  padding: 36px 44px 48px;
  min-height: 540px;
}
#acr-guide-mount .acr-tab-wrap {
  max-width: 680px;
  margin: 0 auto;
}

/* === Full walkthrough (Method 2 -- standalone, empty-state) === */
.acr-full {
  padding: 0 0 60px;
}
.acr-full-h1 {
  font-size: 28px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.acr-full-sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(30,42,53,0.72);
  margin: 0 0 22px;
  max-width: 52ch;
}

/* Browser hint (Safari/Firefox on desktop) */
.acr-browser-hint {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #F3EFE7;
  border: 1px solid rgba(31,24,19,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
}
.acr-browser-hint-icon { flex: none; margin-top: 1px; }
.acr-browser-hint-title {
  font-weight: 800;
  font-size: 14px;
  color: #1E2A35;
  margin-bottom: 3px;
}
.acr-browser-hint-text {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(30,42,53,0.72);
}
.acr-browser-hint-text strong { color: #1E2A35; }

/* Progress bar */
.acr-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 28px;
}
.acr-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: rgba(31,24,19,0.12);
  overflow: hidden;
}
.acr-progress-fill {
  height: 100%;
  background: #f26419;
  border-radius: 6px;
  transition: width 0.3s;
}
.acr-done-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(30,42,53,0.55);
  white-space: nowrap;
}

/* Part labels */
.acr-part-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f26419;
  margin-bottom: 14px;
}
.acr-part-b-intro {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(30,42,53,0.72);
}
.acr-part-b-intro strong { color: #1E2A35; }

/* === Accordion (collapsible steps) === */
.acr-step-collapsed .acr-step-expand { display: none; }
.acr-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 2px 0;
}
.acr-step-header:hover { opacity: 0.85; }
.acr-chevron {
  flex: none;
  color: rgba(30,42,53,0.4);
  transition: transform 0.2s, color 0.2s;
}
.acr-step-expanded > .acr-step-header .acr-chevron {
  color: #f26419;
  transform: rotate(180deg);
}
.acr-step-indent { padding: 7px 0 0 38px; }
.acr-step-indent-sub { padding: 5px 0 0 35px; }
.acr-step { margin-bottom: 6px; }

/* === Step cards === */
.acr-card {
  background: #fff;
  border: 1px solid #f0ebe1;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(28,20,14,.06);
  padding: 18px;
  margin-bottom: 16px;
}
.acr-step-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.acr-step-body {
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(30,42,53,0.72);
}
.acr-step-body strong { color: #1E2A35; }

/* Deep-link button */
.acr-link-btn {
  display: inline-block;
  margin-top: 12px;
  background: #f26419;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
}
.acr-link-btn:hover { background: #dd571a; }

/* Coral-tinted info note (was green-note) */
.acr-info-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(30,42,53,0.78);
  background: rgba(242,100,25,0.07);
  border: 1px solid rgba(242,100,25,0.22);
  padding: 9px 12px;
  border-radius: 10px;
}
.acr-info-note strong { color: rgba(30,42,53,0.78); }

/* Checkbox */
.acr-cb {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: rgba(95,90,84,0.18);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.acr-cb:hover { background: rgba(95,90,84,0.28); }
.acr-cb-on {
  background: #f26419;
}
.acr-cb-on:hover { background: #dd571a; }
.acr-cb-check {
  color: #fff;
}

/* === Bureau tabs === */
.acr-bureau-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.acr-bureau-tab {
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: 11px 11px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  top: 1px;
  background: #fff;
  color: rgba(30,42,53,0.55);
  border: 2px solid rgba(31,24,19,0.12);
  border-bottom: 2px solid rgba(31,24,19,0.12);
}
.acr-bureau-tab-active {
  background: #f26419;
  color: #fff;
  border-color: #f26419;
  box-shadow: 0 8px 18px rgba(242,100,25,.26);
}
.acr-tab-check {
  color: currentColor;
}

/* === Bureau panel internals === */
.acr-bureau-card { padding: 18px; }
.acr-bureau-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.acr-bureau-name {
  font-weight: 800;
  font-size: 18px;
  color: #1E2A35;
}
.acr-bureau-intro {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(30,42,53,0.72);
}
.acr-bureau-intro strong { color: #1E2A35; }
.acr-warn-text { color: #D6584C; }

/* Step number circles */
.acr-step-circle {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #1D2430;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acr-step-circle-final {
  background: #f26419;
}
.acr-substep-title {
  margin: 1px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.acr-substep-body {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(30,42,53,0.72);
}
.acr-substep-body strong { color: #1E2A35; }

/* Warning box */
.acr-warn-box {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(30,42,53,0.8);
  background: rgba(214,88,76,0.08);
  border: 1px solid rgba(214,88,76,0.28);
  padding: 9px 12px;
  border-radius: 10px;
  margin: 10px 0 4px;
}
.acr-warn-box strong { color: rgba(30,42,53,0.8); }
.acr-warn-label { color: #D6584C; }

/* "Mark done" button */
.acr-done-btn {
  margin-top: 18px;
  width: 100%;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid #f26419;
  background: #fff;
  color: #f26419;
  padding: 12px;
  border-radius: 10px;
}
.acr-done-btn:hover { background: #fff7f1; }
.acr-done-on {
  background: #f26419;
  color: #fff;
}
.acr-done-on:hover { background: #dd571a; }

/* === Mobile === */
@media (max-width: 600px) {
  .acr-launcher-h1 { font-size: 24px; }
  .acr-full-h1 { font-size: 22px; }
  .acr-tab-wrap { padding: 20px 16px 32px; border-radius: 18px; min-height: auto; }
  .acr-bureau-tabs { gap: 4px; }
  .acr-bureau-tab { padding: 9px 10px; font-size: 13px; }
  .acr-explainer-card { flex-direction: column; gap: 10px; }
}

/* Close X (relay 13): same role as the tour card's close. The launcher/full
   wrappers are the positioning context. */
.acr-launcher, .acr-full { position: relative; }
.acr-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(30, 42, 53, 0.06);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: #1E2A35;
  cursor: pointer;
}
.acr-close:hover { background: rgba(30, 42, 53, 0.12); }
