/* OfferPath v2 - motion layer.
   Animated "in action" components: live tracker, mission-control ramp, free-tool demos,
   weekly-report card, count-up stats. Pure CSS/JS - no video, no login, sharp at any size.
   All driven by motion.js via IntersectionObserver. Respects prefers-reduced-motion. */

/* ============================================================
   Scroll-reveal primitive - JS adds .is-on when in viewport
   ============================================================ */
.op-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.op-reveal.is-on { opacity: 1; transform: none; }

/* ============================================================
   Shared device frame (browser-chrome look around any demo)
   ============================================================ */
.op-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.op-frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--border);
}
.op-frame-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.op-frame-dot:nth-child(1){ background:#f87171; } .op-frame-dot:nth-child(2){ background:#fbbf24; } .op-frame-dot:nth-child(3){ background:#34d399; }
.op-frame-url {
  margin-left: 10px; font-size: 12px; color: var(--slate-500);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 3px 12px; flex: 1; max-width: 320px;
}

/* ============================================================
   LIVE TRACKER  (.op-tracker) - homepage hero + how-it-works
   ============================================================ */
.op-tracker-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.op-tracker-title { font-weight: 700; font-size: 15px; color: var(--slate-900); }
.op-tracker-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--green-700);
}
.op-tracker-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600);
  animation: op-pulse 1.4s ease-in-out infinite;
}
@keyframes op-pulse { 0%,100%{ box-shadow:0 0 0 0 rgba(16,185,129,.5);} 50%{ box-shadow:0 0 0 6px rgba(16,185,129,0);} }

