/* ==========================================================================
   TELUS Health Innovation Summit — v1
   Vanilla CSS, mobile-first. Color hex values are placeholders pending
   review against the TELUS Medical Alert page.
   ========================================================================== */

/* -------------------- Fonts -------------------- */
@font-face {
  font-family: "HN TELUS";
  src: url("/assets/fonts/HNforTELUSSARegular_normal_normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HN TELUS";
  src: url("/assets/fonts/HNforTELUSSABold_normal_normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HN TELUS Display";
  src: url("/assets/fonts/HNforTELUSSADisplay_normal_normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HN TELUS Display";
  src: url("/assets/fonts/HNforTELUSSADisplayMedium_normal_normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* -------------------- Tokens -------------------- */
:root {
  --white: #ffffff;
  --purple: #4B286D;
  --purple-deep: #2C1A47;
  --green-accessible: #2B8000;
  --green-accessible-hover: #226600;
  --green: #66CC00;
  --pink: #FF5C84;
  --grey-900: #2A2C2E;
  --grey-700: #3F4145;
  --grey-600: #54595F;
  --grey-300: #C7CACE;
  --grey-200: #E3E5E8;
  --grey-100: #F4F4F7;

  --font-display: "HN TELUS Display", "HN TELUS", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "HN TELUS", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container-max: 1200px;
  --container-narrow: 760px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);

  --section-y: clamp(4rem, 9vw, 7.5rem);

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* -------------------- Reset / base -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grey-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-accessible); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-accessible-hover); text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 3px;
}
ul, ol { padding: 0; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--purple);
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

::selection { background: var(--purple); color: var(--white); }

/* -------------------- Utilities -------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.container--narrow { max-width: var(--container-narrow); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--purple);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  margin: 0 0 1rem;
}

/* -------------------- Header -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--grey-200);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}
.site-header__logo img { height: 22px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 1.5rem; }
.site-header__apply {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--purple);
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.site-header__apply:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

/* -------------------- Buttons -------------------- */
.btn {
  --bg: var(--green-accessible);
  --bg-hover: var(--green-accessible-hover);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.375rem;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--bg-hover); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--large { padding: 1.0625rem 1.75rem; font-size: 1.0625rem; }
.btn__arrow { transition: transform 160ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform 160ms var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* -------------------- Hero -------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero__copy { max-width: 36ch; }
.hero__h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero__subhead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  color: var(--grey-700);
  line-height: 1.5;
  margin-bottom: 2rem;
  max-width: 48ch;
}
.hero__ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
}
.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__botanical {
  width: 100%;
  max-width: 520px;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(75, 40, 109, 0.12));
}

@media (min-width: 860px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
  .hero__media {
    justify-content: flex-end;
  }
}

/* -------------------- Stat bar -------------------- */
.stats {
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
}
.stats__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  padding-left: 0;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--purple);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: 0.9375rem;
  color: var(--grey-600);
}
@media (min-width: 720px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .stat + .stat::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: var(--grey-200);
  }
}

/* -------------------- Marquee -------------------- */
.marquee {
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  overflow: hidden;
  background: var(--white);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 60s linear infinite;
}
.marquee__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding-right: 1.75rem;
  white-space: nowrap;
}
.marquee__list li {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--grey-300);
  letter-spacing: -0.01em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__list { flex-wrap: wrap; }
}

/* -------------------- Sections -------------------- */
.section {
  position: relative;
  padding: var(--section-y) 0;
}
.section--alt { background: var(--grey-100); }
.section__head {
  max-width: 56ch;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: left;
}
.section__head h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem);
}
.section__sub {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  color: var(--grey-700);
  line-height: 1.5;
  margin: 0;
}

/* -------------------- Cards (What you get) -------------------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
}
.card__title {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
  color: var(--purple);
}
@media (min-width: 760px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .card { padding: 2rem 1.75rem; }
}

/* -------------------- Two-column generic -------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.two-col__copy { max-width: 56ch; }
.two-col__copy h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); }
.two-col__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.two-col__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
  .two-col--reverse > .two-col__copy { order: 2; }
  .two-col--reverse > .two-col__media { order: 1; }
}

/* -------------------- Checklist (Why this is different) -------------------- */
.checklist {
  list-style: none;
  display: grid;
  gap: 0.875rem;
  margin-top: 1.25rem;
}
.checklist li {
  position: relative;
  padding-left: 1.875rem;
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(102, 204, 0, 0.15);
}

/* -------------------- Bullet grid (Who) -------------------- */
.bullet-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 1.5rem;
}
.bullet-grid li {
  position: relative;
  padding-left: 1.25rem;
}
.bullet-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
@media (min-width: 600px) {
  .bullet-grid { grid-template-columns: 1fr 1fr; }
}
.bar {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--grey-200);
  color: var(--grey-700);
}

