/* Font-independent, transparent SVG brand lockups. */
.brand .brand-symbol {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: none;
}
.brand .brand-name {
  font-family: 'JetBrains Mono', monospace;
  color: #f0eff5;
  font-weight: 600;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand-name .muted {
  color: #9296ac;
}
.brand .brand-lockup {
  display: block;
  width: 200px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.orbital-art .orbit-core img {
  filter: none;
}
.brand-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 45px;
}
.brand-preview-header img {
  width: 230px;
  max-width: 60%;
}
.brand-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.brand-gallery article {
  border: 1px solid #44475a;
  border-radius: 12px;
  overflow: hidden;
  background: #1c1c27;
}
.brand-gallery .brand-stage {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.brand-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.brand-gallery .light {
  background: #f3f2f7;
}
.brand-gallery .transparent {
  background-color: #191a25;
  background-image:
    linear-gradient(45deg, #ffffff04 25%, transparent 25%, transparent 75%, #ffffff04 75%),
    linear-gradient(45deg, #ffffff04 25%, transparent 25%, transparent 75%, #ffffff04 75%);
  background-size: 24px 24px;
  background-position:
    0 0,
    12px 12px;
}
.brand-gallery article > div:last-child {
  padding: 18px 24px;
  border-top: 1px solid #44475a;
  font:
    12px/1.8 'JetBrains Mono',
    monospace;
}
.brand-gallery a {
  color: #b6a0dc;
  margin-right: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 640px) {
  .brand .brand-lockup {
    width: 166px;
  }
  .brand-gallery {
    grid-template-columns: 1fr;
  }
  .brand-preview-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-preview-header img {
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .brand .brand-lockup {
    width: 140px;
  }
}
@media (max-width: 640px) {
  :is(header, footer) .brand {
    gap: 7px;
    font-size: 16px;
  }
  :is(header, footer) .brand .brand-symbol {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 380px) {
  :is(header, footer) .brand {
    font-size: 14px;
  }
  :is(header, footer) .brand .brand-symbol {
    width: 24px;
    height: 24px;
  }
}

:is(.brand-name, .origin-signature) .brand-nysa {
  color: #f8f8f2;
}
:is(.brand-name, .origin-signature) .brand-soft {
  color: #cf8bd7;
}

.brand-prefix-arrow {
  color: #ff79c6;
}
.brand-prefix-underscore {
  color: #ff79c6;
}
/* Keep the header separated and its controls on one line on small phones. */
@media (max-width: 400px) {
  header {
    gap: 10px;
    padding-inline: 12px;
  }
  :is(header, footer) .brand {
    gap: 5px;
    font-size: 13px;
    flex-shrink: 0;
    padding-block: 8px;
  }
  :is(header, footer) .brand .brand-symbol {
    width: 22px;
    height: 22px;
  }
  .header-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .language-selector {
    width: 54px;
    min-height: 42px;
  }
  .nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 8px;
    font-size: 9px;
    white-space: nowrap;
  }
  .nav-cta span {
    display: none;
  }
}
@media (max-width: 720px) {
  #main input,
  #main select,
  #main textarea {
    font-size: 12px;
  }
  .agro-demo-tabs button {
    min-height: 48px;
    font-size: 9px;
  }
  .agro-demo-bottom button {
    min-height: 40px;
    font-size: 10px;
  }
  .tabs button {
    min-height: 44px;
  }
  .model-controls {
    flex-wrap: wrap;
    gap: 8px;
  }
  .model-controls > span {
    flex: 1 1 110px;
  }
  .model-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
  }
  .model-buttons button {
    min-height: 40px;
    padding-inline: 3px;
    font-size: 10px;
  }
  .email {
    overflow-wrap: anywhere;
  }
}

/* Keep real touch devices readable without enlarging compact desktop layouts. */
@media (pointer: coarse) {
  #main input:not([type='checkbox']):not([type='radio']),
  #main select,
  #main textarea {
    font-size: 16px;
    min-height: 44px;
  }
}

/* The header adds .io to the same outlined company lockup used in the footer. */
header .brand .brand-lockup {
  width: 230px;
}
footer .brand .brand-lockup {
  width: 200px;
}
@media (max-width: 640px) {
  header .brand .brand-lockup {
    width: 190px;
  }
  footer .brand .brand-lockup {
    width: 166px;
  }
}
@media (max-width: 400px) {
  header .brand .brand-lockup {
    width: 148px;
  }
  footer .brand .brand-lockup {
    width: 129px;
  }
}
