/* Landing-page motion: hero phone, ticker, scroll reveals, hover states.
   Everything here degrades to a static page under prefers-reduced-motion (see the bottom). */

/* ------------------------------------------------------------------ hero layout */
.hero { position: relative; overflow: hidden; text-align: left; padding: 76px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px; align-items: center; }
.hero h1 { margin: 0; max-width: 11ch; }
.hero .lede { margin: 24px 0 0; max-width: 34rem; }
.hero-cta { justify-content: flex-start; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-soft) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.04em; /* keeps the italic-ish edge of the full stop from clipping */
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; pointer-events: none;
  background:
    radial-gradient(closest-side at 62% 45%, rgba(124, 196, 255, 0.28), transparent 70%),
    radial-gradient(closest-side at 75% 70%, rgba(10, 92, 255, 0.10), transparent 70%);
}

/* Load-in: each .hero-in rises in turn (--d sets the order) */
.hero-in { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { text-align: center; padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero h1 { margin: 0 auto; }
  .hero .lede { margin: 22px auto 0; }
  .hero-cta { justify-content: center; }
  .hero-glow { inset: auto -30% -10% -30%; width: auto; height: 70%; }
}

/* ------------------------------------------------------------------ the phone */
.hero-stage { display: grid; justify-items: center; gap: 26px; }
.phone {
  position: relative; width: 292px; height: 600px; border-radius: 52px; padding: 11px;
  background: linear-gradient(145deg, #2a2d34, #0d0e12 40%, #1c1e24);
  box-shadow:
    0 0 0 1.5px #3a3d45 inset,
    0 50px 90px -30px rgba(11, 27, 63, 0.45),
    0 24px 40px -24px rgba(11, 27, 63, 0.35);
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 150px; width: 3px; height: 72px; border-radius: 0 3px 3px 0; background: #2a2d34;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 42px; overflow: hidden; color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, #17306b 0%, var(--navy) 55%, #060d20 100%);
  font-size: 13px; letter-spacing: 0;
}
.island {
  position: absolute; z-index: 3; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; border-radius: 20px; background: #000;
  display: flex; align-items: center; justify-content: flex-end; padding-right: 11px;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.island-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); opacity: 0; transition: opacity 0.3s; }
.phone[data-scene="live"] .island { width: 118px; }
.phone[data-scene="live"] .island-dot { opacity: 1; animation: blink 1.4s ease-in-out infinite; }
.status {
  position: absolute; z-index: 2; top: 15px; left: 0; right: 0; padding: 0 28px;
  display: flex; justify-content: space-between; font-weight: 600; font-size: 13px;
}
.status-icons { display: flex; gap: 5px; align-items: center; }
.sig {
  width: 16px; height: 10px;
  background:
    linear-gradient(#fff, #fff) 0 100% / 3px 40% no-repeat, linear-gradient(#fff, #fff) 4.3px 100% / 3px 60% no-repeat,
    linear-gradient(#fff, #fff) 8.6px 100% / 3px 80% no-repeat, linear-gradient(#fff, #fff) 13px 100% / 3px 100% no-repeat;
}
.bat { width: 22px; height: 10px; border-radius: 3px; border: 1.2px solid rgba(255,255,255,0.7); position: relative; }
.bat::after { content: ""; position: absolute; inset: 1.5px 5px 1.5px 1.5px; border-radius: 1.5px; background: #fff; }

/* Scenes cross-fade in place */
.scene {
  position: absolute; inset: 0; padding: 66px 18px 22px;
  opacity: 0; transform: scale(0.96); pointer-events: none;
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone[data-scene="ring"] .scene-ring,
.phone[data-scene="live"] .scene-live,
.phone[data-scene="lock"] .scene-lock { opacity: 1; transform: none; }

/* 1. Incoming call */
.scene-ring { display: flex; flex-direction: column; align-items: center; text-align: center; }
.call-kind { margin-top: 26px; color: rgba(255,255,255,0.6); font-size: 13px; }
.avatar {
  position: relative; margin-top: 30px; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; font: 600 30px/1 var(--font-display); letter-spacing: 0.02em;
  background: linear-gradient(160deg, #8fa3c7, #5d6f94);
}
.avatar b { position: relative; z-index: 1; font-weight: 600; }
.ripple { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(124, 196, 255, 0.55); animation: ripple 2.2s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.ripple.r2 { animation-delay: 0.73s; }
.ripple.r3 { animation-delay: 1.46s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.9; } to { transform: scale(2.1); opacity: 0; } }
.caller { margin-top: 26px; font: 600 26px/1.15 var(--font-display); letter-spacing: -0.02em; }
.caller-sub { margin-top: 6px; color: rgba(255,255,255,0.6); }
.busy-tag {
  margin-top: 22px; padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(255, 255, 255, 0.1); color: rgba(255,255,255,0.85);
  opacity: 0; transform: translateY(6px); transition: opacity 0.4s ease 1.1s, transform 0.5s cubic-bezier(0.2,0.8,0.2,1) 1.1s;
}
.phone[data-scene="ring"] .busy-tag { opacity: 1; transform: none; }
.call-btns { margin-top: auto; width: 100%; display: flex; justify-content: space-between; padding: 0 22px 18px; }
.cbtn { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; }
.cbtn::before {
  content: ""; width: 28px; height: 28px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.5h2.2l1.6 4-2 1.3a11 11 0 0 0 6.8 6.8l1.3-2 4 1.6v2.2a2 2 0 0 1-2.1 2A16.5 16.5 0 0 1 4.6 5.6a2 2 0 0 1 2-2.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 3.5h2.2l1.6 4-2 1.3a11 11 0 0 0 6.8 6.8l1.3-2 4 1.6v2.2a2 2 0 0 1-2.1 2A16.5 16.5 0 0 1 4.6 5.6a2 2 0 0 1 2-2.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.decline { background: #ff3b30; }
.decline::before { transform: rotate(135deg); }
.accept { background: #34c759; animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 70% { transform: rotate(-12deg); } 80% { transform: rotate(10deg); } 90% { transform: rotate(-6deg); } }

/* 2. Omni answers */
.scene-live { display: flex; flex-direction: column; }
.live-head { display: flex; gap: 11px; align-items: center; padding: 6px 4px 0; }
.live-head img { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: var(--accent); }
.live-title { font-weight: 600; font-size: 15px; }
.live-sub { color: rgba(255,255,255,0.6); font-size: 12px; display: flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ff453a; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.wave { display: flex; gap: 4px; align-items: center; justify-content: center; height: 46px; margin: 14px 0 10px; }
.wave i { width: 3px; height: 100%; border-radius: 3px; background: var(--accent-soft); transform: scaleY(0.15); opacity: 0.9; }
.phone[data-scene="live"]:not(.hung-up) .wave i { animation: talk 0.9s ease-in-out infinite; }
.wave i:nth-child(3n)   { animation-delay: -0.2s !important; animation-duration: 0.7s !important; }
.wave i:nth-child(3n+1) { animation-delay: -0.45s !important; animation-duration: 1.05s !important; }
.wave i:nth-child(4n)   { animation-delay: -0.6s !important; }
.wave i:nth-child(5n)   { animation-duration: 0.8s !important; }
@keyframes talk { 0%, 100% { transform: scaleY(0.15); } 50% { transform: scaleY(0.85); } }
.chat { display: flex; flex-direction: column; gap: 8px; }
.bubble {
  max-width: 84%; padding: 9px 12px; border-radius: 18px; font-size: 12.5px; line-height: 1.35;
  opacity: 0; transform: translateY(10px) scale(0.96); transform-origin: bottom left;
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bubble.them { align-self: flex-start; background: rgba(255, 255, 255, 0.12); border-bottom-left-radius: 6px; }
.bubble.omni { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 6px; transform-origin: bottom right; }
.bubble.show { opacity: 1; transform: none; }
.ended {
  margin-top: auto; align-self: center; padding: 7px 14px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8);
  opacity: 0; transform: translateY(8px); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.phone.hung-up .ended { opacity: 1; transform: none; }

/* 3. Lock screen */
.scene-lock { text-align: center; background: radial-gradient(90% 55% at 50% 100%, rgba(10, 92, 255, 0.55), transparent 70%); }
.lock-date { margin-top: 18px; font-weight: 600; font-size: 15px; color: rgba(255,255,255,0.85); }
.lock-time { font: 700 76px/1 var(--font-display); letter-spacing: -0.03em; margin-top: 2px; }
.lock-notifs { margin-top: 34px; display: grid; gap: 8px; text-align: left; }
.ln {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
  padding: 11px 12px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0; transform: translateY(-14px) scale(0.96);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ln.show { opacity: 1; transform: none; }
.ln img { width: 34px; height: 34px; border-radius: 8px; }
.ln-top { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.7); }
.ln-top b { font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.ln-title { font-weight: 600; font-size: 13px; margin-top: 1px; }
.ln-body { font-size: 12.5px; color: rgba(255,255,255,0.85); line-height: 1.3; }
.cal-icon {
  width: 34px; height: 34px; border-radius: 8px; background: #fff; color: #1d1d1f;
  display: grid; place-items: center; align-content: center; font: 600 15px/1 var(--font);
}
.cal-icon small { font-size: 7px; color: #ff3b30; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 1px; }

/* Step labels under the phone follow the animation */
.stage-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.stage-steps li {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px 7px 8px; border-radius: 99px;
  font-size: 0.8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.005em;
  transition: background 0.35s ease, color 0.35s ease;
}
.stage-steps span {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px;
  background: var(--line); color: var(--muted); transition: background 0.35s ease, color 0.35s ease;
}
.stage-steps li.on { background: var(--surface); color: var(--ink); }
.stage-steps li.on span { background: var(--accent); color: #fff; }

/* ------------------------------------------------------------------ ticker */
.ticker {
  overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker + section { border-top: 0; }
.ticker-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { display: flex; align-items: center; font-size: 1.0625rem; font-weight: 600; color: #86868b; white-space: nowrap; }
.ticker span::after { content: ""; width: 5px; height: 5px; margin: 0 26px; border-radius: 50%; background: var(--accent-soft); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ scroll reveals (js/site.js adds .in) */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ icons + cards */
.ico { width: 28px; height: 28px; margin-bottom: 14px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-lg { width: 36px; height: 36px; margin-bottom: 20px; }
.step::before { background: var(--accent); }

@media (hover: hover) {
  .step, .tile, .plan { transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, opacity 0.8s ease; }
  .step:hover, .tile:hover, .plan:hover { transform: translateY(-4px); box-shadow: 0 22px 44px -24px rgba(11, 27, 63, 0.28); }
  .btn-primary:hover { box-shadow: 0 8px 22px -10px rgba(10, 92, 255, 0.6); }
  .btn-ring:hover .ring-icon { animation: ring 0.9s ease-in-out; }
}
.plan.popular { box-shadow: 0 30px 60px -36px rgba(10, 92, 255, 0.45); }
@keyframes ring { 10%, 30%, 50%, 70% { transform: rotate(-14deg); } 20%, 40%, 60% { transform: rotate(14deg); } 80% { transform: none; } }
.ring-icon { transform-origin: 50% 50%; }

.foot-brand { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------------ reduced motion: keep the story, drop the movement */
@media (prefers-reduced-motion: reduce) {
  .phone .scene, .phone .bubble, .phone .ln, .phone .ended, .phone .busy-tag {
    transition: opacity 0.3s ease !important; transform: none !important;
  }
  .js [data-reveal] { transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; }
  .ticker-track span:nth-child(n + 15) { display: none; }
}
