/* Original Ottho Academy videos, presented on desktop and mobile. */
.academy-section {
  padding-block: 88px;
  background: #fff;
  scroll-margin-top: 104px;
}

.academy-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 48px;
  padding: 0;
}

.academy-copy,
.academy-visual {
  min-width: 0;
}

.academy-eyebrow {
  margin: 0 0 22px;
  color: var(--purple);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.academy-copy h2 {
  margin: 0 0 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 400;
  font-style: normal;
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.academy-accent {
  color: var(--purple);
  font-style: normal;
}

.academy-intro {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.academy-benefits {
  display: grid;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 28px 0 30px;
}

.academy-benefits li {
  position: relative;
  padding-left: 25px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.academy-benefits li::before {
  content: "";
  position: absolute;
  top: .5em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
}

.academy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.academy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 24px;
  border: 1px solid #35343b;
  border-radius: 7px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  transition: background .18s, color .18s;
}

.academy-button-primary {
  background: #35343b;
  color: #fff;
}

.academy-button-primary:hover {
  background: #24232a;
}

.academy-button-secondary {
  background: transparent;
  color: #35343b;
}

.academy-button-secondary:hover {
  background: #e7dff5;
}

.academy-button:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

.academy-visual {
  width: 100%;
}

.academy-devices {
  position: relative;
  padding: 42px 92px 72px 0;
}

.academy-browser {
  overflow: hidden;
  margin: 0;
  border: 6px solid #29262e;
  border-radius: 16px;
  background: #29262e;
  box-shadow: 0 30px 70px -32px #2d233647;
}

.academy-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px 4px;
  color: #d4ccd9;
}

.academy-browser-bar > span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7b7482;
}

.academy-browser-bar small {
  flex: 1;
  padding-right: 25px;
  text-align: center;
  font-size: 9px;
}

.academy-browser video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1440 / 766;
  border-radius: 5px 5px 10px 10px;
  object-fit: contain;
  background: #f6f8f9;
}

.academy-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: clamp(158px, 13.5vw, 194px);
  max-width: 100%;
  margin: 0;
  padding: 7px;
  border-radius: 28px;
  background: linear-gradient(150deg, #2a2731, #17151c);
  box-shadow: 0 40px 80px -40px rgba(31, 29, 36, .5);
}

.academy-phone video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1566;
  object-fit: cover;
  border-radius: 21px;
  background: #f6f5fa;
}

.academy-preview-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.academy-preview-tools p {
  color: var(--muted);
  font-size: 11px;
}

.academy-playback {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d9d3df;
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font: 500 11px/1.4 var(--sans);
  cursor: pointer;
}

.academy-playback:hover { background: #f6f3f9; }
.academy-playback:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
.academy-playback:disabled { cursor: default; opacity: .65; }
.academy-playback[hidden] { display: none; }

@media (min-width: 651px) and (max-width: 1080px) {
  .academy-visual { max-width: 820px; margin-inline: auto; }
  .academy-phone { width: 194px; }
}

@media (max-width: 1080px) {
  .academy-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    padding: 0;
  }

  .academy-copy h2 {
    max-width: 21ch;
    font-size: clamp(38px, 5vw, 52px);
  }

  .academy-intro {
    max-width: 62ch;
  }
}

@media (max-width: 650px) {
  .academy-section {
    padding-block: 56px;
  }

  .academy-panel {
    gap: 36px;
    padding: 0;
  }

  .academy-eyebrow {
    margin-bottom: 19px;
  }

  .academy-copy h2 {
    margin-bottom: 22px;
    font-size: clamp(32px, 8.6vw, 44px);
    line-height: 1.15;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
  }

  .academy-intro {
    font-size: 15px;
  }

  .academy-benefits {
    gap: 15px;
    margin-block: 25px;
  }

  .academy-benefits li {
    padding-left: 21px;
    font-size: 14px;
  }

  .academy-benefits li::before {
    width: 7px;
    height: 7px;
  }

  .academy-actions {
    flex-direction: column;
    gap: 10px;
  }

  .academy-button {
    width: 100%;
    padding-inline: 14px;
    font-size: 14px;
  }

  .academy-devices { padding: 10px 42px 60px 0; }
  .academy-browser { border-width: 4px; border-radius: 10px; }
  .academy-browser-bar { height: 22px; padding-inline: 6px; }
  .academy-browser-bar small { font-size: 7px; padding-right: 18px; }
  .academy-browser-bar > span { width: 4px; height: 4px; }
  .academy-phone { width: clamp(106px, 30vw, 158px); padding: 5px; border-radius: 21px; }
  .academy-phone video { border-radius: 16px; }
  .academy-preview-tools { margin-top: 20px; gap: 10px; }
  .academy-preview-tools p { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .academy-button {
    transition: none;
  }
}
