@font-face {
  font-family: Inter;
  src: url('/assets/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  background: #edf5f9;
  color: #133549;
  font-synthesis: none;
  --ink: #0b3248;
  --muted: #466477;
  --accent: #a8e0f7;
  --header-height: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
input, button { font: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid #267ca6; outline-offset: 4px; }

.container { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #d6e5ee; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-height); }
.brand { width: auto; height: clamp(2.75rem, 6.5vw, 3.5rem); max-width: 45%; object-fit: contain; }
.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem .95rem;
  border: 1px solid #c4d8e4;
  border-radius: .45rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
}
.header-link:hover { border-color: #8eb9cd; background: #edf6fb; }

.webinar {
  display: grid;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(2.1rem, 4.3vw, 4rem);
  background: radial-gradient(ellipse at 84% 24%, #205b78 0%, #0e3852 40%, #09283e 78%);
  color: #fff;
}

.webinar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.065fr) minmax(0, 1fr);
  grid-template-areas: "copy speaker" "registration speaker";
  gap: 1.65rem clamp(1.75rem, 4vw, 3.75rem);
}

.webinar-copy { grid-area: copy; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .85rem;
  color: var(--accent);
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 1.45rem; height: 2px; background: currentColor; }
h1 { margin: 0; font-size: clamp(3.25rem, 6.05vw, 5.6rem); line-height: .95; letter-spacing: -.06em; }
h1 em { color: var(--accent); font-style: normal; }
.description { max-width: 35rem; margin: 1.12rem 0 0; color: #deedf6; font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.55; }

.event {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2.4vw, 1.6rem);
  width: fit-content;
  max-width: 100%;
  margin-top: 1.4rem;
  padding: .62rem clamp(.7rem, 1.6vw, 1rem);
  border: 1px solid #a8e0f74d;
  border-radius: .65rem;
  background: #93cde416;
}
.event-date { display: flex; align-items: center; gap: .65rem; }
.event-date > strong { color: var(--accent); font-size: 2.8rem; line-height: .95; letter-spacing: -.065em; }
.event-date > span, .event-time { display: grid; gap: .2rem; }
.event-date > span { font-size: .875rem; font-weight: 750; }
.event-date small { color: #d0e7f4; font-size: .8rem; font-weight: 500; }
.event-time { padding-inline-start: clamp(.75rem, 2.4vw, 1.6rem); border-inline-start: 1px solid #a8e0f74d; }
.event-time strong { font-size: 1.125rem; letter-spacing: -.02em; }
.event-time > span { color: #d0e7f4; font-size: .875rem; }

.speaker {
  grid-area: speaker;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 32rem;
  margin: 0;
  overflow: hidden;
  border: 1px solid #a8e0f759;
  border-radius: 1rem;
  background: #0b2b43;
}
.speaker-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    repeating-linear-gradient(0deg, #b7dff218 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, #b7dff218 0 1px, transparent 1px 44px),
    radial-gradient(ellipse at 50% 34%, #508fa9, #225977 55%, #133b56 90%);
}
.speaker-photo::before {
  position: absolute;
  top: 12%;
  left: 50%;
  width: min(78%, 29rem);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid #c1e8f47d;
  border-radius: 50%;
  box-shadow: 0 0 0 1.95rem #b2e8ff14, 0 0 0 4.1rem #b2e8ff0c;
  content: '';
  pointer-events: none;
}
.speaker-photo img {
  position: absolute;
  inset: 4% 0 0;
  width: 100%;
  height: 96%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 1rem 1.5rem #0619275e);
}
.speaker figcaption {
  position: relative;
  display: grid;
  gap: .36rem;
  padding: 1.32rem clamp(1.2rem, 2.8vw, 2rem) 1.5rem;
  border-top: 1px solid #a8e0f745;
  color: #fff;
}
.speaker figcaption::before {
  position: absolute;
  inset: -1px auto auto clamp(1.2rem, 2.8vw, 2rem);
  width: 2.85rem;
  height: 2px;
  background: var(--accent);
  content: '';
}
.speaker figcaption strong { font-size: clamp(1.65rem, 3vw, 2.75rem); line-height: 1.05; letter-spacing: -.047em; }
.speaker figcaption span { color: #d5ecf7; font-size: .94rem; }

.registration {
  grid-area: registration;
  align-self: start;
  scroll-margin-top: 1.25rem;
  padding: clamp(1.25rem, 2.3vw, 1.85rem);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 48px #061c3029;
}
.registration:focus-visible { outline-color: var(--accent); }
.registration h2 { margin: 0; font-size: clamp(1.55rem, 2.45vw, 2.2rem); line-height: 1.08; letter-spacing: -.047em; }
.registration p { margin: .52rem 0 0; color: var(--muted); line-height: 1.55; }
.registration form { display: grid; gap: .82rem; margin-top: 1.05rem; }
.registration label { display: grid; gap: .4rem; font-size: .94rem; font-weight: 650; }
.registration .phone-field { grid-column: 1 / -1; }
.registration input {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  padding: .64rem .78rem;
  border: 1px solid #a9c2cf;
  border-radius: .48rem;
  background: #f8fcfe;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 450;
}
.registration input:focus { border-color: #2e7d9b; }
.registration input::placeholder { color: #617783; }
.registration button, .whatsapp-link {
  grid-column: 1 / -1;
  min-height: 3rem;
  padding: .6rem 1rem;
  border: 0;
  border-radius: .48rem;
  background: #114960;
  color: #fff;
  cursor: pointer;
  font-weight: 750;
}
.registration button:hover, .whatsapp-link:hover { background: #0c364c; }
.whatsapp-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.15rem;
  text-align: center;
  text-decoration: none;
}
.registration .form-error { grid-column: 1 / -1; margin: 0; color: #9b2343; font-size: .94rem; font-weight: 650; }
.registration .privacy-note { margin-top: .78rem; font-size: .875rem; }
.success-icon { display: grid; place-items: center; width: 2.85rem; height: 2.85rem; margin-bottom: .9rem; border-radius: 50%; background: #d8f0fa; color: #114960; font-size: 1.55rem; font-weight: 750; }

.admin-main { padding-block: clamp(2rem, 5vw, 4.5rem); }
.admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 1.75rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.3rem);
}
.admin-heading p { margin: 0 0 .5rem; color: var(--muted); font-weight: 650; }
.admin-heading h1 { color: var(--ink); font-size: clamp(2.15rem, 6vw, 4rem); line-height: 1.03; letter-spacing: -.05em; }
.admin-download {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: .55rem 1rem;
  border-radius: .48rem;
  background: #114960;
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}
.admin-download:hover { background: #0c364c; }
.admin-records { overflow: hidden; border: 1px solid #d1e0e9; border-radius: .8rem; background: #fff; }
.admin-records h2, .admin-empty { margin: 0; padding: 1rem 1.2rem; }
.admin-records h2 { font-size: 1.13rem; }
.admin-empty { border-top: 1px solid #dae6ed; color: var(--muted); }
.admin-table { overflow-x: auto; }
.admin-table:focus-visible { outline-offset: -3px; }
.admin-table table { width: 100%; min-width: 40rem; border-collapse: collapse; text-align: left; }
.admin-table :is(th, td) { padding: .87rem 1.2rem; border-top: 1px solid #dae6ed; overflow-wrap: anywhere; }
.admin-table thead th { background: #e9f3f8; color: var(--ink); font-size: .9rem; }
.admin-table tbody th { font-weight: 650; }
.admin-table td:nth-last-child(-n + 2) { white-space: nowrap; }
.admin-cell-label { display: none; }
.admin-pagination { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: .45rem 1rem; padding: .8rem 1.2rem; border-top: 1px solid #dae6ed; font-size: .9rem; }
.admin-pagination a { padding-block: .5rem; color: var(--ink); text-underline-offset: .2em; }

@media (max-width: 779px) {
  .admin-table table, .admin-table tbody { display: block; min-width: 0; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .admin-table tbody tr { display: grid; padding: .9rem 1.2rem; border-top: 1px solid #dae6ed; }
  .admin-table tbody :is(th, td) { padding: 0; border: 0; }
  .admin-table tbody th { display: block; margin-bottom: .3rem; }
  .admin-table tbody td { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .4rem; padding-block: .17rem; }
  .admin-table td:nth-last-child(-n + 2) { white-space: normal; }
  .admin-cell-label { display: block; color: var(--muted); font-size: .875rem; }
}

@media (min-width: 920px) {
  .registration form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (780px <= width < 920px) {
  .speaker-photo img { object-fit: cover; object-position: center top; }
}

@media (max-width: 779px) {
  :root { --header-height: 4rem; }
  .container { width: min(100% - 2rem, 35rem); }
  .webinar { min-height: auto; padding-block: 1.65rem 2rem; }
  .webinar-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "speaker" "registration";
    gap: 1.2rem;
  }
  .webinar-grid:has(.whatsapp-link) { grid-template-areas: "registration" "copy" "speaker"; }
  h1 { font-size: clamp(2.85rem, 10.1vw, 4.5rem); }
  .description { margin-top: .9rem; }
  .event { margin-top: 1.1rem; }
  .event-date > strong { font-size: 2.3rem; }
  .speaker {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: clamp(9.5rem, 39vw, 13rem);
  }
  .speaker-photo img { inset: 5% 0 auto; height: 120%; object-position: center top; }
  .speaker-photo::before { top: 17%; width: 74%; }
  .speaker figcaption { align-content: center; gap: .4rem; padding: .85rem; border-top: 0; border-inline-start: 1px solid #a8e0f745; }
  .speaker figcaption::before { position: static; width: 1.4rem; margin-block-end: .16rem; }
  .speaker figcaption strong { font-size: clamp(1.32rem, 5.4vw, 1.85rem); }
  .speaker figcaption span { font-size: .875rem; }
}

@media (max-width: 359px) {
  .container { width: calc(100% - 1.5rem); }
  h1 { font-size: clamp(2.3rem, 12.5vw, 2.8rem); }
  .event-date { gap: .45rem; }
}
