:root {
  --ink: #17211d;
  --muted: #5f6f67;
  --line: #dce5df;
  --paper: #f4f7f3;
  --panel: #ffffff;
  --brand: #208b5a;
  --brand-dark: #12603c;
  --brand-soft: #e5f3eb;
  --orange: #ff6a00;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

.site-shell,
.launchpad-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-nav,
.launchpad-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
}

.site-brand,
.launchpad-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 950;
}

.site-brand img,
.launchpad-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.site-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-account {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.site-links a,
.account-button,
.button-ghost {
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.account-button {
  cursor: pointer;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
  min-height: 560px;
  padding: 52px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--brand);
  color: #ffffff;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.76;
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 560px;
  margin: 24px 0 0;
  color: #eef8f1;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #101815;
  border-radius: 999px;
  background: #101815;
  color: #ffffff;
  font-weight: 950;
  cursor: pointer;
}

.home-hero .button-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #ffffff;
}

.login-panel {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 24px;
  background: #ffffff;
  color: var(--ink);
}

.login-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.login-panel-head img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.login-panel h2,
.content-row h2,
.info-band h2,
.launchpad-title h1,
.launchpad-section h2 {
  margin: 0;
  letter-spacing: 0;
}

.login-panel h2 {
  font-size: 1.75rem;
}

.home-login-form,
.home-login-fields {
  display: grid;
  gap: 14px;
}

.home-login-form.is-signed-in [data-cloud-fields],
.home-login-form.is-signed-in [data-local-fields],
.home-login-form.is-signed-in .remember-row,
.home-login-form.is-signed-in .login-submit {
  display: none !important;
}

.home-login-form label {
  display: grid;
  gap: 7px;
  color: #31423a;
  font-size: 0.9rem;
  font-weight: 850;
}

.home-login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd9d2;
  border-radius: 14px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

.home-login-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(32, 139, 90, 0.14);
}

.remember-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
  color: var(--muted) !important;
}

.remember-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}

.recovery-link {
  justify-self: start;
  margin-top: -2px;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.recovery-link:hover,
.recovery-link:focus-visible {
  color: var(--brand);
}

.login-submit,
.launchpad-link,
.home-signout {
  width: 100%;
}

.home-signout {
  color: var(--ink);
}

.login-status {
  min-height: 22px;
  margin: 0;
  color: #9c1b1b;
  font-size: 0.92rem;
  font-weight: 850;
}

.login-status.is-success {
  color: var(--brand-dark);
}

.info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.info-band article,
.content-row,
.launchpad-card,
.launchpad-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.info-band article {
  padding: 22px;
}

.info-band span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 950;
}

.info-band h2 {
  font-size: 1.18rem;
}

.info-band p,
.content-row p,
.launchpad-meta,
.launchpad-card p,
.launchpad-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.content-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  padding: 28px;
}

.content-row .eyebrow {
  color: var(--brand);
}

.launchpad-shell {
  padding-bottom: 48px;
}

.launchpad-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
}

.launchpad-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.launchpad-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
  margin: 10px 0 20px;
}

.launchpad-title {
  padding: 34px;
  border-radius: 26px;
  background: var(--brand);
  color: #ffffff;
}

.launchpad-title h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.92;
}

.launchpad-title p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #edf8f1;
  font-size: 1.08rem;
  line-height: 1.5;
}

.launchpad-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px;
}

.launchpad-panel strong {
  font-size: 1.5rem;
}

.launchpad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.launchpad-section {
  margin-top: 28px;
}

.launchpad-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.launchpad-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-top: 5px solid var(--student, var(--brand));
}

.launchpad-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.launchpad-card p {
  margin: 0;
}

.launchpad-card .button-primary {
  justify-self: start;
}

.launchpad-teacher-card .button-primary {
  border-color: var(--student, #101815);
  background: var(--student, #101815);
}

.student-dot {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--student, var(--brand));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
}

@media (max-width: 860px) {
  .home-hero,
  .launchpad-hero,
  .content-row {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 28px;
  }

  .info-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell,
  .launchpad-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-nav,
  .launchpad-top,
  .launchpad-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .site-links,
  .site-account,
  .launchpad-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-account {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }

  .site-account .account-button {
    width: 100%;
  }

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

  .hero-copy h1 {
    font-size: clamp(2.7rem, 15vw, 4.8rem);
  }
}
