.ai-tutor-page {
  background: #fff;
  color: #071f3d;
}

.ai-tutor-page main {
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 12%, rgba(38, 198, 218, .16), transparent 31%),
    radial-gradient(circle at 92% 29%, rgba(255, 189, 61, .13), transparent 26%),
    linear-gradient(180deg, #f6fbff 0%, #fff 44%, #f8fcff 100%);
}

.ai-tutor-page img {
  display: block;
  max-width: 100%;
}

.ai-hero {
  position: relative;
  overflow: hidden;
  min-height: 548px;
  background:
    radial-gradient(circle at 75% 22%, rgba(255, 255, 255, .3), transparent 22%),
    radial-gradient(circle at 38% 14%, rgba(255, 255, 255, .16), transparent 18%),
    linear-gradient(115deg, #13a7ef 0%, #13bff4 50%, #72dcff 100%);
}

.ai-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -34px;
  height: 66px;
  border-radius: 34px 34px 0 0;
  background: #fff;
}

.ai-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 548px;
  display: grid;
  grid-template-columns: minmax(470px, .88fr) minmax(540px, 1.12fr);
  gap: 34px;
  align-items: center;
  padding: 52px 0 76px;
}

.ai-kicker,
.ai-eyebrow {
  margin: 0 0 13px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
}

.ai-kicker {
  color: rgba(255, 255, 255, .9);
}

.ai-eyebrow {
  color: #1687e8;
}

.ai-hero h1 {
  max-width: 640px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 48px;
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-hero__copy > p:not(.ai-kicker) {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, .94);
  font-size: 18px;
  line-height: 1.42;
  font-weight: 600;
}

.ai-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.ai-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 570px;
  margin-top: 34px;
}

.ai-hero__stats article {
  min-height: 84px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  backdrop-filter: blur(12px);
}

.ai-hero__stats strong,
.ai-hero__stats span {
  display: block;
}

.ai-hero__stats strong {
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.ai-hero__stats span {
  margin-top: 8px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.ai-hero__visual {
  position: relative;
  min-height: 430px;
}

.ai-device {
  position: absolute;
  right: 26px;
  top: 18px;
  width: min(520px, 100%);
  min-height: 392px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 28px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 60px rgba(9, 54, 90, .22);
}

.ai-device::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: -1;
  border-radius: 24px;
  background: rgba(255, 255, 255, .35);
  transform: rotate(-3deg);
}

.ai-device__top {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-bottom: 1px solid #dbe9f6;
}

.ai-device__top span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: url("/assets/lesson-ai.svg") center / 22px 22px no-repeat, linear-gradient(135deg, #1687e8, #26c6da);
}

.ai-device__top b {
  color: #071f3d;
  font-size: 16px;
  font-weight: 900;
}

.ai-device__top i {
  margin-left: auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e6fbf2;
  color: #1daf6f;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ai-chat {
  display: grid;
  gap: 12px;
  padding: 18px 4px 16px;
}

.ai-chat article {
  max-width: 86%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f3f9ff;
  color: #143457;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.ai-chat__user {
  justify-self: end;
  display: block !important;
  background: #071f3d !important;
  color: #fff !important;
}

.ai-chat img {
  width: 24px;
  height: 24px;
}

.ai-skill-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe9f6;
  border-radius: 18px;
  background: #fff;
}

.ai-skill-panel div {
  display: grid;
  grid-template-columns: 92px 1fr 38px;
  gap: 12px;
  align-items: center;
}

.ai-skill-panel b,
.ai-skill-panel small {
  color: #17375f;
  font-size: 12px;
  font-weight: 900;
}

.ai-skill-panel span {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #e9f2fa;
}

.ai-skill-panel i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1687e8, #48cbb9);
}

.ai-orbit-card {
  position: absolute;
  z-index: 2;
  border: 1px solid #dbe9f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(9, 54, 90, .16);
}

.ai-orbit-card--plan {
  left: 0;
  top: 74px;
  width: 210px;
  padding: 18px;
}

.ai-orbit-card--plan span,
.ai-orbit-card--plan small,
.ai-orbit-card--score span {
  display: block;
  color: #60758e;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.ai-orbit-card--plan strong {
  display: block;
  margin: 8px 0 6px;
  color: #071f3d;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.ai-orbit-card--score {
  right: 4px;
  bottom: 8px;
  width: 148px;
  min-height: 128px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
}

.ai-orbit-card--score strong {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#48cbb9 0 86%, #e6eef6 86% 100%);
  color: #071f3d;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 0 0 9px #fff;
}

.ai-feature-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: -28px;
}

.ai-feature-strip article,
.ai-steps article,
.ai-mode-grid article,
.ai-faq details,
.ai-final-cta,
.ai-teacher-handoff,
.ai-workspace__panel {
  border: 1px solid #dbe9f6;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 47, 82, .07);
}

