/* =============================================================
   tour.css — interactive product tour /tour
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy:       #10325b;
  --navy-dark:  #0d2540;
  --navy-light: #1a4070;
  --orange:     #e07b1a;
  --orange-lt:  #f59300;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --green:      #16a34a;
  --blue:       #2563eb;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  22px;
  --t:          0.22s ease;
  --grid-bg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cdefs%3E%3Cpattern id='g' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(255%2C255%2C255%2C0.035)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23g)'/%3E%3C/svg%3E");
}

/* ── Hero ── */
.tour-hero {
  background-color: var(--navy-dark);
  background-image: var(--grid-bg);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tour-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0; right: 0;
  height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.tour-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.tour-hero-eyebrow svg { width: 13px; height: 13px; color: var(--orange); }
.tour-hero-h1 {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.tour-hero-h1 em { font-style: normal; color: var(--orange-lt); }
.tour-hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.62);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 36px;
}
.tour-hero-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tour-hero-step-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}
.tour-hero-step-chip b {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--orange-lt);
}
.tour-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}
.btn-primary-tour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--orange);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--t), transform var(--t);
  border: none;
  cursor: pointer;
}
.btn-primary-tour:hover { background: var(--orange-lt); transform: translateY(-1px); }
.btn-primary-tour svg { width: 15px; height: 15px; }
.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: transparent;
  color: white;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: border-color var(--t), background var(--t);
}
.btn-ghost-white:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.07); }
.btn-ghost-white svg { width: 14px; height: 14px; }
.tour-hero-note { font-size: 12.5px; color: rgba(255,255,255,0.35); }

/* ── Tour wrapper ── */
.tour-body {
  background: var(--off-white);
  padding: 48px 0 96px;
}
.tour-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Main interactive block ── */
.tour-block {
  display: flex;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.09), 0 2px 8px rgba(0,0,0,0.04);
}

/* ── Left: step tabs ── */
.tour-tabs {
  width: 252px;
  flex-shrink: 0;
  border-right: 1px solid var(--gray-200);
  background: var(--white);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}
.tour-tabs-label {
  padding: 18px 20px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.tour-tab {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  width: 100%;
  border-left: 3px solid transparent;
  transition: background var(--t), border-color var(--t);
  position: relative;
}
.tour-tab:hover:not(.is-active) { background: var(--gray-100); }
.tour-tab.is-active {
  background: rgba(16,50,91,0.05);
  border-left-color: var(--navy);
}
.tour-tab-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gray-100);
  color: var(--gray-400);
  transition: background var(--t), color var(--t);
}
.tour-tab-icon svg { width: 15px; height: 15px; }
.tour-tab.is-active .tour-tab-icon { background: var(--navy); color: white; }
.tour-tab-copy { flex: 1; min-width: 0; }
.tour-tab-num {
  font-size: 10px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
  transition: color var(--t);
}
.tour-tab.is-active .tour-tab-num { color: var(--navy); }
.tour-tab-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
  line-height: 1.3;
  transition: color var(--t);
}
.tour-tab.is-active .tour-tab-title { color: var(--navy); }
/* Progress bar at bottom of each tab */
.tour-tab-bar {
  position: absolute;
  bottom: 0; left: 3px; right: 0;
  height: 2px;
  background: var(--gray-100);
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--t);
}
.tour-tab.is-active .tour-tab-bar { opacity: 1; }
.tour-tab-fill {
  height: 100%;
  background: var(--orange);
  width: 0%;
}
.tour-tab-fill.running {
  transition: width 6s linear;
  width: 100%;
}

