/* ==========================================================================
   ATTR & AL 2027 – Waiting screen
   Graphic codes taken from the homepage mock-up
   ========================================================================== */

/* ---------- Fonts (self-hosted, GDPR-friendly) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto";     font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto";     font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  /* Palette */
  --c-ink:        #031b1d;   /* deepest (newsletter / footer) */
  --c-night:      #06282b;   /* top bar, main background      */
  --c-deep:       #0b3a3d;   /* nav bar, cards                */
  --c-teal:       #0f4f53;   /* HCP panel                     */
  --c-aqua:       #5fb7bd;   /* eyebrows, labels, TBC         */
  --c-orange:     #f5a650;   /* buttons, patient panel        */
  --c-orange-hi:  #f8b56a;
  --c-white:      #ffffff;
  --c-text-soft:  rgba(255, 255, 255, .84);

  /* Type */
  --f-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-alt:  "Roboto", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --gutter: clamp(16px, 6.25vw, 120px);
  --wrap:   1680px;
  --wrap-content: 1460px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--c-night);
  color: var(--c-white);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; }

/* Full-size page, no scroll: the hero absorbs the remaining height */
.page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  background: var(--c-deep);
  height: clamp(52px, 8.2vh, 88px);
  display: flex;
  align-items: center;
  border-top: clamp(4px, .6vh, 8px) solid var(--c-night);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: clamp(18px, 1.55vw, 30px);
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--c-orange); }

/* Same treatment as the audience switch buttons of the mock-up */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.1vh, 13px) clamp(14px, 1.4vw, 26px);
  border: 1.5px solid var(--c-aqua);
  border-radius: 4px;
  box-shadow: 2px 3px 0 var(--c-orange);
  color: var(--c-aqua);
  font-weight: 600;
  font-size: clamp(12px, .9vw, 16px);
  white-space: nowrap;
}

.status__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245, 166, 80, .7); }
  70%  { box-shadow: 0 0 0 9px rgba(245, 166, 80, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 80, 0); }
}

/* --------------------------------------------------------------------------
   Hero  (sized with container query units → never overflows)
   -------------------------------------------------------------------------- */
.hero {
  --overlay:
    linear-gradient(90deg, rgba(6, 40, 43, .42) 0%, rgba(6, 40, 43, 0) 36%),
    linear-gradient(270deg, rgba(6, 40, 43, .30) 0%, rgba(6, 40, 43, 0) 30%),
    linear-gradient(180deg, rgba(20, 116, 126, .72) 0%, rgba(17, 106, 116, .55) 50%, rgba(10, 74, 82, .45) 85%, rgba(6, 40, 43, .55) 100%);
  position: relative;
  container-type: size;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #1b6f78;
  background-image: var(--overlay), url("../img/london-skyline-2560.jpg");
  background-size: cover;
  background-position: center 48%;
}

@media (max-width: 1280px) {
  .hero { background-image: var(--overlay), url("../img/london-skyline-1280.jpg"); }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "intro logo when";
  align-items: center;
  column-gap: clamp(24px, 3vw, 64px);
}

/* Logo */
.hero__logo { grid-area: logo; }
.hero__logo img {
  height: min(88cqh, 620px);
  width: auto;
  max-width: 34cqw;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(3, 27, 29, .22));
}

/* Intro (left) */
.hero__intro { grid-area: intro; max-width: 470px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(8px, 3cqh, 22px);
  color: var(--c-white);
  font-weight: 700;
  font-size: clamp(10px, .75vw, 14px);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 42px; height: 3px;
  background: linear-gradient(90deg, var(--c-aqua), var(--c-orange));
  flex: none;
}

.hero__title {
  font-weight: 600;
  font-size: clamp(18px, min(1.95vw, 7cqh), 38px);
  line-height: 1.22;
  text-shadow: 0 2px 18px rgba(3, 27, 29, .35);
}
.hero__title sup { font-size: .55em; line-height: 0; vertical-align: .8em; }

.hero__text {
  margin-top: clamp(8px, 3cqh, 22px);
  color: var(--c-text-soft);
  font-size: clamp(12px, min(.9vw, 3.2cqh), 17px);
  line-height: 1.75;
  text-shadow: 0 1px 10px rgba(3, 27, 29, .45);
}

