/* Copyright (C) Rein Ytterberg */

.ai-page main * {
  box-sizing: border-box;
}

.ai-page main .wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}
.ai-page main h1,
.ai-page main h2,
.ai-page main h3,
.ai-page main p,
.ai-page main figure {
  margin: 0;
}
.ai-page main h1,
.ai-page main h2,
.ai-page main h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.ai-page main em {
  color: var(--blue);
  font-style: normal;
}

.ai-page main .intro {
  padding-block: 26px 32px;
}
.ai-page main h1 {
  font-size: clamp(2.1rem, 8vw, 4.3rem);
}
.ai-page main .intro p {
  margin-top: 16px;
  max-width: 560px;
}
.ai-page main .example {
  padding-block: 28px;
}
.ai-page main h2 {
  font-size: clamp(1.7rem, 6vw, 2.6rem);
}
.ai-page main .example > h2 {
  margin-bottom: 16px;
}
.ai-page main .adaptive-layout {
  display: grid;
  gap: 12px;
}
.ai-page main .context-art {
  overflow: hidden;
}
.ai-page main .context-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ai-page main .trade-art {
  aspect-ratio: 4.5;
}
.ai-page main .product-section {
  background: #edf3fc;
}
.ai-page main .product-art {
  display: flex;
  height: 90px;
  align-items: center;
  gap: 18px;
}
.ai-page main .product-art img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.ai-page main .product-art figcaption {
  display: grid;
  gap: 4px;
}
.ai-page main .product-art strong {
  font-size: 1.15rem;
}
.ai-page main .product-art span {
  font-size: 0.875rem;
}
.ai-page main .repair-art {
  aspect-ratio: 3;
}
.ai-page main .interaction {
  min-width: 0;
}
.ai-page main .tabs {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.ai-page main .tabs button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #9dafc9;
  border-radius: 6px 6px 0 0;
  padding: 8px 3px;
  background: white;
  color: #284264;
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.15;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}
.ai-page main .tabs button[aria-selected='true'] {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.ai-page main button:focus-visible,
.ai-page main a:focus-visible {
  outline: 3px solid #e67e00;
  outline-offset: 3px;
}
.ai-page main .result-stack {
  display: grid;
  border-top: 3px solid var(--blue);
  background: white;
}
.ai-page main .result {
  grid-area: 1 / 1;
  padding: 16px 12px;
  color: var(--ink);
}
.ai-page main .result[hidden] {
  display: block;
  visibility: hidden;
  pointer-events: none;
}
.ai-page main .result h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
}
.ai-page main .result dl {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  margin: 0;
  gap: 10px 12px;
}
.ai-page main .result dt {
  font-weight: 700;
  color: #345579;
  font-size: 0.875rem;
}
.ai-page main .result dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.ai-page main .result .conclusion {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.ai-page main .space-section {
  color: white;
  background: #0a172b;
}
.ai-page main .space-section em {
  color: #a6c3ff;
}
.ai-page main .space-section .tabs button {
  background: #1c304f;
  color: #d5e3ff;
  border-color: #687e9f;
}
.ai-page main .space-section .tabs button[aria-selected='true'] {
  background: #3269ed;
  color: white;
}
.ai-page main .boundary {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #c4d4ed;
  max-width: 720px;
}
.ai-page main .learning {
  padding-block: 32px;
}
.ai-page main .learning p {
  max-width: 730px;
  margin-top: 14px;
}
.ai-page main .contact {
  padding-block: 10px 32px;
}
.ai-page main .contact a {
  display: inline-block;
  color: white;
  background: #ed4b0a;
  padding: 14px 26px;
  border-radius: 0;
  margin-top: 20px;
  text-decoration: none;
  font-weight: 650;
}

@media (min-width: 780px) {
  .ai-page main .wrap {
    width: min(1120px, calc(100% - 64px));
  }

  .ai-page main .intro {
    padding-block: 42px 48px;
  }
  .ai-page main .example {
    padding-block: 40px;
  }
  .ai-page main .example > h2 {
    margin-bottom: 24px;
  }
  .ai-page main .adaptive-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: center;
  }
  .ai-page main .trade-art {
    aspect-ratio: 2.35;
  }
  .ai-page main .trade-art img {
    object-fit: contain;
  }
  .ai-page main .product-art {
    display: grid;
    height: auto;
    justify-items: center;
    text-align: center;
  }
  .ai-page main .product-art img {
    width: 220px;
    height: 190px;
  }
  .ai-page main .repair-art {
    aspect-ratio: 1.7;
  }
  .ai-page main .tabs {
    gap: 6px;
  }
  .ai-page main .tabs button {
    font-size: 0.9375rem;
    padding: 12px 8px;
  }
  .ai-page main .result {
    padding: 22px;
  }
  .ai-page main .result h3 {
    font-size: 1.5rem;
  }
  .ai-page main .result dl {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
  }
  .ai-page main .result dd {
    font-size: 1rem;
  }
  .ai-page main .learning,
  .ai-page main .contact {
    padding-block: 40px;
  }
}
@media (max-width: 359px) {
  .ai-page main .wrap {
    width: calc(100% - 24px);
  }
  .ai-page main .tabs button {
    font-size: 0.875rem;
    padding-inline: 1px;
  }
  .ai-page main .result {
    padding-inline: 10px;
  }
  .ai-page main .result dl {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 9px;
  }
}
.ai-page main [data-example='product'] .tabs button:nth-child(2) {
  flex-grow: 1.3;
}