/* ── Right: content ── */
.tour-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Browser chrome */
.tour-chrome {
  background: #eef2f7;
  border-bottom: 1px solid var(--gray-200);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.t-dot-r { background: #fc6058; }
.t-dot-y { background: #fec02f; }
.t-dot-g { background: #2aca44; }
.tour-chrome-url {
  flex: 1;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
  max-width: 340px;
  margin: 0 auto;
}
.tour-chrome-url svg { width: 10px; height: 10px; color: var(--gray-400); }
.tour-chrome-url span { font-size: 10.5px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Slide area */
.tour-slides {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.tour-slide {
  display: none;
  position: relative;
  overflow: hidden;
}
.tour-slide.is-active {
  display: block;
  animation: t-slide-in 0.28s ease;
}
@keyframes t-slide-in {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tour-slide > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 440px;
  object-fit: cover;
  object-position: top;
}
/* Hotspot pins */
.t-pin {
  position: absolute;
  z-index: 8;
}
.t-pin-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(16,50,91,0.18), 0 2px 8px rgba(0,0,0,0.2);
  animation: t-ping 3s ease-in-out infinite;
  transition: background var(--t), transform var(--t);
  user-select: none;
}
.t-pin:hover .t-pin-dot { background: var(--orange); transform: scale(1.18); }
@keyframes t-ping {
  0%,100% { box-shadow: 0 0 0 4px rgba(16,50,91,0.18), 0 2px 8px rgba(0,0,0,0.2); }
  50%      { box-shadow: 0 0 0 10px rgba(16,50,91,0.06), 0 2px 8px rgba(0,0,0,0.15); }
}
.t-pin-tip {
  position: absolute;
  background: #0d2540;
  color: white;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  padding: 7px 11px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  max-width: 200px;
  white-space: normal;
}
.t-pin-tip::before {
  content: '';
  position: absolute;
  border: 5px solid transparent;
}
/* Tooltip positions */
.t-pin-tip.up {
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
}
.t-pin-tip.up::before { top: 100%; left: 50%; transform: translateX(-50%); border-top-color: #0d2540; }
.t-pin:hover .t-pin-tip.up { opacity: 1; transform: translateX(-50%) translateY(0); }

.t-pin-tip.down {
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
}
.t-pin-tip.down::before { bottom: 100%; left: 50%; transform: translateX(-50%); border-bottom-color: #0d2540; }
.t-pin:hover .t-pin-tip.down { opacity: 1; transform: translateX(-50%) translateY(0); }

.t-pin-tip.left {
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(4px);
}
.t-pin-tip.left::before { left: 100%; top: 50%; transform: translateY(-50%); border-left-color: #0d2540; }
.t-pin:hover .t-pin-tip.left { opacity: 1; transform: translateY(-50%) translateX(0); }

.t-pin-tip.right {
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
}
.t-pin-tip.right::before { right: 100%; top: 50%; transform: translateY(-50%); border-right-color: #0d2540; }
.t-pin:hover .t-pin-tip.right { opacity: 1; transform: translateY(-50%) translateX(0); }

/* CSS-only mockup slides */
.t-mockup {
  background: white;
  padding: 20px;
  min-height: 380px;
}

/* ── Copy area ── */
.tour-copy-area {
  border-top: 1px solid var(--gray-200);
  background: white;
  padding: 24px 28px 0;
}
.tour-copy-panel { display: none; }
.tour-copy-panel.is-active {
  display: block;
  animation: t-slide-in 0.28s ease;
}
.tour-step-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.tour-copy-h2 {
  font-size: clamp(17px, 2.5vw, 21px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.tour-copy-p {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
}
.tour-bullets {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 14px;
}
.tour-bullet {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray-700);
  font-weight: 500;
}
.tour-bullet svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--green); }

/* Nav bar */
.tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px 18px;
  background: white;
}
.t-nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gray-500);
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.t-nav-btn:hover { color: var(--navy); border-color: var(--navy); background: rgba(16,50,91,0.04); }
.t-nav-btn:disabled { opacity: 0.3; pointer-events: none; }
.t-nav-btn svg { width: 13px; height: 13px; }
.tour-dots { display: flex; gap: 6px; align-items: center; }
.tour-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gray-300);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--t), transform var(--t);
}
.tour-dot.is-active { background: var(--navy); transform: scale(1.4); }
.t-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--orange);
  color: white;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--t);
  white-space: nowrap;
}
.t-cta-link:hover { background: var(--orange-lt); }
.t-cta-link svg { width: 12px; height: 12px; }