/* -------------------- Schedule (The day) -------------------- */
.schedule {
  list-style: none;
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
  border-top: 1px solid var(--grey-200);
}
.schedule__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--grey-200);
}
.schedule__time {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--purple);
}
.schedule__event { color: var(--grey-700); }
@media (min-width: 640px) {
  .schedule__row {
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}
.schedule__note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--grey-600);
}

/* -------------------- Pull quote -------------------- */
.pullquote {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 1.5rem 1.5rem;
  border-left: 3px solid var(--purple);
  max-width: 56ch;
}
.pullquote blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  line-height: 1.4;
  color: var(--purple);
  letter-spacing: -0.01em;
}
.pullquote blockquote p { margin: 0; }
.pullquote blockquote p::before { content: "“"; }
.pullquote blockquote p::after { content: "”"; }
.pullquote figcaption { display: flex; flex-direction: column; gap: 0.125rem; }
.pullquote__name { font-weight: 700; color: var(--grey-900); }
.pullquote__role { color: var(--grey-600); font-size: 0.9375rem; }

/* -------------------- Speakers -------------------- */
.speakers__pending {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--grey-600);
  padding: 2rem 0;
}

/* -------------------- Key dates -------------------- */
.dates {
  margin: 0;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--grey-200);
}
.dates__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--grey-200);
}
.dates__row dt {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--purple);
  margin: 0;
}
.dates__row dd { margin: 0; color: var(--grey-700); }
@media (min-width: 640px) {
  .dates__row {
    grid-template-columns: 180px 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

/* -------------------- Final CTA -------------------- */
.cta-final {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta-final__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.cta-final h2 { font-size: clamp(2rem, 4vw, 3rem); }
.cta-final p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--grey-700);
  max-width: 48ch;
}

/* -------------------- FAQ -------------------- */
.faq {
  border-top: 1px solid var(--grey-200);
}
.faq__item {
  border-bottom: 1px solid var(--grey-200);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2.5rem 1.25rem 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--purple);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--purple);
  transition: transform 200ms var(--ease);
  line-height: 1;
}
.faq__item[open] summary::after {
  content: "−";
}
.faq__body {
  padding: 0 0 1.25rem;
  color: var(--grey-700);
  max-width: 70ch;
}

/* -------------------- Botanical accents -------------------- */
.botanical-accent {
  position: absolute;
  pointer-events: none;
  opacity: 0.85;
  z-index: 0;
}
.botanical-accent--right {
  right: -80px;
  top: -40px;
  width: clamp(180px, 22vw, 320px);
  transform: rotate(8deg);
}
.botanical-accent--left {
  left: -80px;
  bottom: -40px;
  width: clamp(180px, 22vw, 280px);
  transform: rotate(-12deg);
}
.botanical-accent--center {
  position: absolute;
  left: 50%;
  bottom: -20%;
  transform: translateX(-50%);
  width: clamp(280px, 40vw, 480px);
  opacity: 0.55;
  z-index: 0;
}
@media (max-width: 720px) {
  .botanical-accent--right,
  .botanical-accent--left { display: none; }
  .botanical-accent--center { opacity: 0.35; }
}
.section .container { position: relative; z-index: 1; }
.cta-final .container { position: relative; }

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding: 2.5rem 0 3rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.site-footer__logo img { height: 22px; width: auto; }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.site-footer__nav a {
  color: var(--grey-700);
  text-decoration: none;
  font-size: 0.9375rem;
}
.site-footer__nav a:hover { color: var(--purple); text-decoration: underline; }
.site-footer__meta {
  font-size: 0.8125rem;
  color: var(--grey-600);
  margin: 0;
}
@media (min-width: 720px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .site-footer__meta { width: 100%; }
}

/* -------------------- Access gate -------------------- */
.gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  padding: clamp(1.5rem, 5vw, 3rem);
  overflow: auto;
}
html[data-locked="1"] .gate { display: grid; place-items: center; }
html[data-locked="1"] body { overflow: hidden; }
html[data-locked="1"] body > .site-header,
html[data-locked="1"] body > main,
html[data-locked="1"] body > .site-footer { visibility: hidden; }

.gate__inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}
.gate__logo {
  height: 22px;
  width: auto;
  margin-bottom: 1.5rem;
}
.gate__title {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  margin: 0;
  letter-spacing: -0.02em;
}
.gate__body {
  color: var(--grey-700);
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 400;
}
.gate__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.gate__label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--purple);
  margin-bottom: 0.5rem;
}
.gate__input {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.875rem 1rem;
  border: 1px solid var(--grey-300);
  border-radius: 8px;
  background: var(--white);
  color: var(--grey-900);
  width: 100%;
  text-align: center;
}
.gate__input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-color: var(--purple);
}
.gate .btn { align-self: center; margin-top: 0.5rem; }
.gate__error {
  margin: 0;
  font-size: 0.9375rem;
  color: #B81E1E;
}

/* -------------------- Reveal (entrance fade) -------------------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
