/* ===========================================================
   Teacher's Aide — coming soon
   Palette + type tokens live here. Change once, applies site-wide.
   =========================================================== */
:root {
  --brand: oklch(48% 0.17 291); /* primary purple  */
  --brand-deep: oklch(38% 0.15 292); /* gradient end    */
  --accent: oklch(66% 0.17 30); /* warm CTA        */
  --ink: oklch(20% 0.02 280);
  --ink-soft: oklch(35% 0.02 280);
  --ink-dark: oklch(18% 0.02 280);
  --cream: oklch(98% 0.008 80);
  --cream-2: oklch(94% 0.01 80);
  --line: oklch(92% 0.01 80);
  --skel: oklch(90% 0.01 280);
  --skel-pale: oklch(93% 0.03 292);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Lora", Georgia, serif;

  --pad-x: 56px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- shared bits ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
}
.wrap--narrow {
  max-width: 920px;
}
.wrap--form {
  max-width: 600px;
}
.center {
  text-align: center;
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow--light {
  color: oklch(85% 0.06 292);
}

h2 {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--ink);
}
.h2--light {
  color: #fff;
}
h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: oklch(60% 0.14 55);
}

/* Paragraph lede — dark variant for cream sections (mirrors .lede-light) */
.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 14px 0 40px;
}
.lede--intro {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections swap between purple and cream as content is reordered, so the
   shared eyebrow/h2/points/form components pick up the right contrast
   automatically from whichever background they land in, rather than
   needing their light/dark modifier class hand-maintained per section. */
.section--purple .eyebrow {
  color: oklch(85% 0.06 292);
}
.section--purple h2 {
  color: #fff;
}
.section--purple h2 em {
  color: oklch(85% 0.09 60);
}

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}
.btn--dark {
  background: var(--ink-dark);
  color: #fff;
}
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid oklch(80% 0.04 292 / 0.5);
  font-weight: 600;
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 17px 24px;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
  background: var(--cream);
  position: relative;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.brand__name {
  font-weight: 700;
  font-size: 21px;
  color: var(--brand);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__links a {
  font-weight: 600;
  font-size: 15px;
  color: oklch(25% 0.02 280);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav__links a:hover {
  border-bottom-color: var(--brand);
}
.nav__cta {
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
  padding: 88px var(--pad-x) 110px;
  overflow: hidden;
}
.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: oklch(85% 0.09 60);
}
.hero__lede {
  font-size: 18px;
  line-height: 1.65;
  color: oklch(92% 0.02 292);
  max-width: 520px;
  margin: 0 0 36px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.orange {
  color: var(--accent);
}
/* ---------- sections ---------- */
.section {
  padding: 110px var(--pad-x);
}
.section--cream {
  background: var(--cream);
}
.section--purple {
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-deep) 100%);
}
#contact {
  padding-bottom: 90px;
}
.lede-light {
  font-size: 16px;
  line-height: 1.6;
  color: oklch(90% 0.02 292);
  margin: 14px 0 40px;
}

/* ---------- who it's for ---------- */
.segmented {
  display: inline-flex;
  background: var(--cream-2);
  border-radius: 999px;
  padding: 5px;
  gap: 4px;
  margin: 40px 0 64px;
}
.segmented__btn {
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  background: transparent;
  color: oklch(30% 0.02 280);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.segmented__btn.is-active {
  background: var(--brand);
  color: #fff;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  text-align: left;
}
.col-head {
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 22px;
}
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.points li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
  margin-top: 9px;
}
.points--accent li::before {
  background: var(--accent);
}

.columns--single {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin: 0 auto;
}

.section--purple .col-head {
  color: oklch(85% 0.06 292);
}
.section--purple .points li {
  color: oklch(90% 0.02 292);
}
.section--purple .points li::before {
  background: oklch(85% 0.06 292);
}
.section--purple .col-head--accent {
  color: #fff;
}
.section--purple .points--accent li::before {
  background: oklch(85% 0.09 60);
}

