@font-face {
  font-family: Inter;
  src: url('/assets/InterVariable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: #edf4fa;
  color: #16213a;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.65;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 84% 12%, #c9eff5 0, transparent 48%),
    radial-gradient(ellipse at 4% 45%, #dbe3fb 0, transparent 48%),
    radial-gradient(ellipse at 90% 88%, #d5f4ef 0, transparent 40%);
}
a {
  color: #284bbd;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #3157d5;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.glass {
  background: linear-gradient(120deg, #ffffffb5, #ffffff35);
  border: 1.5px solid #fff;
  border-radius: 32px;
  box-shadow: 0 20px 50px #16213a0c;
  backdrop-filter: blur(20px);
}
header {
  max-width: 1240px;
  margin: 20px auto 0;
  padding: 15px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 44px;
  font-weight: 850;
  letter-spacing: -2.5px;
  text-decoration: none;
  color: #16213a;
  line-height: 1.1;
}
.brand span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-left: 12px;
}
.header-link {
  font-size: 14px;
  color: #16213a;
  text-decoration: none;
  display: flex;
  gap: 24px;
  padding: 12px 20px;
  background: #ffffff80;
  border: 1px solid white;
  border-radius: 40px;
}
main,
footer {
  max-width: 1160px;
  margin: auto;
}
.welcome {
  display: grid;
  grid-template-columns: 1fr 470px;
  gap: 65px;
  padding: 72px 0 54px;
  align-items: start;
}
.hero-copy {
  padding-top: 22px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 600;
  margin: 0 0 22px;
}
.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #3157d5;
  border-radius: 50%;
  margin-right: 7px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -2.8px;
  margin-bottom: 24px;
  font-weight: 700;
}
h1 em {
  font-style: normal;
  color: #3157d5;
}
h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.intro {
  font-size: 18px;
  color: #59677d;
  max-width: 490px;
  line-height: 1.8;
}
.mascot {
  display: block;
  width: 340px;
  height: auto;
  margin: 20px auto 0;
  max-width: 85%;
  filter: drop-shadow(0 15px 15px #227f8f10);
}
.auth-card {
  padding: 30px;
  scroll-margin-top: 30px;
}
.tabs {
  display: flex;
  background: #e9eff6;
  border-radius: 18px;
  padding: 5px;
  margin-bottom: 30px;
  gap: 6px;
}
.tabs button {
  width: 50%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 12px;
  color: #59677d;
  font-weight: 600;
}
.tabs button.active {
  background: white;
  color: #284bbd;
  box-shadow: 0 4px 15px #16213a0c;
}
.small {
  margin-bottom: 10px;
  color: #59677d;
}
.muted {
  color: #59677d;
  font-size: 14px;
}
label {
  display: block;
  font-size: 13px;
  margin: 18px 0 0;
  color: #4c5b71;
}
input:not([type='checkbox']),
select,
textarea {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border: 1.5px solid white;
  border-radius: 12px;
  background: #ffffffb5;
  color: #16213a;
  margin-top: 7px;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #718098;
  opacity: 1;
}
.password-wrap {
  display: flex;
  position: relative;
}
.password-wrap input {
  padding-right: 70px;
}
.password-wrap button {
  position: absolute;
  right: 10px;
  top: 13px;
  background: none;
  border: 0;
  color: #526178;
  font-size: 12px;
  padding: 10px;
}
.check {
  display: flex;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 16px;
}
.check input {
  width: 17px;
  height: 17px;
  flex: none;
  margin: 2px 0;
  accent-color: #3157d5;
}
.check a {
  color: #284bbd;
}
.button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1.5px solid #9eaff4;
  background: linear-gradient(125deg, #5879ed, #3157d5 70%, #284bbd);
  border-radius: 40px;
  box-shadow: 0 8px 25px #3157d51a;
  color: white;
  text-decoration: none;
  padding: 16px 22px;
  font-weight: 600;
  font-size: 15px;
  width: 100%;
  line-height: 1.5;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #3157d52e;
}
.button span {
  font-size: 23px;
  line-height: 1;
}
.text-button {
  border: 0;
  background: none;
  color: #284bbd;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 12px 0;
  font-size: 13px;
}
.message {
  font-size: 13px;
  color: #284bbd;
  line-height: 1.6;
  margin: 18px 0;
  overflow-wrap: anywhere;
}
.message:empty {
  margin: 20px 0 0;
}
.message.error {
  color: #a02336;
}
#auth-submit {
  margin-top: 22px;
}
#verify-panel {
  padding: 25px 0 20px;
}
#verify-panel p {
  color: #59677d;
  font-size: 14px;
}
.mail-icon {
  font-size: 42px;
  color: #3157d5;
  margin-bottom: 15px;
}
.email-label {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.member-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 70px 0 35px;
  gap: 20px;
}
.member-heading h1 {
  font-size: 42px;
  letter-spacing: -1.6px;
  margin: 0;
}
.member-heading .eyebrow {
  margin-bottom: 15px;
}
.dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dashboard article {
  padding: 32px;
}
.dashboard p {
  font-size: 15px;
}
.dashboard .eyebrow {
  font-size: 11px;
}
.event-date {
  font-size: 21px !important;
  line-height: 1.8;
  color: #3157d5;
}
.dashboard .button {
  margin-top: 25px;
}
.note {
  font-size: 12px !important;
  color: #59677d;
  margin: 16px 0 0;
}
.secondary {
  background: #ffffffa0;
  color: #284bbd;
  border-color: #a5b7f1;
}
.feedback {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.feedback label {
  margin-top: 0;
}
.grade-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.grade-row label {
  flex: 1;
}
.grade-row button {
  margin-top: 38px;
}
.member-heading #member-name {
  overflow-wrap: anywhere;
}
footer {
  margin-top: 60px;
  border-top: 1px solid white;
  padding: 30px 0 36px;
}
.footer-brand {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand img {
  object-fit: contain;
}
.footer-links {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 25px;
  font-size: 11px;
  color: #59677d;
}
.footer-links nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #59677d;
}
.skip {
  position: absolute;
  top: -60px;
  left: 20px;
}
.skip:focus {
  top: 0;
  background: white;
  padding: 14px;
  z-index: 3;
}
.legal {
  max-width: 780px;
  padding: 36px;
  margin: 50px auto;
}
.legal h1 {
  font-size: 36px;
  letter-spacing: -1px;
}
.legal h2 {
  font-size: 22px;
  margin-top: 28px;
}
.legal p,
.legal li {
  font-size: 14px;
}
.draft {
  background: #fff6df;
  border-radius: 12px;
  padding: 15px;
  color: #725117;
  font-size: 13px;
}
.legal .eyebrow {
  margin-bottom: 12px;
}
@media (max-width: 1250px) {
  header {
    margin-left: 20px;
    margin-right: 20px;
  }
  main,
  footer {
    margin-left: 40px;
    margin-right: 40px;
  }
  .welcome {
    gap: 40px;
    grid-template-columns: 1fr 440px;
  }
}
@media (max-width: 900px) {
  .welcome {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .auth-card {
    padding: 24px;
  }
  h1 {
    font-size: 46px;
  }
  .intro {
    font-size: 16px;
  }
}
@media (max-width: 720px) {
  header {
    margin: 12px;
    padding: 16px 20px;
    border-radius: 25px;
  }
  .brand {
    font-size: 36px;
  }
  .header-link {
    padding: 9px 13px;
    font-size: 12px;
    gap: 12px;
  }
  main,
  footer {
    margin-left: 24px;
    margin-right: 24px;
  }
  .welcome {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 38px 0 0;
  }
  .hero-copy {
    padding: 0;
    position: relative;
    width: 100%;
  }
  h1 {
    font-size: 45px;
    letter-spacing: -2px;
  }
  .intro {
    font-size: 15px;
    margin-bottom: 0;
    max-width: 100%;
  }
  .mascot {
    width: 190px;
    margin: 14px auto 0;
  }
  .auth-card {
    width: 100%;
    padding: 24px;
    border-radius: 28px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 26px;
  }
  .footer-links {
    display: block;
  }
  .footer-links nav {
    margin-top: 14px;
    gap: 12px;
  }
  .member-heading {
    padding-top: 40px;
    align-items: flex-start;
  }
  .member-heading h1 {
    font-size: 32px;
  }
  .dashboard,
  .feedback {
    display: block;
  }
  .dashboard article {
    padding: 24px;
    margin-bottom: 24px;
    border-radius: 28px;
  }
  .feedback form {
    margin-top: 24px;
  }
  .member-heading button {
    white-space: nowrap;
  }
  .legal {
    padding: 24px;
    margin: 30px 0;
  }
  .legal h1 {
    font-size: 30px;
  }
  .check {
    font-size: 12px;
  }
  footer {
    margin-top: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    backdrop-filter: none;
    background: #f4f8fc;
  }
}

.mascot {
  mix-blend-mode: multiply;
  filter: none;
}
.footer-robi {
  font-size: 36px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.footer-robi img {
  width: 25px;
  height: 25px;
  margin-top: 2px;
}
.child-profile {
  border: 1px solid #cddaf0;
  border-radius: 18px;
  padding: 16px;
  margin: 24px 0 12px;
  min-width: 0;
}
.child-profile legend {
  font-weight: 600;
  font-size: 14px;
  padding: 0 8px;
}
.child-profile label:first-of-type {
  margin-top: 0;
}
#inactive-panel {
  padding: 32px;
  max-width: 600px;
}
#deactivate {
  display: block;
  margin-left: auto;
  margin-bottom: 20px;
}

.dashboard.onboarding {
  display: block;
  max-width: 680px;
}
.onboarding .family {
  width: 100%;
}

header .brand-mascot {
  width: 28px;
  height: 28px;
  margin-left: 5px;
  vertical-align: top;
  margin-top: 3px;
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 470px);
  justify-content: center;
  gap: 0;
}