.ai-page main .adaptive-layout {
  grid-template-areas: 'controls' 'art';
}
.ai-page main .interaction {
  grid-area: controls;
}
.ai-page main .context-art {
  grid-area: art;
}
.ai-page main .context-art img {
  image-rendering: auto;
}
.ai-page main .trade-art,
.ai-page main .repair-art {
  aspect-ratio: auto;
}
.ai-page main .trade-art img,
.ai-page main .repair-art img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ai-page main .product-art img {
  width: 96px;
  height: 96px;
}
.ai-page main .product-art {
  height: 104px;
}
@media (min-width: 780px) {
  .ai-page main .adaptive-layout {
    grid-template-areas: 'controls art';
    grid-template-columns: 1.08fr 1fr;
    align-items: center;
  }
  .ai-page main .product-art {
    height: auto;
  }
  .ai-page main .product-art img {
    width: 240px;
    height: 240px;
  }
}
@media (min-width: 1280px) {
  .ai-page main .wrap {
    width: min(1320px, calc(100% - 80px));
  }
  .ai-page main .adaptive-layout {
    grid-template-areas: 'art' 'controls';
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ai-page main .context-art {
    width: 100%;
  }
  .ai-page main .trade-art img,
  .ai-page main .repair-art img {
    width: 100%;
    height: auto;
  }
  .ai-page main .interaction {
    width: min(100%, 840px);
  }
  .ai-page main .product-art {
    display: flex;
    justify-content: center;
    gap: 32px;
    text-align: left;
  }
  .ai-page main .product-art img {
    width: 300px;
    height: 300px;
  }
  .ai-page main .product-art figcaption {
    max-width: 320px;
  }
  .ai-page main .product-art strong {
    font-size: 1.7rem;
  }
  .ai-page main .product-art span {
    font-size: 1rem;
  }
  .ai-page main .example {
    padding-block: 48px;
  }
  .ai-page main .result dl {
    grid-template-columns: 100px minmax(0, 1fr);
  }
}
.ai-page main .tabs button {
  box-shadow:
    inset 0 1px 0 #ffffff70,
    0 2px 2px #10243c18;
}
.ai-page main .tabs button[aria-selected='true'] {
  box-shadow: inset 0 2px 3px #081b5338;
}
.ai-page .screenshot-section {
  display: grid;
  gap: 20px;
  padding-block: 28px;
}
.ai-page main .screen-context p {
  margin-top: 14px;
  max-width: 440px;
}
.ai-page main .screen-facts {
  margin: 18px 0 0;
  display: grid;
  gap: 4px;
}
.ai-page main .screen-facts dt {
  font-weight: 700;
}
.ai-page main .screen-facts dd {
  margin: 0 0 10px;
}
.ai-page main .screen-picture {
  min-width: 0;
  position: relative;
  padding-bottom: 24px;
}
.ai-page main .screen-bezel {
  background: #192433;
  padding: 17px 8px 10px;
  border: 1px solid #465363;
  border-radius: 14px;
  position: relative;
}
.ai-page main .screen-camera {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #708098;
  top: 6px;
  left: calc(50% - 2px);
}
.ai-page .screenshot-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}
.ai-page .screenshot-open img {
  display: block;
  width: 100%;
  height: auto;
}
.ai-page main .zoom-button,
.ai-page .viewer-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #6883a6;
  border-radius: 5px;
  background: white;
  color: #15263d;
  box-shadow: 0 2px 4px #15263d30;
  cursor: pointer;
}
.ai-page main .zoom-button {
  position: absolute;
  right: 12px;
  bottom: 0;
}
.ai-page .screenshot-viewer {
  padding: 54px 10px 10px;
  border: 1px solid #465363;
  border-radius: 12px;
  background: #192433;
  width: min(1300px, calc(100vw - 20px));
  max-width: none;
  max-height: calc(100dvh - 20px);
  overflow: hidden;
}
.ai-page .screenshot-viewer::backdrop {
  background: #081323dc;
}
.ai-page .viewer-close {
  position: absolute;
  top: 5px;
  right: 10px;
}
.ai-page .screenshot-scroll {
  overflow: auto;
  max-height: calc(100dvh - 100px);
  background: white;
}
.ai-page .screenshot-scroll img {
  display: block;
  width: 1253px;
  max-width: none;
  height: auto;
}

@media (min-width: 780px) {
  .ai-page .screenshot-section {
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    gap: 32px;
    padding-block: 40px;
  }
}
.ai-page main {
  font:
    16px/1.4 system-ui,
    sans-serif;
}
