/* ─────────────────────────────────────────────
   Outmark — Liquid Glass v2 additions
   iOS-app interactivity layer
   ───────────────────────────────────────────── */

/* ── POINTER GLARE (liquid specular highlight) ── */
.glare {
  position: absolute !important;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 350ms var(--ease);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.45), transparent 65%);
}
:hover > .glare { opacity: 1; }

/* ── TESTIMONIAL RESULT CHIPS ── */
.quote-result {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 650; font-variation-settings: 'wght' 650;
  letter-spacing: 0.02em;
  color: var(--orange);
  background: rgba(255,79,0,0.08);
  border: 1px solid rgba(255,79,0,0.18);
  padding: 6px 13px; border-radius: var(--r-pill);
  margin-bottom: 14px;
  white-space: nowrap;
}
.quote-result svg { flex-shrink: 0; }

/* ── NAV ACTIVE SECTION ── (iOS "thumb": bright frosted fill, dark text — legible in both modes) */
.nav-links > a.active:not(.btn) {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(255,255,255,0.80));
  color: #161310;
  box-shadow: inset 0 1px 0 #fff, 0 4px 14px -5px rgba(60,30,10,0.30);
}

/* ── OFFER TILES ── */
.offer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.offer-tile { padding: 30px 26px; border-radius: var(--r-lg); transition: transform 350ms var(--ease), box-shadow 350ms var(--ease); }
.offer-tile:hover { transform: translateY(-4px); }
.offer-step {
  font-size: 11px; font-weight: 650; font-variation-settings: 'wght' 650;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 16px;
}
.offer-icon {
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 8px 20px -4px rgba(255,79,0,0.45);
  margin-bottom: 20px;
}
.offer-tile h3 { font-size: 17.5px; font-weight: 650; font-variation-settings: 'wght' 650; letter-spacing: -0.02em; margin-bottom: 8px; }
.offer-tile p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ── SEGMENTED CONTROL (iOS style) ── */
.seg-wrap { display: flex; justify-content: center; margin-bottom: 28px; }
.seg {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  padding: 5px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow-sm);
  border-radius: var(--r-pill);
}
.seg-thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px);
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(255,255,255,0.80));
  box-shadow: inset 0 1px 0 #fff, 0 6px 18px -6px rgba(60,30,10,0.28);
  transition: transform 480ms var(--ease-spring), background 360ms var(--ease), box-shadow 360ms var(--ease);
}
.seg-btn {
  position: relative; z-index: 1;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-2);
  padding: 11px 28px; border-radius: var(--r-pill);
  white-space: nowrap;
  transition: color 250ms var(--ease);
}
.seg-btn.active { color: var(--ink); }
@media (max-width: 430px) {
  .seg-btn { font-size: 12.5px; padding: 10px 14px; }
}
/* dark mode: frosted-dark thumb + white active text — no bright thumb to wash out labels */
body.om-dark .seg-thumb {
  background: linear-gradient(135deg, rgba(92,84,77,0.96), rgba(58,52,46,0.92));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.20), 0 8px 20px -6px rgba(0,0,0,0.6);
}
body.om-dark .seg-btn { color: rgba(255,255,255,0.58); }
body.om-dark .seg-btn.active { color: #fff; }

/* ── TRACK STAGE ── */
.track-stage { display: grid; border-radius: var(--r-xl); overflow: hidden; }
.track-pane {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: 56px; align-items: center;
  padding: 48px 56px;
  opacity: 0; visibility: hidden;
  transform: translateX(64px) scale(0.97);
  transform-origin: center left;
  will-change: transform, opacity;
  transition: opacity 640ms var(--ease), transform 640ms var(--ease), visibility 0s linear 640ms;
}
.track-pane.active {
  opacity: 1; visibility: visible;
  transform: translateX(0) scale(1);
  transition: opacity 640ms var(--ease), transform 640ms var(--ease);
}
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.track-pane h3 {
  font-size: clamp(24px, 2.4vw, 30px); font-weight: 680;
  font-variation-settings: 'wght' 680;
  letter-spacing: -0.035em; line-height: 1.1; margin-bottom: 14px;
  text-wrap: balance;
}
.track-pane > .track-info > p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
.track-points { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 24px 0 26px; padding: 0; }
.track-points li { position: relative; padding-left: 30px; font-size: 14.5px; color: var(--ink); }
.track-points li::before {
  content: '✓';
  position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #fff;
  background: var(--grad);
  box-shadow: 0 3px 8px rgba(255,79,0,0.35);
}
.track-goal {
  display: inline-flex; align-items: baseline; gap: 6px;
  width: fit-content; max-width: 100%;
  font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--orange);
  background: rgba(255,79,0,0.08); border: 1px solid rgba(255,79,0,0.18);
  padding: 10px 18px; border-radius: var(--r-pill);
}
.track-goal span {
  font-weight: 700; font-variation-settings: 'wght' 700; flex-shrink: 0;
}