/* Date & place (right) */
.hero__when {
  grid-area: when;
  justify-self: end;
  text-align: right;
  text-shadow: 0 2px 18px rgba(3, 27, 29, .3);
}
.hero__city {
  color: var(--c-orange);
  font-weight: 700;
  font-size: clamp(26px, min(3.05vw, 11cqh), 60px);
  line-height: 1.1;
}
.hero__date {
  font-family: var(--f-alt);
  font-weight: 700;
  font-size: clamp(20px, min(2.85vw, 10cqh), 56px);
  letter-spacing: .07em;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__venue {
  font-family: var(--f-alt);
  font-weight: 300;
  font-size: clamp(17px, min(2.3vw, 8.4cqh), 46px);
  line-height: 1.3;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Countdown strip
   -------------------------------------------------------------------------- */
.strip {
  position: relative;
  z-index: 2;
  background: var(--c-night);
  height: clamp(58px, 10vh, 112px);
  display: flex;
  align-items: center;
}

.strip__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wrap-content);
  height: 100%;
}

.countdown {
  display: flex;
  gap: clamp(16px, 2vw, 38px);
  padding-left: clamp(0px, 7vw, 160px);
}
.countdown__item { display: flex; flex-direction: column; align-items: center; }
.countdown__num {
  font-weight: 700;
  font-size: clamp(24px, min(2.5vw, 4.4vh), 50px);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  margin-top: 4px;
  color: var(--c-aqua);
  font-weight: 600;
  font-size: clamp(9px, .68vw, 13px);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.strip__badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  width: clamp(50px, 8vh, 96px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c-white);
  color: var(--c-deep);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(3, 27, 29, .25);
}
.strip__badge svg { width: 38%; height: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 1.45vh, 16px) clamp(18px, 1.9vw, 36px);
  border-radius: 2px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(13px, .9vw, 17px);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.btn--orange { background: var(--c-orange); color: var(--c-deep); }
.btn--orange:hover { background: var(--c-orange-hi); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--c-aqua); outline-offset: 3px; }

.strip .btn { margin-right: clamp(0px, 7vw, 160px); }

/* --------------------------------------------------------------------------
   Audiences (split panels)
   -------------------------------------------------------------------------- */
.audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.audience {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-block: clamp(22px, 4.2vh, 56px);
}

.audience::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 62%;
  background-size: cover;
  background-position: center 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  pointer-events: none;
}

.audience--hcp { background: var(--c-teal); }
.audience--hcp::before {
  background-image: url("../img/healthcare-professional.jpg");
  opacity: .32;
  mix-blend-mode: luminosity;
}

.audience--patient { background: var(--c-orange); color: var(--c-deep); }
.audience--patient::before {
  background-image: url("../img/patients-caregivers.jpg");
  opacity: .42;
  mix-blend-mode: multiply;
}

.audience__body { position: relative; }
.audience__body > * { max-width: 470px; }
.audience--hcp .audience__body     { padding: 0 clamp(16px, 3vw, 56px) 0 max(var(--gutter), calc(50vw - 745px)); }
.audience--patient .audience__body { padding: 0 var(--gutter) 0 clamp(16px, 2.9vw, 56px); }

.audience__title {
  font-weight: 600;
  font-size: clamp(16px, min(1.7vw, 3.1vh), 32px);
  line-height: 1.25;
}
.audience__title::after {
  content: "";
  display: block;
  width: clamp(40px, 3.3vw, 64px);
  height: 4px;
  margin-top: clamp(6px, 1vh, 12px);
  background: var(--c-orange);
}
.audience--patient .audience__title::after { background: var(--c-deep); }

.audience__text {
  margin-top: clamp(8px, 1.8vh, 22px);
  font-size: clamp(12px, min(.85vw, 1.7vh), 16px);
  line-height: 1.7;
  color: var(--c-text-soft);
}
.audience--patient .audience__text { color: var(--c-deep); }

.audience__list {
  margin-top: clamp(6px, 1.1vh, 14px);
  padding: 0;
  list-style: none;
  font-size: clamp(12px, min(.85vw, 1.7vh), 16px);
  line-height: 1.75;
}
.audience__list li { display: flex; align-items: center; gap: 10px; }
.audience__list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--c-ink);
  border-top: 1px solid rgba(95, 183, 189, .14);
  padding: clamp(8px, 1.3vh, 16px) var(--gutter);
  text-align: center;
  color: rgba(255, 255, 255, .62);
  font-size: clamp(10px, .7vw, 13px);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Panels: bullet lists only on tall screens */
