/* Jenerise CreatinED webinar page: Brain Creatine Dynamics with Dr Jedd Pratt.
   Visual language from the Brand Partner Library / Transparency Hub / Webinars library
   (same palette, Manrope + Nunito Sans + IBM Plex Mono). Mobile first; min-width = desktop.
   Rules: sentence-case headings (never text-transform), body text in --ink (darkest colour). */
@font-face{font-family:"Manrope";src:url("fonts/Manrope-var.ttf") format("truetype");font-weight:200 800;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url("fonts/NunitoSans-var.ttf") format("truetype");font-weight:200 1000;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("fonts/IBMPlexMono-Medium.ttf") format("truetype");font-weight:500;font-display:swap}

:root{
  --ink:#2A153C; --purple:#39207E; --violet:#7B53E9; /* --violet = bright neon: interactive elements ONLY */ --soft:#7D66C4; /* lighter purple for non-interactive labels */ --white:#FFFFFF;
  --lilac:#F6F4FA; --lilac2:#EEEAF7; --hair:#E4E0EB; --muted:#5E5468;
  --gut:20px; --max:1180px; --hs:128px; /* headshot size */
  --sec:88px;           /* vertical rhythm between sections (phone) */
  --r:22px;
  --head:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;
  --body:"Nunito Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
html,body{margin:0;background:var(--white);color:var(--ink)}
body{font:400 17px/1.6 var(--body);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html.embedded,html.embedded body{background:transparent;overflow:hidden;scroll-behavior:auto}
img{display:block;max-width:100%}
a{color:var(--violet)}
h1,h2,h3{font-family:var(--head);color:var(--ink);margin:0;text-wrap:balance}
p{margin:0}
.page{padding-bottom:72px} /* room under the footer for the Squidler badge (bottom-right 210×42) */
.wrap{width:100%;max-width:var(--max);margin:0 auto;padding-left:var(--gut);padding-right:var(--gut)}
.sec{padding-top:var(--sec)}
.eyebrow{font:500 13px/1.3 var(--mono);letter-spacing:.02em;color:rgba(255,255,255,.86);display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.eyebrow.dark{color:var(--soft)}
.eyebrow.center{justify-content:center}
.pill{display:inline-block;background:var(--white);color:var(--purple);border-radius:999px;padding:5px 11px;font:700 12.5px/1 var(--body)}
h2{font-size:clamp(34px,8.6vw,60px);line-height:1.02;font-weight:800;letter-spacing:-.035em}
h3{font-size:20px;line-height:1.2;font-weight:800;letter-spacing:-.015em}
.lede{font-size:18px;line-height:1.6;color:var(--ink);max-width:640px;margin-top:20px}
.sec-head{margin-bottom:40px}
i{font-style:normal;opacity:.5;padding:0 2px}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:54px;padding:0 28px;border-radius:999px;font:800 16px/1 var(--head);letter-spacing:-.005em;text-decoration:none;border:0;cursor:pointer;transition:transform .15s ease,background .2s ease,box-shadow .2s ease,color .2s}
.btn:active{transform:scale(.98)}
.btn:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.btn-light{background:var(--violet);color:var(--white)}
.btn-light:hover{background:#6A41DB;box-shadow:0 10px 30px rgba(20,8,40,.28)}
.btn-ghost{background:rgba(123,83,233,.22);color:var(--white);box-shadow:inset 0 0 0 2px var(--violet)}
.btn-ghost:hover{background:rgba(123,83,233,.5)}
.btn-dark{background:var(--violet);color:var(--white)}
.btn-dark:hover{background:#6A41DB;box-shadow:0 10px 26px rgba(123,83,233,.35)}
.btn-outline{background:transparent;color:var(--violet);box-shadow:inset 0 0 0 2px var(--violet)}
.btn-outline:hover{background:var(--lilac)}
.btn-wide{width:100%}

/* ---------- hero (full bleed photo) ---------- */
.hero{position:relative;color:var(--white);background:var(--ink);min-height:min(100svh,860px);display:flex}
html.embedded .hero{min-height:min(calc(var(--pvh,780px) - 70px),860px)} /* inside the iframe 100svh would be the whole frame */
.hero-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 40%}
.hero-shade{position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(42,21,60,.55) 0%,rgba(42,21,60,.35) 30%,rgba(42,21,60,.82) 66%,rgba(42,21,60,.96) 100%)}
.hero-in{position:relative;display:flex;flex-direction:column;justify-content:space-between;padding-top:22px;padding-bottom:calc(var(--hs) / 2 + 28px);gap:72px}
.crumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;font:500 12.5px/1.4 var(--mono);color:rgba(255,255,255,.75)}
.crumb a{color:rgba(255,255,255,.9);text-decoration:none}
.crumb a:hover{text-decoration:underline}
.crumb b{font-weight:500;color:var(--white)}
.hero-copy{max-width:820px}
.hero h1{color:var(--white);font-size:clamp(48px,14.5vw,124px);line-height:.92;font-weight:800;letter-spacing:-.05em}
.hero-sub{font-size:19px;line-height:1.5;margin-top:22px;max-width:560px;color:rgba(255,255,255,.94);text-wrap:balance}
.hero-sub .inst,.hero-sub .nm{white-space:nowrap}
.when{display:grid;grid-template-columns:1fr;gap:0;margin:32px 0 0;border-top:1px solid rgba(255,255,255,.22)}
.when>div{padding:14px 0;border-bottom:1px solid rgba(255,255,255,.22);display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.when dt{font:500 12.5px/1.3 var(--mono);color:rgba(255,255,255,.72)}
.when dd{margin:0;font:800 17px/1.3 var(--head);text-align:right}
.zones{font:500 12.5px/1.6 var(--mono);color:rgba(255,255,255,.75);margin-top:14px}
.actions{display:flex;flex-direction:column;gap:12px;margin-top:30px}
.actions .btn-ghost{display:none} /* phone: one clear CTA, kept clear of the badge */
.countdown{font:500 13px/1.4 var(--mono);color:rgba(255,255,255,.8);margin-top:18px;min-height:18px}

/* ---------- what you'll learn ---------- */
.learn-lede{text-wrap:balance}
.outline{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.outline li{display:flex;gap:18px;padding:26px 22px;background:var(--lilac);border-radius:var(--r)}
.outline .num{font:500 14px/1 var(--mono);color:var(--soft);padding-top:5px;min-width:26px}
.outline p{margin-top:8px;font-size:16.5px}

/* ---------- speaker ---------- */
.speaker{padding-top:calc(var(--hs) / 2 + 36px)}
.sp-in{position:relative}
.sp-card{display:flex;flex-direction:column;gap:22px;position:relative}
.hero-avatar{position:absolute;left:0;right:0;bottom:0;z-index:3;pointer-events:none}
.headshot{width:var(--hs);height:var(--hs);border-radius:50%;object-fit:cover;border:5px solid var(--white);background:var(--lilac);box-shadow:0 12px 34px rgba(42,21,60,.28);transform:translateY(50%)}
.sp-id h2{margin-top:-4px}
.role{font:700 15.5px/1.45 var(--head);color:var(--ink);margin-top:14px;text-wrap:pretty}
.role span{display:inline}
.loc{display:flex;align-items:center;gap:6px;margin-top:8px;font:700 14.5px/1.3 var(--head);color:var(--muted)}
.loc svg{flex:none;color:var(--soft)}
.sp-links{list-style:none;padding:0;margin:18px 0 0;display:flex;flex-wrap:wrap;gap:6px}
.sp-links a{display:inline-flex;align-items:center;min-height:38px;padding:0 13px;border-radius:999px;background:var(--violet);color:var(--white);font:700 13.5px/1 var(--body);text-decoration:none;transition:background .2s}
.sp-links a:hover{background:#6A41DB}
.sp-body{margin-top:36px}
.bio p{font-size:17.5px;line-height:1.65}
.bio p+p{margin-top:14px}
.pubs-h{margin-top:44px;font-size:22px}
.pubs{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid var(--hair)}
.pubs li{border-bottom:1px solid var(--hair)}
.pubs a{display:flex;flex-direction:column;gap:6px;padding:18px 34px 18px 0;text-decoration:none;color:var(--ink);position:relative}
.pubs a::after{content:"";position:absolute;right:6px;top:24px;width:9px;height:9px;border-top:2px solid var(--violet);border-right:2px solid var(--violet);transform:rotate(45deg);transition:right .15s}
.pubs a:hover::after{right:2px}
.pub-t{font:700 16.5px/1.4 var(--head)}
.pubs a:hover .pub-t{color:var(--purple)}
.pub-m{font:500 12.5px/1.4 var(--mono);color:var(--muted)}

/* ---------- why join (dark band with photo) ---------- */
.why{margin-top:var(--sec);background:var(--ink);color:var(--white)}
.why-in{display:grid;gap:0}
.why-copy{padding:64px 0 72px}
.why h2{color:var(--white)}
.why-list{list-style:none;margin:36px 0 40px;padding:0;display:grid;gap:26px}
.why-list li{padding-top:22px;border-top:1px solid rgba(255,255,255,.18)}
.why-list h3{color:var(--white);font-size:21px}
.why-list p{margin-top:8px;color:rgba(255,255,255,.9);font-size:16.5px}

/* ---------- register ---------- */
.reg{display:grid;gap:34px}
.reg-facts{list-style:none;margin:28px 0 0;padding:0;border-top:1px solid var(--hair)}
.reg-facts li{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--hair)}
.reg-facts span{font:500 12.5px/1.6 var(--mono);color:var(--muted)}
.reg-facts b{font:800 16px/1.4 var(--head);text-align:right}
.reg-card{background:var(--lilac);border-radius:28px;padding:26px 20px;display:grid;gap:16px;align-self:start;scroll-margin-top:24px}
.row2{display:grid;gap:16px}
.field{display:grid;gap:8px}
.field>span{font:700 15px/1.2 var(--head)}
.field input{appearance:none;width:100%;height:56px;border:1.5px solid var(--hair);border-radius:16px;background:var(--white);padding:0 16px;font:600 17px/1 var(--body);color:var(--ink);transition:border-color .15s,box-shadow .15s}
.field input:focus{outline:0;border-color:var(--violet);box-shadow:0 0 0 4px rgba(123,83,233,.18)}
.field input[aria-invalid="true"]{border-color:#B3261E}
.err{font:600 13.5px/1.3 var(--body);color:#B3261E;font-style:normal;min-height:0}
.err:empty{display:none}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
#reg-btn{margin-top:6px;position:relative;min-height:58px;font-size:17px}
#reg-btn .spin{display:none;width:20px;height:20px;border-radius:50%;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;animation:sp .8s linear infinite}
#reg-btn.busy .lbl{opacity:.75}
#reg-btn.busy .spin{display:inline-block}
#reg-btn[disabled]{cursor:progress}
@keyframes sp{to{transform:rotate(360deg)}}
.form-err{font:600 15px/1.45 var(--body);color:#B3261E;background:#FCEEEE;border-radius:14px;padding:12px 14px}
.fine{font-size:14px;line-height:1.5;color:var(--muted)}

/* ---------- past webinars ---------- */
.past{margin-top:var(--sec);background:var(--lilac);padding:var(--sec) 0}
.sec-head.row{display:flex;flex-direction:column;gap:24px}
.row-h{font-size:18px;margin:8px 0 16px}
.row-h~.row-h{margin-top:40px}
.cards{display:grid;gap:14px;grid-auto-flow:column;grid-auto-columns:80%;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none;margin:0 calc(var(--gut) * -1);padding:4px var(--gut) 10px;scroll-padding:0 var(--gut)}
.cards::-webkit-scrollbar{display:none}
.cards>.card{scroll-snap-align:start}
.card{display:flex;flex-direction:column;background:var(--white);border-radius:20px;overflow:hidden;text-decoration:none;color:var(--ink);transition:transform .2s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(42,21,60,.12)}
.card:focus-visible{outline:3px solid var(--violet);outline-offset:3px}
.thumb{position:relative;aspect-ratio:16/9;background:var(--purple);overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card:hover .thumb img{transform:scale(1.03)}
.play{position:absolute;left:14px;bottom:14px;width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.95);color:var(--purple);display:grid;place-items:center;box-shadow:0 6px 18px rgba(0,0,0,.22)}
.dur{position:absolute;right:12px;bottom:14px;background:rgba(42,21,60,.82);color:#fff;font:500 12px/1 var(--mono);padding:6px 8px;border-radius:8px}
.card-b{padding:18px 18px 20px;display:grid;gap:8px}
.card-k{font:500 12.5px/1.3 var(--mono);color:var(--soft)}
.card-t{font:800 18px/1.25 var(--head);letter-spacing:-.01em}
.card-s{font-size:14.5px;color:var(--muted);line-height:1.45}
.more-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:40px}
.more-links a{display:inline-flex;align-items:center;min-height:42px;padding:0 18px;border-radius:999px;background:var(--white);color:var(--violet);font:700 15px/1 var(--body);text-decoration:none;box-shadow:inset 0 0 0 1.5px var(--violet)}
.more-links a:hover{background:var(--violet);color:var(--white)}

/* ---------- about ---------- */
.about-grid{display:grid;gap:28px}
.about .lede{margin-top:20px;font-size:19px;max-width:760px;text-wrap:balance}
.about-actions{display:flex;flex-wrap:wrap;gap:12px}

/* ---------- FAQ ---------- */
.faq-list{margin-top:32px;border-top:1px solid var(--hair)}
.faq details{border-bottom:1px solid var(--hair)}
.faq summary{list-style:none;cursor:pointer;padding:22px 44px 22px 0;font:800 18px/1.35 var(--head);position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:8px;top:27px;width:10px;height:10px;border-right:2.2px solid var(--purple);border-bottom:2.2px solid var(--purple);transform:rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:rotate(225deg);top:32px}
.faq summary:focus-visible{outline:3px solid var(--violet);outline-offset:2px;border-radius:6px}
.faq details p{padding:0 0 24px;font-size:16.5px;max-width:720px}
.faq details p a{color:var(--violet);font-weight:700;text-underline-offset:3px}

/* ---------- closing ---------- */
.closing{padding-top:var(--sec)}
.closing-in{background:var(--purple);color:var(--white);border-radius:28px;padding:48px 24px;text-align:center;display:grid;gap:14px;justify-items:center}
.closing h2{color:var(--white)}
.closing p{font:700 17px/1.4 var(--head);color:rgba(255,255,255,.9);margin-bottom:12px}
.foot{padding-top:40px}
.foot p{font:500 12.5px/1.5 var(--mono);color:var(--muted)}

/* ---------- confirmation pop-up ---------- */
.modal{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:16px 16px 60px} /* 64px bottom keeps the card clear of the badge */
.modal[hidden]{display:none}
html.embedded .modal{position:absolute;inset:auto 0 auto 0;top:var(--vp-top,0px);height:var(--vp-h,100vh)}
.modal-back{position:absolute;inset:0;background:rgba(42,21,60,.55);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);opacity:0;transition:opacity .25s}
html.embedded .modal-back{position:fixed} /* the iframe is tall: dim the whole of it */
.modal-card{position:relative;width:100%;max-width:460px;max-height:100%;overflow:auto;background:var(--white);border-radius:28px;padding:34px 24px 24px;text-align:center;box-shadow:0 30px 80px rgba(20,8,40,.35);transform:translateY(16px) scale(.97);opacity:0;transition:transform .35s cubic-bezier(.2,.9,.3,1.2),opacity .25s}
.modal.open .modal-back{opacity:1}
.modal.open .modal-card{transform:none;opacity:1}
.modal-card:focus{outline:0}
.m-x{position:absolute;top:14px;right:14px;width:40px;height:40px;border-radius:50%;border:0;background:var(--lilac);color:var(--ink);display:grid;place-items:center;cursor:pointer}
.m-x:hover{background:var(--lilac2)}
.tick{width:72px;height:72px;margin:0 auto 18px}
.tick svg{width:100%;height:100%}
.tick-c{fill:var(--purple);transform-origin:center;transform:scale(0);transition:transform .45s cubic-bezier(.2,.9,.3,1.3) .05s}
.tick-p{fill:none;stroke:#fff;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;transition:stroke-dashoffset .4s ease .4s}
.modal.open .tick-c{transform:scale(1)}
.modal.open .tick-p{stroke-dashoffset:0}
.modal-card h2{font-size:32px;line-height:1.08}
.m-event{font:700 16px/1.4 var(--head);margin-top:14px}
.m-when{font:500 13px/1.5 var(--mono);color:var(--purple);margin-top:6px}
.m-next[hidden]{display:none}
.m-next{list-style:none;margin:22px 0 0;padding:0;text-align:left;display:grid;gap:10px;counter-reset:n}
.m-next li{background:var(--lilac);border-radius:16px;padding:13px 14px 13px 48px;position:relative;font-size:15px;line-height:1.45;counter-increment:n}
.m-next li::before{content:counter(n);position:absolute;left:14px;top:13px;width:22px;height:22px;border-radius:50%;background:var(--purple);color:#fff;font:800 12px/22px var(--head);text-align:center}
.m-next b{font-family:var(--head)}
.m-email{font-weight:800;overflow-wrap:anywhere}
.m-actions{display:grid;gap:10px;margin-top:22px}
.m-actions .btn{min-height:52px}

@media (prefers-reduced-motion:reduce){
  *{transition:none!important;animation:none!important}
  html{scroll-behavior:auto}
  .tick-c{transform:scale(1)} .tick-p{stroke-dashoffset:0}
}

/* ---------- tablet ---------- */
@media (min-width:640px){
  :root{--gut:32px;--sec:112px}
  .actions{flex-direction:row}
  .actions .btn-ghost{display:inline-flex}
  :root{--hs:156px}
  .row2{grid-template-columns:1fr 1fr}
  .cards{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:repeat(2,1fr);overflow:visible;margin:0;padding:0;gap:20px}
  .reg-card{padding:34px 30px}
  .when{display:flex;flex-wrap:nowrap;width:max-content;max-width:100%;gap:0;border-top:0}
  .when>div{flex-direction:column;gap:6px;border-bottom:0;border-top:1px solid rgba(255,255,255,.3);padding:14px 36px 0 0}
  .when>div+div{padding-left:0}
  .when dd{text-align:left;font-size:19px;white-space:nowrap}
  .closing-in{padding:72px 40px}
}

/* ---------- desktop ---------- */
@media (min-width:960px){
  :root{--gut:48px;--sec:144px;--hs:184px}
  body{font-size:18px}
  .hero-in{padding-top:30px;padding-bottom:calc(var(--hs) / 2 + 40px)}
  .hero-sub{font-size:22px;max-width:640px}
  .hero-shade{background:linear-gradient(90deg,rgba(42,21,60,.94) 0%,rgba(42,21,60,.75) 42%,rgba(42,21,60,.25) 75%,rgba(42,21,60,.15) 100%),linear-gradient(180deg,rgba(42,21,60,0) 55%,rgba(42,21,60,.6) 100%)}
  .lede{font-size:20px}
  .sec-head{margin-bottom:56px}
  .outline{grid-template-columns:1fr 1fr;gap:18px}
  .outline li{padding:34px 32px;min-height:220px}
  .outline h3{font-size:24px}
  .sp-in{display:grid;grid-template-columns:5fr 7fr;gap:72px}
  .sp-card{position:sticky;top:24px;align-self:start}
  .headshot{border-width:6px}
  .sp-body{margin-top:0}
  .why-copy{padding:104px 0 112px}
  .why-list{grid-template-columns:1fr 1fr;gap:34px 36px}
  .reg{grid-template-columns:1fr 1fr;gap:72px;align-items:start}
  .reg-card{padding:40px 38px}
  .sec-head.row{flex-direction:row;justify-content:space-between;align-items:flex-end}
  .cards{grid-template-columns:repeat(2,1fr);gap:24px}
  .cards.three{grid-template-columns:repeat(3,1fr)}
  .about-grid{gap:32px}
  .learn-lede{max-width:800px}
  .faq-list{max-width:900px}
  .faq summary{font-size:20px}
  .closing-in{padding:96px 48px}
  .modal-card{padding:40px 36px 30px}
  .modal-card h2{font-size:36px}
}
@media (min-width:1400px){
  .hero h1{font-size:140px}
}

/* no-straggle: avoid single-word last lines in body copy */
p,li,.faq details p{text-wrap:pretty}
.faq details p,.outline li,.outline li *,.card-t,.card-s,.why-copy p,.why-copy h3{text-wrap:balance}
.lede{text-wrap:balance}
summary{text-wrap:balance}
@media (max-width:639px){
  .about .lede,.learn-lede,.faq details p,.lede{text-wrap:pretty}
}