/* ── TRACK 02 (Conversion Content) — dark stage ── */
.track-stage { transition: background 550ms var(--ease), box-shadow 550ms var(--ease), border-color 550ms var(--ease); }
.track-stage.track-dark {
  --ink: #ffffff;
  --ink-2: rgba(255,255,255,0.66);
  --ink-3: rgba(255,255,255,0.5);
  color: #fff;
  background: linear-gradient(135deg, rgba(34,27,22,0.93) 0%, rgba(14,11,9,0.97) 100%);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 30px 70px -24px rgba(15,9,5,0.58);
}
.track-stage.track-dark .glare { display: none; }
.track-stage.track-dark .track-goal {
  color: var(--orange-light);
  background: rgba(255,79,0,0.18); border-color: rgba(255,79,0,0.34);
}
.track-stage.track-dark .track-phone {
  background: linear-gradient(135deg, rgba(64,56,50,0.9), rgba(28,24,20,0.72));
  border-color: rgba(255,255,255,0.16);
}

/* phone frame for inline reels */
.track-phone {
  position: relative;
  width: 250px; aspect-ratio: 9 / 16;
  border-radius: 38px; padding: 9px;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.52));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}
.track-phone:hover { transform: scale(1.02) translateY(-2px); }
.track-phone:active { transform: scale(0.99); }
.track-phone video {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 30px;
  background: #0A0A0A;
}
.phone-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #fff;
  background: rgba(10,10,10,0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 13px; border-radius: var(--r-pill);
  white-space: nowrap; pointer-events: none;
}

/* ── JOURNEY (animated loop) ── */
.journey { border-radius: var(--r-xl); padding: 36px 36px 32px; text-align: center; margin-top: 24px; }
.journey-eyebrow {
  font-size: 11.5px; font-weight: 650; font-variation-settings: 'wght' 650;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.journey-track { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.j-step {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em;
  padding: 8px 18px 8px 9px; border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 12px rgba(60,30,10,0.06);
  color: var(--ink-2); cursor: pointer;
  transition: background-color 350ms var(--ease), color 350ms var(--ease), box-shadow 350ms var(--ease), transform 350ms var(--ease);
  white-space: nowrap;
}
.j-dot {
  width: 23px; height: 23px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: rgba(22,19,16,0.07); color: var(--ink-2);
  transition: background-color 350ms var(--ease), color 350ms var(--ease);
  flex-shrink: 0;
}
.j-step.active {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 26px -6px rgba(255,79,0,0.55);
  transform: scale(1.05);
}
.j-step.active .j-dot { background: rgba(255,255,255,0.25); color: #fff; }
.j-step.done .j-dot { background: rgba(255,79,0,0.14); color: var(--orange); }
.j-arrow { color: var(--ink-3); display: flex; flex-shrink: 0; }
.j-caption {
  margin: 22px auto 0; max-width: 520px;
  font-size: 15px; color: var(--ink-2); line-height: 1.6;
  min-height: 48px;
  transition: opacity 180ms ease;
  text-wrap: pretty;
}
.j-caption.switch { opacity: 0; }

/* Journey panel in dark mode — solid dark fill so the drifting ambient
   blob doesn't bleed through unevenly (matches the dark track stage above). */
body.om-dark .journey {
  background: linear-gradient(135deg, rgba(34,27,22,0.93) 0%, rgba(14,11,9,0.97) 100%);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 30px 70px -24px rgba(15,9,5,0.58);
}
body.om-dark .journey::before { opacity: 0.3; }
/* no white pointer-glare smear on the dark journey panel */
body.om-dark .journey .glare { display: none; }

/* Journey bubbles in dark mode — fix white-on-white, keep contrast */
body.om-dark .j-step {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 4px 12px rgba(0,0,0,0.35);
  color: var(--ink);
}
body.om-dark .j-dot { background: rgba(255,255,255,0.14); color: var(--ink); }
body.om-dark .j-step.active { background: var(--grad); border-color: transparent; color: #fff; }
body.om-dark .j-step.active .j-dot { background: rgba(255,255,255,0.25); color: #fff; }
body.om-dark .j-step.done .j-dot { background: rgba(255,79,0,0.22); color: var(--orange-light); }

/* ── MOBILE DOCK CTA ── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 14px; z-index: 400;
  display: none; justify-content: center;
  padding: 0 20px;
  transform: translateY(90px); opacity: 0;
  transition: transform 350ms var(--ease), opacity 350ms var(--ease);
  pointer-events: none;
}
.dock.show { transform: none; opacity: 1; pointer-events: auto; }
.dock-btn { width: 100%; max-width: 420px; padding: 16px 28px; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  /* the scroll-revealed dock CTA is a mobile feature: base display:none
     was never lifted, so it could never render — restore it here */
  .dock { display: flex; }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .track-pane { grid-template-columns: 1fr; gap: 36px; padding: 32px 26px; }
  .track-phone { margin: 0 auto; width: 230px; }
  .journey { padding: 28px 20px 26px; }
  /* switch as a vertical fade on mobile — no sideways slide (prevents
     horizontal overflow and feels smoother on touch) */
  .track-pane { transform: translateY(12px) scale(1); }
  .track-pane.active { transform: none; }
}
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
  .seg-btn { font-size: 12.5px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .track-pane.active { animation: none; }
  .glare { display: none; }
}
