@font-face {
  font-family: "Kamr";
  src: url("./fonts/KAMR__SF.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f5f2ff;
  --ink: #1d1731;
  --ink-soft: #615b70;
  --muted: #8a8498;
  --line: #e9e5ef;
  --brand: #5b35f5;
  --brand-dark: #4320cc;
  --brand-deep: #241649;
  --brand-soft: #eee9ff;
  --lime: #caff4a;
  --lime-soft: #f0ffc5;
  --coral: #ff765f;
  --coral-soft: #fff0eb;
  --sky: #72d7ff;
  --sky-soft: #e8f8ff;
  --success: #16a875;
  --success-soft: #e9fbf3;
  --danger: #e95b64;
  --shadow-sm: 0 12px 30px rgba(35, 25, 69, 0.08);
  --shadow-md: 0 24px 64px rgba(35, 25, 69, 0.12);
  --shadow-brand: 0 18px 40px rgba(91, 53, 245, 0.28);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --font: "Alexandria", "Tajawal", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 300px;
  padding-top: 76px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(91, 53, 245, 0.055) 0.7px,
    transparent 0.7px
  );
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

body.menu-locked {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(91, 53, 245, 0.32);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
strong {
  font-weight: 700;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(76px, 9vw, 124px);
}

main section[id] {
  scroll-margin-top: 88px;
}

.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  animation: rise-in 0.65s cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Navigation */
.landing-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  border-bottom: 1px solid rgba(37, 27, 72, 0.07);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 34px rgba(37, 27, 72, 0.08);
}

.nav-inner {
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  width: 140px;
  height: 60px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.nav-logo img,
.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: multiply;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-login {
  min-height: 42px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(91, 53, 245, 0.18);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.nav-login:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 53, 245, 0.32);
  background: var(--brand-soft);
}

.nav-cta,
.nav-menu-cta {
  min-height: 42px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.nav-menu-cta {
  display: none;
}

.nav-cta:hover,
.nav-menu-cta:hover {
  transform: translateY(-2px);
  background: var(--brand);
}

.menu-toggle {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: currentColor;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.landing-nav.menu-open .menu-toggle span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.landing-nav.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.landing-nav.menu-open .menu-toggle span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Status page */
.status-page {
  min-height: 100vh;
}

.status-nav .nav-inner {
  justify-content: space-between;
}

.status-main {
  min-height: calc(100svh - 76px);
}

.status-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(58px, 8vw, 104px);
  background:
    radial-gradient(
      circle at 80% 18%,
      rgba(202, 255, 74, 0.2),
      transparent 24%
    ),
    radial-gradient(
      circle at 15% 20%,
      rgba(114, 215, 255, 0.18),
      transparent 24%
    ),
    linear-gradient(180deg, #fbfaf7 0%, #f7f3ff 74%, #fbfaf7 100%);
}

.status-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -250px;
  z-index: -1;
  height: 460px;
  border-radius: 50% 50% 0 0;
  background: rgba(91, 53, 245, 0.045);
  transform: rotate(-3deg);
}

.status-wrap {
  display: flex;
  justify-content: center;
}

.status-card {
  width: min(720px, 100%);
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid rgba(37, 27, 72, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-md);
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.status-eyebrow {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 18px;
  padding: 8px 14px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.status-card h1 {
  color: var(--brand-deep);
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.25;
}

.status-card p {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 2;
}

/* Shared controls */
.button {
  min-height: 58px;
  padding: 13px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button svg {
  width: 19px;
  transform: rotate(180deg);
}

.button-primary {
  background: linear-gradient(135deg, #6b43ff, var(--brand-dark));
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.button-primary:hover {
  box-shadow: 0 22px 48px rgba(91, 53, 245, 0.34);
}

.button-secondary {
  border-color: rgba(37, 27, 72, 0.11);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  box-shadow: 0 12px 30px rgba(37, 27, 72, 0.06);
}

.play-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
}

.play-icon svg {
  width: 16px;
  transform: none;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto clamp(38px, 5vw, 62px);
  text-align: center;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.section-kicker::before {
  content: "";
  width: 25px;
  height: 3px;
  border-radius: 99px;
  background: var(--lime);
}

.section-heading h2,
.reviews-heading h2,
.progress-copy-block h2 {
  color: var(--ink);
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.7;
  letter-spacing: -0.035em;
}

.section-heading p,
.progress-copy-block > p {
  max-width: 650px;
  margin: 14px auto 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.9;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(60px, 7vw, 94px) 32px;
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(202, 255, 74, 0.2),
      transparent 23%
    ),
    radial-gradient(
      circle at 12% 14%,
      rgba(114, 215, 255, 0.18),
      transparent 22%
    ),
    linear-gradient(180deg, #fbfaf7 0%, #f7f3ff 70%, #fbfaf7 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -250px;
  z-index: -1;
  height: 460px;
  border-radius: 50% 50% 0 0;
  background: rgba(91, 53, 245, 0.045);
  transform: rotate(-3deg);
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.8;
}

.hero-orb-one {
  width: 110px;
  height: 110px;
  top: 14%;
  right: -45px;
  border: 22px solid rgba(255, 118, 95, 0.18);
}

.hero-orb-two {
  width: 60px;
  height: 60px;
  left: 5%;
  bottom: 19%;
  background: rgba(202, 255, 74, 0.42);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(91, 53, 245, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(37, 27, 72, 0.05);
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(202, 255, 74, 0.23);
}

.hero h1 {
  max-width: 650px;
  margin-block: 23px 20px;
  color: var(--ink);
  font-size: clamp(46px, 4.9vw, 61px);
  line-height: 1.3;
  letter-spacing: -0.055em;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  color: var(--brand);
  white-space: nowrap;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  inset: auto -5px 3px;
  z-index: -1;
  height: 18px;
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-1.5deg);
}

.hero-text {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.55vw, 20px);
  font-weight: 500;
  line-height: 2;
}

.hero-buttons {
  margin-block: 31px 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-proof div {
  min-width: 126px;
  padding-inline-start: 13px;
  border-inline-start: 3px solid var(--brand-soft);
}

.hero-proof div:nth-child(2) {
  border-color: var(--coral-soft);
}

.hero-proof div:nth-child(3) {
  border-color: var(--lime);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--ink);
  font-size: 13px;
}

.hero-proof span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.hero-visual {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
}

.app-shell {
  position: relative;
  width: min(100%, 540px);
  overflow: hidden;
  border: 1px solid rgba(42, 29, 82, 0.1);
  border-radius: 30px;
  background: #fff;
  box-shadow:
    0 34px 80px rgba(42, 29, 82, 0.17),
    0 0 0 9px rgba(255, 255, 255, 0.46);
  transform: rotate(-1.2deg);
}

.app-topbar {
  min-height: 66px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #faf9fd;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.window-dots {
  direction: ltr;
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d4e4;
}

.window-dots i:first-child {
  background: var(--coral);
}

.window-dots i:nth-child(2) {
  background: #ffc54b;
}

.window-dots i:last-child {
  background: #5cdba1;
}

.app-avatar {
  width: 36px;
  height: 36px;
  justify-self: end;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}

.app-body {
  padding: 25px;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(114, 215, 255, 0.09),
      transparent 32%
    ),
    #fff;
}

.app-progress-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
}

.app-progress-row strong {
  color: var(--brand);
}

.app-progress {
  height: 6px;
  margin-block: 9px 20px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--brand-soft);
}

.app-progress i {
  width: 42%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #8e70ff);
}

.preview-question {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(42, 29, 82, 0.07);
}

.preview-chip {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

.preview-question h2 {
  margin-block: 15px 18px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.9;
}

.ltr-math {
  display: inline-block;
  direction: ltr;
  unicode-bidi: isolate;
}

.preview-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-options div {
  min-height: 48px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink-soft);
  font-size: 12px;
}

.preview-options b {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f5f3f8;
  color: var(--ink-soft);
}

.preview-options div.selected {
  border-color: rgba(22, 168, 117, 0.35);
  background: var(--success-soft);
  color: #08704c;
}

.preview-options .selected b {
  background: var(--success);
  color: #fff;
}

.preview-options em {
  margin-inline-start: auto;
  color: var(--success);
  font-style: normal;
  font-weight: 800;
}

.preview-success {
  margin-top: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 13px;
  background: var(--success-soft);
}

.preview-success > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--success);
  color: #fff;
  font-weight: 800;
}

.preview-success strong,
.preview-success small {
  display: block;
}

.preview-success strong {
  color: #08704c;
  font-size: 11px;
}

.preview-success small {
  color: #5d8978;
  font-size: 9px;
}

.orbit-chip {
  position: absolute;
  z-index: 3;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.orbit-chip svg {
  width: 23px;
}

.orbit-math {
  top: 38px;
  right: 3%;
  background: var(--lime);
  transform: rotate(9deg);
}

.orbit-bio {
  left: 0;
  bottom: 83px;
  background: var(--sky);
  transform: rotate(-10deg);
}

.orbit-spark {
  top: 80px;
  left: 2%;
  background: var(--coral);
  color: #fff;
  transform: rotate(-8deg);
}

.floating-score,
.floating-streak {
  position: absolute;
  z-index: 4;
  min-width: 160px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(42, 29, 82, 0.09);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.floating-score {
  right: -16px;
  bottom: 60px;
  transform: rotate(3deg);
}

.floating-streak {
  top: 122px;
  left: -22px;
  transform: rotate(-3deg);
}

.floating-score strong,
.floating-score small,
.floating-streak strong,
.floating-streak small {
  display: block;
}

.floating-score strong,
.floating-streak strong {
  color: var(--ink);
  font-size: 12px;
}

.floating-score small,
.floating-streak small {
  color: var(--muted);
  font-size: 9px;
}

.score-icon,
.floating-streak > span {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.floating-streak > span {
  background: var(--coral-soft);
}

.subject-strip {
  position: relative;
  z-index: 4;
  min-height: 78px;
  margin-top: 38px;
  padding: 17px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(42, 29, 82, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 40px rgba(42, 29, 82, 0.06);
  backdrop-filter: blur(12px);
}

.subject-strip > span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-pills b {
  padding: 7px 13px;
  border-radius: 999px;
  background: #f4f1fa;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
}

.subject-pills b:nth-child(1) {
  background: var(--brand-soft);
  color: var(--brand);
}

.subject-pills b:nth-child(2) {
  background: var(--sky-soft);
  color: #1778a1;
}

.subject-pills b:nth-child(3) {
  background: var(--coral-soft);
  color: #c34f3d;
}

.subject-pills b:nth-child(4) {
  background: var(--lime-soft);
  color: #657f17;
}

/* Interactive demo */
.demo {
  background: #fff;
}

.demo .wrap {
  width: min(1080px, calc(100% - 48px));
}

.practice-window {
  position: relative;
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(114, 215, 255, 0.11),
      transparent 25%
    ),
    #f9f8fc;
  box-shadow: var(--shadow-md);
}

.practice-window::before {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  top: -25px;
  left: -28px;
  z-index: 0;
  border: 18px solid rgba(202, 255, 74, 0.38);
  border-radius: 50%;
}

.practice-top,
.progress-track,
.question-shell {
  position: relative;
  z-index: 1;
}

.practice-top {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.practice-eyebrow,
.practice-title {
  display: block;
}

.practice-eyebrow {
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
}

.practice-title {
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
}

.progress-copy {
  min-width: 53px;
  padding: 7px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--brand);
  direction: rtl;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.progress-track {
  height: 7px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9e5f1;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #9a7fff);
  transition: width 0.4s ease;
}

.question-shell {
  display: grid;
  gap: 16px;
  align-items: start;
}

.question-shell.revealed {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: stretch;
}

.question-card,
.explanation-card {
  position: relative;
  overflow: hidden;
  border-radius: 23px;
}

.question-card {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  background: #fff;
}

.question-card::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 78px;
  left: -34px;
  top: -34px;
  border-radius: 50%;
  background: var(--brand-soft);
}

.question-prompt-media {
  display: grid;
}

.question-chip {
  display: inline-flex;
  margin-bottom: 15px;
  padding: 6px 13px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.question-card h3 {
  min-height: 55px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 2;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-button {
  position: relative;
  width: 100%;
  min-height: 55px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.option-button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: rgba(91, 53, 245, 0.45);
  box-shadow: 0 8px 20px rgba(91, 53, 245, 0.08);
}

.option-button.selected {
  border-color: var(--brand);
  background: #f8f6ff;
  box-shadow: 0 0 0 3px rgba(91, 53, 245, 0.1);
}

.option-button:disabled {
  cursor: default;
}

.option-letter {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f3f1f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.option-button.selected .option-letter {
  background: var(--brand);
  color: #fff;
}

.option-button.correct {
  border-color: rgba(22, 168, 117, 0.46);
  background: var(--success-soft);
}

.option-button.correct .option-letter {
  background: var(--success);
  color: #fff;
}

.option-button.wrong {
  border-color: rgba(233, 91, 100, 0.44);
  background: #fff1f1;
}

.option-button.wrong .option-letter {
  background: var(--danger);
  color: #fff;
}

.option-button.dimmed {
  opacity: 0.48;
}

.answer-icon {
  width: 19px;
  margin-inline-start: auto;
}

.correct .answer-icon {
  color: var(--success);
}

.wrong .answer-icon {
  color: var(--danger);
}

.confirm-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  padding: 11px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(91, 53, 245, 0.2);
  transition:
    transform 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

.confirm-button:not(:disabled):hover {
  transform: translateY(-2px);
}

.confirm-button:disabled {
  background: #e7e4eb;
  color: #aaa5b2;
  cursor: not-allowed;
  box-shadow: none;
}

.confirm-button.next {
  background: var(--success);
  box-shadow: 0 12px 24px rgba(22, 168, 117, 0.2);
}

.explanation-card {
  padding: clamp(20px, 2.4vw, 27px);
  max-height: none;
  overflow: auto;
  border: 1px solid rgba(22, 168, 117, 0.26);
  background:
    radial-gradient(circle at 0 0, rgba(202, 255, 74, 0.22), transparent 25%),
    var(--success-soft);
  animation: slide-in 0.3s ease both;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.explanation-heading {
  margin-bottom: 16px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid rgba(22, 168, 117, 0.18);
}

.explanation-heading > span {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  color: #42600b;
}

.explanation-heading svg {
  width: 21px;
}

.explanation-heading strong,
.explanation-heading small {
  display: block;
}

.explanation-heading strong {
  color: #096646;
  font-size: 14px;
}

.explanation-heading small {
  color: #659482;
  font-size: 10px;
}

.explanation-card p {
  color: #165b45;
  font-size: 12px;
  line-height: 1.95;
  white-space: pre-line;
}

.question-image-wrap {
  width: 100%;
  height: clamp(150px, 21vw, 240px);
  margin: 8px 0 17px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fbfafc;
}

.question-image-wrap[hidden] {
  display: none !important;
}

.question-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

mjx-container,
.MathJax {
  direction: ltr !important;
  unicode-bidi: isolate;
}

#question-text mjx-container[display="true"],
#explanation-text mjx-container[display="true"] {
  display: block;
  margin: 11px auto !important;
  text-align: center !important;
}

/* Feature bento */
.features {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.features::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  top: 15%;
  right: -280px;
  border-radius: 50%;
  background: rgba(114, 215, 255, 0.12);
}

.feature-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 17px;
}

.feature-card {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 3.2vw, 38px);
  border: 1px solid rgba(42, 29, 82, 0.08);
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(42, 29, 82, 0.075);
}

.feature-card h3 {
  margin-block: 12px 10px;
  color: var(--ink);
  font-size: clamp(22px, 2.2vw, 31px);
  line-height: 1.55;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.feature-tag {
  display: block;
  margin-top: 19px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
}

.feature-icon svg {
  width: 23px;
}

.feature-icon.lime {
  background: var(--lime-soft);
  color: #5d7618;
}

.feature-icon.coral {
  background: var(--coral-soft);
  color: #cc4f3a;
}

.feature-icon.sky {
  background: var(--sky-soft);
  color: #1678a1;
}

.feature-main {
  min-height: 540px;
  grid-column: span 7;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(
      circle at 0 100%,
      rgba(202, 255, 74, 0.18),
      transparent 32%
    ),
    var(--brand-deep);
  color: #fff;
}

.feature-main::before {
  content: "✦";
  position: absolute;
  top: 24px;
  left: 26px;
  color: var(--lime);
  font-size: 34px;
}

.feature-main .feature-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lime);
}

.feature-main .feature-tag {
  color: var(--lime);
}

.feature-main h3 {
  color: #fff;
}

.feature-main .feature-copy p {
  color: rgba(255, 255, 255, 0.7);
}

.explain-preview {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  transform: rotate(-2deg);
  backdrop-filter: blur(9px);
}

.explain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
}

.explain-head b {
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(202, 255, 74, 0.14);
  color: var(--lime);
}

.explain-preview p {
  margin-block: 22px 16px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.formula-pill {
  padding: 14px;
  border-radius: 13px;
  background: #fff;
  color: var(--brand-deep);
  direction: ltr;
  text-align: center;
}

.explain-lines {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.explain-lines i {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.explain-lines i:nth-child(2) {
  width: 82%;
}

.explain-lines i:nth-child(3) {
  width: 64%;
}

.feature-repeat,
.feature-organize {
  grid-column: span 5;
  min-height: 260px;
}

.feature-repeat {
  background:
    radial-gradient(circle at 0 0, rgba(202, 255, 74, 0.34), transparent 42%),
    #fff;
}

.repeat-badge {
  position: absolute;
  left: 25px;
  top: 25px;
  width: 124px;
  height: 78px;
  padding: 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-3deg);
  box-shadow: 0 14px 28px rgba(110, 145, 15, 0.18);
}

.repeat-badge strong,
.repeat-badge span {
  display: block;
  line-height: 1.1;
}

.repeat-badge strong {
  font-size: 24px;
}

.repeat-badge span {
  font-size: 8px;
}

.lesson-stack {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.lesson-stack span {
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 9px;
}

.lesson-stack i,
.dashboard-lessons i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

i.purple {
  background: var(--brand);
}

i.coral {
  background: var(--coral);
}

i.lime {
  background: #9dc91d;
}

.feature-mobile {
  min-height: 230px;
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 28px;
  background:
    radial-gradient(
      circle at 15% 50%,
      rgba(114, 215, 255, 0.18),
      transparent 30%
    ),
    #fff;
}

.phone-mini {
  width: min(100%, 300px);
  min-height: 150px;
  justify-self: center;
  padding: 20px;
  display: grid;
  place-items: center;
  border: 8px solid var(--ink);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--brand-soft), #fff);
  box-shadow: 0 20px 45px rgba(42, 29, 82, 0.14);
  transform: rotate(-4deg);
}

.phone-mini i {
  width: 48px;
  height: 5px;
  border-radius: 99px;
  background: var(--ink);
}

.phone-mini span {
  color: var(--ink-soft);
  font-size: 11px;
}

.phone-mini b {
  color: var(--brand);
  font-size: 27px;
}

/* Reviews */
.reviews {
  background: #fff;
}

.reviews-heading {
  margin-bottom: clamp(34px, 5vw, 56px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.reviews-heading > div:first-child {
  max-width: 680px;
}

.rating-summary {
  min-width: 175px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  text-align: center;
}

.rating-summary strong,
.rating-summary span,
.rating-summary small {
  display: block;
}

.rating-summary strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
}

.rating-summary span,
.review-stars {
  color: #ffc03d;
  letter-spacing: 2px;
}

.rating-summary small {
  color: var(--muted);
  font-size: 9px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.review-card {
  position: relative;
  min-height: 300px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--bg);
  box-shadow: 0 16px 40px rgba(42, 29, 82, 0.06);
}

.review-card:nth-child(1) {
  transform: rotate(1deg);
}

.review-card:nth-child(3) {
  transform: rotate(-1deg);
}

.review-stars {
  font-size: 13px;
}

.review-card > p {
  margin-block: 22px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
}

.review-card footer {
  display: flex;
  align-items: center;
  gap: 11px;
}

.student-avatar {
  width: 43px;
  height: 43px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 700;
}

.avatar-purple {
  background: var(--brand-soft);
  color: var(--brand);
}

.avatar-coral {
  background: var(--coral-soft);
  color: #ca4e3b;
}

.avatar-lime {
  background: var(--lime-soft);
  color: #607a12;
}

.review-card footer strong,
.review-card footer small {
  display: block;
}

.review-card footer strong {
  font-size: 12px;
}

.review-card footer small {
  color: var(--muted);
  font-size: 9px;
}

.featured-review {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
  transform: translateY(-14px);
}

.featured-review > p,
.featured-review footer strong {
  color: #fff;
}

.featured-review footer small {
  color: rgba(255, 255, 255, 0.62);
}

.featured-review .review-stars {
  color: var(--lime);
}

.review-mark {
  position: absolute;
  left: 20px;
  top: 6px;
  color: rgba(255, 255, 255, 0.15);
  font-family: Georgia, serif;
  font-size: 105px;
  line-height: 1;
}

/* Progress dashboard */
.progress-section {
  background:
    radial-gradient(
      circle at 85% 70%,
      rgba(202, 255, 74, 0.15),
      transparent 24%
    ),
    var(--bg);
}

.progress-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.progress-copy-block h2 {
  margin-top: 2px;
}

.progress-copy-block > p {
  margin-inline: 0;
}

.check-list {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-list span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--lime);
  color: #526b0a;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid rgba(42, 29, 82, 0.09);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  left: -80px;
  top: -80px;
  border-radius: 50%;
  background: var(--sky-soft);
}

.dashboard-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-head small,
.dashboard-head strong {
  display: block;
}

.dashboard-head small {
  color: var(--brand);
  font-size: 9px;
}

.dashboard-head strong {
  margin-top: 2px;
  font-size: 15px;
}

.dashboard-head > span {
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 9px;
}

.dashboard-score {
  position: relative;
  margin-block: 25px 22px;
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: end;
  gap: 28px;
}

.score-ring {
  width: 145px;
  height: 145px;
  display: grid;
  place-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fff 57%, transparent 59%),
    conic-gradient(var(--brand) 0 82%, var(--brand-soft) 82% 100%);
  text-align: center;
}

.score-ring strong,
.score-ring span {
  display: block;
}

.score-ring strong {
  color: var(--brand);
  font-size: 27px;
  line-height: 1.2;
}

.score-ring span {
  color: var(--muted);
  font-size: 8px;
}

.weekly-bars {
  height: 135px;
  padding: 12px 16px 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(
    to top,
    transparent 0 32px,
    rgba(42, 29, 82, 0.055) 33px 34px
  );
}

.weekly-bars i {
  width: 19px;
  height: var(--h);
  display: block;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(to top, var(--brand), #977cff);
}

.weekly-bars i:nth-child(4),
.weekly-bars i:nth-child(6) {
  background: linear-gradient(to top, #9dc91d, var(--lime));
}

.dashboard-lessons {
  display: grid;
  gap: 9px;
}

.dashboard-lessons div {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 11px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 10px;
}

.dashboard-lessons span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dashboard-lessons strong {
  color: var(--ink);
}

/* CTA */
.closing-cta {
  padding-block: clamp(50px, 7vw, 88px) clamp(70px, 8vw, 104px);
  background: #fff;
}

.cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(55px, 7vw, 86px) 24px;
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(114, 215, 255, 0.25),
      transparent 24%
    ),
    radial-gradient(
      circle at 88% 85%,
      rgba(202, 255, 74, 0.22),
      transparent 27%
    ),
    linear-gradient(135deg, #271550, #5b35f5 60%, #4621c8);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 74px rgba(71, 35, 179, 0.25);
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(#fff 0.8px, transparent 0.8px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.cta-card > * {
  position: relative;
  z-index: 1;
}

.offer-pill {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
}

.cta-card h2 {
  max-width: 760px;
  margin: 19px auto 11px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.34;
  letter-spacing: -0.04em;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.button-light {
  margin-top: 29px;
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(202, 255, 74, 0.2);
}

.cta-card > small {
  margin-top: 12px;
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
}

.cta-spark {
  position: absolute;
  color: var(--lime);
  font-size: 38px;
}

.spark-one {
  top: 48px;
  right: 8%;
  transform: rotate(12deg);
}

.spark-two {
  left: 9%;
  bottom: 50px;
  color: var(--sky);
  transform: rotate(-12deg);
}

/* Footer */
.site-footer {
  padding-block: 54px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-main {
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.8fr;
  gap: 55px;
}

.footer-logo {
  width: 126px;
  height: 42px;
  display: block;
  overflow: hidden;
}

.footer-about p,
.footer-contact p {
  max-width: 470px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.footer-links,
.footer-contact {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong,
.footer-contact strong {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--brand);
}

.footer-contact p {
  margin: 0;
}

.footer-contact a {
  margin-top: 5px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}

.copyright {
  padding-top: 21px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  line-height: 1.7;
}

/* Responsive */
@media (min-width: 761px) {
  .question-card.has-image .question-prompt-media {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr);
    align-items: center;
    gap: 22px;
    margin-bottom: 17px;
  }

  .question-card.has-image #question-text {
    margin-bottom: 0;
  }

  .question-card.has-image .question-image-wrap {
    margin: 0;
  }
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: clamp(42px, 5.2vw, 56px);
  }

  .hero-visual {
    min-height: 540px;
  }

  .question-shell.revealed {
    grid-template-columns: 1fr;
  }

  .feature-main {
    grid-template-columns: 1fr;
  }

  .explain-preview {
    margin-top: 5px;
  }
}

@media (max-width: 880px) {
  body {
    padding-top: 68px;
  }

  .landing-nav {
    height: 68px;
  }

  .status-main,
  .status-hero {
    min-height: calc(100svh - 68px);
  }

  .nav-inner {
    width: calc(100% - 32px);
    justify-content: space-between;
  }

  .nav-logo {
    width: 114px;
    height: 38px;
  }

  .nav-links {
    position: fixed;
    inset: 78px 16px auto;
    z-index: 130;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 70px rgba(30, 21, 60, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .landing-nav.menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    text-align: right;
  }

  .nav-menu-cta {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    display: inline-flex;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    padding-top: 55px;
  }

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

  .hero-copy {
    max-width: 680px;
    text-align: center;
    margin-inline: auto;
  }

  .eyebrow {
    margin-inline: auto;
  }

  .hero h1,
  .hero-text {
    margin-inline: auto;
  }

  .hero-buttons,
  .hero-proof {
    justify-content: center;
  }

  .hero-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .feature-main,
  .feature-repeat,
  .feature-organize,
  .feature-mobile {
    grid-column: span 12;
  }

  .feature-main {
    min-height: auto;
    grid-template-columns: 1fr 1fr;
  }

  .feature-mobile {
    grid-template-columns: 1fr 1fr;
  }

  .review-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .review-card,
  .review-card:nth-child(1),
  .review-card:nth-child(3),
  .featured-review {
    min-height: 245px;
    transform: none;
  }

  .progress-layout {
    grid-template-columns: 1fr;
  }

  .progress-copy-block {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .wrap,
  .demo .wrap {
    width: calc(100% - 32px);
  }

  .section {
    padding-block: 72px;
  }

  .nav-inner {
    gap: 12px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-cta {
    display: none;
  }

  .nav-login {
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 12px;
  }

  .nav-logo {
    width: 108px;
    height: 46px;
  }

  .hero {
    padding-block: 35px 25px;
  }

  .hero-grid {
    gap: 42px;
  }

  .hero-copy {
    text-align: right;
  }

  .eyebrow {
    margin-inline: 0;
    font-size: 10px;
  }

  .hero h1 {
    margin-block: 19px;
    font-size: clamp(39px, calc(12vw - 4px), 50px);
    line-height: 1.4;
    text-align: center;
  }

  .hero-highlight {
    margin-top: 5px;
    white-space: normal;
  }

  .hero-highlight::after {
    height: 12px;
  }

  .hero-text {
    font-size: 15px;
    line-height: 2;
  }

  .hero-buttons {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    justify-content: flex-start;
    gap: 11px 0;
  }

  .hero-proof div {
    width: 50%;
  }

  .hero-visual {
    min-height: 460px;
  }

  .app-shell {
    border-radius: 24px;
    transform: none;
  }

  .app-topbar {
    min-height: 54px;
  }

  .app-body {
    padding: 16px;
  }

  .preview-question {
    padding: 17px;
  }

  .preview-question h2 {
    font-size: 12px;
  }

  .preview-options div {
    min-height: 43px;
    font-size: 10px;
  }

  .orbit-chip {
    width: 48px;
    height: 48px;
    border-width: 5px;
    border-radius: 15px;
    font-size: 19px;
  }

  .orbit-math {
    right: -3px;
    top: -18px;
  }

  .orbit-spark {
    left: 2px;
    top: -10px;
  }

  .orbit-bio {
    display: none;
  }

  .floating-score {
    right: -4px;
    bottom: -11px;
  }

  .floating-streak {
    left: -4px;
    top: 93px;
  }

  .floating-score,
  .floating-streak {
    min-width: 133px;
    padding: 9px 10px;
  }

  .subject-strip {
    margin-top: 50px;
    padding: 17px;
    display: grid;
  }

  .section-heading,
  .reviews-heading {
    text-align: right;
  }

  .section-heading h2,
  .reviews-heading h2,
  .progress-copy-block h2 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.7;
    text-align: center;
  }

  .section-heading p {
    margin-inline: 0;
    font-size: 15px;
  }

  .practice-window {
    padding: 13px;
    border-radius: 23px;
  }

  .practice-window::before {
    display: none;
  }

  .question-card,
  .explanation-card {
    padding: 17px;
    border-radius: 18px;
  }

  .explanation-card {
    max-height: none;
  }

  .question-card h3 {
    min-height: auto;
    font-size: 15px;
  }

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

  .feature-main,
  .feature-mobile {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 25px;
  }

  .feature-main {
    min-height: 590px;
  }

  .feature-repeat,
  .feature-organize {
    min-height: 300px;
  }

  .repeat-badge {
    width: 105px;
    height: 69px;
  }

  .reviews-heading {
    display: grid;
  }

  .rating-summary {
    width: max-content;
    min-width: 145px;
    text-align: right;
  }

  .review-card {
    padding: 24px;
  }

  .dashboard-card {
    padding: 20px 15px;
    border-radius: 23px;
    transform: none;
  }

  .dashboard-score {
    grid-template-columns: 105px 1fr;
    gap: 12px;
  }

  .score-ring {
    width: 105px;
    height: 105px;
  }

  .score-ring strong {
    font-size: 21px;
  }

  .weekly-bars {
    height: 110px;
    padding-inline: 9px;
    gap: 6px;
  }

  .weekly-bars i {
    width: 12px;
  }

  .cta-card {
    width: calc(100% - 24px);
    padding-inline: 20px;
    border-radius: 27px;
  }

  .cta-card h2 {
    font-size: 36px;
  }

  .cta-card p {
    font-size: 14px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .copyright {
    display: grid;
  }

  .footer-logo {
    width: 140px;
    height: 60px;
    margin: auto;
  }

  .copyright {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    width: calc(100% - 24px);
    gap: 8px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-login {
    min-height: 38px;
    padding-inline: 10px;
    font-size: 11px;
  }

  .nav-logo {
    width: 92px;
    height: 40px;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .menu-toggle span {
    left: 10px;
  }
}

/* @media (max-width: 390px) {
  .hero h1 {
    font-size: 38px;
  }

  .hero-proof div {
    width: 100%;
  }

  .hero-visual {
    min-height: 440px;
  }

  .floating-streak {
    display: none;
  }

  .preview-options {
    grid-template-columns: 1fr;
  }

  .preview-options div:nth-child(n + 3) {
    display: none;
  }

  .dashboard-score {
    grid-template-columns: 1fr;
  }

  .score-ring {
    margin-inline: auto;
  }
} */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
