@font-face {
  font-family: "Mulish";
  src: url("/teacher/assets/fonts/Mulish-Variable.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 900;
}

:root {
  color-scheme: light;
  --brand: #22104d;
  --brand-2: #4c32a7;
  --ink: #181a29;
  --muted: #6f7182;
  --line: #e7e5ee;
  --surface: rgba(255, 255, 255, 0.88);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(76, 50, 167, 0.12), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(240, 138, 36, 0.11), transparent 30%),
    #faf9fc;
  color: var(--ink);
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.landing-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
  justify-content: safe center;
  margin: 0 auto;
  max-width: 1040px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 28px max(48px, env(safe-area-inset-bottom));
}

.brand {
  align-items: center;
  display: flex;
  gap: 11px;
}

.brand a {
  display: flex;
  flex-shrink: 0;
}

.brand img {
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.brand div {
  display: grid;
}

.brand span {
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand strong {
  font-size: 20px;
  line-height: 1.15;
}

.intro {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.55;
  margin: 16px auto 0;
  max-width: 660px;
}

.role-grid {
  display: grid;
  flex: 0 0 auto;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(34, 16, 77, 0.08);
  color: inherit;
  display: grid;
  align-content: start;
  min-height: 0;
  padding: 28px;
  position: relative;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.role-card:hover,
.role-card:focus-visible {
  border-color: rgba(76, 50, 167, 0.42);
  box-shadow: 0 28px 70px rgba(34, 16, 77, 0.14);
  outline: none;
  transform: translateY(-4px);
}

.role-card:active {
  transform: translateY(-1px) scale(0.99);
  box-shadow: 0 16px 40px rgba(34, 16, 77, 0.1);
}

.student-card:hover,
.teacher-card:hover {
  transform: none;
}

.role-icon {
  align-items: center;
  background: #f0effa;
  border-radius: 18px;
  display: flex;
  height: 58px;
  justify-content: center;
  margin-bottom: 16px;
  width: 58px;
}

.teacher-card .role-icon {
  background: #fff2e9;
}

.role-icon svg {
  fill: none;
  height: 29px;
  stroke: var(--brand-2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  width: 29px;
}

.teacher-card .role-icon svg {
  stroke: #a44d16;
}

.role-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.role-card > strong {
  font-size: 32px;
  letter-spacing: -0.035em;
  margin-top: 5px;
}

.role-copy {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  margin-top: 10px;
}

.role-action {
  align-items: center;
  align-self: end;
  color: var(--brand-2);
  display: flex;
  font-size: 15px;
  font-weight: 900;
  gap: 8px;
  margin-top: 25px;
}

.teacher-card .role-action {
  color: #943f0e;
}

.role-action b {
  font-size: 20px;
  transition: transform 160ms ease;
}

.role-card:hover .role-action b,
.role-card:focus-visible .role-action b {
  transform: translateX(4px);
}

.student-actions,
.teacher-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.student-action,
.teacher-action {
  align-items: center;
  background: #f8f7fb;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brand-2);
  display: flex;
  font-size: 14px;
  font-weight: 900;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 14px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.student-action span,
.teacher-action span {
  display: grid;
  gap: 2px;
}

.student-action small,
.teacher-action small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.student-action b,
.teacher-action b {
  font-size: 20px;
  transition: transform 160ms ease;
}

.student-action:hover,
.student-action:focus-visible,
.teacher-action:hover,
.teacher-action:focus-visible {
  background: #f1eff9;
  border-color: rgba(76, 50, 167, 0.42);
  outline: none;
  transform: translateY(-2px);
}

.student-action:active,
.teacher-action:active {
  transform: translateY(0) scale(0.985);
}

.student-action:hover b,
.student-action:focus-visible b,
.teacher-action:hover b,
.teacher-action:focus-visible b {
  transform: translateX(4px);
}

.create-account-action {
  background: var(--brand-2);
  border-color: var(--brand-2);
  color: #fff;
}

.create-account-action small {
  color: rgba(255, 255, 255, 0.76);
}

.create-account-action:hover,
.create-account-action:focus-visible {
  background: var(--brand);
  border-color: var(--brand);
}

.teacher-sign-in-action {
  color: #943f0e;
}

.teacher-sign-in-action:hover,
.teacher-sign-in-action:focus-visible {
  background: #fff7f1;
  border-color: rgba(164, 77, 22, 0.42);
}

.role-note {
  color: #9293a1;
  font-size: 12px;
  margin-top: 9px;
}

footer {
  color: #8a8997;
  font-size: 12px;
  margin: 0;
  text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 12px;
}

.legal-links a {
  color: var(--brand-2);
  font-weight: 800;
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
}

.legal-shell {
  justify-content: start;
  max-width: 760px;
}

.legal-shell h1 {
  font-size: clamp(32px, 4vw, 44px);
}

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

.legal-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 22px 60px rgba(34, 16, 77, 0.08);
  padding: 28px;
}

.legal-body h2 {
  font-size: 18px;
  letter-spacing: -0.03em;
  margin: 28px 0 10px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

.legal-body p {
  margin: 0 0 12px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

.legal-body a {
  color: var(--brand-2);
  font-weight: 800;
}

@media (max-width: 700px) {
  .landing-shell {
    gap: 22px;
    justify-content: start;
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro {
    text-align: left;
  }

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

  .role-card {
    padding: 22px;
  }
}

@media (max-height: 760px) {
  .landing-shell {
    gap: 18px;
    justify-content: start;
  }

  h1 {
    font-size: clamp(32px, 5vw, 44px);
  }

  .lede {
    margin-top: 12px;
  }

  .role-icon {
    height: 48px;
    margin-bottom: 14px;
    width: 48px;
  }

  .role-card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .role-card,
  .role-action b,
  .student-action,
  .student-action b,
  .teacher-action,
  .teacher-action b {
    transition: none;
  }
}

/* Legal notices: core information stays readable at phone widths. */
.legal-body p, .legal-body li, .legal-updated { font-size: 16px; overflow-wrap: anywhere; }
.legal-shell .brand strong { white-space: normal; font-size: 18px; }
.legal-shell .brand span { font-size: 12px; }
.legal-shell .eyebrow { font-size: 16px; }
