@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --ink: #21173b;
  --muted: #544b65;
  --purple: #533295;
  --lavender: #f1ebfb;
  --light: #fcfaff;
  font: 100%/1.6 "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--light);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid #7042c3; outline-offset: 4px; }
h1, h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 1;
}
p { margin: 0; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
.site-header { border-bottom: 1px solid #e7dfef; }
.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.15rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.04em;
}
.brand-mark {
  display: inline-grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border-radius: .66rem .66rem .66rem .21rem;
  background: var(--purple);
  color: white;
  font: italic 1.55rem/1 "Instrument Serif", Georgia, serif;
}
nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
nav a, .site-footer a { text-decoration: none; font-weight: 600; }
nav a:hover, .site-footer a:hover { text-decoration: underline; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 6.5rem);
}
.eyebrow {
  margin-bottom: .9rem;
  color: var(--purple);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3.2rem, 7vw, 6.2rem); letter-spacing: -.035em; }
h1 em { color: var(--purple); }
.intro, .demo-copy > p:not(.eyebrow), .about p { color: var(--muted); }
.intro { margin-top: 1.3rem; max-width: 34rem; font-size: 1.08rem; }
.button {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .8rem 1.25rem;
  border-radius: .6rem;
  background: var(--purple);
  color: white;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: #40256f; }
.hero-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 1.2rem;
  aspect-ratio: 1.2;
  background: #292443;
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  inset: auto auto .85rem .85rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .75rem;
  border-radius: .4rem;
  color: white;
  background: #21173bea;
  font-size: .875rem;
}
.hero-photo figcaption span { width: .5rem; height: .5rem; border-radius: 50%; background: #cfb0ff; }
.demo-section { background: var(--lavender); }
.demo-layout, .about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.6rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
h2 { font-size: clamp(2.5rem, 4.5vw, 4.3rem); }
.demo-copy > p:not(.eyebrow) { margin-top: 1rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.choices button {
  padding: .55rem .85rem;
  border: 1px solid #cabbdf;
  border-radius: 100vw;
  background: var(--light);
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.choices button:hover { border-color: var(--purple); }
.choices button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: white; }
.conversation { overflow: hidden; border: 1px solid #ddd0ee; border-radius: 1rem; background: #fbf9ff; }
.conversation-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .85rem 1rem;
  background: #24183f;
  color: white;
}
.conversation-header .brand-mark { background: #7453b3; }
.messages { display: flex; flex-direction: column; gap: .8rem; min-height: 13rem; padding: 1.1rem; }
.bubble {
  max-width: min(92%, 26rem);
  border-radius: .8rem;
  padding: .65rem .9rem;
  font: 1.06rem/1.8 Tahoma, Arial, sans-serif;
}
.student { align-self: end; background: #e6d8fa; }
.assistant { align-self: start; background: white; border: 1px solid #e8e0f0; }
.about { align-items: start; }
.about p + p { margin-top: .8rem; }
.site-footer { border-top: 1px solid #e7dfef; }
.site-footer a { font-size: .875rem; color: var(--muted); }

@media (max-width: 47rem) {
  .hero, .demo-layout, .about { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 1.6; }
}

@media (max-width: 26rem) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { gap: .6rem; }
  nav { gap: .8rem; }
  h1 { font-size: 3rem; }
}
