/* Design pass on top of webinar.css (the faithful Lovable rebuild). Same copy, colours and fonts.
   Motion follows the web-motion skill: each effect has one job, and reduced motion shows the finished page.
   - Sticky header, so Register for Free is always one tap away.             (business job)
   - Hero arrives in reading order; photo and caption shift in depth with the pointer.   (order, showpiece)
   - Schedule becomes a card lifted over the hero.                            (layout)
   - DV360 access card: a border light follows the pointer (recipe 04).       (the page heard you)
   - Topic bars draw and numbers take their colour as each card scrolls in (recipe 03). (order)
   - Closing band in the brand blue with the yellow button.                   (layout) */

:root{
  --arrive:cubic-bezier(.2,.8,.2,1);
  --move:cubic-bezier(.65,0,.35,1);
  --header-h:100px;
}
html{scroll-padding-top:calc(var(--header-h) + 16px)}
.top-sentinel{position:absolute;top:0;left:0;height:1px;width:1px}

/* focus that shows on every background */
.btn:focus-visible,a:focus-visible,button:focus-visible{outline:2px solid var(--primary);outline-offset:3px;box-shadow:none;border-radius:5px}

/* buttons answer the pointer: the arrow nudges toward where it goes */
.btn svg{transition:transform .18s var(--arrive)}
@media (hover:hover){
  .btn:hover svg{transform:translate(2px,-2px)}
}
.btn:active{transform:translateY(1px)}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:20;transition:background-color .2s,box-shadow .2s,border-color .2s}
.site-header.is-stuck{box-shadow:0 10px 28px -20px color-mix(in oklab,var(--foreground) 45%,transparent)}
.desktop-nav a{position:relative}
.desktop-nav a::after{content:"";position:absolute;left:0;right:0;bottom:-6px;height:1.5px;background:var(--primary);transform:scaleX(0);transform-origin:left;transition:transform .2s var(--arrive)}
@media (hover:hover){.desktop-nav a:hover::after{transform:scaleX(1)}}
.mobile-nav a{font-family:var(--font-ui);font-size:15px;padding:12px 0;border-bottom:1px solid var(--border)}
.mobile-nav a:last-child{border-bottom:0}

/* ---------- hero ---------- */
.hero-inner{padding-bottom:93px}
.hero-photo{overflow:hidden;will-change:transform}
.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:inherit;max-width:none;transform:scale(1.045);transform-origin:60% 50%}
.photo-caption{bottom:85px;will-change:transform}
.webinar-hero h1 .line{display:block;overflow:hidden;padding-bottom:.06em;margin-bottom:-.06em}
.webinar-hero h1 .line>span{display:inline-block}
.walkthrough-label>span{transform-origin:left}
.live-dot{position:relative}
.hero-note{flex-wrap:wrap;row-gap:2px}
.hero-note .ni{white-space:nowrap;margin-inline:0}
.hero-note .dot{margin-inline:4px}
.live-dot::after{content:"";position:absolute;inset:0;border-radius:50%;background:var(--primary);opacity:0}

/* ---------- schedule card ---------- */
.event-details{background:transparent;border-bottom:0;position:relative;z-index:2;margin-top:-46px;padding-bottom:44px}
.event-inner{background:var(--background);border:1px solid var(--border);border-radius:10px;padding:26px 34px;box-shadow:0 24px 50px -32px color-mix(in oklab,var(--foreground) 40%,transparent)}