.ai-feature-strip article {
  min-height: 112px;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
}

.ai-feature-strip span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #edf8ff;
}

.ai-feature-strip img {
  width: 25px;
  height: 25px;
}

.ai-feature-strip strong,
.ai-steps h3,
.ai-mode-grid h3,
.ai-tutor-card strong,
.ai-faq summary {
  color: #102b52;
  font-weight: 900;
}

.ai-feature-strip p,
.ai-section__copy > p:not(.ai-eyebrow),
.ai-mode-grid p,
.ai-teacher-handoff p,
.ai-faq p,
.ai-final-cta p,
.ai-workspace__copy p {
  margin: 0;
  color: #60758e;
  line-height: 1.45;
  font-weight: 600;
}

.ai-feature-strip p {
  margin-top: 5px;
  font-size: 13px;
}

.ai-section {
  padding: 60px 0 0;
}

.ai-split {
  display: grid;
  grid-template-columns: minmax(360px, .75fr) minmax(0, 1.25fr);
  gap: 34px;
  align-items: start;
}

.ai-section h2,
.ai-workspace__copy h2,
.ai-final-cta h2,
.ai-teacher-handoff h2 {
  margin: 0;
  color: #071f3d;
  font-size: 34px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.ai-section__copy > p:not(.ai-eyebrow),
.ai-workspace__copy p,
.ai-teacher-handoff p,
.ai-final-cta p {
  max-width: 590px;
  margin-top: 16px;
  font-size: 16px;
}

.ai-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ai-steps article {
  min-height: 218px;
  padding: 24px;
  border-radius: 18px;
}

.ai-steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #1687e8, #26c6da);
  color: #fff;
  font-weight: 900;
}

.ai-steps h3 {
  margin: 22px 0 10px;
  font-size: 20px;
}

.ai-steps p {
  margin: 0;
  color: #60758e;
  line-height: 1.48;
  font-weight: 600;
}

.ai-workspace-band {
  margin-top: 66px;
  padding: 52px 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(72, 203, 185, .18), transparent 28%),
    linear-gradient(180deg, #eef9ff 0%, #f9fdff 100%);
}

.ai-workspace {
  display: grid;
  grid-template-columns: minmax(620px, 1.18fr) minmax(330px, .82fr);
  gap: 34px;
  align-items: center;
}

.ai-workspace__panel {
  display: grid;
  grid-template-columns: 166px 1fr;
  min-height: 430px;
  overflow: hidden;
  border-radius: 22px;
}

.ai-side-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  background: #061d35;
}

.ai-side-nav img {
  width: 72px;
  height: 52px;
  margin-bottom: 16px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.ai-side-nav a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.ai-side-nav a[aria-current="page"] {
  background: rgba(22, 135, 232, .22);
  color: #fff;
}

.ai-dashboard {
  padding: 24px;
  background: #f7fbff;
}

.ai-dashboard__head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dbe9f6;
  border-radius: 18px;
  background: #fff;
}

.ai-dashboard__head span {
  color: #1687e8;
  font-size: 12px;
  font-weight: 900;
}

.ai-dashboard__head h3 {
  margin: 6px 0 0;
  color: #071f3d;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 900;
}

.ai-dashboard__head a,
.ai-tutor-card a,
.ai-section__head > a {
  color: #1687e8;
  font-weight: 900;
  text-decoration: none;
}

.ai-dashboard__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
}

.ai-dashboard__grid article {
  padding: 18px;
  border: 1px solid #dbe9f6;
  border-radius: 18px;
  background: #fff;
}

.ai-dashboard__grid b {
  display: block;
  margin-bottom: 14px;
  color: #102b52;
  font-size: 15px;
  font-weight: 900;
}

.ai-daily-card {
  grid-row: span 2;
}

.ai-daily-card ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: #344b66;
  font-weight: 800;
  line-height: 1.4;
}

.ai-feedback-card p {
  margin: 0 0 14px;
  color: #60758e;
  line-height: 1.45;
  font-weight: 600;
}

.ai-feedback-card span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e8fbf5;
  color: #21a978;
  font-size: 12px;
  font-weight: 900;
}

.ai-bars {
  height: 112px;
  display: flex;
  gap: 12px;
  align-items: end;
  padding-top: 8px;
}

.ai-bars i {
  flex: 1;
  min-width: 18px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #1687e8, #26c6da);
}

