/* landing-v2.css — premium layer on top of landing.css
   Motion, depth and interactive-tour styles. All entrance motion is
   gated on prefers-reduced-motion. */

/* ── scroll reveals ─────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference){
  .rv{ opacity:0; transform:translateY(26px); transition:opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
  .rv.in{ opacity:1; transform:none; }
  .rv-d1.in{ transition-delay:.08s; } .rv-d2.in{ transition-delay:.16s; } .rv-d3.in{ transition-delay:.24s; }

  /* hero entrance */
  .hero-copy > *{ animation:heroUp .8s cubic-bezier(.22,.61,.36,1) both; }
  .hero-copy > *:nth-child(2){ animation-delay:.07s; }
  .hero-copy > *:nth-child(3){ animation-delay:.14s; }
  .hero-copy > *:nth-child(4){ animation-delay:.21s; }
  .hero-copy > *:nth-child(5){ animation-delay:.28s; }
  .hero-copy > *:nth-child(6){ animation-delay:.35s; }
  .hero-visual{ animation:heroIn 1s cubic-bezier(.22,.61,.36,1) .15s both; }
  @keyframes heroUp{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
  @keyframes heroIn{ from{ opacity:0; transform:translateY(30px) scale(.97); } to{ opacity:1; transform:none; } }
}

/* ── depth polish ───────────────────────────────────────── */
.quote, .step, .tier{ transition:transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s; }
.quote:hover, .step:hover{ transform:translateY(-4px); box-shadow:0 2px 4px rgba(15,26,22,.05), 0 18px 40px rgba(15,26,22,.10); }
.tier:hover{ transform:translateY(-4px); }
.tier.featured{ transform:scale(1.02); }
.tier.featured:hover{ transform:scale(1.02) translateY(-4px); }
.gallery-item .phone{ transition:transform .3s cubic-bezier(.22,.61,.36,1); }
.gallery-item:hover .phone{ transform:translateY(-6px); }

/* ── hero demo (animated invoice-in-60s) ────────────────── */
.demo-wrap{ position:relative; display:flex; flex-direction:column; align-items:center; }
.demo-stage{ position:relative; }
.demo-screens{ position:relative; overflow:hidden; }
.demo-layer{ position:absolute; inset:0; opacity:0; transform:scale(.985); transition:opacity .55s ease, transform .55s ease; pointer-events:none; }
.demo-layer.on{ opacity:1; transform:none; }

/* stopwatch pill */
.demo-timer{
  position:absolute; top:34px; left:-18px; z-index:6;
  display:flex; align-items:center; gap:10px;
  background:#0F1A16; color:#fff; border-radius:15px; padding:12px 16px;
  box-shadow:0 16px 38px rgba(15,26,22,.28);
}
.demo-timer .tt{ font-size:19px; font-weight:800; letter-spacing:-0.02em; font-variant-numeric:tabular-nums; min-width:52px; }
.demo-timer .ts{ font-size:11px; font-weight:600; color:rgba(255,255,255,.6); margin-top:1px; }
.demo-timer .ring{ width:34px; height:34px; flex-shrink:0; }
.demo-timer.paid{ background:var(--accent); }
.demo-timer.paid .ts{ color:rgba(255,255,255,.8); }

/* paid chip */
.demo-chip{
  position:absolute; bottom:96px; right:-14px; z-index:6;
  display:flex; align-items:center; gap:10px;
  background:#fff; border-radius:15px; padding:11px 15px;
  box-shadow:0 14px 34px rgba(15,26,22,.14), 0 0 0 1px rgba(15,26,22,.04);
  opacity:0; transform:translateY(10px) scale(.95);
  transition:opacity .45s ease, transform .45s cubic-bezier(.34,1.4,.5,1);
}
.demo-chip.on{ opacity:1; transform:none; }

