
.webinar-pass {
  --wp-radius: 20px;
  --wp-stub-width: 240px;
  --wp-gap: 32px;
  --wp-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  font-family: var(--wp-font);
  color: var(--wp-text);
  background: var(--wp-page-bg);
  padding: 48px 16px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  justify-content: center;
}

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

/* ------- CARD WRAPPER ------- */
.wp-card {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 960px;
  background: var(--wp-card-bg);
  border-radius: var(--wp-radius);
  box-shadow:
    0 1px 2px rgba(15, 27, 61, 0.04),
    0 12px 40px -12px rgba(15, 27, 61, 0.15);
  overflow: hidden;
}

/* ==========================================================================
   TICKET STUB
   ========================================================================== */
.wp-stub {
  position: relative;
  flex: 0 0 var(--wp-stub-width);
  background:
    linear-gradient(155deg, var(--wp-accent) 0%, var(--wp-accent-dark) 100%);
  color: #fff;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
}

.wp-stub__inner {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  gap: 32px !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__label {
  margin: 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  opacity: 0.95 !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__number {
  margin: 6px 0 0 !important;
  font-size: 14px !important;
  letter-spacing: 0.06em !important;
  opacity: 0.75 !important;
  color: var(--wp-left-text) !important;
}

/* Date block — the visual hero of the stub */
.wp-stub__date {
  text-align: center !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__weekday {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3em !important;
  text-transform: uppercase !important;
  opacity: 0.9 !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__day {
  margin: 8px 0 !important;
  font-size: 92px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__month {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  opacity: 0.95 !important;
  color: var(--wp-left-text) !important;
}

/* Meta list */
.wp-stub__meta {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__meta li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  opacity: 0.95 !important;
  color: var(--wp-left-text) !important;
}

.wp-stub__meta svg {
  width: 22px !important;
  height: 22px !important;
  flex-shrink: 0 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  color: var(--wp-left-text) !important;
}

/* Perforated edge — right side on desktop, bottom on mobile.
   Created with a radial-gradient "dot" mask. */
.wp-stub__perforation {
  position: absolute;
  top: 0;
  right: -7px;
  width: 14px;
  height: 100%;
  background-image: radial-gradient(
    circle at center,
    var(--wp-card-bg) 0,
    var(--wp-card-bg) 5px,
    transparent 5.5px
  );
  background-size: 14px 20px;
  background-repeat: repeat-y;
  pointer-events: none;
}

/* ==========================================================================
   MAIN BODY
   ========================================================================== */
.wp-body {
  flex: 1;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wp-tag {
  display: inline-block;
  align-self: flex-start;
  background: color-mix(in srgb, var(--wp-accent) 12%, transparent);
  color: var(--wp-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}

/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red, blue)) {
  .wp-tag {
    background: rgba(26, 92, 255, 0.12);
  }
}

.wp-title {
  margin: 20px 0 16px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--wp-text);
}

.wp-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--wp-muted);
}

.wp-desc p { margin: 0 0 1em; }
.wp-desc p:last-child { margin-bottom: 0; }

.wp-divider {
  border: 0;
  height: 1px;
  background: #E4E7EC;
  margin: 24px 0;
}

/* ==========================================================================
   SPEAKERS
   ========================================================================== */
.wp-speakers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.wp-speaker {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wp-speaker__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--wp-accent) 0%, var(--wp-accent-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  overflow: hidden;
}

.wp-speaker__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wp-speaker__info { min-width: 0; }

.wp-speaker__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--wp-text);
  line-height: 1.3;
}

.wp-speaker__role {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--wp-muted);
  line-height: 1.35;
}

.wp-speaker__company {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--wp-text);
}

/* ==========================================================================
   FOOTER (text + CTA)
   ========================================================================== */
.wp-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wp-footer__text {
  flex: 1 1 260px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--wp-text);
}
.wp-footer__text p { margin: 0; }

.wp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(155deg, var(--wp-accent) 0%, var(--wp-accent-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--wp-accent) 55%, transparent);
  white-space: nowrap;
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .wp-cta {
    box-shadow: 0 8px 20px -6px rgba(26, 92, 255, 0.55);
  }
}

.wp-cta:hover,
.wp-cta:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--wp-accent) 65%, transparent);
}

.wp-cta:focus-visible {
  outline: 2px solid var(--wp-accent);
  outline-offset: 3px;
}

.wp-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.wp-cta:hover svg { transform: translateX(3px); }

/* ==========================================================================
   RESPONSIVE — stack vertically (mobile)
   ========================================================================== */
@media (max-width: 720px) {
  .webinar-pass { padding: 24px 12px; }

  .wp-card {
    flex-direction: column;
  }

  .wp-stub {
    flex: 0 0 auto;
    width: 100%;
    min-height: auto;
    padding: 28px 24px 32px;
  }

  .wp-stub__inner {
    gap: 20px;
  }

  /* Reshape the stub for a horizontal date layout on mobile */
  .wp-stub__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
  }

  .wp-stub__date {
    text-align: right;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 16px;
    flex: none;
  }

  .wp-stub__weekday {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    text-align: right;
    align-self: end;
  }

  .wp-stub__day {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
    font-size: 64px;
    margin: 0;
  }

  .wp-stub__month {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    text-align: right;
    align-self: start;
  }

  /* reposition: weekday + month stack to the left of the big number */
  .wp-stub__date {
    grid-template-areas:
      "weekday day"
      "month   day";
  }
  .wp-stub__weekday { grid-area: weekday; }
  .wp-stub__day     { grid-area: day; }
  .wp-stub__month   { grid-area: month; }

  /* Meta row — horizontal on mobile */
  .wp-stub__meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  /* Move perforation to the bottom edge */
  .wp-stub__perforation {
    top: auto;
    right: 0;
    bottom: -7px;
    width: 100%;
    height: 14px;
    background-image: radial-gradient(
      circle at center,
      var(--wp-card-bg) 0,
      var(--wp-card-bg) 5px,
      transparent 5.5px
    );
    background-size: 20px 14px;
    background-repeat: repeat-x;
  }

  /* Body */
  .wp-body {
    padding: 28px 24px 32px;
  }

  .wp-title {
    font-size: 24px;
  }

  /* Stack speakers */
  .wp-speakers {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Footer — stack text + full-width button */
  .wp-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .wp-footer__text {
    flex: 0 0 auto;
  }

  .wp-cta {
    width: 100%;
    justify-content: center;
    padding: 18px 24px;
  }
}

/* Tiny screens */
@media (max-width: 380px) {
  .wp-stub__day { font-size: 54px; }
  .wp-title { font-size: 22px; }
}

/* ==========================================================================
   Email-client safety: simplify when rendered in HubSpot emails
   ========================================================================== */
@media only screen and (max-width: 0) {
  /* (placeholder — HubSpot email editor will inline what it needs) */
}
