/* ─────────────────────────────────────────────
   Outmark — Liquid Glass v3
   Micro-interactions · scroll-pinned tracks ·
   lead magnet · complete-service pillars
   ───────────────────────────────────────────── */

/* ── MICRO-INTERACTIONS ── (spring-eased lifts, living-app feel) */
.quote-card, .step-card, .stat-chip, .problem-card, .vs-card, .pillar-card, .offer-tile {
  transition: transform 420ms var(--ease-spring), box-shadow 420ms var(--ease);
}
.quote-card:hover, .step-card:hover, .problem-card:hover,
.vs-card:hover, .pillar-card:hover {
  transform: translateY(-6px);
  box-shadow:
    inset 0 1.2px 0.5px rgba(255,255,255,0.95),
    inset 0 0 0 1px rgba(255,255,255,0.20),
    0 2px 6px rgba(60,30,10,0.05),
    0 34px 70px -26px rgba(60,30,10,0.30);
}
.stat-chip:hover { transform: translateY(-5px); }
/* specular brighten as the surface lifts */
.quote-card:hover::before, .step-card:hover::before, .problem-card:hover::before,
.vs-card:hover::before, .pillar-card:hover::before, .stat-chip:hover::before,
.offer-tile:hover::before { opacity: 0.85; }

.cs-thumb img { transition: transform 700ms var(--ease); }
.cs-thumb:hover img { transform: scale(1.045); }

.quote-avatar { transition: transform 420ms var(--ease-spring); }
.quote-card:hover .quote-avatar { transform: scale(1.1); }

.step-badge { transition: transform 420ms var(--ease-spring); }
.step-card:hover .step-badge { transform: scale(1.1) rotate(-5deg); }

.offer-icon { transition: transform 420ms var(--ease-spring), box-shadow 350ms var(--ease); }
.offer-tile:hover .offer-icon { transform: rotate(-6deg) scale(1.1); }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy .label-dot { animation: dotPulse 2.8s ease-in-out infinite; }
  .hero .grad-text { background-size: 220% 100%; animation: gradPan 7s ease-in-out infinite; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,79,0,0.5); }
  60%      { box-shadow: 0 0 0 6px rgba(255,79,0,0); }
}
@keyframes gradPan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── TRACK PIN (scroll-driven track switch) ── */
.track-pin { position: relative; }
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .track-pin-inner { position: sticky; top: 92px; }
}
.about-img-wrap.flipped .about-flip { transform: rotateY(180deg); }
.about-img-wrap.flipped .flip-hint { opacity: 0; }

/* ── LEAD MAGNET ── */
.magnet {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 52px; align-items: center;
  padding: 52px 56px; border-radius: var(--r-xl);
}
.magnet-title {
  font-size: clamp(28px, 3vw, 40px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 16px;
  text-wrap: balance;
}
.magnet-sub {
  font-size: 15.5px; color: var(--ink-2); line-height: 1.65;
  margin-bottom: 22px; max-width: 46ch; text-wrap: pretty;
}
.magnet-points { list-style: none; display: flex; flex-direction: column; gap: 11px; padding: 0; }
.magnet-points li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--ink); }
.magnet-points li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; 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.3);
}