.audience__list { display: none; }
@media (min-height: 1150px) and (min-width: 721px) {
  .audience__list { display: block; }
}
@media (max-height: 640px) {
  .audience__text { display: none; }
  .audience { padding-block: 16px; }
}

/* Hero adapts to its own height */
@container (max-height: 380px) {
  .hero__text { display: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo when"
      "logo intro";
    row-gap: clamp(12px, 4cqh, 32px);
  }
  .hero__logo img { height: min(80cqh, 480px); max-width: 46cqw; }
  .hero__when  { justify-self: start; text-align: left; align-self: end; }
  .hero__intro { align-self: start; }
  .hero__city  { font-size: clamp(24px, min(5vw, 7cqh), 52px); }
  .hero__date  { font-size: clamp(20px, min(4.3vw, 6cqh), 46px); }
  .hero__venue { font-size: clamp(17px, min(3.5vw, 5cqh), 38px); }
  .hero__title { font-size: clamp(18px, min(3vw, 4.6cqh), 34px); }
  .hero__text  { font-size: clamp(12px, min(1.8vw, 2.4cqh), 17px); }
  .countdown { padding-left: 0; }
  .countdown__num { font-size: clamp(24px, 3.6vw, 40px); }
  .countdown__label { font-size: 10px; }
  .btn { font-size: 14px; }
  .strip .btn { margin-right: 0; }
  .audience__title { font-size: clamp(16px, 2.6vw, 26px); }
  .audience__text, .audience__list { font-size: clamp(12px, 1.7vw, 15px); }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --gutter: 16px; }

  .status { box-shadow: 2px 2px 0 var(--c-orange); }

  .hero { background-position: 32% 50%; }
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "when"
      "intro";
    justify-items: center;
    text-align: center;
    row-gap: clamp(6px, 2.6cqh, 18px);
  }
  .hero__logo img { height: min(44cqh, 320px); max-width: 86cqw; }
  .hero__when  { justify-self: center; text-align: center; align-self: auto; }
  .hero__intro { align-self: auto; max-width: 520px; }
  .hero__city  { font-size: clamp(20px, min(7.5vw, 6.4cqh), 36px); }
  .hero__date  { font-size: clamp(17px, min(6.6vw, 5.4cqh), 30px); }
  .hero__venue { font-size: clamp(15px, min(5.4vw, 4.4cqh), 24px); }
  .eyebrow { justify-content: center; font-size: 10px; margin-bottom: clamp(4px, 1.6cqh, 12px); }
  .eyebrow::before { display: none; }
  .hero__title { font-size: clamp(16px, min(5.6vw, 4.4cqh), 26px); }
  .hero__text  { font-size: clamp(12px, min(3.6vw, 2.6cqh), 15px); line-height: 1.6; margin-top: clamp(6px, 1.8cqh, 14px); }

  .strip { height: clamp(56px, 8.5vh, 76px); }
  .strip__badge { display: none; }
  .countdown { gap: 18px; }
  .countdown__num { font-size: clamp(22px, 3.6vh, 32px); }

  .audience { align-items: flex-start; padding-block: clamp(12px, 2.2vh, 22px); }
  .audience::before { width: 100%; }
  .audience--hcp .audience__body,
  .audience--patient .audience__body { padding: 0 14px; }
  .audience__title { font-size: clamp(14px, 4.2vw, 18px); }
  .audience__text  { font-size: 12px; line-height: 1.55; margin-top: 8px; }
  .audience__list  { display: none; }

  .footer { font-size: 10px; }
}

@media (max-width: 720px) and (max-height: 760px) {
  .audience__text { display: none; }
}
@container (max-width: 720px) and (max-height: 420px) {
  .hero__text { display: none; }
}

@media (max-width: 420px) {
  .brand  { font-size: 17px; }
  .status { font-size: 11px; padding: 7px 10px; gap: 8px; }
  .btn    { padding: 10px 16px; font-size: 12px; }
}

/* Very small heights (landscape phones): allow scrolling rather than clipping content */
@media (max-height: 500px) {
  .page { height: auto; min-height: 100dvh; overflow: visible; }
  .hero { container-type: inline-size; padding-block: 24px; }
  .hero__logo img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  .status__dot { animation: none; }
  .btn { transition: none; }
}
