:root {
  --yellow: #fdc708;
  --black: #000;
  --gray: #e0e0e0;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--gray);
  font-family: Montserrat, Arial, sans-serif;
  color: #111;
}
.portal {
  min-height: 100vh;
}
.head {
  background: #000;
  color: #fff;
  border-bottom: 6px solid var(--yellow);
  padding: 10px clamp(16px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}
.brandWrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brandLogo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 11px;
  flex: none;
}
.brand {
  font-weight: 900;
  font-size: 20px;
  line-height: 1.08;
}
.brand small {
  display: block;
  color: #ddd;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}
.langs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.lang {
  border: 2px solid #555;
  background: #111;
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}
.lang.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #000;
}
.launch {
  max-width: 1120px;
  margin: 36px auto;
  padding: 0 18px;
}
.hero {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 14px 38px #aaa;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 560px;
}
.intro {
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  display: inline-block;
  align-self: flex-start;
  background: var(--yellow);
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: 0.09em;
  font-weight: 900;
}
.intro h1 {
  font-size: clamp(42px, 5.8vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 22px 0;
}
.intro p {
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
}
.choices {
  background: var(--yellow);
  padding: 38px;
  display: grid;
  gap: 15px;
  align-content: center;
}
.choice {
  position: relative;
  background: #fff;
  border: 0;
  border-radius: 17px;
  padding: 22px 72px 22px 22px;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease;
}
.choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.16);
}
.choice:focus-visible,
.lang:focus-visible,
.back:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.choice strong {
  font-size: 20px;
  display: block;
  margin-bottom: 7px;
}
.choice.dark {
  background: #000;
  color: #fff;
}
.choice.dark strong {
  color: var(--yellow);
}
.choiceIcon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--yellow);
}
.choice.dark .choiceIcon {
  background: var(--yellow);
  color: #000;
}
.choiceIcon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stage {
  display: none;
  background: #fff;
}
.stage.active {
  display: block;
}
iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.back {
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  background: var(--yellow);
  color: #000;
  border-radius: 11px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inapp .back {
  display: inline-flex;
}
.inapp .langs {
  display: flex;
}

/* Responsive portal: the header sizes itself; the active frame fills the rest. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  min-width: 0;
}
.portal {
  min-height: 100vh;
  min-height: 100dvh;
}
.portal.inapp {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.head {
  flex: none;
  flex-wrap: wrap;
  padding: 10px clamp(12px, 3vw, 72px);
  gap: 12px;
}
.brandWrap {
  flex: 1 1 210px;
}
.brand {
  overflow-wrap: anywhere;
}
.langs {
  flex-wrap: nowrap;
  margin-left: auto;
}
.lang,
.back,
.choice {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.lang,
.back {
  min-height: 44px;
}
.lang {
  min-width: 44px;
}
.back {
  max-width: 100%;
  white-space: normal;
}
.inapp .back {
  display: inline-flex;
  justify-content: center;
}
.inapp .langs {
  display: flex;
}
.stage {
  position: relative;
  height: auto;
  min-height: 0;
  flex: 1 1 0;
  overflow: hidden;
}
.stage.active {
  display: block;
}
/* A positioned frame avoids percentage-height resolution through nested flex items in Safari. */
.stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
}
.hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.intro,
.choices {
  min-width: 0;
}
.choice {
  width: 100%;
  min-height: 112px;
  overflow-wrap: anywhere;
}
.choice:focus-visible,
.lang:focus-visible,
.back:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.choice:focus-visible {
  outline-color: #111;
}
@media (max-width: 900px) {
  .launch {
    margin: 22px auto;
  }
  .hero {
    min-height: 0;
  }
  .intro {
    padding: 36px;
  }
  .choices {
    padding: 28px;
  }
}
@media (max-width: 760px) {
  .head {
    gap: 10px;
  }
  .brandLogo {
    width: 44px;
    height: 44px;
  }
  .brand {
    font-size: 17px;
  }
  .brand small {
    font-size: 11px;
  }
  .inapp .back {
    order: 3;
    flex-basis: 100%;
  }
  .launch {
    margin: 14px auto;
    padding: 0 12px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }
  .intro,
  .choices {
    padding: 26px 22px;
  }
  .intro h1 {
    font-size: clamp(34px, 8vw, 52px);
    margin: 18px 0;
  }
  .intro p {
    font-size: 16px;
  }
  .choice {
    padding: 20px 68px 20px 20px;
  }
  .choice strong {
    font-size: 19px;
  }
  .choiceIcon {
    right: 16px;
  }
}
@media (max-width: 420px) {
  .brandWrap {
    flex-basis: 100%;
  }
  .brand {
    font-size: 16px;
  }
  .langs {
    margin-left: 0;
  }
  .inapp .back {
    flex-basis: 100%;
  }
  .intro,
  .choices {
    padding: 22px 18px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .intro h1 {
    font-size: 34px;
  }
}
@media (hover: none) {
  .choice:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .choice {
    transition: none;
  }
}
