/* Public entry: a quiet identification page, not a product feature catalogue. */
.public-index-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 32px 20px;
  background: #fff;
  color: #18211d;
}

.public-index-content {
  width: min(100%, 620px);
}

.public-index-label {
  margin: 0 0 12px;
  color: #087454;
  font-size: 14px;
  font-weight: 800;
}

.public-index-content h1 {
  margin: 0;
  font-size: clamp(30px, 7vw, 46px);
  line-height: 1.24;
}

.public-index-content > p:not(.public-index-label) {
  margin: 16px 0 26px;
  color: #66736d;
  font-size: 16px;
  line-height: 1.65;
}

.public-index-content a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  border-radius: 10px;
  background: #087454;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.app-shell.is-guest .container {
  width: min(760px, calc(100% - 40px));
  padding-top: clamp(48px, 8vw, 92px);
}

.guest-site-intro {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.guest-intro-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  padding: 0 0 clamp(38px, 6vw, 58px);
}

.guest-intro-heading {
  max-width: 640px;
}

.guest-intro-kicker {
  color: #087454;
  font-size: 13px;
  font-weight: 800;
}

.guest-intro-heading h1 {
  max-width: 620px;
  margin: 12px 0 14px;
  color: #18211d;
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
  line-height: 1.22;
}

.guest-intro-heading > p {
  max-width: 560px;
  margin: 0;
  color: #66736d;
  font-size: 16px;
  line-height: 1.65;
}

.guest-intro-actions {
  margin-top: 26px;
}

.guest-intro-actions > button {
  min-height: 46px;
  border-radius: 10px;
}

.guest-intro-heading .guest-access-note {
  margin-top: 17px;
  color: #7a8580;
  font-size: 13px;
}

.guest-quiz-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: center;
  border: 0;
  border-top: 1px solid #dfe7e3;
  padding: 28px 0;
}

.guest-quiz-entry h2 {
  margin: 0 0 5px;
  color: #18211d;
  font-size: 18px;
}

.guest-quiz-entry p {
  margin: 0;
  color: #66736d;
  font-size: 13px;
  line-height: 1.55;
}

.guest-quiz-entry form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.guest-quiz-entry :where(.input, button) {
  min-height: 46px;
  border-radius: 10px;
}

.guest-privacy-note {
  margin: 0;
  border-top: 1px solid #dfe7e3;
  background: transparent;
  color: #7a8580;
  padding: 18px 0 0;
  font-size: 12px;
}

/* The same short introduces the product on the public home and after logout. */
.guest-short-panel {
  width: min(100%, 270px);
  min-width: 0;
  margin: 0 auto;
  color: #18211d;
}

.guest-short-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(24, 33, 29, 0.13);
  border-radius: 16px;
  aspect-ratio: 9 / 16;
  background: #0c3027;
  box-shadow: 0 18px 42px rgba(24, 33, 29, 0.14);
}

.guest-short-stage::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 92px;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 15, 0.62));
  content: "";
  pointer-events: none;
}

.guest-short-poster,
.guest-short-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.guest-short-poster {
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  background: #0c3027;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}

.guest-short-poster img {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.guest-short-play-mark {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 9px 13px;
}

.guest-short-play-mark svg {
  width: 17px;
  height: 17px;
}

.guest-short-poster:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
}

.guest-short-frame {
  z-index: 1;
  border: 0;
  background: transparent;
}

.guest-short-frame[hidden],
.guest-short-controls[hidden],
.guest-short-poster[hidden] {
  display: none;
}

.guest-short-controls {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.guest-short-controls :where(button, a) {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  background: rgba(10, 19, 16, 0.66);
  color: #fff;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

.guest-short-controls :where(button, a):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.guest-short-controls svg {
  width: 15px;
  height: 15px;
}

.guest-short-caption {
  display: grid;
  gap: 2px;
  padding: 12px 2px 0;
}

.guest-short-caption strong {
  font-size: 13px;
  font-weight: 750;
}

.guest-short-caption span {
  color: #66736d;
  font-size: 11px;
  line-height: 1.45;
}

.auth-experience {
  display: grid;
  width: min(780px, 100%);
  min-width: 0;
  grid-template-columns: 270px minmax(0, 430px);
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 48px);
}

.auth-experience > .auth-card {
  grid-column: 2;
  grid-row: 1;
}

.auth-experience > .guest-short-panel {
  grid-column: 1;
  grid-row: 1;
}

.auth-wrap.auth-mode-signup .auth-experience {
  display: block;
  width: min(430px, 100%);
}

.auth-wrap.auth-mode-signup .guest-short-panel {
  display: none;
}

@media (max-width: 760px) {
  .auth-experience {
    grid-template-columns: minmax(0, 430px);
    gap: 24px;
  }

  .auth-experience > .auth-card,
  .auth-experience > .guest-short-panel {
    grid-column: 1;
  }

  .auth-experience > .auth-card {
    grid-row: 1;
  }

  .auth-experience > .guest-short-panel {
    grid-row: 2;
    width: min(238px, 72vw);
  }
}

@media (max-width: 640px) {
  .app-shell.is-guest .container {
    width: min(100%, calc(100% - 32px));
    padding-top: 44px;
  }

  .guest-intro-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .guest-intro-main > .guest-short-panel {
    width: min(238px, 72vw);
  }

  .guest-intro-heading h1 {
    font-size: 34px;
  }

  .guest-intro-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .guest-intro-actions > button:only-child {
    grid-column: 1 / -1;
  }

  .guest-quiz-entry {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .guest-quiz-entry form {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-short-panel {
    scroll-behavior: auto;
  }
}