/* ── "Why switch" band ── */
.tour-why {
  padding: 72px 0 0;
}
.tour-why-h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.tour-why-sub { font-size: 15px; color: var(--gray-500); text-align: center; margin-bottom: 36px; }
.tour-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.tour-why-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tour-why-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tour-why-icon svg { width: 19px; height: 19px; }
.tour-why-icon.teal  { background: #e0f7f4; color: #0d9488; }
.tour-why-icon.amber { background: #fef3c7; color: #d97706; }
.tour-why-icon.green { background: #dcfce7; color: var(--green); }
.tour-why-icon.blue  { background: #dbeafe; color: var(--blue); }
.tour-why-title { font-size: 14px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.tour-why-body  { font-size: 13px; color: var(--gray-600); line-height: 1.65; }

/* ── Bottom CTA ── */
.tour-final-cta {
  background-color: var(--navy-dark);
  background-image: var(--grid-bg);
  padding: 88px 0;
  text-align: center;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}
.tour-final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(224,123,26,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.tour-cta-inner { position: relative; z-index: 1; }
.tour-cta-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.tour-cta-h2 { font-size: clamp(26px, 4.5vw, 46px); font-weight: 900; color: white; line-height: 1.12; letter-spacing: -0.6px; margin-bottom: 14px; }
.tour-cta-sub { font-size: 16px; color: rgba(255,255,255,0.6); max-width: 460px; margin: 0 auto 36px; line-height: 1.65; }
.tour-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 20px; }
.tour-cta-note { font-size: 12.5px; color: rgba(255,255,255,0.35); }

/* Dashboard mockup pieces */
.m-dash { display: flex; flex-direction: column; gap: 12px; }
.m-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.m-stat {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 12px 14px;
}
.m-stat-label { font-size: 10.5px; color: var(--gray-400); font-weight: 600; margin-bottom: 5px; }
.m-stat-val { font-size: 20px; font-weight: 900; color: var(--navy); line-height: 1; }
.m-stat-val.g { color: var(--green); }
.m-stat-val.o { color: var(--orange); }
.m-section-label { font-size: 11px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.07em; }
.m-rows { display: flex; flex-direction: column; gap: 5px; }
.m-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 12px;
}
.m-row-ico { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.m-row-ico svg { width: 13px; height: 13px; }
.m-row-ico.q { background: #dbeafe; color: var(--blue); }
.m-row-ico.i { background: #dcfce7; color: var(--green); }
.m-row-name { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--gray-800); }
.m-row-sub { font-size: 11px; color: var(--gray-400); }
.m-row-amt { font-size: 13.5px; font-weight: 800; color: var(--navy); }
.m-bdg {
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; white-space: nowrap;
}
.m-bdg-sent     { background: #dbeafe; color: #1d4ed8; }
.m-bdg-paid     { background: #dcfce7; color: var(--green); }
.m-bdg-draft    { background: var(--gray-100); color: var(--gray-500); }
.m-bdg-accepted { background: #d1fae5; color: #065f46; }
.m-bdg-progress { background: #fef3c7; color: #92400e; }

/* Margin panel mockup (step 3) */
.m-margin-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.m-line-items { display: flex; flex-direction: column; gap: 5px; }
.m-li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 8px 12px;
}
.m-li-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.m-li-dot.b { background: #3b82f6; }
.m-li-dot.a { background: #f59e0b; }
.m-li-dot.p { background: #8b5cf6; }
.m-li-name { flex: 1; font-size: 12px; color: var(--gray-700); }
.m-li-val { font-size: 12.5px; font-weight: 700; color: var(--gray-900); }
.m-divider { height: 1px; background: var(--gray-200); }
.m-margin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 14px 16px;
}
.m-margin-label { font-size: 12px; font-weight: 700; color: #15803d; display: flex; align-items: center; gap: 5px; }
.m-margin-label svg { width: 13px; height: 13px; }
.m-margin-note { font-size: 11px; color: #16a34a; margin-top: 3px; }
.m-margin-pct { font-size: 28px; font-weight: 900; color: #15803d; line-height: 1; }
.m-margin-pct span { font-size: 12px; font-weight: 600; margin-left: 2px; }
.m-send-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.m-total-label { font-size: 12px; color: var(--gray-500); flex: 1; }
.m-total-val { font-size: 16px; font-weight: 900; color: var(--navy); }

/* Responsive */
@media (max-width: 768px) {
  .tour-block { flex-direction: column; border-radius: var(--radius-lg); }
  .tour-tabs {
    width: 100%;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs-label { display: none; }
  .tour-tab {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    flex-shrink: 0;
    border-left: none;
    border-bottom: 3px solid transparent;
    min-width: 76px;
  }
  .tour-tab.is-active { border-left-color: transparent; border-bottom-color: var(--navy); }
  .tour-tab-num { display: none; }
  .tour-tab-title { font-size: 10.5px; text-align: center; line-height: 1.2; }
  .tour-tab-bar { bottom: 0; top: auto; left: 0; height: 3px; }
  .tour-slide > img { max-height: 240px; }
  .t-cta-link { display: none; }
  .m-stats { grid-template-columns: repeat(2,1fr); }
  .tour-why-grid { grid-template-columns: 1fr; }
  .tour-hero-steps { display: none; }
  .tour-nav { padding: 10px 16px 14px; }
  .tour-copy-area { padding: 18px 20px 0; }
}
@media (min-width: 769px) {
  .tour-why-grid { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .tour-why-grid { grid-template-columns: repeat(4,1fr); }
}
