@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #171817;
  --muted: #626761;
  --line: #dedfd8;
  --paper: #fff;
  --warm: #f4f2eb;
  --blue: #dce8ff;
  --blue-strong: #315fbd;
  --green: #d8eee1;
  --yellow: #f4e5a8;
  --radius: 18px;
  --shadow: 0 26px 70px rgb(36 42 35 / 12%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--blue-strong);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Nunito", ui-rounded, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.brand img {
  width: 38px;
  height: 38px;
}

nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #464a46;
  font-size: 14px;
  font-weight: 700;
}

nav a:not(.nav-login):hover {
  color: var(--blue-strong);
}

.nav-login {
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  transition: background 150ms ease, color 150ms ease;
}

.nav-login:hover {
  color: #fff;
  background: var(--ink);
}

.hero {
  min-height: 630px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, .9fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  padding: 82px 0 92px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #858585;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -.035em;
}

h1 {
  max-width: 650px;
  margin-bottom: 22px;
  font-size: clamp(48px, 6.3vw, 82px);
  line-height: .99;
}

.hero-intro {
  max-width: 590px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgb(23 24 23 / 12%);
}

.button-primary,
.button-dark {
  color: #fff;
  background: var(--ink);
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
}

.hero-note {
  margin: 18px 0 0;
  color: #7b807b;
  font-size: 13px;
}

.overview-card {
  position: relative;
  padding: 28px;
  border: 1px solid #d9ddd5;
  border-radius: 24px;
  background: #fbfcfa;
  box-shadow: var(--shadow);
}

.overview-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -34px 48px 42% -42px;
  border-radius: 28px;
  background: var(--blue);
  transform: rotate(-4deg);
}

.overview-top,
.assignment-heading,
.assignment-row,
.ai-prompt {
  display: flex;
  align-items: center;
}

.overview-top {
  justify-content: space-between;
  margin-bottom: 24px;
}

.overview-label {
  margin-bottom: 5px;
  color: #858a84;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.overview-title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 24px;
}

.stat {
  min-width: 0;
  padding: 16px;
  border-radius: 13px;
  background: #eff1ed;
}

.stat-accent {
  background: var(--yellow);
}

.stat-number,
.stat-label {
  display: block;
}

.stat-number {
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  overflow: hidden;
  color: #676c66;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assignment-list {
  margin-bottom: 15px;
  padding: 0 2px;
}

.assignment-heading {
  justify-content: space-between;
  padding: 0 4px 8px;
  color: #8a8e89;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.assignment-row {
  gap: 12px;
  padding: 13px 4px;
  border-top: 1px solid var(--line);
}

.subject-icon {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: #2f56a0;
  font-size: 11px;
  font-weight: 700;
}

.subject-science {
  color: #377551;
  background: var(--green);
}

.assignment-name {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
}

.assignment-name small {
  display: block;
  margin-top: 4px;
  color: #858985;
  font-size: 11px;
  font-weight: 400;
}

.assignment-row time {
  color: #616661;
  font-size: 12px;
}

.ai-prompt {
  gap: 10px;
  padding: 15px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.ai-prompt span:nth-child(2) {
  flex: 1;
}

.spark {
  color: #f3d35e;
  font-size: 18px;
}

.trust-strip {
  min-height: 76px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #565b56;
  font-size: 14px;
}

.trust-strip p {
  margin: 0;
  text-align: center;
}

.trust-strip span {
  margin-right: 8px;
  color: #4b8d62;
}

.how {
  padding: 120px 0;
}

.section-heading {
  max-width: 690px;
  margin-bottom: 54px;
}

.section-heading h2,
.audience-copy h2,
.closing-cta h2 {
  margin-bottom: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
}

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

.feature-card {
  position: relative;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-number {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #a2a6a0;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
}

.feature-icon {
  width: 58px;
  height: 58px;
  display: grid;
  margin-bottom: 78px;
  place-items: center;
  border-radius: 15px;
  background: var(--blue);
}

.feature-icon-green {
  background: var(--green);
}

.feature-icon-yellow {
  background: var(--yellow);
}

.feature-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.audiences {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 9vw, 125px);
  align-items: center;
  padding: 105px 7%;
  border-radius: 28px;
  background: var(--warm);
}

.audience-copy > p:not(.eyebrow) {
  margin: 25px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 700;
}

.audience-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.audience-panels article {
  min-height: 390px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--blue);
}

.audience-panels .student-panel {
  margin-top: 42px;
  background: var(--green);
}

.audience-tag {
  display: inline-block;
  margin-bottom: 70px;
  padding: 7px 11px;
  border: 1px solid rgb(23 24 23 / 20%);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.audience-panels h3 {
  margin-bottom: 27px;
  font-size: 29px;
  line-height: 1.05;
}

.audience-panels ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-panels li {
  position: relative;
  margin: 11px 0;
  padding-left: 18px;
  color: #4e574f;
  font-size: 13px;
  line-height: 1.4;
}

.audience-panels li::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.closing-cta {
  min-height: 290px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  margin-top: 24px;
  padding: 58px 7%;
  border: 1px solid var(--line);
  border-radius: 28px;
}

.closing-cta img {
  width: 72px;
  height: 72px;
}

.closing-cta h2 {
  font-size: clamp(32px, 4vw, 49px);
}

footer {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #777c76;
  font-size: 13px;
}

.brand-footer {
  color: var(--ink);
  font-size: 15px;
}

footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 75px;
    padding-top: 70px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .overview-card {
    width: min(100%, 570px);
    margin-inline: auto;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 0;
  }

  .feature-icon {
    margin-bottom: 52px;
  }

  .audiences {
    grid-template-columns: 1fr;
    padding-inline: 7%;
  }

  .audience-copy {
    max-width: 650px;
  }

  .closing-cta {
    grid-template-columns: auto 1fr;
  }

  .closing-cta .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 15px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  nav a:not(.nav-login) {
    display: none;
  }

  .nav-login {
    padding: 9px 15px;
  }

  .hero {
    min-height: 0;
    gap: 58px;
    padding: 58px 0 72px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .overview-card {
    padding: 20px;
    border-radius: 19px;
  }

  .overview-card::before {
    inset: -22px 28px 48% -18px;
  }

  .stat {
    padding: 12px 9px;
  }

  .stat-label {
    font-size: 9px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .how {
    padding: 82px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .feature-card {
    padding: 25px;
  }

  .audiences {
    gap: 48px;
    padding: 72px 20px;
    border-radius: 22px;
  }

  .audience-panels {
    grid-template-columns: 1fr;
  }

  .audience-panels article,
  .audience-panels .student-panel {
    min-height: 0;
    margin-top: 0;
  }

  .audience-tag {
    margin-bottom: 48px;
  }

  .closing-cta {
    grid-template-columns: 1fr;
    padding: 48px 26px;
  }

  .closing-cta img {
    width: 54px;
    height: 54px;
  }

  .closing-cta .button {
    grid-column: auto;
    justify-self: stretch;
  }

  footer {
    min-height: 180px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}

@media (forced-colors: active) {
  .audience-panels li::before {
    background: CanvasText;
  }
}
