/* Page-specific adjustments for Russian copy and the platform overview. */
.font-sora {
  font-family: 'Sora', 'Inter Tight', sans-serif;
}

main > section,
#purchase {
  scroll-margin-top: 6rem;
}

/* Overlay the source waveform near the portrait without changing the hero layout. */
.hero-waveform {
  position: absolute;
  bottom: 0%;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-inline: 16px;
  pointer-events: none;
  user-select: none;
}

.hero-waveform__graphic {
  display: block;
  width: 100%;
  max-width: 869px;
  height: auto;
}

.hero-waveform svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px .75px rgb(81 45 167 / .35));
}

.hero-waveform .voice-bar {
  fill: url(#hero-waveform-gradient);
  fill-opacity: 1;
}

.hero-waveform .voice-bar[fill-opacity] {
  fill-opacity: .85;
}

.platform-overview {
  display: grid;
  gap: 1.25rem;
  max-height: 80vh;
  max-height: 80dvh;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  #channels .grid {
    grid-auto-flow: column;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #channels .grid > div {
    grid-column: auto;
    min-width: 0;
  }
}

.channel-visual {
  --channel-glow: 42 171 238;
  display: grid;
  place-items: center;
  height: 280px;
  background:
    radial-gradient(ellipse at center, rgb(var(--channel-glow) / .2), transparent 72%),
    #10111c;
}

.channel-visual--max {
  --channel-glow: 95 66 255;
}

.channel-visual--web {
  --channel-glow: 166 124 255;
}

.channel-visual__image {
  width: 160px;
  height: 160px;
  max-width: 60%;
  object-fit: contain;
}

.channel-visual--web .channel-visual__image {
  filter: brightness(0) invert(1);
  opacity: .9;
}

dialog.modal-overlay[open] {
  display: grid;
  place-items: center;
}

dialog .modal-content {
  height: auto;
  max-height: 80vh;
  max-height: 80dvh;
}

.contact-content {
  display: grid;
  gap: 42px;
  margin-inline: auto;
}

.contact-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 2fr;
  gap: 24px;
  padding-inline: 32px;
}

.contact-cards > div {
  min-width: 0;
}

.contact-form-wrapper,
.footer-contact {
  min-width: 0;
  width: 100%;
}

.footer-contact {
  max-width: 640px;
}

.lead-form {
  display: grid;
  gap: 24px;
  width: 100%;
  text-align: left;
}

#details .lead-form {
  max-width: 900px;
  margin-inline: auto;
}

.lead-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.lead-form--stacked .lead-form__fields {
  grid-template-columns: 1fr;
}

.lead-form input {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  border: 1px solid #20242f;
  border-radius: 8px;
  background: #0d1017;
  padding: 12px;
  color: #f8f9fa;
  font: 400 18px/1.4 'Inter Tight', sans-serif;
}

.lead-form input::placeholder {
  color: #ffffff99;
}

.lead-form input:focus-visible {
  outline: 2px solid #8d59ff;
  outline-offset: 3px;
}

.lead-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8f9fa;
  color: #11141d;
  font: 500 16px/1.4 'IBM Plex Mono', monospace;
  cursor: pointer;
  transition: background 150ms, opacity 150ms;
}

.lead-form__submit:hover {
  background: #e6e0f7;
}

.lead-form__submit:focus-visible {
  outline: 2px solid #8d59ff;
  outline-offset: 4px;
}

.lead-form__submit:disabled {
  opacity: .65;
  cursor: wait;
}

.lead-form__status {
  color: #ffffffb3;
  font: 400 16px/1.5 'Inter Tight', sans-serif;
  overflow-wrap: anywhere;
}

.lead-form__status[hidden] {
  display: none;
}

.lead-form__status[data-state='error'] {
  color: #ffb4b4;
}

@media (max-width: 1023px) {
  .contact-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-inline: 0;
  }

  .contact-cards > div {
    padding: 24px;
  }
}

@media (max-width: 639px) {
  .contact-cards,
  .lead-form__fields {
    grid-template-columns: 1fr;
  }

  .contact-content {
    gap: 28px;
  }
}

/* Single-column cards do not need gutters between all twelve grid tracks. */
@media (max-width: 767px) {
  #platform {
    overflow-x: clip;
  }

  #platform .grid-cols-12 {
    column-gap: 0;
  }
}

@media (max-width: 639px) {
  footer .grid-cols-12 {
    column-gap: 0;
  }
}

@media (max-width: 360px) {
  header nav {
    left: 50vw;
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  #home h1 .inline-flex {
    white-space: nowrap;
  }

  #home h1 .modal-action {
    width: 60px;
    flex-shrink: 0;
  }
}