/* ---------- DV360 access: border light ---------- */
.light-area{position:relative;isolation:isolate}
.light-area::before{content:"";position:absolute;inset:-2px;border-radius:inherit;padding:2px;pointer-events:none;z-index:1;
  background:radial-gradient(260px circle at var(--x,-999px) var(--y,-999px),var(--coral),transparent 70%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  opacity:0;transition:opacity .3s}
.access-perk.light-area::before{inset:-1px;padding:1.5px;background:radial-gradient(180px circle at var(--x,-999px) var(--y,-999px),var(--coral),transparent 70%)}
@media (hover:hover){
  .access-card:hover .light-area::before,.access-card.light-area:hover::before{opacity:1}
  .access-perk{transition:transform .2s var(--arrive),background-color .2s}
  .access-perk:hover{transform:translateY(-3px);background:color-mix(in oklab,var(--benefit-background) 60%,var(--background))}
}

/* ---------- topics ---------- */
.topic{transition:transform .22s var(--arrive),box-shadow .22s}
@media (hover:hover){
  .topic:hover{transform:translateY(-4px);box-shadow:0 22px 40px -30px color-mix(in oklab,var(--foreground) 50%,transparent)}
}
.topic-bottom{transform-origin:left}
.topic-number{transition:color .3s}

/* ---------- closing band ---------- */
.final-section{background:var(--primary);color:var(--primary-foreground);position:relative;overflow:hidden;isolation:isolate;padding-block:84px}
.final-section::before{content:"";position:absolute;inset:0;z-index:-1;
  background:radial-gradient(520px circle at 88% 120%,color-mix(in oklab,var(--registration) 38%,transparent),transparent 70%),
             radial-gradient(420px circle at 70% -30%,color-mix(in oklab,var(--coral) 30%,transparent),transparent 70%),
             radial-gradient(color-mix(in oklab,#fff 16%,transparent) 1px,transparent 1.5px) 0 0/22px 22px;
  -webkit-mask:linear-gradient(90deg,transparent 30%,#000 75%);mask:linear-gradient(90deg,transparent 30%,#000 75%)}
.final-section .eyebrow{color:#fff}
.final-inner h2{font-size:40px}
.final-inner p{color:#fff}
.final-section .btn-primary{background:var(--registration);color:var(--foreground)}
.final-section .btn-primary:hover{background:color-mix(in oklab,var(--registration) 88%,#fff)}
.final-section .btn:focus-visible{outline-color:#fff}
.final-action>span{color:#fff}

/* ---------- arrival and scroll motion (only when motion is welcome) ---------- */
@media (prefers-reduced-motion:no-preference){
  html:not(.reduced) .hero-labels,
  html:not(.reduced) .walkthrough-label,
  html:not(.reduced) .hero-description,
  html:not(.reduced) .hero-inner>.register-button,
  html:not(.reduced) .hero-note{animation:rise .7s var(--arrive) both}
  html:not(.reduced) .hero-labels{animation-delay:.05s}
  html:not(.reduced) .webinar-hero h1 .line>span{animation:line-up .8s var(--arrive) both}
  html:not(.reduced) .webinar-hero h1 .line:nth-child(1)>span{animation-delay:.12s}
  html:not(.reduced) .webinar-hero h1 .line:nth-child(2)>span{animation-delay:.2s}
  html:not(.reduced) .webinar-hero h1 .line:nth-child(3)>span{animation-delay:.28s}
  html:not(.reduced) .walkthrough-label{animation-delay:.4s}
  html:not(.reduced) .walkthrough-label>span{animation:draw .6s var(--move) .5s both}
  html:not(.reduced) .hero-description{animation-delay:.48s}
  html:not(.reduced) .hero-inner>.register-button{animation-delay:.56s}
  html:not(.reduced) .hero-note{animation-delay:.62s}
  html:not(.reduced) .hero-photo img{animation:settle 1.4s var(--arrive) both}
  html:not(.reduced) .photo-caption{animation:rise .8s var(--arrive) .7s both}
  html:not(.reduced) .event-inner{animation:rise .8s var(--arrive) .45s both}
  /* the live dot pings three times, then rests */
  html:not(.reduced) .live-dot::after{animation:ping 1.5s cubic-bezier(0,0,.2,1) 1s 3}
  /* the broadcast icon sends three signals, then rests */
  html:not(.reduced) .photo-caption .wave-in{animation:wave 1.2s ease-out 1.5s 3}
  html:not(.reduced) .photo-caption .wave-out{animation:wave 1.2s ease-out 1.7s 3}

  @supports (animation-timeline:view()){
    html:not(.reduced) .topic{view-timeline:--topic block}
    html:not(.reduced) .topic-bottom{animation:draw linear both;animation-timeline:--topic;animation-range:entry 55% entry 100%}
    html:not(.reduced) .topic:nth-child(1) .topic-number{animation:num-blue linear both;animation-timeline:--topic;animation-range:entry 40% entry 90%}
    html:not(.reduced) .topic:nth-child(2) .topic-number{animation:num-yellow linear both;animation-timeline:--topic;animation-range:entry 40% entry 90%}
    html:not(.reduced) .topic:nth-child(3) .topic-number{animation:num-coral linear both;animation-timeline:--topic;animation-range:entry 40% entry 90%}
  }
}
/* without scroll timelines, numbers simply show their colour */
@supports not (animation-timeline:view()){
  .topic:nth-child(1) .topic-number{color:color-mix(in oklab,var(--primary) 35%,var(--background))}
  .topic:nth-child(2) .topic-number{color:color-mix(in oklab,var(--registration) 75%,var(--background))}
  .topic:nth-child(3) .topic-number{color:color-mix(in oklab,var(--coral) 40%,var(--background))}
}
html.reduced .topic:nth-child(1) .topic-number{color:color-mix(in oklab,var(--primary) 35%,var(--background))}
html.reduced .topic:nth-child(2) .topic-number{color:color-mix(in oklab,var(--registration) 75%,var(--background))}
html.reduced .topic:nth-child(3) .topic-number{color:color-mix(in oklab,var(--coral) 40%,var(--background))}

@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes line-up{from{transform:translateY(105%)}to{transform:none}}
@keyframes draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes settle{from{transform:scale(1.12)}to{transform:scale(1.045)}}
@keyframes ping{0%{transform:scale(1);opacity:.55}100%{transform:scale(3);opacity:0}}
@keyframes wave{0%,100%{opacity:1}40%{opacity:.25}}
@keyframes num-blue{from{color:var(--border)}to{color:color-mix(in oklab,var(--primary) 35%,var(--background))}}
@keyframes num-yellow{from{color:var(--border)}to{color:color-mix(in oklab,var(--registration) 75%,var(--background))}}
@keyframes num-coral{from{color:var(--border)}to{color:color-mix(in oklab,var(--coral) 40%,var(--background))}}

@media (max-width:850px){
  :root{--header-h:82px}
  .final-inner h2{font-size:32px}
}
@media (max-width:600px){
  :root{--header-h:76px}
  .hero-inner{padding-bottom:58px}
  .event-details{margin-top:-26px;padding-bottom:28px}
  .event-inner{padding:18px 16px;border-radius:8px}
  .final-section{padding-block:52px}
  .final-inner h2{font-size:29px}
}

/* even line breaks on headings, so no word sits alone on its own line */
h1,h2,h3{text-wrap:balance}
