/* Premier Leads additions: plan your week, proof, answer the call, headline reveals, cursor spotlight, magnetic
   buttons and the hero scroll-off. Loaded after styles.css. */

main { position: relative; }
.plan, .proof, .answer { position: relative; padding: var(--section) 0; }
.plan, .answer { border-top: 1px solid var(--line); }

/* ---------- Headline reveals: words rise in, the key word gets a gold underline ---------- */
h2.split .w { position: relative; display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
h2.split .wi { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out) calc(var(--k) * 70ms); }
h2.words-in .wi { transform: none; }
h2.split .w.key::after { content: ""; position: absolute; left: 0; right: 0; bottom: .07em; height: .075em; border-radius: 2px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi) 55%, var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) calc(var(--k) * 70ms + .55s); }
h2.words-in .w.key::after { transform: scaleX(1); }

/* ---------- Magnetic buttons: they lean toward the cursor (desktop only, set from extras.js) ---------- */
.btn { translate: var(--tx, 0px) var(--ty, 0px); transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .3s ease, translate .45s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Cursor spotlight on dark cards ---------- */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(240, 207, 127, .11), transparent 65%); }
.spot:hover::after { opacity: 1; }

/* ---------- Hero: optional video loop, and the scroll-off tilt ---------- */
.hero-map { transform-origin: 50% 85%; will-change: transform; }
.hero-video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; mix-blend-mode: screen; pointer-events: none; }

/* ---------- Plan your week ---------- */
.plan-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.planner { display: grid; gap: 22px; padding: clamp(20px, 3vw, 34px); border-radius: 24px; border: 1px solid var(--line); background: var(--graphite); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
.pl-field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.pl-field legend { margin-bottom: 10px; padding: 0; font-size: 14px; color: var(--mist); }
.pl-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pl-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 112px; align-items: end; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.pl-col { display: flex; flex-direction: column-reverse; align-items: center; gap: 3px; }
.pl-col i { width: min(100%, 26px); height: 5px; border-radius: 3px; background: #232327; transition: background-color .3s ease calc(var(--j) * 22ms), box-shadow .3s ease; }
.pl-col.on i { background: var(--gold); box-shadow: 0 0 8px rgba(212, 168, 75, .35); }
.pl-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(212, 168, 75, .28); background: rgba(212, 168, 75, .06); }
.pl-k { font-size: 13px; color: var(--ash); }
.pl-big { margin-top: 4px; font: 700 44px/1 var(--display); letter-spacing: -.035em; color: var(--white); font-variant-numeric: tabular-nums; }
.pl-big small { font: 500 16px/1 var(--body); letter-spacing: 0; color: var(--ash); }
.pl-week { margin-top: 6px; font: 600 21px/1.2 var(--display); letter-spacing: -.02em; color: var(--gold-hi); }
.pl-week.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.06); } }
.pl-note { font-size: 15px; color: var(--ash); }
.pl-cta { justify-self: start; }

/* ---------- Proof (hidden until real quotes or a recording are added) ---------- */
.rec { margin-top: 48px; display: flex; align-items: center; gap: 18px; max-width: 640px; padding: 18px; border-radius: 20px; border: 1px solid rgba(212, 168, 75, .3); background: var(--graphite); }
.rec-play { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 0; background: linear-gradient(180deg, #e3bc66, var(--gold)); color: var(--gold-ink); cursor: pointer; }
.rec-play svg { width: 22px; height: 22px; }
.rec-body { flex: 1; min-width: 0; }
.rec-title { font-size: 15px; color: var(--white); }
.rec-wave { margin-top: 10px; display: flex; align-items: center; gap: 3px; height: 32px; overflow: hidden; }
.rec-wave i { flex: none; width: 3px; height: var(--h); border-radius: 2px; background: #4a4a50; }
.rec.is-playing .rec-wave i { background: var(--gold); animation: wv 1s ease-in-out var(--dl) infinite; }
.quotes { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote { margin: 0; padding: 26px; border-radius: 22px; border: 1px solid var(--line-strong); background: var(--graphite); }
.quote p { font: 500 19px/1.45 var(--display); color: var(--white); }
.quote footer { margin-top: 18px; font-size: 14px; color: var(--ash); }

/* ---------- Answer the call ---------- */
.answer { overflow-x: clip; background: radial-gradient(55% 70% at 78% 55%, rgba(212, 168, 75, .12), transparent 70%); }
.answer-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.answer-stage { display: grid; justify-items: center; perspective: 1400px; }
.device-answer[data-state="ringing"] .scr-ring, .device-answer[data-state="connected"] .scr-live { pointer-events: auto; }
.device-answer.is-dragging .screen { animation: none !important; }
.ans-logo { overflow: hidden; }
.ans-tags { margin-top: 18px; }
.ans-wave { margin: auto 0; opacity: .55; }
.device-answer[data-state="ringing"] .ans-wave i { animation: talk 1.2s ease-in-out infinite; }
.ans-wave + .swipe { margin-top: 0; }
.ans-logo img { width: 62px; height: 62px; }
.swipe { position: relative; width: 100%; height: 64px; margin-top: auto; display: grid; align-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .06); overflow: hidden; }
.swipe-label { padding-left: 44px; text-align: center; font-size: 15px; background: linear-gradient(90deg, #77777e 35%, #fff 50%, #77777e 65%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.swipe-knob { position: absolute; left: 4px; top: 4px; width: 56px; height: 56px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: grab; touch-action: none;
  background: linear-gradient(180deg, #e8c46f, var(--gold)); color: var(--gold-ink); box-shadow: 0 6px 20px -6px rgba(212, 168, 75, .8);
  translate: var(--sx, 0px) 0; transition: translate .4s var(--ease-out); }
.swipe-knob svg { width: 22px; height: 22px; }
.swipe.is-dragging .swipe-knob { transition: none; cursor: grabbing; }
.device-answer[data-state="ringing"] .swipe-knob { animation: beckon 1.6s ease-in-out infinite; }
.swipe.is-dragging .swipe-knob { animation: none; }
.device-answer .scr-live .scr-name { margin-top: 44px; font-size: 32px; }
.device-answer .scr-live .scr-place { margin-top: 10px; max-width: 22ch; line-height: 1.45; }
.ans-cta { margin-top: auto; width: 100%; }
.ans-hang { margin-top: 10px; padding: 10px; border: 0; background: none; font-size: 14px; color: var(--ash); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .plan-grid, .answer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .quotes { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pl-seg span { padding: 11px 4px; font-size: 13px; }
  .pl-days { gap: 4px; }
  .pl-days .day { font-size: 11px; }
  .pl-big { font-size: 36px; }
  .pl-week { font-size: 18px; }
  .device-answer { --w: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  h2.split .wi { transform: none !important; }
  h2.split .w.key::after { transform: scaleX(1) !important; }
}
