@font-face {
  font-family: Alexandria;
  src: url("/static/fonts/arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #f8f8f2;
  --surface: #fff;
  --ink: #182e2c;
  --muted: #626d65;
  --green: #285e4d;
  --green-hover: #1f493d;
  --line: #e2e6dc;
  --soft: #edf1e8;
  --cream: #ecefdc;
  --gold: #d8aa64;
  --shadow: 0 16px 45px #233c3010;
  --radius: 20px;
  --header: 90px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #111e1c;
  --surface: #192925;
  --ink: #f2f4e9;
  --muted: #a6b7ac;
  --green: #87bea3;
  --green-hover: #a4d1b9;
  --line: #30423a;
  --soft: #21362d;
  --cream: #2b3d31;
  --gold: #dfb976;
  --shadow: 0 16px 45px #0003;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Alexandria, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:disabled {
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
}
svg {
  flex-shrink: 0;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
legend {
  padding: 0;
}
[hidden] {
  display: none !important;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.container {
  width: min(1190px, calc(100% - 96px));
  margin-inline: auto;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 9px;
  padding: 13px 23px;
  line-height: 1.7;
  font-size: 13px;
  font-weight: 550;
  min-height: 48px;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  white-space: nowrap;
}
.button-primary {
  background: var(--green);
  color: var(--paper);
  box-shadow: 0 5px 12px #274e3810;
}
.button-primary:hover {
  background: var(--green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #274e3820;
}
.button .icon {
  width: 19px;
  height: 19px;
  transition: transform 0.2s;
}
.button:hover .icon {
  transform: translateX(-3px);
}
.button-large {
  padding: 17px 27px;
  font-size: 14px;
  min-height: 57px;
}
.icon-button {
  height: 42px;
  width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transition: background 0.2s;
}
.icon-button:hover {
  background: var(--soft);
}
.icon-button .icon {
  width: 21px;
  height: 21px;
}
.skip-link {
  position: fixed;
  top: -100px;
  right: 15px;
  z-index: 100;
  background: var(--green);
  color: var(--paper);
  padding: 14px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: var(--header);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand img {
  width: 76px;
  height: 44px;
  object-fit: contain;
}
.brand-name {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.45;
}
.brand-name > span {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.desktop-nav {
  display: flex;
  gap: 29px;
  align-items: center;
  margin-inline-start: 40px;
  font-size: 12px;
  color: var(--muted);
}
.desktop-nav a {
  position: relative;
  padding: 10px 0;
}
.desktop-nav a:hover,
.desktop-nav .active {
  color: var(--green);
}
.desktop-nav .active:after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  bottom: 0;
  right: 50%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.header-divider {
  height: 22px;
  border-right: 1px solid var(--line);
}
.login-button {
  background: transparent;
  padding: 10px 0;
  font-size: 12px;
  white-space: nowrap;
}
.login-button:hover {
  color: var(--green);
}
.header-register {
  min-height: 42px;
  padding: 10px 16px;
  font-size: 11px;
  gap: 13px;
}
.header-register .icon {
  width: 15px;
}
.menu-button {
  width: 32px;
}
.sun-icon {
  display: none;
}
[data-theme="dark"] .sun-icon {
  display: block;
}
[data-theme="dark"] .moon-icon {
  display: none;
}
.menu-panel {
  position: absolute;
  left: 48px;
  top: calc(100% + 10px);
  width: 280px;
  max-width: calc(100vw - 32px);
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  animation: appear 0.2s ease-out;
}
.menu-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px;
  border-radius: 8px;
}
.menu-panel a:hover {
  background: var(--soft);
  color: var(--green);
}
.menu-panel a .icon {
  width: 18px;
}
.menu-panel > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 12px 13px 0;
  margin-top: 8px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  align-items: center;
  min-height: 605px;
  gap: 50px;
}
.hero-copy {
  padding: 15px 0 38px;
}
.hero-eyebrow {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  font-weight: 450;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
  margin-bottom: 24px;
  color: var(--green);
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--soft);
}
.hero h1 {
  font-size: clamp(42px, 4.3vw, 65px);
  line-height: 1.6;
  letter-spacing: -2.9px;
  font-weight: 700;
}
.highlight-word {
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.highlight-word svg {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 15px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
}
.title-dot {
  color: var(--green);
}
.hero-description {
  font-size: 14px;
  line-height: 2.3;
  color: var(--muted);
  margin: 29px 0 26px;
}
.hero-description strong {
  color: var(--ink);
  font-weight: 550;
}
.hero-buttons {
  display: flex;
  align-items: center;
  gap: 28px;
}
.explore-button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.play-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.2s;
}
.play-icon .icon {
  width: 15px;
  height: 15px;
  fill: var(--green);
  stroke: var(--green);
  margin-left: 2px;
}
.explore-button:hover .play-icon {
  background: var(--cream);
}
.hero-assurance {
  display: flex;
  gap: 22px;
  margin-top: 23px;
  font-size: 10px;
  color: var(--muted);
}
.hero-assurance > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-assurance .icon {
  width: 15px;
  height: 15px;
  color: var(--green);
}
.hero-signature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  font:
    9px Arial,
    sans-serif;
  letter-spacing: 2px;
  color: var(--muted);
}
.signature-line {
  width: 30px;
  border-top: 1px solid var(--gold);
}
.hero-visual {
  height: 605px;
  position: relative;
  isolation: isolate;
}
.visual-top-label {
  position: absolute;
  top: 1px;
  left: 56px;
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 2.5px;
  color: var(--muted);
}
.portrait-arch {
  position: absolute;
  left: 34px;
  right: 24px;
  top: 54px;
  bottom: 31px;
  border-radius: 230px 230px 16px 16px;
  background: #e6e9d5;
  overflow: hidden;
  z-index: -2;
}
.arch-letter {
  font-family: Georgia, serif;
  font-size: 290px;
  line-height: 1;
  position: absolute;
  top: 30px;
  left: -10px;
  letter-spacing: -30px;
  color: #ced6b8;
  transform: rotate(-12deg);
  opacity: 0.65;
}
.arch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#91a38112 1px, transparent 1px),
    linear-gradient(90deg, #91a38112 1px, transparent 1px);
  background-size: 35px 35px;
}
.portrait-orbit {
  position: absolute;
  inset: 38px 5px 20px 18px;
  border: 1px solid #ced5bb;
  border-radius: 260px 260px 20px 20px;
  z-index: -3;
  transform: rotate(-5deg);
}
.orbit-two {
  inset: 66px 1px 7px 55px;
  transform: rotate(6deg);
  border-style: dashed;
  opacity: 0.6;
}
.hero-portrait {
  height: 554px;
  width: auto;
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  max-width: none;
  object-fit: contain;
  filter: drop-shadow(-9px 5px 9px #29443720);
  object-position: top;
}
.floating-card {
  position: absolute;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.floating-card b {
  font-size: 11px;
  display: block;
  font-weight: 550;
  white-space: nowrap;
}
.floating-card small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 2px;
}
.hello-card {
  left: -14px;
  top: 175px;
  transform: rotate(-6deg);
  direction: ltr;
  --rotation: -6deg;
}
.hello-card b {
  font-family: Arial, sans-serif;
  font-size: 15px;
}
.hello-card small {
  text-align: right;
}
.hello-emoji {
  color: var(--green);
  background: var(--soft);
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.hello-emoji .icon {
  width: 19px;
}
.mini-star {
  color: var(--gold);
  font-size: 22px;
  margin-left: 3px;
}
.learning-card {
  right: -5px;
  bottom: 134px;
  --rotation: 4deg;
  transform: rotate(4deg);
  animation-delay: -3s;
}
.learning-symbol {
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--paper);
  display: grid;
  place-items: center;
  border-radius: 10px;
}
.learning-symbol .icon {
  width: 21px;
}
.float-letter {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 35px;
  z-index: 4;
  font-weight: bold;
}
.letter-a {
  top: 73px;
  right: 13px;
  transform: rotate(13deg);
  color: var(--green);
}
.letter-a span {
  font-size: 21px;
}
.letter-ar {
  left: 1px;
  bottom: 167px;
  transform: rotate(-12deg);
  font-size: 48px;
  color: #8d9d74;
}
.visual-spark {
  position: absolute;
  color: var(--gold);
  z-index: 4;
}
.spark-one {
  left: 45px;
  top: 87px;
  transform: rotate(10deg);
}
.spark-one .icon {
  width: 33px;
  height: 33px;
}
.spark-two {
  right: 1px;
  bottom: 88px;
}
.spark-two .icon {
  width: 22px;
}
.teacher-nameplate {
  position: absolute;
  left: 16px;
  right: 12px;
  bottom: 4px;
  padding: 18px 15px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  z-index: 5;
}
.teacher-nameplate small {
  font-size: 8px;
  color: var(--muted);
}
.teacher-nameplate h2 {
  font-size: 27px;
  line-height: 1.6;
}
.teacher-nameplate div > span {
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 2.4px;
  color: var(--green);
}
.nameplate-rule {
  width: 28px;
  border-top: 1px solid var(--gold);
}
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 20px;
}
.scroll-hint span {
  width: 13px;
  height: 22px;
  border: 1px solid #a7b19e;
  border-radius: 20px;
  position: relative;
}
.scroll-hint span:after {
  content: "";
  position: absolute;
  width: 2px;
  height: 4px;
  background: var(--green);
  top: 5px;
  left: 4px;
  animation: scroll-mark 2s infinite;
}
.mobile-break {
  display: none;
}
.learning-strip {
  margin-top: 23px;
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.learning-strip > .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 77px;
  gap: 15px;
}
.learning-strip span {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--green);
  font-size: 12px;
  font-weight: 450;
  white-space: nowrap;
}
.learning-strip .icon {
  width: 22px;
  height: 22px;
}
.learning-strip i {
  height: 20px;
  border-left: 1px solid #b7c3af70;
}
.section {
  padding: 90px 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 37px;
  gap: 25px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.1px;
  margin-bottom: 13px;
}
.eyebrow > span {
  width: 17px;
  border-top: 2px solid var(--gold);
}
.section h2 {
  font-size: 33px;
  line-height: 1.8;
  letter-spacing: -1.1px;
}
.section h2 span {
  color: var(--green);
}
.section-heading > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2.2;
  padding-bottom: 4px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  padding: 25px 25px 23px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.feature-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-icon {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--green);
  display: grid;
  place-items: center;
}
.feature-icon .icon {
  width: 20px;
  height: 20px;
}
.feature-index {
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.feature-illustration {
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0 17px;
  overflow: hidden;
}
.video-illustration {
  background: radial-gradient(ellipse at center, #e9f1e7 0, transparent 70%);
}
.mini-video {
  width: 140px;
  height: 91px;
  border: 1px solid #bac9b5;
  background: #eff4e9;
  box-shadow: 6px 6px 0 #dbe4d2;
  border-radius: 10px;
  transform: rotate(-7deg);
  display: grid;
  place-items: center;
  color: #567e58;
  z-index: 1;
}
.mini-video > .icon {
  border: 1px solid #aabf9f;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  padding: 9px;
  fill: #6c8c66;
}
.video-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #bd745a;
  top: 9px;
  right: 10px;
  border-radius: 50%;
}
.video-controls {
  position: absolute;
  bottom: 9px;
  display: flex;
  gap: 6px;
}
.video-controls span {
  background: #d9e2d0;
  width: 12px;
  height: 5px;
  border-radius: 10px;
}
.video-controls span:last-child {
  background: #c89985;
}
.small-bubble {
  width: 38px;
  height: 38px;
  background: #f7faf3;
  color: #537647;
  border: 1px solid #d6dfcb;
  display: grid;
  place-items: center;
  border-radius: 10px;
  position: absolute;
  left: 47px;
  top: 28px;
  transform: rotate(10deg);
  z-index: 2;
}
.small-bubble .icon {
  width: 20px;
}
.wave-line {
  position: absolute;
  width: 200px;
  height: 70px;
  stroke: #b7cbaa;
  stroke-width: 1;
  fill: none;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) rotate(-13deg);
}
.exam-card .feature-icon {
  background: #f7efe1;
  color: #9b7746;
}
.exam-illustration {
  background: radial-gradient(ellipse at center, #f8f0e3 0, transparent 70%);
}
.exam-paper {
  width: 97px;
  height: 110px;
  background: #fcf9f2;
  border: 1px solid #ddccb1;
  box-shadow: 5px 5px 0 #eee3d0;
  transform: rotate(8deg);
  border-radius: 9px;
  padding: 17px 13px;
  z-index: 1;
}
.exam-paper > span {
  display: block;
  height: 4px;
  background: #dcd0b9;
  margin-bottom: 8px;
  border-radius: 5px;
}
.exam-paper > span:nth-child(2) {
  width: 65%;
}
.exam-paper div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.exam-paper div > span {
  width: 45px;
  height: 3px;
  background: #e4d7c0;
}
.exam-paper i {
  border: 1px solid #d3bc92;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exam-paper i .icon {
  width: 12px;
  color: #638252;
}
.check-bubble {
  position: absolute;
  left: 66px;
  bottom: 14px;
  z-index: 2;
  border: 5px solid var(--surface);
  border-radius: 50%;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: #dfebd5;
  color: #648251;
}
.check-bubble .icon {
  width: 18px;
}
.doodle-star {
  position: absolute;
  top: 15px;
  right: 63px;
  color: #bc9056;
  font-size: 35px;
}
.journey-card .feature-icon {
  background: #eaf0f3;
  color: #608096;
}
.journey-illustration {
  background: radial-gradient(ellipse at center, #eaf0f3 0, transparent 70%);
}
.letter-tile {
  position: relative;
  font:
    40px Georgia,
    serif;
  background: #eff4f6;
  border: 1px solid #bacfd5;
  box-shadow: 5px 5px 0 #dbe6e9;
  color: #547b8b;
  border-radius: 12px;
  width: 88px;
  height: 94px;
  transform: rotate(-8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 1;
}
.letter-tile span {
  font-family: Alexandria, Arial, sans-serif;
  font-size: 10px;
  margin-top: 3px;
}
.journey-globe {
  position: absolute;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #edf3f3;
  left: 62px;
  bottom: 18px;
  z-index: 2;
  color: #7a9a9b;
  border: 1px solid #bacfd5;
}
.journey-globe .icon {
  width: 29px;
  height: 29px;
}
.journey-path {
  width: 210px;
  height: 100px;
  position: absolute;
  fill: none;
  stroke: #a1bfc5;
  stroke-dasharray: 3 5;
  stroke-width: 1.5;
}
.feature-card h3 {
  font-size: 16px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.feature-card > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 2.2;
  min-height: 73px;
}
.feature-link {
  background: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
  font-weight: 500;
  color: var(--green);
  margin-top: 14px;
}
.feature-link .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.2s;
}
.feature-link:hover .icon {
  transform: translateX(-4px);
}
.availability-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 24px;
}
.availability-note .icon {
  width: 14px;
  height: 14px;
}
.about-section {
  border-top: 1px solid var(--line);
  padding-top: 80px;
  padding-bottom: 85px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 100px;
}
.about-image-frame {
  position: relative;
  width: 100%;
  max-width: 410px;
  justify-self: center;
  padding: 0 10px 20px;
}
.about-image-inner {
  height: 425px;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  background: var(--cream);
  border-radius: 130px 16px 16px 16px;
}
.about-image-inner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-image-frame:before {
  content: "";
  position: absolute;
  border: 1px solid var(--line);
  inset: 15px -7px 7px 25px;
  border-radius: 130px 16px 16px 16px;
  z-index: -1;
}
.about-image-label {
  display: flex;
  align-items: center;
  gap: 15px;
  position: absolute;
  bottom: 0;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 17px 23px;
  box-shadow: var(--shadow);
  font-size: 16px;
}
.about-image-label > .icon {
  width: 30px;
  height: 30px;
  color: var(--green);
}
.about-image-label small {
  display: block;
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 1.6px;
  margin-top: 6px;
  color: var(--muted);
}
.about-doodle {
  position: absolute;
  right: -15px;
  top: -47px;
  color: var(--gold);
  font:
    130px Georgia,
    serif;
  line-height: 1;
}
.about-copy > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 2.4;
  margin: 22px 0;
}
.about-values {
  padding: 0;
  list-style: none;
  margin: 22px 0 30px;
  display: grid;
  gap: 20px;
}
.about-values li {
  display: flex;
  gap: 14px;
  align-items: center;
}
.about-values li > span {
  width: 39px;
  height: 39px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--green);
}
.about-values .icon {
  width: 21px;
  height: 21px;
}
.about-values h3 {
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 3px;
}
.about-values p {
  font-size: 10px;
  color: var(--muted);
}
.faq-section {
  background: var(--surface);
  border-block: 1px solid var(--line);
  padding: 73px 0;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 95px;
}
.faq-grid header {
  position: relative;
}
.faq-grid header > p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}
.faq-decoration {
  color: var(--gold);
  width: 44px;
  height: 44px;
  transform: rotate(-12deg);
  margin-top: 26px;
}
.faq-list {
  display: grid;
  gap: 12px;
  align-content: center;
}
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.faq-list summary {
  list-style: none;
  font-size: 12px;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .icon {
  width: 17px;
  height: 17px;
  color: var(--green);
  transition: transform 0.2s;
}
.faq-list details[open] summary .icon {
  transform: rotate(45deg);
}
.faq-list details[open] summary {
  color: var(--green);
}
.faq-list details p {
  font-size: 11px;
  color: var(--muted);
  padding: 0 20px 19px;
  line-height: 2.2;
}
.cta-section {
  padding: 80px 0;
}
.cta-card {
  background: #254e40;
  color: #f7f6e9;
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 50px 24px;
  border-radius: 18px;
}
.cta-card .eyebrow {
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 2.5px;
  color: #cfdbc5;
  display: block;
  margin-bottom: 17px;
}
.cta-card h2 {
  font-size: 36px;
  line-height: 1.7;
  letter-spacing: -1px;
  position: relative;
}
.cta-card p {
  font-size: 11px;
  color: #c4d1bf;
  margin: 14px 0 26px;
}
.button-cream {
  background: #eef0df;
  color: #284b3d;
  position: relative;
  font-size: 12px;
}
.button-cream:hover {
  background: white;
  transform: translateY(-2px);
}
.cta-note {
  display: block;
  font-size: 9px;
  color: #bfceb8;
  margin-top: 16px;
}
.cta-doodle {
  position: absolute;
  left: 4%;
  top: 45px;
  font:
    240px Georgia,
    serif;
  transform: rotate(-15deg);
  color: #74947425;
  line-height: 1;
}
.cta-spark {
  position: absolute;
  right: 10%;
  bottom: 80px;
  color: #d9d3a7;
}
.cta-spark .icon {
  width: 60px;
  height: 60px;
  stroke-width: 0.8;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 32px;
}
.site-footer .brand img {
  width: 62px;
}
.site-footer .brand-name {
  font-size: 21px;
}
.site-footer .brand-name > span {
  font-size: 6px;
  letter-spacing: 1.5px;
}
.footer-motto {
  font-size: 14px;
}
.footer-motto > span {
  color: var(--green);
}
.footer-main nav {
  display: flex;
  gap: 24px;
  font-size: 10px;
  color: var(--muted);
}
.footer-main nav a:hover {
  color: var(--green);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-block: 18px;
  font-size: 8px;
  color: var(--muted);
}
.footer-bottom [lang="en"] {
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 1.5px;
}
/* Dialogs and progressive registration */
dialog {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0;
  box-shadow: 0 25px 100px #0003;
}
dialog::backdrop {
  background: #10251dd1;
  backdrop-filter: blur(5px);
}
dialog[open] {
  animation: appear 0.25s ease-out;
}
.auth-dialog {
  width: min(900px, calc(100% - 40px));
  max-height: 90dvh;
  border-radius: 22px;
  overflow: auto;
}
.auth-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  direction: ltr;
}
.dialog-close {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 3;
  background: var(--surface);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
}
.dialog-close .icon {
  width: 17px;
}
.auth-story {
  background: #254e40;
  direction: rtl;
  color: #f2f2de;
  padding: 48px 33px 30px;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 660px;
  height: 100%;
  overflow: hidden;
  border-radius: 21px 0 0 21px;
}
.auth-story > img {
  margin: 0 auto 42px;
  filter: drop-shadow(0 0 8px #ffffffb0);
}
.auth-story > .eyebrow {
  font:
    8px Arial,
    sans-serif;
  letter-spacing: 2px;
  color: #c5d1b9;
}
.auth-story h2 {
  font-size: 27px;
  line-height: 1.9;
  letter-spacing: -0.6px;
}
.auth-story p {
  font-size: 11px;
  line-height: 2.3;
  color: #c5d1b9;
  margin-top: 15px;
}
.auth-art {
  height: 230px;
  position: relative;
  display: grid;
  place-items: center;
}
.auth-art > .icon {
  width: 170px;
  height: 170px;
  stroke-width: 0.4;
  color: #a9bd9160;
  transform: rotate(-15deg);
}
.auth-art > span {
  position: absolute;
  font:
    72px Georgia,
    serif;
  transform: rotate(-10deg);
  left: 21px;
  top: 10px;
  color: #d7d3a7;
}
.auth-art > span:last-child {
  font-family: Alexandria, Arial, sans-serif;
  font-size: 39px;
  right: 20px;
  left: auto;
  top: auto;
  bottom: 12px;
  color: #bed2bd;
}
.auth-story-foot {
  font-size: 9px;
  color: #d2dcc5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-story-foot .icon {
  width: 17px;
  height: 17px;
}
.auth-content {
  direction: rtl;
  padding: 33px 38px 25px;
  min-width: 0;
}
.auth-tabs {
  display: flex;
  padding: 4px;
  background: var(--soft);
  border-radius: 10px;
  margin-bottom: 28px;
}
.auth-tabs button {
  width: 50%;
  padding: 10px 8px;
  font-size: 11px;
  background: transparent;
  border-radius: 7px;
  color: var(--muted);
}
.auth-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--green);
  box-shadow: 0 2px 6px #00000008;
}
.small-tag {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--green);
  font-size: 9px;
}
.small-tag .icon {
  width: 14px;
  height: 14px;
}
.auth-heading h2 {
  font-size: 26px;
  margin: 10px 0 6px;
}
.auth-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 25px;
}
.field {
  margin-bottom: 16px;
}
.field > label,
.gender-field legend,
.language-field legend {
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-bottom: 7px;
}
.language-field {
  min-width: 0;
  margin-bottom: 16px;
}
.language-picker {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.language-picker > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.language-picker > summary::-webkit-details-marker {
  display: none;
}
.language-picker > summary > .icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--muted);
}
.language-picker > summary > .icon:last-child {
  margin-inline-start: auto;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.language-picker[open] > summary > .icon:last-child {
  transform: rotate(-90deg);
}
.language-picker > summary:focus-visible,
.language-options > label:has(input:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 7px;
}
.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 10px 10px;
}
.language-options > label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  cursor: pointer;
}
.language-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
  flex-shrink: 0;
}
.language-options > label:has(input:checked) {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green);
}
.language-field[aria-invalid="true"] .language-picker {
  border-color: #c76f5e;
}
@media (prefers-reduced-motion: reduce) {
  .language-picker > summary > .icon:last-child {
    transition: none;
  }
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap > .icon {
  position: absolute;
  right: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}
.input-wrap input,
.input-wrap select {
  width: 100%;
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-height: 48px;
  padding: 11px 39px 11px 13px;
  line-height: 1.5;
  font-size: 12px;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input-wrap input::placeholder {
  color: var(--muted);
  opacity: 0.8;
  font-size: 11px;
  text-align: right;
}
.input-wrap input[type="password"],
.input-wrap input[data-visible-password] {
  padding-left: 43px;
}
.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--soft);
  outline: none;
}
.input-wrap select {
  cursor: pointer;
  appearance: none;
  padding-left: 30px;
}
.select-wrap:after {
  content: "";
  position: absolute;
  left: 15px;
  top: 19px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  pointer-events: none;
}
.input-wrap input[aria-invalid="true"],
.input-wrap select[aria-invalid="true"] {
  border-color: #c76f5e;
}
.field-error {
  color: #b95d4b;
  font-size: 9px;
  display: block;
  line-height: 1.8;
  margin-top: 4px;
}
.field-error:empty {
  display: none;
}
.reveal-password {
  position: absolute;
  left: 3px;
  height: 42px;
  width: 38px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  border-radius: 7px;
}
.reveal-password .icon {
  width: 17px;
  height: 17px;
}
.reveal-password[aria-pressed="true"] {
  color: var(--green);
  background: var(--soft);
}
.text-button {
  padding: 0;
  background: none;
  color: var(--green);
  font-size: 10px;
  font-weight: 500;
}
.forgot-button {
  display: block;
  margin-inline-start: auto;
  margin-top: -3px;
  margin-bottom: 23px;
}
.text-button:hover {
  text-decoration: underline;
}
.submit-button {
  width: 100%;
  margin-top: 5px;
}
.switch-auth {
  text-align: center;
  font-size: 10px;
  margin: 19px 0;
  color: var(--muted);
}
.switch-auth button {
  margin-right: 4px;
}
.prototype-note {
  font-size: 8px;
  color: var(--muted);
  line-height: 2;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 9px;
}
.prototype-note .icon {
  width: 12px;
  height: 12px;
  margin-left: 3px;
}
.form-notice {
  font-size: 10px;
  line-height: 2;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--green);
  margin-bottom: 16px;
}
.gender-field {
  margin-bottom: 16px;
}
.gender-options {
  display: flex;
  gap: 12px;
}
.gender-options > label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 9px;
  background: var(--paper);
  font-size: 11px;
  cursor: pointer;
  position: relative;
}
.gender-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.gender-options .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.radio-dot {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-inline-start: auto;
  position: relative;
}
.gender-options label:has(input:checked) {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green);
}
.gender-options label:has(input:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
.gender-options input:checked ~ .radio-dot {
  border-color: var(--green);
}
.gender-options input:checked ~ .radio-dot:after {
  content: "";
  inset: 3px;
  position: absolute;
  border-radius: 50%;
  background: var(--green);
}
.gender-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px;
  animation: appear 0.3s ease-out;
}
.gender-preview svg {
  width: 82px;
  height: 82px;
  display: block;
}
.gender-preview > span {
  font-size: 11px;
  color: var(--green);
}
.gender-preview > span > span {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.progressive-field {
  animation: appear 0.3s ease-out;
}
.password-strength {
  margin: -4px 0 19px;
}
.strength-track {
  display: flex;
  gap: 4px;
  direction: ltr;
  margin-bottom: 5px;
}
.strength-track > span {
  height: 4px;
  background: var(--line);
  flex: 1;
  border-radius: 5px;
  transition: background 0.2s;
}
.password-strength[data-score="1"] .strength-track > span:nth-child(-n + 1) {
  background: #cc7c68;
}
.password-strength[data-score="2"] .strength-track > span:nth-child(-n + 2) {
  background: #cca052;
}
.password-strength[data-score="3"] .strength-track > span:nth-child(-n + 3) {
  background: #8caa65;
}
.password-strength[data-score="4"] .strength-track > span {
  background: #4b9974;
}
#strength-label {
  font-size: 9px;
  color: var(--green);
}
.password-strength small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}
.info-dialog {
  border-radius: 19px;
  width: min(440px, calc(100% - 32px));
  padding: 38px 30px;
  text-align: center;
}
.info-symbol {
  background: var(--soft);
  width: 58px;
  height: 58px;
  color: var(--green);
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin: 0 auto 17px;
}
.info-dialog .small-tag {
  justify-content: center;
}
.info-dialog h2 {
  font-size: 22px;
  margin-top: 10px;
}
.info-dialog p {
  font-size: 12px;
  color: var(--muted);
  line-height: 2.3;
  margin: 16px 0 24px;
}
[data-theme="dark"] .portrait-arch {
  background: #384c3c;
}
[data-theme="dark"] .arch-letter {
  color: #61744d;
}
[data-theme="dark"] .portrait-orbit {
  border-color: #526342;
}
[data-theme="dark"] .brand img {
  filter: brightness(1.3) drop-shadow(0 1px 4px #fff2);
}
[data-theme="dark"] .feature-illustration {
  border-radius: 12px;
  background: radial-gradient(ellipse at center, #ffffff08, transparent 70%);
}
[data-theme="dark"] .exam-card .feature-icon {
  background: #433b2e;
  color: #dcba7e;
}
[data-theme="dark"] .journey-card .feature-icon {
  background: #2d3f46;
  color: #a9c9d3;
}
[data-theme="dark"] .field-error {
  color: #f0a99a;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(var(--rotation, 0deg));
  }
  50% {
    transform: translateY(-7px) rotate(var(--rotation, 0deg));
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes scroll-mark {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}
@media (min-width: 1450px) {
  .hero {
    padding-top: 66px;
    padding-bottom: 30px;
  }
  .hero-grid {
    min-height: 640px;
  }
  .hero h1 {
    font-size: 66px;
  }
  .hero-visual {
    height: 640px;
  }
  .hero-portrait {
    height: 590px;
  }
  .portrait-arch {
    left: 20px;
    right: 10px;
  }
  .visual-top-label {
    left: 40px;
  }
  .teacher-nameplate {
    bottom: 0;
  }
}
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .desktop-nav {
    gap: 19px;
    margin-inline-start: 0;
  }
  .header-actions {
    gap: 10px;
  }
  .brand-name {
    font-size: 23px;
  }
  .brand img {
    width: 64px;
  }
  .hero-grid {
    gap: 25px;
    min-height: 560px;
  }
  .hero-visual {
    height: 550px;
  }
  .hero-portrait {
    height: 510px;
  }
  .hero h1 {
    font-size: 48px;
    letter-spacing: -2px;
  }
  .hero-buttons {
    gap: 16px;
  }
  .hero-buttons .button {
    font-size: 12px;
    padding-inline: 17px;
  }
  .hello-card {
    left: -10px;
    top: 165px;
    padding: 10px;
  }
  .learning-card {
    right: -15px;
    padding: 10px;
  }
  .floating-card b {
    font-size: 9px;
  }
  .hello-card b {
    font-size: 12px;
  }
  .hero-description {
    font-size: 13px;
  }
  .feature-card {
    padding: 21px;
  }
  .feature-card h3 {
    font-size: 13px;
  }
  .feature-card > p {
    font-size: 10px;
  }
  .about-grid {
    gap: 60px;
  }
  .faq-grid {
    gap: 50px;
  }
  .section h2 {
    font-size: 29px;
  }
}
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .hero-grid {
    gap: 18px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-copy {
    padding-bottom: 10px;
  }
  .hero-description {
    font-size: 12px;
  }
  .hero-eyebrow {
    font-size: 9px;
  }
  .hero-visual {
    height: 485px;
  }
  .hero-portrait {
    height: 445px;
  }
  .visual-top-label {
    font-size: 6px;
    left: 36px;
  }
  .floating-card {
    gap: 6px;
  }
  .learning-card {
    bottom: 126px;
    right: -19px;
  }
  .learning-card b {
    font-size: 8px;
  }
  .hello-card {
    top: 135px;
  }
  .letter-a {
    font-size: 26px;
    right: 3px;
  }
  .letter-ar {
    font-size: 36px;
  }
  .hero-signature {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .teacher-nameplate {
    padding: 12px 8px;
    left: 8px;
    right: 2px;
  }
  .teacher-nameplate h2 {
    font-size: 23px;
  }
  .teacher-nameplate div > span {
    font-size: 6px;
  }
  .hero-buttons {
    gap: 12px;
  }
  .hero-buttons .button {
    font-size: 11px;
    padding-inline: 15px;
    gap: 12px;
  }
  .explore-button {
    font-size: 10px;
    gap: 6px;
  }
  .play-icon {
    width: 30px;
    height: 30px;
  }
  .hero-assurance {
    gap: 12px;
    font-size: 8px;
  }
  .learning-strip span {
    font-size: 10px;
    gap: 8px;
  }
  .feature-grid {
    gap: 14px;
  }
  .feature-card {
    padding: 18px;
  }
  .feature-card h3 {
    font-size: 12px;
  }
  .feature-card > p {
    min-height: 86px;
  }
  .feature-index {
    font-size: 6px;
  }
  .section-heading > p {
    font-size: 10px;
  }
  .about-grid {
    gap: 40px;
  }
  .about-image-inner {
    height: 370px;
  }
  .about-image-label {
    left: -7px;
    padding: 13px 16px;
  }
  .about-copy > p {
    font-size: 11px;
  }
  .footer-main nav {
    gap: 15px;
    font-size: 9px;
  }
  .footer-motto {
    font-size: 11px;
  }
}
@media (max-width: 680px) {
  :root {
    --header: 76px;
  }
  .container {
    width: calc(100% - 40px);
  }
  html {
    scroll-padding-top: 90px;
  }
  .header-inner {
    gap: 8px;
  }
  .brand {
    gap: 5px;
  }
  .brand img {
    width: 48px;
    height: 36px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-name > span {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .header-actions {
    gap: 5px;
  }
  .header-divider {
    display: none;
  }
  .icon-button {
    width: 32px;
    height: 36px;
  }
  .theme-toggle .icon {
    width: 17px;
    height: 17px;
  }
  .header-register {
    font-size: 9px;
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 7px;
  }
  .header-register .icon {
    display: none;
  }
  .login-button {
    font-size: 9px;
    padding: 10px 3px;
  }
  .menu-button {
    width: 26px;
  }
  .menu-button .icon {
    width: 19px;
    height: 19px;
  }
  .menu-panel {
    left: 20px;
  }
  .hero {
    padding: 32px 0 19px;
  }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 0;
  }
  .hero-copy {
    text-align: center;
    padding: 0;
    width: 100%;
  }
  .hero-eyebrow {
    font-size: 9px;
    margin-bottom: 19px;
    padding: 6px 12px;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 1.55;
    letter-spacing: -1.9px;
  }
  .highlight-word svg {
    bottom: -8px;
    height: 12px;
  }
  .hero-description {
    font-size: 12px;
    line-height: 2.2;
    margin: 21px 0 20px;
  }
  .mobile-break {
    display: block;
  }
  .hero-buttons {
    justify-content: center;
    gap: 22px;
  }
  .hero-buttons .button {
    font-size: 11px;
    min-height: 49px;
    padding: 13px 18px;
    gap: 16px;
  }
  .explore-button {
    font-size: 10px;
    gap: 8px;
  }
  .play-icon {
    width: 32px;
    height: 32px;
  }
  .hero-assurance {
    justify-content: center;
    font-size: 8px;
    gap: 19px;
    margin-top: 17px;
  }
  .hero-signature {
    display: none;
  }
  .hero-visual {
    width: 100%;
    max-width: 385px;
    height: 447px;
    margin-top: 21px;
  }
  .visual-top-label {
    font-size: 6px;
    letter-spacing: 1.8px;
    left: 55px;
    top: 3px;
  }
  .portrait-arch {
    top: 41px;
    left: 27px;
    right: 24px;
    bottom: 25px;
    border-radius: 180px 180px 13px 13px;
  }
  .hero-portrait {
    height: 410px;
    bottom: 27px;
  }
  .portrait-orbit {
    inset: 29px 14px 16px 13px;
    transform: rotate(-4deg);
  }
  .orbit-two {
    inset: 49px 3px 9px 40px;
    transform: rotate(5deg);
  }
  .arch-letter {
    font-size: 225px;
    top: 29px;
    left: -6px;
    letter-spacing: -25px;
  }
  .floating-card {
    padding: 9px 11px;
    border-radius: 10px;
    gap: 8px;
  }
  .hello-card {
    left: -3px;
    top: 127px;
  }
  .hello-card b {
    font-size: 12px;
  }
  .hello-card small {
    font-size: 7px;
  }
  .hello-emoji {
    width: 27px;
    height: 27px;
  }
  .hello-emoji .icon {
    width: 16px;
  }
  .mini-star {
    font-size: 19px;
  }
  .learning-card {
    right: 0;
    bottom: 97px;
  }
  .learning-card b {
    font-size: 9px;
  }
  .learning-card small {
    font-size: 7px;
  }
  .learning-symbol {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .learning-symbol .icon {
    width: 17px;
  }
  .letter-a {
    top: 59px;
    right: 13px;
    font-size: 28px;
  }
  .letter-a span {
    font-size: 17px;
  }
  .letter-ar {
    left: 12px;
    bottom: 123px;
    font-size: 35px;
  }
  .spark-one {
    top: 58px;
    left: 28px;
  }
  .spark-one .icon {
    width: 25px;
    height: 25px;
  }
  .spark-two {
    right: 11px;
    bottom: 70px;
  }
  .teacher-nameplate {
    left: 21px;
    right: 19px;
    padding: 10px 9px;
    bottom: 1px;
    gap: 13px;
  }
  .teacher-nameplate h2 {
    font-size: 24px;
  }
  .teacher-nameplate small {
    font-size: 7px;
  }
  .teacher-nameplate div > span {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .nameplate-rule {
    width: 23px;
  }
  .scroll-hint {
    margin-top: 22px;
    font-size: 8px;
  }
  .learning-strip {
    margin-top: 10px;
  }
  .learning-strip > .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-block: 19px;
    gap: 18px 8px;
  }
  .learning-strip span {
    font-size: 9px;
    justify-content: center;
    gap: 8px;
  }
  .learning-strip .icon {
    width: 18px;
    height: 18px;
  }
  .learning-strip i {
    display: none;
  }
  .section {
    padding: 52px 0;
  }
  .section-heading {
    display: block;
    text-align: center;
    margin-bottom: 25px;
  }
  .section-heading .eyebrow {
    justify-content: center;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 10px;
  }
  .section h2 {
    font-size: 27px;
    line-height: 1.75;
    letter-spacing: -1px;
  }
  .section-heading > p {
    font-size: 11px;
    margin-top: 12px;
    line-height: 2;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 17px;
    max-width: 430px;
    margin: auto;
  }
  .feature-card {
    padding: 22px 24px;
  }
  .feature-index {
    font-size: 8px;
  }
  .feature-card h3 {
    font-size: 17px;
  }
  .feature-card > p {
    font-size: 11px;
    min-height: 0;
    line-height: 2.2;
  }
  .feature-illustration {
    height: 125px;
    margin: 3px 0 15px;
  }
  .feature-link {
    font-size: 11px;
    margin-top: 17px;
    padding-top: 14px;
  }
  .feature-icon {
    width: 38px;
    height: 38px;
  }
  .video-illustration .small-bubble {
    left: calc(50% - 91px);
  }
  .check-bubble {
    left: calc(50% - 62px);
  }
  .doodle-star {
    right: calc(50% - 80px);
  }
  .journey-globe {
    left: calc(50% - 66px);
  }
  .availability-note {
    font-size: 8px;
    align-items: flex-start;
    line-height: 2;
    max-width: 320px;
    margin: 18px auto 0;
    text-align: center;
  }
  .availability-note .icon {
    margin-top: 3px;
  }
  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }
  .about-image-frame {
    max-width: 320px;
    width: calc(100% - 32px);
  }
  .about-image-inner {
    height: 300px;
    padding-top: 28px;
    border-top-right-radius: 100px;
  }
  .about-image-label {
    left: -16px;
    font-size: 15px;
    padding: 13px 18px;
  }
  .about-image-label > .icon {
    width: 27px;
  }
  .about-doodle {
    font-size: 105px;
    top: -32px;
  }
  .about-copy {
    width: 100%;
  }
  .about-copy > p {
    font-size: 11px;
    line-height: 2.3;
    margin: 16px 0;
  }
  .about-values {
    gap: 17px;
    margin-bottom: 23px;
  }
  .about-values h3 {
    font-size: 12px;
  }
  .about-values p {
    font-size: 10px;
  }
  .about-copy > .button {
    font-size: 12px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .faq-grid header {
    text-align: center;
  }
  .faq-grid header .eyebrow {
    justify-content: center;
  }
  .faq-grid header h2 br {
    display: none;
  }
  .faq-grid header h2 {
    font-size: 25px;
  }
  .faq-decoration {
    display: none;
  }
  .faq-grid header > p {
    font-size: 10px;
    margin-top: 8px;
  }
  .faq-list summary {
    padding: 16px;
    font-size: 10px;
    gap: 9px;
  }
  .faq-list details p {
    font-size: 10px;
    padding: 0 16px 16px;
  }
  .cta-section {
    padding: 43px 0;
  }
  .cta-card {
    padding: 37px 18px;
    border-radius: 14px;
  }
  .cta-card .eyebrow {
    font-size: 6px;
    letter-spacing: 1.7px;
  }
  .cta-card h2 {
    font-size: 27px;
  }
  .cta-card p {
    font-size: 9px;
    line-height: 2;
    max-width: 240px;
    margin: 13px auto 22px;
  }
  .cta-card .button {
    font-size: 10px;
    gap: 15px;
    padding: 13px 17px;
    min-height: 49px;
  }
  .cta-doodle {
    font-size: 160px;
    left: -45px;
    top: 70px;
  }
  .cta-spark {
    right: 10px;
    bottom: 68px;
  }
  .cta-spark .icon {
    width: 25px;
    height: 25px;
  }
  .cta-note {
    font-size: 8px;
  }
  .site-footer {
    padding-top: 25px;
  }
  .footer-main {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 22px;
    padding-bottom: 22px;
  }
  .site-footer .brand img {
    width: 49px;
  }
  .site-footer .brand-name {
    font-size: 19px;
  }
  .site-footer .brand-name > span {
    font-size: 5px;
    letter-spacing: 0.8px;
  }
  .footer-motto {
    font-size: 9px;
  }
  .footer-main nav {
    justify-content: center;
    width: 100%;
    gap: 27px;
    font-size: 10px;
  }
  .footer-bottom {
    font-size: 8px;
    justify-content: center;
    text-align: center;
    padding-block: 15px;
  }
  .footer-bottom [lang="en"] {
    display: none;
  }
  .auth-dialog {
    width: calc(100% - 20px);
    max-height: 94dvh;
    border-radius: 18px;
  }
  .auth-dialog[open] {
    display: block;
  }
  .auth-story {
    display: none;
  }
  .auth-content {
    padding: 51px 22px 20px;
  }
  .auth-tabs {
    margin-bottom: 23px;
  }
  .auth-tabs button {
    font-size: 11px;
    padding: 10px 7px;
  }
  .auth-heading h2 {
    font-size: 25px;
  }
  .auth-heading p {
    font-size: 11px;
    margin-bottom: 22px;
  }
  .auth-heading .small-tag {
    font-size: 9px;
  }
  .field > label,
  .gender-field legend {
    font-size: 12px;
  }
  .input-wrap input,
  .input-wrap select {
    font-size: 16px;
    min-height: 50px;
  }
  .input-wrap input::placeholder {
    font-size: 12px;
  }
  .gender-options > label {
    font-size: 12px;
    min-height: 48px;
  }
  .gender-preview > span {
    font-size: 11px;
  }
  .text-button {
    font-size: 11px;
  }
  .prototype-note {
    font-size: 9px;
  }
  .form-notice {
    font-size: 11px;
  }
  .switch-auth {
    font-size: 11px;
  }
  .field-error {
    font-size: 10px;
  }
  .password-strength small {
    font-size: 9px;
  }
  .info-dialog {
    padding: 42px 24px 26px;
  }
  .info-dialog h2 {
    font-size: 21px;
  }
  .info-dialog p {
    font-size: 11px;
  }
  .dialog-close {
    width: 32px;
    height: 32px;
  }
  .auth-content .submit-button {
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .container {
    width: calc(100% - 28px);
  }
  .header-inner {
    gap: 3px;
  }
  .brand img {
    width: 39px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-name > span {
    font-size: 4.5px;
    letter-spacing: 0.7px;
  }
  .header-actions {
    gap: 2px;
  }
  .header-register {
    padding: 8px;
    font-size: 8px;
  }
  .login-button {
    font-size: 8px;
  }
  .theme-toggle {
    width: 28px;
  }
  .menu-button {
    width: 24px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-visual {
    height: 416px;
  }
  .hero-portrait {
    height: 385px;
  }
  .hero-buttons {
    gap: 14px;
  }
  .hero-buttons .button {
    font-size: 10px;
    padding-inline: 14px;
  }
  .hero-visual .floating-card {
    padding: 8px;
  }
  .hello-card {
    left: 0;
  }
  .learning-card {
    right: -3px;
  }
  .hero-eyebrow {
    font-size: 8px;
  }
  .hero-description {
    font-size: 11px;
  }
  .hero-assurance {
    font-size: 7px;
    gap: 13px;
  }
  .feature-card {
    padding: 21px;
  }
  .feature-card h3 {
    font-size: 15px;
  }
  .footer-motto {
    font-size: 8px;
  }
  .auth-content {
    padding-inline: 17px;
  }
  .cta-card h2 {
    font-size: 24px;
  }
  .section h2 {
    font-size: 25px;
  }
}
/* Closing desk portrait, generated from the teacher reference. */
.cta-card {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 35px;
  align-items: center;
  text-align: right;
  padding: 30px 40px;
}
.cta-copy {
  position: relative;
  z-index: 1;
}
.cta-portrait {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #ffffff20;
}
.cta-portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}
.cta-portrait figcaption {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  padding: 20px;
  background: linear-gradient(transparent, #14281eea);
  font-size: 14px;
  color: #fff;
}
.cta-portrait figcaption span {
  display: block;
  font-size: 9px;
  color: #e2e9da;
}
.cta-card .cta-doodle {
  left: auto;
  right: -30px;
  opacity: 0.5;
}
.cta-card .cta-spark {
  display: none;
}
@media (max-width: 900px) {
  .cta-card {
    gap: 23px;
    padding: 28px;
  }
  .cta-card h2 {
    font-size: 27px;
  }
  .cta-card .button {
    font-size: 10px;
    padding-inline: 15px;
  }
}
@media (max-width: 680px) {
  .cta-card {
    grid-template-columns: 1fr;
    padding: 30px 20px 20px;
    text-align: center;
    gap: 26px;
  }
  .cta-portrait {
    max-width: 360px;
    width: 100%;
    margin: auto;
  }
  .cta-card h2 {
    font-size: 27px;
  }
  .cta-portrait figcaption {
    text-align: right;
  }
  .cta-card .button {
    white-space: normal;
  }
}
/* Auth service states and intentional image bounds. */
.phone-help,
#verify-description,
#account-panel p {
  font-size: 12px;
  line-height: 2;
  overflow-wrap: anywhere;
}
#verify-form .text-button {
  margin: 14px 0;
  display: block;
  min-height: 36px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.about-image-inner img {
  max-width: 100%;
  object-fit: contain;
}
.cta-card {
  overflow: clip;
}
@media (max-width: 400px) {
  .header-inner .header-actions {
    gap: 2px;
  }
  .header-inner .login-button {
    font-size: 8px;
  }
  .header-inner .header-register {
    font-size: 8px;
    padding-inline: 7px;
  }
  .header-inner .brand-name {
    font-size: 10px;
  }
  .header-actions .header-register .icon {
    display: none;
  }
}
/* Revision 2: compact brand, mobile-first portrait, compact learning cards. */
.brand img,
.site-footer .brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.brand-name,
.site-footer .brand-name {
  font:
    700 17px/1.5 Alexandria,
    Arial,
    sans-serif;
  letter-spacing: 0.2px;
  text-align: left;
}
.brand-name > span,
.site-footer .brand-name > span {
  font:
    400 7px/1.8 Arial,
    sans-serif;
  letter-spacing: 1.8px;
}
.menu-button {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--soft);
}
.menu-lines {
  width: 24px;
  height: 20px;
  position: relative;
  display: block;
}
.menu-lines > span {
  height: 2px;
  width: 24px;
  background: currentColor;
  border-radius: 3px;
  position: absolute;
  left: 0;
  transition:
    transform 0.24s ease,
    opacity 0.18s ease;
}
.menu-lines > span:nth-child(1) {
  top: 1px;
}
.menu-lines > span:nth-child(2) {
  top: 9px;
}
.menu-lines > span:nth-child(3) {
  top: 17px;
}
.menu-button[aria-expanded="true"] .menu-lines > span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-button[aria-expanded="true"] .menu-lines > span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}
.menu-button[aria-expanded="true"] .menu-lines > span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
.feature-illustration {
  display: none;
}
.feature-card {
  padding: 20px;
  border-radius: 14px;
}
.feature-top {
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 14px;
  margin-bottom: 8px;
}
.feature-card > p {
  min-height: 0;
  font-size: 11px;
}
.feature-link {
  margin-top: 13px;
  padding-top: 12px;
  min-height: 44px;
}
.feature-icon .icon {
  transition: transform 0.24s ease;
}
.feature-card:hover .feature-icon .icon {
  transform: rotate(-9deg) scale(1.08);
}
.input-wrap input::placeholder {
  opacity: 1;
  color: var(--muted);
}
.cta-card {
  display: block;
  text-align: center;
  padding: 45px 24px;
}
.cta-copy {
  max-width: 650px;
  margin: auto;
}
.auth-dialog[open] {
  animation: auth-open 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-dialog[open]::backdrop {
  animation: backdrop-open 0.25s ease-out;
}
@keyframes auth-open {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes backdrop-open {
  from {
    background-color: #10251d00;
  }
  to {
    background-color: #10251dd1;
  }
}
@media (max-width: 680px) {
  :root {
    --header: 70px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .brand {
    gap: 5px;
  }
  .brand img {
    width: 39px;
    height: 39px;
  }
  .brand-name {
    font-size: 11px;
    letter-spacing: 0;
  }
  .brand-name > span {
    font-size: 5px;
    letter-spacing: 0.65px;
  }
  .header-actions {
    gap: 5px;
  }
  .menu-button {
    width: 40px;
    height: 40px;
  }
  .theme-toggle {
    width: 32px;
    height: 40px;
  }
  .header-register {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 9px;
  }
  .login-button {
    font-size: 9px;
    min-height: 40px;
  }
  .hero {
    padding: 13px 0 14px;
  }
  .hero-grid {
    gap: 13px;
  }
  .hero-visual {
    order: -1;
    height: 320px;
    max-width: 320px;
    margin-top: 0;
  }
  .hero-portrait {
    height: 301px;
    bottom: 18px;
  }
  .portrait-arch {
    top: 27px;
    bottom: 18px;
    left: 30px;
    right: 30px;
  }
  .portrait-orbit {
    inset: 21px 21px 17px;
  }
  .orbit-two {
    inset: 34px 15px 12px 34px;
  }
  .arch-letter {
    font-size: 180px;
  }
  .visual-top-label {
    font-size: 5px;
    top: 0;
    left: 52px;
    letter-spacing: 1.4px;
  }
  .teacher-nameplate {
    bottom: 0;
    left: 26px;
    right: 26px;
    padding: 6px 8px;
  }
  .teacher-nameplate h2 {
    font-size: 20px;
    line-height: 1.5;
  }
  .teacher-nameplate small {
    font-size: 6px;
  }
  .teacher-nameplate div > span {
    font-size: 5px;
  }
  .hello-card {
    top: 89px;
    left: 0;
    padding: 7px;
    gap: 6px;
  }
  .hello-card b {
    font-size: 10px;
  }
  .hello-card small {
    font-size: 6px;
  }
  .hello-emoji {
    width: 23px;
    height: 23px;
  }
  .mini-star {
    font-size: 16px;
  }
  .learning-card {
    bottom: 65px;
    right: 0;
    padding: 7px;
    gap: 6px;
  }
  .learning-card b {
    font-size: 8px;
  }
  .learning-card small {
    font-size: 6px;
  }
  .learning-symbol {
    width: 25px;
    height: 25px;
  }
  .letter-a {
    top: 44px;
    right: 12px;
    font-size: 24px;
  }
  .letter-ar {
    bottom: 83px;
    left: 15px;
    font-size: 28px;
  }
  .spark-one {
    top: 37px;
    left: 26px;
  }
  .spark-one .icon {
    width: 19px;
    height: 19px;
  }
  .spark-two {
    bottom: 52px;
  }
  .hero-eyebrow {
    font-size: 8px;
    padding: 3px 9px;
    margin-bottom: 9px;
  }
  .hero h1 {
    font-size: 31px;
    line-height: 1.4;
    letter-spacing: -1px;
  }
  .hero h1 > br {
    display: none;
  }
  .hero h1 > br:after {
    content: " ";
  }
  .highlight-word svg {
    height: 9px;
    bottom: -7px;
  }
  .hero-description {
    font-size: 10px;
    margin: 12px 0;
    line-height: 1.9;
  }
  .hero-description > br {
    display: none;
  }
  .hero-buttons {
    gap: 18px;
  }
  .hero-buttons .button {
    min-height: 45px;
    padding: 11px 16px;
    font-size: 10px;
  }
  .hero-assurance {
    margin-top: 11px;
    font-size: 7px;
  }
  .scroll-hint {
    display: none;
  }
  .learning-strip {
    margin-top: 4px;
  }
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    max-width: none;
  }
  .feature-card {
    min-width: 0;
    padding: 14px 12px;
  }
  .feature-top {
    margin-bottom: 11px;
  }
  .feature-icon {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .feature-icon .icon {
    width: 17px;
    height: 17px;
  }
  .feature-index {
    display: none;
  }
  .feature-card h3 {
    font-size: 11px;
    line-height: 1.9;
    letter-spacing: -0.2px;
    margin-bottom: 6px;
  }
  .feature-card > p {
    font-size: 9px;
    line-height: 1.9;
  }
  .feature-link {
    font-size: 8px;
    gap: 5px;
    padding-top: 8px;
    margin-top: 9px;
    min-height: 38px;
  }
  .feature-link .icon {
    width: 14px;
    height: 14px;
  }
  .journey-card {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 37px 1fr;
    column-gap: 11px;
    align-items: start;
  }
  .journey-card .feature-top {
    grid-row: 1/4;
    margin: 0;
  }
  .journey-card h3 {
    margin-top: 3px;
  }
  .journey-card .feature-link {
    grid-column: 2;
    justify-content: flex-start;
    gap: 14px;
    border: 0;
    padding-top: 0;
    margin-top: 4px;
    min-height: 26px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 24px;
  }
  .section-heading > p {
    font-size: 10px;
  }
  .section-heading .mobile-break {
    display: none;
  }
  .auth-dialog[open] {
    animation-name: auth-open-mobile;
  }
  .cta-card {
    padding: 34px 20px;
  }
}
@keyframes auth-open-mobile {
  from {
    opacity: 0;
    transform: translateY(36px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 359px) {
  .container {
    width: calc(100% - 24px);
  }
  .header-actions {
    gap: 3px;
  }
  .brand img {
    width: 31px;
    height: 36px;
  }
  .brand-name {
    font-size: 10px;
  }
  .brand-name > span {
    font-size: 4px;
    letter-spacing: 0.5px;
  }
  .header-register {
    font-size: 8px;
    padding: 7px;
  }
  .login-button {
    font-size: 8px;
  }
  .menu-button {
    width: 38px;
  }
  .theme-toggle {
    width: 28px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-visual {
    height: 300px;
  }
  .hero-portrait {
    height: 282px;
  }
  .feature-card {
    padding: 12px 10px;
  }
  .feature-card h3 {
    font-size: 10px;
  }
}
/* Desk v2 keeps the complete environment and all desk edges, no zoom crop. */
.cta-with-portrait {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  text-align: right;
  padding: 32px;
}
.cta-with-portrait .cta-portrait {
  margin: 0;
}
.cta-with-portrait .cta-portrait img {
  object-fit: contain;
  width: 100%;
  height: auto;
}
@media (max-width: 680px) {
  .cta-with-portrait {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 16px 16px;
  }
  .cta-with-portrait .cta-portrait {
    max-width: 440px;
    margin: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .floating-card {
    transform: rotate(var(--rotation, 0deg));
  }
}

/* ===== Account state, Telegram invite and password recovery ===== */
.button-ghost {
  background: transparent;
  color: var(--green);
  border: 1.5px solid var(--line);
}
.button-ghost:hover {
  background: var(--soft);
  border-color: var(--green);
}
.account-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--soft), var(--surface));
  border: 1px solid var(--line);
  margin-bottom: 14px;
  animation: appear 0.45s ease-out both;
}
.account-hero h3 {
  font-size: 17px;
  margin: 0 0 2px;
}
.account-hero p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.account-check {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px #285e4d40;
}
.account-check .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
}
.account-languages {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 0 0 16px;
}
.account-languages li {
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--green);
  border: 1px solid var(--line);
  font-weight: 550;
}
.account-languages li[data-paused] {
  color: var(--muted);
  text-decoration: line-through;
}
.telegram-invite {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #2aabee40;
  background: linear-gradient(135deg, #2aabee14, transparent 70%),
    var(--surface);
  margin-bottom: 14px;
  overflow: hidden;
  animation: appear 0.5s 0.15s ease-out both;
}
.telegram-invite::after {
  content: "";
  position: absolute;
  inset-inline-end: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(#2aabee2e, transparent 70%);
  pointer-events: none;
}
.telegram-invite b {
  display: block;
  font-size: 13px;
}
.telegram-invite small {
  display: block;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
}
.telegram-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #37b4f1, #1f8fd0);
  box-shadow: 0 8px 18px #2aabee45;
}
.telegram-badge .icon {
  width: 20px;
  height: 20px;
}
.telegram-invite .telegram-link-button {
  grid-column: 1 / -1;
  background: linear-gradient(145deg, #2aabee, #1f8fd0);
  box-shadow: 0 10px 22px #2aabee3d;
}
.telegram-invite .telegram-link-button:hover {
  background: linear-gradient(145deg, #1f8fd0, #1a7cb8);
}
.telegram-invite .text-button {
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 11px;
  color: var(--muted);
}
.account-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}
#account-notice:empty {
  display: none;
}
#account-notice {
  font-size: 11px;
  color: var(--green);
  background: var(--soft);
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
/* Recovery */
.recovery-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 0;
  margin: 0 0 18px;
  counter-reset: none;
}
.recovery-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.recovery-steps li span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--soft);
  color: var(--muted);
  transition: inherit;
}
.recovery-steps li[aria-current="step"] {
  color: var(--green);
  border-color: var(--green);
  background: var(--soft);
  font-weight: 550;
}
.recovery-steps li[aria-current="step"] span {
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 4px #285e4d22;
}
.recovery-steps li[data-done] {
  color: var(--green);
}
.recovery-steps li[data-done] span {
  background: var(--gold);
  color: #fff;
}
.recovery-channel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2aabee12, transparent 70%),
    var(--surface);
  border: 1px solid #2aabee33;
  margin-bottom: 18px;
}
.recovery-channel b {
  display: block;
  font-size: 12px;
}
.recovery-channel small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.channel-icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #37b4f1, #1f8fd0);
}
.channel-icon .icon {
  width: 18px;
  height: 18px;
}
.code-wrap input {
  letter-spacing: 0.55em;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.recovery-help {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--soft);
  margin-top: 6px;
}
.recovery-help .icon {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 4px;
  color: var(--gold);
}
.recovery-help p {
  margin: 0;
}
#recovery-panel form {
  animation: appear 0.35s ease-out both;
}
/* Connection status pill */
.prototype-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.prototype-note .icon {
  width: 13px;
  height: 13px;
  margin: 0;
  color: var(--muted);
  transition: color 0.3s;
}
.prototype-note[data-state="ready"] .icon {
  color: var(--green);
}
.prototype-note[data-state="down"] .icon {
  color: #c2564a;
}
@media (max-width: 640px) {
  .recovery-steps {
    gap: 4px;
  }
  .recovery-steps li {
    font-size: 9.5px;
    padding: 7px 8px;
  }
  .telegram-invite {
    padding: 14px;
  }
}

/* ---------- Registration wizard ---------- */
.wizard-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  counter-reset: none;
}
.wizard-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  inset-inline: 16.6%;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.wizard-steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
}
.wizard-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: 12px;
  transition: all 250ms ease;
}
.wizard-steps li[aria-current="step"] .wizard-dot {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 14%, transparent);
}
.wizard-steps li[aria-current="step"] {
  color: var(--green);
  font-weight: 600;
}
.wizard-steps li[data-done] .wizard-dot {
  border-color: var(--green);
  background: var(--soft);
  color: var(--green);
}
.wizard-steps li[data-done] .wizard-dot::before {
  content: "✓";
}
.wizard-steps li[data-done] .wizard-dot {
  font-size: 0;
}
.wizard-steps li[data-done] .wizard-dot::before {
  font-size: 13px;
}
.wizard-pane {
  min-width: 0;
}
.wizard-summary {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 11px;
  background: var(--soft);
  border-inline-start: 3px solid var(--green);
  margin-bottom: 18px;
}
.wizard-summary b {
  font-size: 12px;
}
.wizard-summary small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.wizard-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.wizard-actions .submit-button {
  flex: 1;
  margin-top: 0;
}
.wizard-back {
  flex: 0 0 auto;
  padding-inline: 14px;
}
.wizard-back .icon {
  transform: rotate(180deg);
}
.telegram-invite {
  grid-template-columns: 1fr;
}
.telegram-invite-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.telegram-perks {
  list-style: none;
  padding: 0;
  margin: 6px 0 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.telegram-perks li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.telegram-perks b {
  font-size: 10.5px;
  display: block;
}
.telegram-perks small {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
  display: block;
}
.perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2aabee18;
  color: #1f8fd0;
  flex-shrink: 0;
}
.perk-icon .icon {
  width: 14px;
  height: 14px;
}
#account-panel .wizard-steps {
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .telegram-perks {
    grid-template-columns: 1fr;
  }
  .wizard-steps li {
    font-size: 9px;
  }
}