/* ---------- teacher interviews ---------- */
.stat-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 640px;
  margin: 30px auto 0;
}
.stat {
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--cream-2);
  border: 1px solid var(--line);
}
.stat__value {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  color: var(--brand);
  margin-bottom: 10px;
}
.stat__unit {
  font-family: var(--font);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  margin-left: 6px;
  color: var(--ink-soft);
}
.stat__label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.stat-note {
  max-width: 640px;
  margin: 24px auto 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.stat-note strong {
  color: var(--ink);
}

.quotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 56px auto 0;
  text-align: left;
}
.quote {
  margin: 0;
  padding: 26px 26px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  box-shadow: 0 8px 24px -8px oklch(20% 0.02 280 / 0.12);
}
.quote:nth-child(3) {
  grid-column: 1 / -1;
  width: calc((100% - 24px) / 2);
  justify-self: center;
}
.quote__tag {
  display: block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.quote__text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}

/* ---------- device toggle ---------- */
.device-toggle {
  display: inline-flex;
  gap: 10px;
  margin: 34px 0 52px;
}
.device-toggle__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(100% 0 0 / 0.12);
  color: #fff;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.device-toggle__btn.is-active {
  background: #fff;
  color: var(--ink-dark);
}

/* ---------- frames (screenshot containers) ---------- */
.frame {
  border-radius: 16px;
  overflow: hidden;
  background: oklch(22% 0.02 280);
  box-shadow:
    0 40px 90px -20px oklch(15% 0.05 292 / 0.55),
    0 0 0 1px oklch(100% 0 0 / 0.08);
}
.frame--browser {
  border-radius: 14px;
  box-shadow:
    0 40px 80px -20px oklch(15% 0.05 292 / 0.6),
    0 0 0 1px oklch(100% 0 0 / 0.08);
}
.frame--preview {
  max-width: 900px;
  margin: 0 auto;
}
.frame--phone {
  max-width: 340px;
  margin: 0 auto;
  border-radius: 34px;
  padding: 10px;
  background: oklch(18% 0.02 280);
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: oklch(20% 0.02 280);
  border-bottom: 1px solid oklch(30% 0.02 280);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot--red {
  background: oklch(70% 0.12 25);
}
.dot--amber {
  background: oklch(78% 0.12 85);
}
.dot--green {
  background: oklch(72% 0.13 145);
}
.frame__url {
  flex: 1;
  margin-left: 14px;
  background: oklch(28% 0.02 280);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1;
  color: oklch(70% 0.02 280);
  text-align: left;
}

.frame__demo {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: #fff;
}
.frame__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.frame__open {
  margin-left: auto;
  font-size: 12px;
  color: oklch(70% 0.02 280);
  text-decoration: none;
  white-space: nowrap;
}
.frame__open:hover {
  color: #fff;
}

/* ---------- the screenshot slot itself ----------
   Drop a file at the path in the alt/hint and it replaces the wireframe.
   No code change needed — JS swaps once the image loads. */
.shot {
  margin: 0;
  background: oklch(99% 0.005 80);
  position: relative;
}
.shot--desktop {
  aspect-ratio: 16/10;
}
.shot--mobile {
  aspect-ratio: 9/19;
  border-radius: 26px;
  overflow: hidden;
}
.shot--card {
  aspect-ratio: 4/3;
}
.shot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: none;
}
.shot.is-loaded .shot__img {
  display: block;
}
.shot.is-loaded .shot__empty {
  display: none;
}

.shot__empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
}
.shot__empty--wire {
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  padding: 26px;
}
.shot__title {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  color: var(--ink);
}
.shot__sub {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}
.shot__hint {
  margin-top: 14px;
  font:
    500 11px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.02em;
  color: oklch(60% 0.01 280);
}