.op-rows { padding: 6px 0; min-height: 252px; }
.op-row {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--slate-100);
  opacity: 0; transform: translateY(-8px);
}
.op-row:last-child { border-bottom: 0; }
.op-row.in { animation: op-rowin .5s ease forwards; }
.op-row.flash { background: var(--green-50); }
@keyframes op-rowin { to { opacity: 1; transform: none; } }
.op-row-logo {
  width: 26px; height: 26px; border-radius: 6px;
  background: var(--slate-100); color: var(--slate-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.op-row-co { font-size: 14px; font-weight: 600; color: var(--slate-900); line-height: 1.25; }
.op-row-meta { font-size: 11px; color: var(--slate-500); display: flex; gap: 8px; flex-wrap: wrap; }
.op-row-meta .va { color: var(--green-700); font-weight: 600; }
.op-badge {
  font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--radius-pill); white-space: nowrap;
  transition: background .3s ease, color .3s ease;
}
.op-badge.listed   { background: var(--slate-100); color: var(--slate-700); }
.op-badge.applied  { background: #e0f2fe; color: #0369a1; }
.op-badge.response { background: var(--green-50); color: var(--green-700); }
.op-badge.interview{ background: #ede9fe; color: #6d28d9; }
.op-badge.offer    { background: var(--green-600); color: #fff; }

.op-tracker-foot {
  padding: 14px 18px; border-top: 1px solid var(--border); background: var(--slate-50);
}
.op-foot-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.op-foot-label { font-size: 12px; color: var(--slate-500); font-weight: 500; }
.op-foot-count { font-size: 20px; font-weight: 700; color: var(--slate-900); }
.op-foot-count .of { font-size: 13px; color: var(--slate-500); font-weight: 500; }
.op-progress { height: 8px; border-radius: var(--radius-pill); background: var(--slate-100); overflow: hidden; }
.op-progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  border-radius: var(--radius-pill);
  transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

/* "new application logged" toast inside tracker */
.op-toast {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 16px);
  background: var(--slate-900); color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 14px; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.op-toast.show { animation: op-toast 2.4s ease forwards; }
@keyframes op-toast {
  0% { opacity: 0; transform: translate(-50%, 16px); }
  12%,80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}
.op-tracker-wrap { position: relative; }

/* ============================================================
   HERO ROTATOR (.op-hero-rotate) - #700: crossfade the live tracker
   with a static sample-dashboard shot. Both slides share one grid cell
   so the hero never reflows (zero CLS); height = the taller slide.
   ============================================================ */
.op-hero-rotate { display: grid; }
.op-hero-rotate > .hero-slide { grid-area: 1 / 1; }
.op-hero-rotate > .hero-slide {
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease;
}
.op-hero-rotate > .hero-slide.is-active { opacity: 1; visibility: visible; }
/* Before JS runs (and when JS is unavailable), show the first slide. */
.op-hero-rotate.op-no-js > .hero-slide:first-child,
.op-hero-rotate:not(.op-rotate-on) > .hero-slide:first-child { opacity: 1; visibility: visible; }
.hero-slide-shot { text-decoration: none; color: inherit; display: block; }
.hero-slide-shot .op-frame-url { max-width: 360px; }
.hero-slide-label {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--slate-600, #475569);
  background: var(--slate-50, #f8fafc); border: 1px solid var(--border);
  border-radius: var(--radius-pill, 9999px); padding: 9px 16px;
}
.hero-slide-label::before { content: "\24D8"; font-size: 14px; color: var(--slate-400, #94a3b8); }
@media (prefers-reduced-motion: reduce) {
  .op-hero-rotate > .hero-slide { transition: none; }
}

/* ============================================================
   MISSION-CONTROL RAMP (.op-ramp) - how-it-works 5-step
   ============================================================ */
.op-ramp { position: relative; margin-top: 24px; }
.op-ramp-track {
  position: absolute; top: 16px; left: 6%; right: 6%; height: 3px;
  background: var(--slate-100); border-radius: 2px; z-index: 0;
}
.op-ramp-track > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  border-radius: 2px; transition: width 2.6s ease;
}
.op-ramp-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; position: relative; z-index: 1; }
.op-ramp-step { text-align: center; }
.op-ramp-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 10px;
  background: #fff; border: 2px solid var(--slate-300); color: var(--slate-500);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; transition: all .35s ease;
}
.op-ramp-step.done .op-ramp-dot { background: var(--green-600); border-color: var(--green-600); color: #fff; transform: scale(1.08); }
.op-ramp-step.active .op-ramp-dot { animation: op-pulse 1.4s ease-in-out infinite; border-color: var(--green-600); color: var(--green-700); }
.op-ramp-label { font-size: 12px; font-weight: 600; color: var(--slate-900); }
.op-ramp-sub { font-size: 11px; color: var(--slate-500); margin-top: 2px; }
@media (max-width: 700px){
  .op-ramp-steps { grid-template-columns: 1fr 1fr 1fr; gap: 16px 8px; }
  .op-ramp-track { display: none; }
}

/* ============================================================
   ATS GAUGE (.op-gauge) - free tools
   ============================================================ */
.op-gauge { position: relative; text-align: center; }
.op-gauge svg { display: block; margin: 0 auto; transform: rotate(-90deg); }
.op-gauge .track { stroke: var(--slate-100); }
.op-gauge .fill {
  stroke: var(--green-600); stroke-linecap: round;
  transition: stroke-dashoffset 1.8s cubic-bezier(.22,1,.36,1);
}
/* number + label absolutely centered inside the 140px ring */
.op-gauge-num {
  position: absolute; top: 70px; left: 0; right: 0;
  transform: translateY(-50%);
  font-size: 34px; font-weight: 700; color: var(--slate-900); line-height: 1;
}
.op-gauge-num small { display: block; font-size: 11px; font-weight: 600; color: var(--green-700); letter-spacing: .04em; text-transform: uppercase; margin-top: 6px; }

/* ============================================================
   TYPE-ON COVER LETTER (.op-type) - free tools
   ============================================================ */
.op-type-out {
  font-size: 13px; line-height: 1.6; color: var(--slate-700);
  background: var(--slate-50); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; min-height: 150px; white-space: pre-wrap;
}
.op-type-out .caret { color: var(--green-600); font-weight: 700; animation: op-blink 1s step-end infinite; }
@keyframes op-blink { 50% { opacity: 0; } }

/* ============================================================
   ANALYZER BARS (.op-bars) - free tools / LinkedIn
   ============================================================ */
.op-bar { margin-bottom: 14px; }
.op-bar-top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.op-bar-top .lbl { color: var(--slate-700); font-weight: 500; }
.op-bar-top .pct { color: var(--green-700); font-weight: 700; }
.op-bar-track { height: 7px; border-radius: var(--radius-pill); background: var(--slate-100); overflow: hidden; }
.op-bar-track > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
  border-radius: var(--radius-pill); transition: width 1.4s cubic-bezier(.22,1,.36,1);
}

/* ============================================================
   WEEKLY REPORT (.op-report) - mission-control/reports surface
   ============================================================ */
.op-report-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
@media (max-width: 600px){ .op-report-grid { grid-template-columns: 1fr 1fr; } }
.op-report-stat { text-align: center; padding: 16px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.op-report-stat .n { font-size: 30px; font-weight: 700; color: var(--green-700); line-height: 1; }
.op-report-stat .l { font-size: 12px; color: var(--slate-500); margin-top: 6px; }
.op-spark { display: flex; align-items: flex-end; gap: 8px; height: 80px; padding: 0 4px; }
.op-spark > span {
  flex: 1; background: linear-gradient(180deg, var(--green-500), var(--green-600));
  border-radius: 4px 4px 0 0; height: 0; transition: height 1.1s cubic-bezier(.22,1,.36,1);
}
.op-spark-x { display: flex; gap: 8px; margin-top: 6px; }
.op-spark-x > span { flex: 1; text-align: center; font-size: 11px; color: var(--slate-500); }

/* ============================================================
   VERTICAL TIMELINE (.op-tl) - about founder story
   ============================================================ */
.op-tl { position: relative; max-width: 640px; margin: 36px auto 0; padding-left: 30px; }
.op-tl::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--slate-100); }
.op-tl-fill { position: absolute; left: 7px; top: 6px; width: 2px; height: 0; border-radius: 2px; background: linear-gradient(180deg, var(--green-500), var(--green-600)); }
.op-tl-item {
  position: relative; padding: 0 0 26px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.op-tl-item.is-on { opacity: 1; transform: none; }
.op-tl-item:last-child { padding-bottom: 0; }
.op-tl-dot {
  position: absolute; left: -30px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--green-500);
}
.op-tl-when { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-700); margin-bottom: 2px; }
.op-tl-what { font-size: 15px; color: var(--slate-700); line-height: 1.5; }
.op-tl-what strong { color: var(--slate-900); }

/* ============================================================
   ANIMATED FUNNEL PILLS (.op-funnel) - how-it-works
   A travelling highlight runs Listed → … → Offer to show progression.
   ============================================================ */
[data-op="funnel"] > span { transition: transform .35s ease, box-shadow .35s ease; }
[data-op="funnel"] > span.op-lit { transform: translateY(-3px) scale(1.06); box-shadow: 0 6px 16px rgba(16,185,129,.30); }

/* ============================================================
   Reduced motion - show final state, no movement
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .op-reveal, .op-row, .op-progress > span, .op-ramp-track > span,
  .op-gauge .fill, .op-bar-track > span, .op-spark > span, .op-tl-item, .op-tl-fill {
    transition: none !important; animation: none !important;
    opacity: 1 !important; transform: none !important;
  }
  .op-tracker-live::before, .op-ramp-step.active .op-ramp-dot { animation: none !important; }
}

/* ============================================================
   CHALLENGER COMPONENTS - "a human in every step" positioning
   (structural; reuse across home, how-it-works, persona pages)
   ============================================================ */

/* Human Checkpoint strip - bot vs human at each funnel step */
.checkpoints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
@media (max-width: 900px) { .checkpoints { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .checkpoints { grid-template-columns: 1fr; } }
.checkpoint {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; position: relative;
}
.checkpoint-step { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate-500); margin-bottom: 8px; }
.checkpoint h4 { font-size: 16px; font-weight: 600; color: var(--slate-900); margin-bottom: 10px; }
.checkpoint-human {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; color: var(--green-700);
  background: var(--green-50); border-radius: var(--radius-pill); padding: 4px 10px; margin-bottom: 10px;
}
.checkpoint-bot { font-size: 13px; color: var(--slate-500); line-height: 1.45; }
.checkpoint-bot .x { color: #ef4444; font-weight: 700; }
.checkpoint-us { font-size: 13px; color: var(--slate-700); margin-top: 6px; line-height: 1.45; }
.checkpoint-us .c { color: var(--green-600); font-weight: 700; }

/* VA credential cards (Leland-style; extends founder-card) */
.va-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .va-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .va-grid { grid-template-columns: 1fr; } }
.va-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.va-photo { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 14px; background: linear-gradient(135deg, var(--green-600), var(--green-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.va-name { font-weight: 700; color: var(--slate-900); font-size: 16px; }
.va-spec { font-size: 13px; color: var(--slate-500); margin-bottom: 12px; }
.va-stat { font-size: 13px; color: var(--slate-700); }
.va-stat strong { color: var(--green-700); }

/* Placeholder marker - for data awaiting Calvin (names/photos/stats) */
.op-placeholder { font-size: 11px; color: #92400e; background: #fef3c7; border: 1px dashed #f59e0b; border-radius: var(--radius); padding: 2px 8px; display: inline-block; margin-top: 10px; }

/* Third-party ratings strip */
.ratings-strip { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; align-items: center; }
.rating { text-align: center; }
.rating-stars { color: #f59e0b; font-size: 16px; letter-spacing: 1px; }
.rating-score { font-weight: 700; color: var(--slate-900); }
.rating-src { font-size: 12px; color: var(--slate-500); }

/* 3-way comparison: highlight the OfferPath (middle) column */
.compare th.us { background: var(--green-50); color: var(--green-700); }
.compare td.us { background: var(--green-50); color: var(--green-700); font-weight: 600; }

/* Wide comparison tables: scroll horizontally on phones instead of clipping */
@media (max-width: 700px) {
  .compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare table { min-width: 540px; }
  .compare th, .compare td { padding: 12px 12px; font-size: 13px; }
}

/* Real VA headshots - circular, brand-palette ring, face-focused */
.va-photo-img {
  width: 104px; height: 104px; border-radius: 50%;
  object-fit: cover; object-position: center 22%;
  margin: 0 auto 14px; display: block;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--green-primary), 0 0 0 6px var(--gold), var(--shadow-md);
}

/* VA conversation mock (animated chat) */
.op-chat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.op-chat-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--slate-50); }
.op-chat-head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid var(--green-primary); }
.op-chat-head .nm { font-weight: 700; font-size: 14px; color: var(--slate-900); line-height: 1.2; }
.op-chat-head .rl { font-size: 11px; color: var(--slate-500); }
.op-chat-head .on { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.op-chat-head .on::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); }
.op-chat-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; min-height: 300px; background: #fbfdfc; }
.op-msg { max-width: 84%; padding: 10px 13px; border-radius: 15px; font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(8px); }
.op-msg.in { animation: op-msg-in .4s ease forwards; }
@keyframes op-msg-in { to { opacity: 1; transform: none; } }
.op-msg.va { align-self: flex-start; background: var(--slate-100); color: var(--slate-800); border-bottom-left-radius: 4px; }
.op-msg.me { align-self: flex-end; background: var(--green-primary); color: #04231a; border-bottom-right-radius: 4px; }
.op-typing { align-self: flex-start; background: var(--slate-100); padding: 11px 14px; border-radius: 15px; border-bottom-left-radius: 4px; opacity: 0; transition: opacity .2s; }
.op-typing.show { opacity: 1; }
.op-typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--slate-400); margin: 0 1.5px; animation: op-bounce 1s infinite; }
.op-typing i:nth-child(2) { animation-delay: .15s; } .op-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes op-bounce { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Dual-audience columns (candidate vs recruiter) */
.audience { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.audience h3 { font-size: 18px; color: var(--slate-900); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.audience ul { list-style: none; }
.audience li { font-size: 15px; color: var(--slate-700); padding: 7px 0 7px 26px; position: relative; line-height: 1.5; }
.audience li::before { content: '✓'; color: var(--green-600); font-weight: 700; position: absolute; left: 0; }

/* ============================================================
   DROPDOWN NAVIGATION (injected by motion.js, styled here)
   ============================================================ */
.site-nav .nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-drop-toggle {
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 500; color: var(--slate-700);
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
}
.nav-drop-toggle:hover { color: var(--slate-900); }
.nav-drop-toggle .caret { display: inline-block; vertical-align: middle; transition: transform .2s; opacity: .75; }
.nav-drop-toggle:hover .caret { opacity: 1; }
.nav-item.open .nav-drop-toggle .caret { transform: rotate(180deg); opacity: 1; }
.nav-dropdown { position: absolute; top: 100%; left: 0; padding-top: 12px; display: none; z-index: 60; }
.nav-item:hover .nav-dropdown, .nav-item.open .nav-dropdown { display: block; }
.nav-dropdown-inner { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 8px; min-width: 212px; }
.nav-dropdown a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--slate-700); white-space: nowrap; }
.nav-dropdown a:hover { background: var(--slate-50); color: var(--slate-900); text-decoration: none; }
.nav-dropdown a strong { color: var(--green-700); }
/* On small screens, hide the marketing nav (logo + CTA remain); footer carries full IA. Mobile hamburger is a follow-up. */
@media (max-width: 860px) { .site-nav { display: none; } }

/* Per-section CTA (one pricing CTA per fold) */
.section-cta { text-align: center; margin-top: 40px; }
.section-cta .btn { box-shadow: var(--shadow-sm); }
section.bg-dark .section-cta .btn, .closing-cta .section-cta .btn { box-shadow: none; }