.ai-bars i:nth-child(1) { height: 38%; }
.ai-bars i:nth-child(2) { height: 58%; }
.ai-bars i:nth-child(3) { height: 46%; background: linear-gradient(180deg, #ffbd3d, #ff8a3d); }
.ai-bars i:nth-child(4) { height: 75%; }
.ai-bars i:nth-child(5) { height: 88%; background: linear-gradient(180deg, #48cbb9, #2dbb84); }

.ai-workspace__copy .btn {
  margin-top: 24px;
}

.ai-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ai-mode-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ai-mode-grid article {
  overflow: hidden;
  min-height: 344px;
  border-radius: 20px;
}

.ai-mode-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.ai-mode-grid span {
  display: inline-flex;
  margin: 18px 18px 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f0f8ff;
  color: var(--tone);
  font-size: 12px;
  font-weight: 900;
}

.ai-mode-grid h3 {
  margin: 14px 18px 10px;
  font-size: 20px;
  line-height: 1.15;
}

.ai-mode-grid p {
  margin: 0 18px 22px;
  font-size: 14px;
}

.ai-teacher-handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 34px;
  align-items: center;
  margin-top: 62px;
  padding: 34px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 189, 61, .18), transparent 24%),
    #fff;
}

.ai-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ai-checks span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f0f8ff;
  color: #1687e8;
  font-size: 13px;
  font-weight: 900;
}

.ai-tutor-card {
  min-height: 230px;
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 20px;
  padding: 18px;
  border: 1px solid #dbe9f6;
  border-radius: 20px;
  background: #f8fcff;
}

.ai-tutor-card img {
  width: 142px;
  height: 194px;
  object-fit: cover;
  border-radius: 16px;
}

.ai-tutor-card strong,
.ai-tutor-card span {
  display: block;
}

.ai-tutor-card strong {
  margin-top: 5px;
  font-size: 20px;
}

.ai-tutor-card span {
  margin: 5px 0 14px;
  color: #48cbb9;
  font-size: 13px;
  font-weight: 900;
}

.ai-tutor-card p {
  margin: 0 0 18px;
  font-size: 14px;
}

.ai-faq {
  padding-top: 56px;
}

.ai-faq__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ai-faq details {
  padding: 20px 22px;
  border-radius: 16px;
}

.ai-faq summary {
  cursor: pointer;
  list-style: none;
}

.ai-faq summary::-webkit-details-marker {
  display: none;
}

.ai-faq p {
  margin-top: 12px;
}

.ai-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 42px;
  margin-bottom: 30px;
  padding: 38px 44px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 20%, rgba(255, 255, 255, .24), transparent 18%),
    linear-gradient(135deg, #061d35 0%, #0d3866 58%, #1687e8 100%);
}

.ai-final-cta h2,
.ai-final-cta .ai-eyebrow,
.ai-final-cta p {
  color: #fff;
}

.ai-final-cta p {
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
}

@media (max-width: 1180px) {
  .ai-hero__inner,
  .ai-split,
  .ai-workspace,
  .ai-teacher-handoff {
    grid-template-columns: 1fr;
  }

  .ai-hero__visual {
    min-height: 470px;
  }

  .ai-device {
    right: 0;
  }

  .ai-feature-strip,
  .ai-mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-workspace__panel {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 720px) {
  .ai-hero {
    min-height: 0;
  }

  .ai-hero__inner {
    min-height: 0;
    padding: 38px 0 68px;
  }

  .ai-hero h1 {
    font-size: 38px;
  }

  .ai-hero__copy > p:not(.ai-kicker) {
    font-size: 16px;
  }

  .ai-hero__actions,
  .ai-hero__stats,
  .ai-feature-strip,
  .ai-steps,
  .ai-mode-grid,
  .ai-faq__grid,
  .ai-final-cta,
  .ai-dashboard__grid,
  .ai-tutor-card {
    grid-template-columns: 1fr;
  }

  .ai-hero__actions .btn,
  .ai-final-cta .btn {
    width: 100%;
  }

  .ai-hero__visual {
    min-height: 660px;
  }

  .ai-device {
    top: 120px;
    right: 0;
    left: 0;
    width: 100%;
  }

  .ai-orbit-card--plan {
    top: 0;
    left: 0;
    width: min(240px, 72%);
  }

  .ai-orbit-card--score {
    right: 0;
    bottom: 0;
  }

  .ai-section,
  .ai-faq {
    padding-top: 42px;
  }

  .ai-section h2,
  .ai-workspace__copy h2,
  .ai-final-cta h2,
  .ai-teacher-handoff h2 {
    font-size: 28px;
  }

  .ai-workspace-band {
    margin-top: 44px;
    padding: 36px 0;
  }

  .ai-workspace__panel {
    grid-template-columns: 1fr;
  }

  .ai-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-side-nav img {
    grid-column: 1 / -1;
  }

  .ai-dashboard,
  .ai-teacher-handoff,
  .ai-final-cta {
    padding: 24px;
  }

  .ai-dashboard__head,
  .ai-section__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-tutor-card img {
    width: 100%;
    height: 260px;
  }
}
