/* Audience Gate — White premium */
.gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--gray-bg) 0%, var(--white) 100%);
}

.gate.is-exiting {
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.gate__header {
  text-align: center;
  padding: 1.5rem 1.5rem 1.25rem;
}

.gate__header .top-bar__lang {
  margin-bottom: 0.75rem !important;
}

.gate__logo {
  height: 48px;
  width: auto;
  margin: 0 auto 0.75rem;
}

.gate__tagline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  color: var(--olive-text);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.gate__sub {
  color: var(--gray-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.45;
}

.gate__panels {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  padding: 0 1.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  align-content: start;
  align-items: stretch;
}

/* Full-bleed artwork cards */
.gate-panel {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 20px;
  background: #1a1a1a;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
  height: 340px;
  min-height: 320px;
  max-height: 350px;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.gate-panel--featured {
  grid-column: 1 / -1;
  height: 420px;
  min-height: 400px;
  max-height: 440px;
}

.gate-panel__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.gate-panel__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.2s ease;
}

/* Explicit focal points so faces stay in frame under cover crop */
.gate-panel[data-audience="patient"] .gate-panel__img {
  object-position: center 18%;
}

.gate-panel[data-audience="professional"] .gate-panel__img {
  object-position: center 25%;
}

.gate-panel[data-audience="partner"] .gate-panel__img {
  object-position: center 40%;
}

.gate-panel__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--orange);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.gate-panel__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.gate-panel__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

/* Resting label — lower left, faint */
.gate-panel__rest {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 0.45rem;
  max-width: calc(100% - 2.2rem);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Hover/focus reveal panel */
.gate-panel__reveal {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 3.25rem 1.25rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(20, 20, 18, 0.82) 0%,
    rgba(20, 20, 18, 0.45) 55%,
    rgba(20, 20, 18, 0) 100%
  );
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-sizing: border-box;
}

.gate-panel--featured .gate-panel__reveal {
  padding: 3.5rem 1.6rem 1.45rem;
}

.gate-panel__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.05rem;
  margin: 0;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.gate-panel--featured .gate-panel__title {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
}

.gate-panel__sub {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
  margin: 0;
  max-width: 38rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gate-panel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 40px;
  margin-top: 0.2rem;
  padding: 0.45rem 1.15rem;
  border: 2px solid #fff;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8125rem;
  pointer-events: none;
}

/* Touch/mobile compact bar — always visible when hover unavailable */
.gate-panel__touch {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: linear-gradient(
    to top,
    rgba(20, 20, 18, 0.72) 0%,
    rgba(20, 20, 18, 0.35) 70%,
    rgba(20, 20, 18, 0) 100%
  );
  box-sizing: border-box;
  pointer-events: none;
}

.gate-panel__touch .gate-panel__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
}

.gate-panel__touch-enter {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

/* Desktop / fine pointer: resting label + hover/focus reveal */
@media (hover: hover) and (pointer: fine) {
  .gate-panel__rest {
    display: flex;
  }

  .gate-panel__reveal {
    display: flex;
  }

  .gate-panel__touch {
    display: none;
  }

  .gate-panel:hover,
  .gate-panel:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
  }

  .gate-panel:hover .gate-panel__img,
  .gate-panel:focus-visible .gate-panel__img {
    transform: scale(1.03);
  }

  .gate-panel:hover .gate-panel__rest,
  .gate-panel:focus-visible .gate-panel__rest {
    opacity: 0;
  }

  .gate-panel:hover .gate-panel__reveal,
  .gate-panel:focus-visible .gate-panel__reveal {
    opacity: 1;
    transform: translateY(0);
  }

  .gate-panel:hover .gate-panel__btn,
  .gate-panel:focus-visible .gate-panel__btn {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
  }
}

/* Keyboard focus: always show reveal even on coarse pointers */
.gate-panel:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.gate-panel:focus-visible .gate-panel__reveal {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.gate-panel:focus-visible .gate-panel__rest,
.gate-panel:focus-visible .gate-panel__touch {
  opacity: 0;
}

.gate__footer {
  text-align: center;
  padding: 1rem 1rem 2rem;
}

.gate__switch {
  background: none;
  border: none;
  color: var(--gray-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
}

.gate__switch:hover { color: var(--orange); }

/* Gate trust bar — shared checkmark row from main.css */
.gate > .trust-bar {
  width: 100%;
  align-self: stretch;
  background: #F8F8F6;
}

.gate-features {
  background: var(--white);
  padding: 28px 1.5rem;
  width: 100%;
  align-self: stretch;
}

.gate-features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.gate-features__col {
  text-align: center;
  padding: 1rem 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.gate-features__col:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12%;
  height: 76%;
  width: 1px;
  background: #F58326;
  opacity: 0.45;
}

.gate-features__head {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  font-weight: 900;
  color: #F58326;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.gate-features__sub {
  font-size: 13px;
  color: #757561;
  margin: 0;
  line-height: 1.45;
  max-width: 280px;
}

@media (max-width: 900px) and (min-width: 769px) {
  .gate__panels {
    gap: 1rem;
    padding: 0 1rem 1.25rem;
  }

  .gate-panel {
    height: 330px;
  }

  .gate-panel--featured {
    height: 380px;
    min-height: 360px;
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .gate__header {
    padding: 1.25rem 1rem 1rem;
  }

  .gate__header .top-bar__lang {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem !important;
  }

  .gate__logo {
    height: 40px;
    width: auto;
    max-width: 160px;
  }

  .gate__tagline {
    font-size: 22px;
    line-height: 1.3;
  }

  .gate__sub {
    font-size: 13px;
    padding: 0 0.25rem;
  }

  .gate__panels {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 1rem;
    padding: 0 1rem 1.25rem;
  }

  .gate-panel,
  .gate-panel--featured {
    grid-column: auto;
    width: 100%;
    height: 280px;
    min-height: 260px;
    max-height: 300px;
    border-radius: 16px;
  }

  /* Prefer touch bar on small screens even if device reports hover */
  .gate-panel__rest,
  .gate-panel__reveal {
    display: none !important;
  }

  .gate-panel__touch {
    display: flex !important;
    opacity: 1 !important;
  }

  .gate-panel:focus-visible .gate-panel__reveal {
    display: flex !important;
  }

  .gate-panel:focus-visible .gate-panel__touch {
    opacity: 0 !important;
  }

  .gate > .trust-bar {
    padding: 1.25rem 0;
  }

  .gate-features {
    padding: 20px 1rem;
  }

  .gate-features__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .gate-features__col {
    padding: 1.25rem 0.75rem;
  }

  .gate-features__col:not(:last-child)::after {
    display: none;
  }

  .gate-features__col:not(:last-child) {
    border-bottom: 1px solid rgba(245, 131, 38, 0.45);
  }
}