/* wireframe skeleton bits */
.wire {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.wire__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wire__title {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.wire__pill {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: oklch(93% 0.06 55);
  color: oklch(45% 0.15 45);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.wire__body {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
}
.wire__side,
.wire__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wire__cards {
  display: flex;
  gap: 10px;
}
.wire--phone,
.wire--card {
  gap: 12px;
}
.bar {
  display: block;
  height: 9px;
  border-radius: 4px;
  background: var(--skel);
}
.bar--brand {
  height: 12px;
  background: var(--brand);
  opacity: 0.9;
}
.card {
  flex: 1;
  height: 52px;
  border-radius: 8px;
  background: var(--skel-pale);
}
.card--pale {
  background: oklch(96% 0.01 80);
}
.w50 {
  width: 50%;
}
.w60 {
  width: 60%;
}
.w65 {
  width: 65%;
}
.w70 {
  width: 70%;
}
.w80 {
  width: 80%;
}
.w90 {
  width: 90%;
}
.w100 {
  width: 100%;
}
.wire--card .card {
  height: 34px;
}
.wire--phone .card {
  height: 64px;
}

/* ---------- video demo ---------- */
.shot--phone-video {
  aspect-ratio: 9/19.5;
  border-radius: 26px;
  overflow: hidden;
  background: oklch(15% 0.02 280);
}
.shot__video {
  background: #000;
}
.shot.is-loaded .shot__video {
  display: block;
}
.shot .shot__video::-webkit-media-controls {
  display: none;
}
.shot.is-loaded .shot__video::-webkit-media-controls {
  display: flex;
}

.wire--phone-video {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: oklch(75% 0.02 280);
}
.wire--phone-video .shot__title {
  font-size: 20px;
  color: oklch(95% 0.01 280);
}
.wire--phone-video .shot__sub {
  color: oklch(70% 0.06 292);
}
.wire--phone-video .shot__hint {
  color: oklch(55% 0.01 280);
}
.play-glyph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 6px;
  background: oklch(100% 0 0 / 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding-left: 3px; /* optically center the triangle */
}

/* ---------- prototype cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 44px auto 0;
}
.card-shot {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px -8px oklch(20% 0.02 280 / 0.15);
}
.card-shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 14px;
  background: oklch(96% 0.005 80);
  border-bottom: 1px solid var(--line);
}
.card-shot__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: oklch(85% 0.02 280);
}
.card-shot__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid oklch(94% 0.01 80);
  font-weight: 600;
  font-size: 13px;
  color: oklch(30% 0.02 280);
}
.card-shot__foot .num {
  font:
    700 11px/1 ui-monospace,
    monospace;
  color: var(--brand);
}

/* ---------- form ---------- */
.signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}
.signup input {
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid oklch(100% 0 0 / 0.25);
  background: oklch(100% 0 0 / 0.08);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
}
.signup input::placeholder {
  color: oklch(88% 0.02 292 / 0.75);
}
.signup input:focus {
  background: oklch(100% 0 0 / 0.14);
}
.signup .btn {
  margin-top: 8px;
}
.form-msg {
  min-height: 20px;
  text-align: center;
  font-size: 14px;
  color: #fff;
}
.form-msg.is-error {
  color: oklch(88% 0.12 40);
}

.section--cream .signup input {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.section--cream .signup input::placeholder {
  color: oklch(55% 0.01 280);
}
.section--cream .signup input:focus {
  background: oklch(97% 0.005 80);
}
.section--cream .form-msg {
  color: var(--ink-soft);
}
.section--cream .form-msg.is-error {
  color: oklch(50% 0.18 25);
}

/* ---------- footer ---------- */
.footer {
  padding: 40px var(--pad-x);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.footer__brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--brand);
}
.footer__mail {
  font-weight: 500;
  font-size: 14px;
  color: oklch(45% 0.02 280);
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  :root {
    --pad-x: 32px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__lede {
    max-width: none;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  :root {
    --pad-x: 20px;
  }
  .nav__links {
    display: none;
  }
  .hero {
    padding: 56px var(--pad-x) 72px;
  }
  .section {
    padding: 72px var(--pad-x);
  }
  .columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .stat-pair {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .quote:nth-child(3) {
    width: auto;
  }
  .wire__body {
    grid-template-columns: 1fr;
  }
  .wire__side {
    display: none;
  }
  .segmented {
    margin: 28px 0 40px;
  }
  .frame__demo {
    aspect-ratio: 3 / 4;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