/* step dots under phone */
.demo-steps{ display:flex; gap:8px; margin-top:26px; }
.demo-step{
  display:flex; align-items:center; gap:8px; border:none; cursor:pointer;
  font-family:var(--font); font-size:13.5px; font-weight:700; letter-spacing:-0.01em;
  padding:9px 15px; border-radius:99px; background:var(--surface); color:var(--ink-3);
  box-shadow:inset 0 0 0 1.5px var(--line); transition:.2s;
}
.demo-step .dp{ width:7px; height:7px; border-radius:99px; background:var(--ink-4); transition:.2s; }
.demo-step.on{ background:var(--accent-tint); color:var(--accent-deep); box-shadow:inset 0 0 0 1.5px var(--accent-tint-2); }
.demo-step.on .dp{ background:var(--accent); }

/* ── interactive tour (how it works) ────────────────────── */
.tour{ display:grid; grid-template-columns:1fr 0.9fr; gap:clamp(36px,5vw,72px); align-items:center; margin-top:54px; }
.tour-cards{ display:flex; flex-direction:column; gap:14px; }
.tour-card{
  position:relative; text-align:left; border:none; cursor:pointer; overflow:hidden;
  background:var(--surface); border-radius:20px; padding:24px 24px 24px 26px;
  font-family:var(--font); box-shadow:0 1px 2px rgba(15,26,22,.05), 0 1px 0 var(--line);
  transition:transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.tour-card:hover{ transform:translateY(-2px); }
.tour-card.on{ box-shadow:0 2px 4px rgba(15,26,22,.06), 0 16px 36px rgba(15,26,22,.10), inset 0 0 0 2px var(--accent); }
.tour-card .tc-head{ display:flex; align-items:center; gap:14px; }
.tour-card .sn{ width:44px; height:44px; border-radius:13px; background:var(--accent-tint); color:var(--accent); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tour-card h3{ font-size:19px; font-weight:800; letter-spacing:-0.02em; color:var(--ink); margin:0; }
.tour-card .tc-tag{ margin-left:auto; font-size:12px; font-weight:800; letter-spacing:.08em; color:var(--ink-4); }
.tour-card p{ margin:12px 0 0; font-size:15px; color:var(--ink-2); font-weight:500; line-height:1.5; max-height:0; opacity:0; overflow:hidden; transition:max-height .35s ease, opacity .35s ease, margin .35s ease; }
.tour-card.on p{ max-height:90px; opacity:1; }
.tour-card:not(.on) p{ margin-top:0; }
.tour-card .bar{ position:absolute; left:0; bottom:0; height:3px; width:0; background:var(--accent); border-radius:0 3px 3px 0; }
.tour-card.on .bar{ animation:tourbar var(--tour-dur,6s) linear forwards; }
@keyframes tourbar{ from{ width:0; } to{ width:100%; } }
@media (prefers-reduced-motion:reduce){ .tour-card.on .bar{ animation:none; width:100%; } }

.tour-phone{ display:flex; justify-content:center; position:relative; }
.tour-phone .glow{ position:absolute; width:340px; height:340px; border-radius:50%; top:24px; background:radial-gradient(circle, rgba(14,122,82,.12), transparent 64%); z-index:0; }

/* ── count-up stat ──────────────────────────────────────── */
.trust-stat .big{ font-variant-numeric:tabular-nums; }

/* ── sticky mobile CTA ──────────────────────────────────── */
.mobile-cta{
  position:fixed; left:0; right:0; bottom:0; z-index:120; display:none;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.9); backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  box-shadow:0 -1px 0 var(--line), 0 -10px 30px rgba(15,26,22,.08);
  transform:translateY(110%); transition:transform .35s cubic-bezier(.22,.61,.36,1);
}
.mobile-cta.show{ transform:none; }
.mobile-cta .btn{ width:100%; }
@media (max-width:760px){ .mobile-cta{ display:block; } body{ scroll-padding-bottom:90px; } }

/* ── responsive tweaks for demo & tour ──────────────────── */
@media (max-width:980px){
  .tour{ grid-template-columns:1fr; }
  .tour-phone{ order:2; margin-top:8px; }
}
@media (max-width:760px){
  .demo-timer{ left:-4px; transform:scale(.9); transform-origin:top left; }
  .demo-chip{ right:-2px; transform-origin:bottom right; }
  .demo-chip.on{ transform:scale(.9); }
}