/* Password reveal: swap eye / eye-off by state */
.reveal-password .eye-off,
.reveal-password[aria-pressed="true"] .eye-on {
  display: none;
}
.reveal-password[aria-pressed="true"] .eye-off {
  display: block;
}


/* =============================================================================
   Guest support chat inside the login dialog (password recovery via الدعم)
   ============================================================================= */
.support-channel .channel-icon {
  background: var(--gold);
  color: #2a1e08;
}
.guest-support {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  animation: guestIn 0.3s ease both;
}
@keyframes guestIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.guest-support-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--soft), transparent);
}
.guest-support-head > div {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.guest-support-head b {
  font-size: 12px;
}
.guest-support-head small {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guest-support-head .text-button {
  flex: none;
  font-size: 10px;
}
.guest-support .support-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.guest-support .support-avatar .icon {
  width: 20px;
  height: 20px;
}
.guest-support-messages {
  list-style: none;
  margin: 0;
  padding: 14px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(42vh, 360px);
  min-height: 140px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.guest-support .sup-sys {
  align-self: center;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
  background: var(--soft);
  border-radius: 14px;
  padding: 8px 14px;
  text-align: center;
  max-width: 96%;
}
.guest-support .sup-msg {
  display: grid;
  gap: 3px;
  max-width: 86%;
  animation: guestIn 0.25s ease both;
}
.guest-support .sup-msg .bubble {
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}
.guest-support .sup-msg time {
  font-size: 9.5px;
  color: var(--muted);
  padding-inline: 6px;
}
.guest-support .sup-msg.me {
  align-self: flex-start;
}
.guest-support .sup-msg.me .bubble {
  background: var(--green);
  color: #fff;
  border-start-end-radius: 5px;
}
.guest-support .sup-msg.teacher {
  align-self: flex-end;
}
.guest-support .sup-msg.teacher .bubble {
  background: var(--paper);
  border: 1px solid var(--line);
  border-start-start-radius: 5px;
}
.guest-support .sup-msg.teacher time {
  text-align: end;
}
.guest-support .key-card .bubble {
  display: grid;
  gap: 8px;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, #fff8ea, var(--surface));
  min-width: 220px;
}
[data-theme="dark"] .guest-support .key-card .bubble {
  background: linear-gradient(160deg, #3a2f18, var(--surface));
}
.guest-support .key-title {
  font-weight: 700;
  font-size: 11.5px;
  color: #8a5a10;
}
[data-theme="dark"] .guest-support .key-title {
  color: var(--gold);
}
.guest-support .key-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 19px;
  letter-spacing: 0.12em;
  font-weight: 700;
  background: var(--paper);
  border: 1px dashed var(--gold);
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
  color: var(--ink);
  user-select: all;
}
.guest-support .key-copy {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1e08;
  font-weight: 700;
  font-size: 11px;
  padding: 7px 16px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, filter 0.15s;
}
.guest-support .key-copy:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.guest-support .key-exp {
  font-size: 10.5px;
  color: var(--muted);
}
.guest-support .key-card .bubble p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.guest-support .key-card.is-expired .key-value {
  text-decoration: line-through;
  opacity: 0.55;
}
.guest-support .key-card.is-expired .key-copy {
  display: none;
}
.guest-support .key-card.is-expired .key-exp {
  color: #b3382e;
  font-weight: 700;
}
.guest-support-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.guest-support-composer textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 140px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guest-support-composer textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(40, 94, 77, 0.12);
}
.guest-support-composer .support-send {
  width: 42px;
  height: 42px;
  min-height: 42px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
}
.guest-support-composer .support-send .icon {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}
.guest-support-hint {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 10px;
  line-height: 1.9;
  color: var(--muted);
  background: var(--soft);
}
.guest-support-form .recovery-channel {
  margin-bottom: 4px;
}

/* ---------- recovery options (identity / support) ---------- */
.recovery-help { flex-direction: column; gap: 10px; font-size: 12px; }
.recovery-help-title { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: var(--ink); }
.recovery-help-title .icon { width: 16px; height: 16px; }
.recovery-options { display: grid; gap: 8px; }
.recovery-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.recovery-option:hover, .recovery-option:focus-visible { border-color: var(--green); box-shadow: 0 6px 18px #285e4d1f; transform: translateY(-1px); }
.recovery-option b { display: block; font-size: 13px; }
.recovery-option small { display: block; color: var(--muted); line-height: 1.6; font-size: 11px; }
.recovery-option > .icon { width: 16px; height: 16px; color: var(--muted); transform: rotate(180deg); }
.recovery-option .channel-icon { width: 36px; height: 36px; }
.identity-form { animation: msg-in 0.35s ease both; }
.identity-channel .channel-icon { background: color-mix(in srgb, var(--gold) 22%, var(--soft)); color: #7a5a1c; }
.identity-languages { margin-top: 6px; }
.temp-code-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid var(--gold);
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface));
  text-align: center;
  animation: msg-in 0.4s cubic-bezier(0.22, 0.8, 0.2, 1) both;
}
.temp-code-card p { margin: 0; font-weight: 700; color: var(--ink); }
.temp-code-card output {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  padding: 8px 18px 8px 24px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px dashed var(--gold);
  color: var(--green);
  font-variant-numeric: tabular-nums;
  user-select: all;
}
.temp-code-card small { color: var(--muted); line-height: 1.7; max-width: 32ch; }
.temp-code-card .submit-button { margin-top: 6px; width: 100%; }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }

/* ---------- team credit (Xio): one slim line, always the last thing on the page ---------- */
.team-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 0 14px;
  font-size: 11px;
  color: var(--muted);
}
.team-brand { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.team-brand .team-logo { display: block; width: auto !important; height: 26px !important; max-width: none; object-fit: contain; filter: drop-shadow(0 1px 2px #0002); transition: transform 0.3s; }
.team-credit.compact .team-brand .team-logo { height: 22px !important; }
.team-brand:hover .team-logo { transform: translateY(-1px) scale(1.06); }
.team-brand b { color: #b8892f; letter-spacing: 0.5px; font-weight: 900; }
.team-links { display: inline-flex; align-items: center; gap: 6px; }
.team-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
}
.team-links a svg { width: 13px; height: 13px; fill: currentColor; }
.team-links a:not(.wa) { width: 26px; padding: 0; justify-content: center; }
.team-links .fb { background: #1877f2; }
.team-links .tg { background: #229ed9; }
.team-links .wa { background: #25d366; }
.team-links a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.team-links a:active { transform: scale(0.95); }
.team-credit.compact { padding: 8px 0 4px; font-size: 10px; gap: 6px 10px; }
.team-credit.compact .team-links a { height: 22px; font-size: 9.5px; }
.team-credit.compact .team-links a:not(.wa) { width: 22px; }
.team-credit.compact .team-links a svg { width: 11px; height: 11px; }
/* sidebars: stacked under logout, very quiet */
.sidebar-footer .team-credit { flex-direction: column; gap: 6px; margin-top: 6px; }
.sidebar-footer .team-credit .team-links .wa span { display: none; }
.sidebar-footer .team-credit .team-links .wa { width: 22px; padding: 0; justify-content: center; }
.student-footer { flex-direction: column; align-items: stretch; gap: 0; }
.student-footer-line { display: flex; justify-content: space-between; gap: 12px; }
@media (max-width: 640px) { .student-footer-line { flex-direction: column; text-align: center; gap: 3px; } }
.site-footer .team-credit { border-top: 1px dashed var(--line); margin-top: 4px; }

/* ---------- /legal page ---------- */
.legal-page { min-height: 100vh; padding-bottom: 40px; }
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.legal-head .button { font-size: 12px; padding: 8px 14px; }
.legal-main { max-width: 860px; display: grid; gap: 18px; }
.legal-hero { padding: 28px 24px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--green) 9%, var(--card, #fff)), var(--card, #fff)); animation: legal-in 0.5s ease both; }
.legal-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--card, #fff); border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.legal-badge .icon { width: 14px; height: 14px; color: var(--green); }
.legal-hero h1 { font-size: clamp(24px, 4vw, 34px); margin: 14px 0 8px; }
.legal-hero p { color: var(--muted); font-size: 14px; max-width: 60ch; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card, #fff); font-size: 12px; font-weight: 700; color: inherit; text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.2s; }
.legal-toc a:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.legal-toc .icon { width: 14px; height: 14px; }
.legal-section { padding: 22px 24px; border-radius: 22px; border: 1px solid var(--line); background: var(--card, #fff); scroll-margin-top: 20px; animation: legal-in 0.5s ease both; }
.legal-section h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; }
.legal-section h2 .icon { width: 22px; height: 22px; color: var(--green); }
.legal-section ol { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; counter-reset: legal; list-style: none; }
.legal-section li { position: relative; font-size: 13.5px; line-height: 1.85; padding-inline-start: 4px; counter-increment: legal; }
.legal-section li::before { content: counter(legal); position: absolute; inset-inline-start: -24px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: #fff; background: var(--green); }
@keyframes legal-in { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 640px) {
  .legal-hero, .legal-section { padding: 18px 16px; border-radius: 18px; }
  .legal-section li { font-size: 13px; }
}
.auth-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.6; color: var(--ink); margin: 8px 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--green) 5%, var(--surface)); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.auth-consent:hover { border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.auth-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.auth-consent-box { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 2px solid color-mix(in srgb, var(--green) 55%, var(--line)); background: var(--surface); display: grid; place-items: center; transition: background .18s, border-color .18s, transform .18s; }
.auth-consent-box .icon { width: 14px; height: 14px; color: #fff; stroke-width: 3; opacity: 0; transform: scale(.4); transition: opacity .18s, transform .22s cubic-bezier(.34,1.56,.64,1); }
.auth-consent input:checked + .auth-consent-box { background: var(--green); border-color: var(--green); transform: scale(1.05); }
.auth-consent input:checked + .auth-consent-box .icon { opacity: 1; transform: scale(1); }
.auth-consent input:focus-visible + .auth-consent-box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 30%, transparent); }
.auth-consent-text { flex: 1; }
.auth-consent-text .field-error { display: block; margin-top: 4px; font-size: 11px; }
.auth-consent a { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.auth-consent.invalid { border-color: var(--danger, #d9534f); background: color-mix(in srgb, var(--danger, #d9534f) 6%, var(--surface)); animation: consent-shake .4s; }
.auth-consent.invalid .auth-consent-box { border-color: var(--danger, #d9534f); }
@keyframes consent-shake { 0%,100% { transform: translateX(0) } 25% { transform: translateX(-4px) } 75% { transform: translateX(4px) } }
.student-footer-line a { color: var(--green); }

/* ---- hero: refreshed assurance + Xio team strip ---- */
.hero-assurance { flex-wrap: wrap; row-gap: 10px; }
.hero-assurance > span { white-space: nowrap; }
.hero-team {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 5px 6px 5px 12px; border: 1px solid var(--line); border-radius: 30px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  backdrop-filter: blur(6px); animation: hero-team-in .7s .35s both;
}
@keyframes hero-team-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.hero-team-brand { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--muted); text-decoration: none; }
.hero-team-brand b { color: var(--ink); font-weight: 800; letter-spacing: .3px; }
.hero-team-brand .team-logo { width: auto !important; height: 22px !important; }
.hero-team-brand:hover b { color: var(--green); }
.hero-team-sep { width: 1px; height: 16px; background: var(--line); }
.hero-team-link {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; transition: transform .2s, filter .2s;
}
.hero-team-link .icon { width: 14px; height: 14px; }
.hero-team-link.fb { background: #1877f2; }
.hero-team-link.tg { background: #229ed9; }
.hero-team-link.wa { background: #25d366; }
.hero-team-link:hover { transform: translateY(-2px) scale(1.06); filter: brightness(1.08); }
.hero-team-link:active { transform: scale(.94); }
@media (max-width: 680px) {
  .hero-assurance { justify-content: center; gap: 8px 12px; }
  .hero-team { margin: 14px auto 0; display: flex; width: fit-content; }
  .hero-team-brand { font-size: 10px; }
}

/* ================= Axio assistant widget ================= */
.axio { position: fixed; z-index: 1200; inset-inline-start: 18px; bottom: 18px; display: grid; justify-items: start; gap: 10px; font-size: 13px; }
.axio-room { bottom: calc(var(--live-bar-h, 92px) + 14px); }
@media (max-width: 900px) { .axio-panel-page .axio { bottom: 86px; } .axio-panel-page .axio-panel { max-height: calc(100dvh - 190px); } }
.axio-fab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 30px;
  background: linear-gradient(140deg, var(--green), #3f8a72); color: #fff; border: 0; cursor: pointer; font-weight: 800; font-size: 12.5px;
  box-shadow: 0 10px 28px rgba(40, 94, 77, 0.38); transition: transform .2s, box-shadow .2s; animation: axio-fab-in .6s .3s both;
}
.axio-fab img { width: 26px !important; height: 32px !important; object-fit: contain; filter: drop-shadow(0 2px 4px #0003); }
.axio-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(40, 94, 77, 0.45); }
.axio-fab:active { transform: scale(.96); }
.axio-fab-dot { position: absolute; top: 4px; inset-inline-end: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold); animation: axio-pulse 2s infinite; }
.axio-off .axio-fab { background: linear-gradient(140deg, #6b7570, #8a948f); box-shadow: none; }
.axio-off .axio-fab-dot { display: none; }
.axio.open .axio-fab-label { display: none; }
@keyframes axio-fab-in { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes axio-pulse { 0% { box-shadow: 0 0 0 0 rgba(216,170,100,.7); } 70% { box-shadow: 0 0 0 8px rgba(216,170,100,0); } 100% { box-shadow: 0 0 0 0 rgba(216,170,100,0); } }
.axio-panel {
  width: min(380px, calc(100vw - 36px)); max-height: min(560px, calc(100dvh - 120px)); min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(24, 46, 44, 0.28); animation: axio-panel-in .28s cubic-bezier(.34,1.3,.64,1) both; transform-origin: bottom right;
}
[dir="rtl"] .axio-panel { transform-origin: bottom left; }
@keyframes axio-panel-in { from { opacity: 0; transform: translateY(16px) scale(.94); } to { opacity: 1; transform: none; } }
.axio-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(140deg, var(--green), #3f8a72); color: #fff; }
.axio-head img { width: 22px !important; height: 27px !important; object-fit: contain; }
.axio-head div { display: grid; line-height: 1.2; }
.axio-head b { font-size: 14px; }
.axio-head small { font-size: 10.5px; opacity: .85; }
.axio-status { margin-inline-start: auto; font-size: 10px; padding: 3px 8px; border-radius: 20px; background: #fff2; }
.axio-status:empty { display: none; }
.axio-status.warn { background: var(--gold); color: #2a1e08; }
.axio-status.off { background: #0003; }
.axio-close { width: 30px; height: 30px; border-radius: 50%; background: #fff2; color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.axio-close svg { width: 16px; height: 16px; }
.axio-log { overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; background: var(--paper); min-height: 0; }
.axio-msg { max-width: 88%; animation: axio-msg-in .25s ease both; }
.axio-msg > div { padding: 9px 12px; border-radius: 14px; line-height: 1.75; font-size: 12.5px; }
.axio-msg p { margin: 0; }
.axio-msg p + p, .axio-msg ul { margin-top: 6px; }
.axio-msg ul { padding-inline-start: 18px; margin-bottom: 0; }
.axio-msg.bot { justify-self: start; }
.axio-msg.bot > div { background: var(--surface); border: 1px solid var(--line); border-start-start-radius: 4px; }
.axio-msg.me { justify-self: end; }
.axio-msg.me > div { background: var(--green); color: #fff; border-start-end-radius: 4px; }
.axio-msg.sys { justify-self: center; max-width: 95%; }
.axio-msg.sys > div { background: var(--cream); color: var(--muted); font-size: 11px; border-radius: 10px; text-align: center; }
.axio-msg.typing > div { display: flex; gap: 4px; padding: 12px 14px; }
.axio-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: axio-dots 1s infinite; }
.axio-msg.typing span:nth-child(2) { animation-delay: .15s; } .axio-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes axio-dots { 0%,100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes axio-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.axio-chips { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; scrollbar-width: none; }
.axio-chips button { flex: none; font-size: 11px; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--green); font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.axio-chips button:hover { background: var(--soft); transform: translateY(-1px); }
.axio-form { display: flex; align-items: flex-end; gap: 6px; padding: 10px 12px 6px; }
.axio-form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; font: inherit; font-size: 12.5px; line-height: 1.5; background: var(--surface); color: var(--ink); min-height: 38px; max-height: 120px; }
.axio-form textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.axio-form textarea:disabled { background: var(--soft); }
.axio-send, .axio-mic { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .15s, background .15s; }
.axio-send { background: var(--green); color: #fff; }
.axio-send:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.axio-send svg, .axio-mic svg { width: 17px; height: 17px; }
.axio-mic { background: var(--soft); color: var(--green); }
.axio-mic.on { background: #d9534f; color: #fff; animation: axio-pulse 1.2s infinite; }
.axio-foot { margin: 0; padding: 0 14px 10px; font-size: 10px; color: var(--muted); text-align: center; }
/* Coaching banner (teacher live room) */
.axio-coach { position: fixed; z-index: 1150; top: 14px; inset-inline-start: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 30px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: 0 10px 30px #0003; max-width: min(640px, calc(100vw - 24px)); animation: axio-coach-in .4s both; font-size: 12px; color: var(--ink); }
[dir="rtl"] .axio-coach { transform: translateX(50%); }
.axio-coach img { width: 20px !important; height: 25px !important; object-fit: contain; flex: none; }
.axio-coach-tip { display: flex; align-items: center; gap: 6px; line-height: 1.5; }
.axio-coach-tip + .axio-coach-tip { display: none; }
.axio-coach-next, .axio-coach-x { flex: none; border: 0; background: var(--soft); color: var(--green); width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 12px; font-weight: 800; }
.axio-coach-x { background: transparent; color: var(--muted); }
.axio-coach[data-mood="quiet"] { border-color: var(--gold); }
.axio-coach[data-mood="active"] { border-color: var(--green); }
@keyframes axio-coach-in { from { opacity: 0; transform: translate(50%, -14px); } to { opacity: 1; transform: translate(50%, 0); } }
@media (max-width: 600px) {
  .axio-coach { top: 74px; font-size: 11px; padding: 6px 10px 6px 6px; }
  .axio-fab-label { display: none; }
  .axio-fab { padding: 6px 9px; }
  .axio.open .axio-fab { display: none; }
  .axio-room .axio-panel { max-height: calc(100dvh - var(--live-bar-h, 92px) - 100px); }
}
.axio-switch { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; font-size: 10px; color: #fff; }
.axio-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.axio-switch span { width: 30px; height: 17px; border-radius: 10px; background: #fff3; position: relative; transition: background .2s; }
.axio-switch span::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .2s; }
.axio-switch input:checked + span { background: var(--gold); }
.axio-switch input:checked + span::after { transform: translateX(-13px); }
[dir="ltr"] .axio-switch input:checked + span::after { transform: translateX(13px); }