.magnet-form-wrap {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(22,19,16,0.08);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow-sm);
}
.magnet-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.magnet-row { display: flex; gap: 10px; }
.magnet-input {
  flex: 1; min-width: 0;
  font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 14px 16px; border-radius: var(--r-md);
  background: #fff; border: 1px solid rgba(22,19,16,0.14);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.magnet-input::placeholder { color: var(--ink-3); }
.magnet-input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255,79,0,0.12); }
.magnet-input.invalid { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,0.12); }
.magnet-row .btn { flex-shrink: 0; white-space: nowrap; }
.magnet-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.magnet-note.err { color: #E5484D; }

.magnet-success { text-align: center; padding: 6px 4px; animation: paneIn 450ms var(--ease); }
.magnet-check {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: var(--grad);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 10px 26px -6px rgba(255,79,0,0.5);
}
.magnet-success h3 { font-size: 20px; font-weight: 680; font-variation-settings: 'wght' 680; letter-spacing: -0.02em; margin-bottom: 8px; }
.magnet-success p { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 20px; }
.magnet-success #magnetEmailEcho { color: var(--ink); font-weight: 600; }

/* ── COMPLETE SERVICE PILLARS ── */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 8px; }
.pillar-card { padding: 38px 34px; border-radius: var(--r-xl); display: flex; flex-direction: column; }
.pillar-icon {
  width: 52px; height: 52px; border-radius: 16px;
  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 22px -4px rgba(255,79,0,0.45);
  margin-bottom: 22px;
  transition: transform 350ms var(--ease);
}
.pillar-card:hover .pillar-icon { transform: rotate(-6deg) scale(1.08); }
.pillar-tag {
  font-size: 11px; font-weight: 650; font-variation-settings: 'wght' 650;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.pillar-card h3 { font-size: 20px; font-weight: 680; font-variation-settings: 'wght' 680; letter-spacing: -0.025em; margin-bottom: 10px; text-wrap: balance; }
.pillar-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.pillar-card .chip { margin-top: 20px; align-self: flex-start; }

/* ── MICRO-INTERACTIONS II — tactile + ambient touches ──
   Uses the composable `translate`/`scale` properties so nothing fights the
   fade-up entrance transforms. Compositor-only; hover effects are gated to
   fine pointers, ambient motion to prefers-reduced-motion: no-preference. */

/* Tactile press feedback on tap/click (instant on purpose — feels responsive
   on touch too, where hover lifts never fire) */
.btn:active, .watch-btn:active, .seg-btn:active,
.j-step:active, .film-card:active { scale: 0.965; }

/* Keyboard focus ring (invisible to mouse users) */
.btn:focus-visible, .watch-btn:focus-visible, .magnet-input:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* CTA shine — a soft glint sweeps across primary buttons once per hover */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 60%;
    background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.35) 50%, transparent 80%);
    transform: translateX(-180%) skewX(-18deg);
    pointer-events: none;
  }
  .btn-primary:hover::after { animation: ctaShine 700ms var(--ease) forwards; }

  /* Journey bubbles acknowledge the cursor (translate composes with the
     active step's scale transform) */
  .j-step {
    transition: background-color 350ms var(--ease), color 350ms var(--ease),
                box-shadow 350ms var(--ease), transform 350ms var(--ease),
                translate 250ms var(--ease);
  }
  .j-step:hover { translate: 0 -2px; }

  /* Footer links nudge toward the cursor */
  .footer-col a { transition: color 200ms var(--ease), translate 200ms var(--ease); }
  .footer-col a:hover { translate: 3px 0; }
}
@keyframes ctaShine {
  to { transform: translateX(320%) skewX(-18deg); }
}

@media (prefers-reduced-motion: no-preference) {
  /* every section label gets the heartbeat, not just the hero */
  .label-dot { animation: dotPulse 2.8s ease-in-out infinite; }

  /* hero video floats, barely */
  .hero-media { animation: heroFloat 7s ease-in-out infinite alternate; }

  /* the About flip-photo hint invites a tap */
  .flip-hint { animation: hintPulse 3.6s ease-in-out infinite; }
}
@keyframes heroFloat {
  from { translate: 0 0; }
  to   { translate: 0 -7px; }
}
@keyframes hintPulse {
  0%, 100% { scale: 1; }
  50%      { scale: 1.12; }
}

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav-wrap { padding: 0 20px; }
}
@media (max-width: 860px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .magnet { grid-template-columns: 1fr; gap: 32px; padding: 40px 28px; }
  .magnet-row { flex-direction: column; }
  .magnet-row .btn { width: 100%; }
}
