/* ThePetAdvisor guided tour — overlay, spotlight, tooltips, demo badge.
   Weekend Atlas: royal purple / gold / midnight-blue. CSP-safe: classes only. */

/* ---------- demo badge (persistent, every tour demo page) ---------- */
.tour-demo-badge {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: .55rem 1rem;
  background: linear-gradient(90deg, #2b1a4e 0%, #3d2470 50%, #2b1a4e 100%);
  border-bottom: 2px solid #c9a227;
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.tour-demo-badge .demo-pill {
  background: #c9a227;
  color: #2b1a4e;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .08em;
  padding: .18rem .55rem;
  border-radius: 999px;
}
/* push page content below the fixed badge instead of covering the header */
body.has-tour-badge { padding-top: 56px; }

/* Scoped to body.tour-active so the normal site keeps its floating button and
   newsletter bar — they only step aside while the tour is running.
   (!important wins over tpa.js's injected stylesheet, which sets display:inline-flex.) */
body.tour-active .tpa-schedule-fab { display: none !important; }
/* The sticky newsletter capture bar is first-screen clutter competing with
   the tour's own "create your free account" CTA — off while touring. */
body.tour-active .email-bar { display: none !important; }
.tour-demo-exit {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .55);
  color: #fff;
  border-radius: 999px;
  padding: .28rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}
.tour-demo-exit:hover { background: rgba(255, 255, 255, .14); }
body.has-tour-badge { padding-top: 2.6rem; }

/* ---------- role picker cards (tour landing) ---------- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin: 1.6rem 0;
}
.role-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(160deg, #241245 0%, #171032 100%);
  border: 1px solid #4a3670;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.role-card:hover {
  transform: translateY(-3px);
  border-color: #c9a227;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
  text-decoration: none;
}
.role-card h3 {
  color: #fff;
  margin: 0 0 .4rem;
  font-size: 1.25rem;
}
.role-card h3 .role-ico { margin-right: .5rem; }
.role-card p { color: #cfc6e4; margin: .3rem 0; font-size: .95rem; }
.role-card .role-go {
  display: inline-block;
  margin-top: .8rem;
  color: #f3d47c;
  font-weight: 700;
}
.role-card:hover .role-go { text-decoration: underline; }

/* ---------- tour overlay + spotlight ---------- */
.tour-veil {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(12, 8, 26, .72);
  pointer-events: none;
}
.tour-spot {
  position: fixed;
  z-index: 1101;
  border: 3px solid #c9a227;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(12, 8, 26, .72), 0 0 34px rgba(201, 162, 39, .55);
  pointer-events: none;
  transition: top .25s ease, left .25s ease, width .25s ease, height .25s ease;
}
.tour-tip {
  position: fixed;
  z-index: 1102;
  max-width: 340px;
  background: #1e1440;
  color: #f4f1ff;
  border: 1px solid #c9a227;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.tour-tip .tour-step {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: #f3d47c;
  margin: 0 0 .35rem;
}
.tour-tip h3 { color: #fff; margin: 0 0 .45rem; font-size: 1.05rem; }
.tour-tip p { margin: .35rem 0; font-size: .92rem; color: #d9d2f0; line-height: 1.5; }
.tour-tip p strong { color: #fff; }
.tour-tip-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
}
.tour-tip-nav .spacer { flex: 1; }
.tour-dots { display: flex; gap: .35rem; }
.tour-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5a4a86;
}
.tour-dots span.on { background: #c9a227; }
.tour-btn {
  background: #c9a227;
  color: #241245;
  border: none;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
}
.tour-btn:hover { background: #ddb84a; }
.tour-btn-ghost {
  background: transparent;
  color: #cfc6e4;
  border: 1px solid #5a4a86;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
}
.tour-btn-ghost:hover { border-color: #c9a227; color: #fff; }
.tour-exit-link {
  display: block;
  margin-top: .7rem;
  background: none;
  border: none;
  color: #9a8fc4;
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
}
.tour-exit-link:hover { color: #fff; text-decoration: underline; }

/* ---------- demo dog cards ---------- */
.demo-dog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.demo-dog {
  background: linear-gradient(160deg, #241245 0%, #171032 100%);
  border: 1px solid #4a3670;
  border-radius: 14px;
  padding: 1.2rem;
  color: #f4f1ff;
}
.demo-dog h3 { color: #fff; margin: 0 0 .3rem; }
.demo-dog p { color: #cfc6e4; margin: .25rem 0; font-size: .92rem; }
.demo-tag {
  display: inline-block;
  background: #c9a227;
  color: #2b1a4e;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .07em;
  padding: .15rem .5rem;
  border-radius: 999px;
  vertical-align: middle;
}
.demo-note {
  background: rgba(201, 162, 39, .12);
  border: 1px solid rgba(201, 162, 39, .55);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  color: #3d2f14;
  font-size: .9rem;
  margin: 1.2rem 0;
}
.demo-note strong { color: #7a5f16; }
.demo-note .demo-tag { background: #c9a227; color: #241245; }

/* ---------- roster tiles: the genuine client-dogs component styling (copied verbatim from account/client-dogs/) ---------- */
.tour-roster { display: grid; gap: 0.9rem; }
.roster-tile {
  background: linear-gradient(160deg, #2b1a4e 0%, #1a0f30 100%);
  border: 1px solid rgba(227,174,41,0.30);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #f2ecff;
}
.roster-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.55rem; }
.roster-pill {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.28rem 0.7rem; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,0.12); color: #e8defc; border: 1px solid rgba(255,255,255,0.16);
}
.roster-pill-gold { background: #E3AE29; border-color: #E3AE29; color: #2a1a4a; }
.roster-pill-green { background: #14532d; border-color: #14532d; color: #fff; }
.roster-name { margin: 0; font-size: 1.25rem; color: #fff; }
.roster-breed { margin: 0.1rem 0 0; color: #E3AE29; font-weight: 600; font-size: 0.95rem; }
.roster-sub { margin: 0.35rem 0 0; color: #b9a9dd; font-size: 0.85rem; }
.roster-line { margin: 0.55rem 0 0; font-size: 0.88rem; color: #cfc3e8; }
.roster-kicker { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #b8abd9; margin-right: 0.35rem; }
.roster-show { color: #f5d67b; font-weight: 600; }

/* ---------- tour day tabs (reuse tp- look, tour-scoped) ---------- */
.tour-days {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1rem 0 1.2rem;
}
.tour-day {
  background: #241845;
  color: #cfc6e4;
  border: 1px solid #4a3670;
  border-radius: 999px;
  padding: .45rem 1rem;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.tour-day[aria-selected="true"] {
  background: #c9a227;
  border-color: #c9a227;
  color: #241245;
}

/* ---------- plan cards on dark demo pages ----------
   Same class names as the real Today's Plan (tp-*) so the demo shows the
   genuine component styling. */
.tour-plan { display: grid; gap: 1rem; margin: 0 0 1.5rem; }
.tour-plan .tp-card, .tp-card {
  background: linear-gradient(160deg, #2a1650 0%, #1a1038 100%);
  border: 1px solid #4a3670;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  color: #f4f1ff;
}
.tp-card .tp-dogline { font-size: 1.02rem; margin: 0 0 .5rem; color: #fff; }
.tp-card .tp-breed-inline { color: #b9aee0; }
.tp-card .tp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
  margin: .6rem 0;
}
.tp-card .tp-cell { background: rgba(255, 255, 255, .05); border-radius: 10px; padding: .55rem .7rem; }
.tp-card .tp-cell .k { font-size: .7rem; letter-spacing: .08em; color: #9a8fc4; font-weight: 700; }
.tp-card .tp-cell .v { font-size: 1.05rem; font-weight: 700; color: #fff; }
.tp-card .tp-cell .v.gold { color: #f3d47c; }
.tp-card .tp-tag {
  display: inline-block;
  background: #c9a227;
  color: #241245;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: .2rem .65rem;
  margin-bottom: .5rem;
}
.tp-card .tp-tag.quiet { background: rgba(255, 255, 255, .12); color: #cfc6e4; }
.tp-card .tp-judge { font-size: .9rem; color: #d9d2f0; margin: .4rem 0 0; line-height: 1.5; }
.tp-card .tp-judge strong { color: #fff; }
.tp-card .tp-src { font-size: .78rem; color: #9a8fc4; margin-top: .6rem; }

/* ---------- invoice demo (real cb-* classes) ---------- */
.tour-invoice-lines { margin: .8rem 0 0; padding: 0; list-style: none; }
.tour-invoice-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .14);
  color: #d9d2f0;
  font-size: .92rem;
}
.tour-invoice-lines li.total {
  border-bottom: none;
  font-weight: 800;
  color: #fff;
  font-size: 1.02rem;
}
.cb-inv-card {
  background: linear-gradient(160deg, #2a1650 0%, #1a1038 100%);
  border: 1px solid #4a3670;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  color: #f4f1ff;
  margin-bottom: 1rem;
}
.cb-inv-head { font-size: 1.02rem; color: #fff; margin-bottom: .3rem; }
.cb-inv-total { font-size: 1.35rem; font-weight: 800; color: #f3d47c; margin: .5rem 0; }
.cb-status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}

/* ---------- tour landing helpers ---------- */
.tour-steps { counter-reset: tourstep; list-style: none; padding: 0; margin: 1rem 0; }
.tour-steps li {
  counter-increment: tourstep;
  position: relative;
  padding: .6rem 0 .6rem 3rem;
  color: #33294d;
}
.tour-steps li::before {
  content: counter(tourstep);
  position: absolute;
  left: 0;
  top: .55rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #c9a227;
  color: #241245;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tour-hero-dogs {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
@media (max-width: 640px) {
  .tour-tip { max-width: calc(100vw - 2rem); }
  .tour-demo-badge { font-size: .75rem; }
}
