:root {
  /* Înălțime bară fixă: folosită la body padding și panouri stânga (login / register) */
  --nav-height: 96px;
  --navy: #1b4f8a;
  --gold: #f5a623;
  --sky: #b8dff5;
  /* nuanță albastru deschis (fără violet / lavandă) */
  --sky-deep: #8ec4e8;
  --sky-pale: #e3f3fc;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --error: #d63939;
  --success: #1e9e5a;
  --shadow: 0 20px 55px rgba(27, 79, 138, 0.18);
  --radius-xl: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sky);
}

body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

/* Tranziții între pagini: nu opacizăm tot body (loader-ul rămâne la peste) */
body.page-exit > *:not(.page-loader) {
  opacity: 0;
  transition: opacity 0.4s ease;
}

body.page-enter > *:not(.page-loader) {
  opacity: 0;
}

body.page-enter.page-enter-active > *:not(.page-loader) {
  opacity: 1;
  transition: opacity 0.5s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.page-exit > *:not(.page-loader),
  body.page-enter.page-enter-active > *:not(.page-loader) {
    transition-duration: 0.2s;
  }
}

/* Ecran de încărcare la tranziții între pagini (app.js) */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(227, 243, 252, 0.97) 0%,
    rgba(184, 223, 245, 0.95) 45%,
    rgba(184, 223, 245, 0.98) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 80px rgba(27, 79, 138, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s ease, visibility 0.38s ease;
}
.page-loader.page-loader--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
html.artimedi-loader-on {
  overflow: hidden;
}
.page-loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 2rem;
  animation: pageLoaderBreathe 2.2s ease-in-out infinite;
}
.page-loader__mascot {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(27, 79, 138, 0.2));
}
.page-loader__ring {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(27, 79, 138, 0.15);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: pageLoaderSpin 0.8s linear infinite;
}
.page-loader__text {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.02em;
}
@keyframes pageLoaderSpin {
  to { transform: rotate(360deg); }
}
@keyframes pageLoaderBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.96; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader { transition: opacity 0.2s ease, visibility 0.2s ease; }
  .page-loader__inner { animation: none; }
  .page-loader__ring { animation: none; border-color: var(--navy); opacity: 0.4; }
}

h1, h2, h3, p {
  margin: 0;
}

.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.gradient-layer {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    135deg,
    var(--sky-pale) 0%,
    var(--sky) 38%,
    var(--sky-deep) 62%,
    var(--sky) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 18s ease-in-out infinite;
}

.shape {
  position: absolute;
  opacity: 0.28;
  animation: driftUp linear infinite;
}

.circle { border-radius: 50%; background: rgba(27, 79, 138, 0.35); }
.triangle {
  width: 0;
  height: 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-bottom: 30px solid rgba(245, 166, 35, 0.5);
}
/* Must be .shape.star — bare .star would break elev rating stars (text ★) on Progres, etc. */
.shape.star {
  width: 30px;
  height: 30px;
  background: rgba(27, 79, 138, 0.38);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 71%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
}

.c1 { width: 70px; height: 70px; left: 8%; bottom: -100px; animation-duration: 22s; }
.c2 { width: 50px; height: 50px; left: 80%; bottom: -80px; animation-duration: 19s; animation-delay: 3s; }
.t1 { left: 64%; bottom: -60px; animation-duration: 21s; }
.t2 { left: 26%; bottom: -60px; animation-duration: 24s; animation-delay: 5s; }
.s1 { left: 12%; bottom: -80px; animation-duration: 17s; }
.s2 { left: 50%; bottom: -70px; animation-duration: 20s; }
.s3 { left: 88%; bottom: -90px; animation-duration: 25s; animation-delay: 4s; }

.auth-layout,
.wizard-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height));
  gap: 2rem;
  padding: 1.5rem;
}

.login-split-layout {
  min-height: calc(100vh - var(--nav-height));
  padding: 0;
  gap: 0;
  align-items: stretch;
}

.login-left-panel {
  width: 55%;
  min-height: calc(100vh - var(--nav-height));
  position: sticky;
  top: var(--nav-height);
  overflow: hidden;
  background: linear-gradient(145deg, #1b4f8a 0%, #2471c8 60%, #1a3d6e 100%);
}

.login-dot-grid,
.register-dot-grid {
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.login-left-shape,
.register-left-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.shape-top { width: 180px; height: 180px; background: rgba(245, 166, 35, 0.18); top: -40px; right: -60px; }
.shape-bottom { width: 240px; height: 240px; background: rgba(255, 255, 255, 0.07); bottom: -80px; left: -80px; }

.login-left-content {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  padding: 2rem;
}

.login-left-content img {
  width: 220px;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.3));
  animation: mascotFloat 3.5s ease-in-out infinite;
}

.login-left-content h2 {
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  margin: 0;
}

.login-left-content p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 16px;
  margin-top: 8px;
}

.feature-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-pills span {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.login-right-panel {
  width: 45%;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: #f7f9fc;
}

.register-split-layout {
  min-height: calc(100vh - var(--nav-height));
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.register-left-panel {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  z-index: 2;
  width: 40%;
  height: calc(100vh - var(--nav-height));
  overflow: hidden;
  background: linear-gradient(145deg, #1b4f8a 0%, #2471c8 60%, #1a3d6e 100%);
}

.register-left-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 18px;
}

#registerPanelMascot {
  width: 200px;
  animation: mascotFloat 3.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.25));
  transition: width 0.3s ease, transform 0.3s ease;
}

.left-panel-text h2 {
  color: #fff;
  font-size: 28px;
  margin: 0;
}

.left-panel-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  margin-top: 8px;
}

.register-right-panel {
  margin-left: 40%;
  width: 60%;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f9fc;
  padding: 40px 32px;
}

.auth-card,
.wizard-card {
  width: min(100%, 420px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem 1.6rem;
  backdrop-filter: blur(4px);
}

.wizard-card {
  width: min(100%, 760px);
}

/* Formular părinte: card și câmpuri mai înguste */
.wizard-card:has(.step[data-step="parent-form"].active) {
  width: 100%;
  max-width: 400px;
  padding: 1.4rem 1.25rem 1.5rem;
}

.wizard-card:has(.step[data-step="parent-form"].active) h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.wizard-card:has(.step[data-step="parent-form"].active) #parentRegisterForm {
  max-width: 100%;
  gap: 0.35rem;
}

.wizard-card:has(.step[data-step="parent-form"].active) #parentRegisterForm input {
  padding: 0.65rem 0.8rem;
  font-size: 15px;
}

.logo-wordmark {
  display: block;
  width: 200px;
  max-width: 100%;
  margin: 0 auto 1rem;
}

.logo-wordmark.small {
  width: 150px;
  margin: 0 0 1.5rem;
}

h1 { font-size: 1.85rem; text-align: center; margin-bottom: 1.2rem; font-weight: 900; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; font-weight: 800; text-align: center; }

.user-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.role-btn,
.choice-card {
  border: 2px solid rgba(27, 79, 138, 0.35);
  border-radius: 16px;
  padding: 0.95rem;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.choice-card.trial-subject {
  text-align: center;
  min-height: 3.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-sizing: border-box;
}

.role-btn.active,
.choice-card:hover,
.choice-card.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.mini-icon {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--gold);
}
.mini-icon-shield {
  clip-path: polygon(50% 0, 90% 20%, 90% 55%, 50% 100%, 10% 55%, 10% 20%);
}
.mini-icon-book {
  clip-path: polygon(0 10%, 48% 0, 100% 10%, 100% 90%, 52% 100%, 0 90%);
}

.auth-form {
  display: grid;
  gap: 0.4rem;
}

.auth-form.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-12px);
}

.auth-form.revealed {
  max-height: 540px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

label { font-weight: 700; margin-top: 0.4rem; }

input {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  border: 2px solid #d3ddea;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(27, 79, 138, 0.16);
}

.btn {
  border: none;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  padding: 0.82rem 1.2rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold);
  color: #1f2d3f;
}

.btn-ghost {
  background: #eef4fb;
  color: var(--navy);
}

.btn-signup {
  background: var(--gold);
  color: var(--navy);
  border-radius: 50px;
}
.btn-signup:hover { background: #e8971a; }

.auth-link {
  margin-top: 0.7rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
}

.welcome-subtitle {
  text-align: center;
  font-weight: 700;
  margin: -0.4rem 0 0.8rem;
}

.register-cta {
  width: 100%;
  margin-top: 0.7rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-mascot img {
  width: clamp(240px, 26vw, 340px);
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 14px 28px rgba(27, 79, 138, 0.22));
}

.login-mascot img {
  width: clamp(340px, 34vw, 500px);
}

.field-error {
  min-height: 18px;
  color: var(--error);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-note {
  color: rgba(27, 79, 138, 0.9);
  font-size: 0.85rem;
}

.wizard-layout .floating-mascot {
  align-self: end;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.progress-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(27, 79, 138, 0.25);
}
.progress-dots span.active { background: var(--gold); transform: scale(1.15); }

.wizard-card .step {
  display: none;
  will-change: opacity;
}
.wizard-card .step.active {
  display: block;
}
.wizard-card .step.active.step-anim {
  animation: registerStepEnter 0.55s cubic-bezier(0.22, 0.8, 0.24, 1) both;
}
@keyframes registerStepEnter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.quiz-focus-card {
  width: min(100%, 520px);
  margin: 0 auto;
  background: #fff;
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: 0 18px 44px rgba(27, 79, 138, 0.14);
}

.nota-image {
  display: block;
  height: 90px;
  width: auto;
  max-width: 100%;
  margin: 0 auto 24px;
  object-fit: contain;
}

.trial-reaction-image {
  height: 82px;
  margin-bottom: 14px;
}

.quiz-focus-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1b4f8a;
  text-align: center;
  line-height: 1.4;
  margin-bottom: 18px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: minmax(4.25rem, auto);
  gap: 14px;
  align-items: stretch;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-option-btn {
  background: #fff;
  border: 2px solid #b8dff5;
  border-radius: 16px;
  padding: 16px 12px;
  font-size: 15px;
  font-weight: 600;
  color: #1b4f8a;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  min-height: 4.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.35;
  word-break: break-word;
  hyphens: auto;
}

.quiz-option-btn:hover {
  border-color: #f5a623;
  background: #fff8ec;
}

.quiz-option-btn.selected {
  background: #1b4f8a;
  color: #fff;
  border-color: #1b4f8a;
}

.quiz-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.quiz-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(27, 79, 138, 0.5);
}

.quiz-dots span.active {
  background: var(--navy);
  border-color: var(--navy);
}

.hero-mascot-wrap { position: relative; text-align: center; margin-bottom: 1rem; }
.hero-mascot { width: 160px; animation: bob 3s ease-in-out infinite; }
.speech-bubble {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--navy);
  border-radius: 20px;
  padding: 0.45rem 0.8rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
}

/* role step: doar titlu centrat, fără mascotă mică lângă text */

.choice-grid { display: grid; gap: 0.8rem; }
.two-cols { grid-template-columns: repeat(2, 1fr); }

.big-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 12px;
}
.icon-backpack { clip-path: polygon(12% 24%, 30% 8%, 70% 8%, 88% 24%, 88% 90%, 12% 90%); }
.icon-family { clip-path: polygon(50% 8%, 92% 42%, 82% 42%, 82% 90%, 18% 90%, 18% 42%, 8% 42%); }

.mascot-reaction {
  width: 120px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  padding: 6px;
  transition: box-shadow 0.25s ease, border 0.25s ease;
}
.mascot-reaction img { width: 100%; }
.mascot-reaction.happy { box-shadow: 0 0 0 4px rgba(30, 158, 90, 0.35); }
.mascot-reaction.surprised { box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.45); }
.mascot-reaction.thinking { box-shadow: 0 0 0 4px rgba(27, 79, 138, 0.35); }

.lesson-progress {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5edf9;
  overflow: hidden;
  margin-bottom: 1rem;
}
.lesson-progress > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), #ffcf75);
  transition: width 0.35s ease;
}

.trial-question-wrap #trialQuestion {
  text-align: center;
  margin-bottom: 0.75rem;
  font-weight: 700;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}

.trial-choice-list {
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
}

.trial-answer-btn {
  width: 100%;
  min-height: 3.1rem;
  box-sizing: border-box;
  line-height: 1.4;
  white-space: normal;
  text-align: center;
  word-break: break-word;
  padding-left: 1rem;
  padding-right: 1rem;
  flex-wrap: wrap;
  align-content: center;
  align-items: center;
  justify-content: center;
}
.choice-card.trial-answer-btn:hover,
.choice-card.trial-answer-btn:focus-visible {
  transform: none;
  box-shadow: 0 6px 20px rgba(27, 79, 138, 0.15);
}
.choice-card.trial-answer-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.trial-question-wrap .trial-feedback {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0.6rem 0 0;
  font-weight: 900;
  flex-shrink: 0;
}
.trial-feedback.ok { color: var(--success); }
.trial-feedback.bad { color: var(--error); }

.inline-buttons {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.checkmark-wrap { display: flex; justify-content: center; margin-bottom: 0.8rem; }
.checkmark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 5px solid var(--gold);
  position: relative;
  animation: popIn 0.4s ease;
}
.checkmark::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 22px;
  height: 36px;
  border-right: 6px solid var(--gold);
  border-bottom: 6px solid var(--gold);
  transform: rotate(38deg);
}

.strength-meter {
  height: 8px;
  border-radius: 999px;
  background: #e5edf9;
  overflow: hidden;
  margin: 0.1rem 0 0.15rem;
}
.strength-meter span {
  display: block;
  width: 8%;
  height: 100%;
  background: #eb5a57;
  transition: width 0.2s ease, background 0.2s ease;
}

.full { width: 100%; margin-top: 0.5rem; }

.mascot-celebration { text-align: center; }
.mascot-celebration img {
  width: 160px;
  animation: bob 2.2s ease-in-out infinite;
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1rem;
  padding: 1rem;
}

.sidebar {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  margin-bottom: 0.45rem;
  border-radius: 12px;
  text-decoration: none;
  color: #6d8098;
  background: #f2f6fb;
}
.nav-item.disabled { pointer-events: none; opacity: 0.85; }
.dot-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9eafc4;
}

.dashboard-main {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.lock-card {
  background: linear-gradient(145deg, #fff, #f4f7fc);
  border-radius: 20px;
  padding: 1.4rem;
  text-align: center;
  border: 1px solid #dbe7f7;
}
.lock-card img { width: 120px; animation: bob 2.8s ease-in-out infinite; }
.lock-card p { margin: 0.6rem auto 1rem; max-width: 700px; font-size: 1.05rem; }

.preview-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.preview-card {
  background: var(--off-white);
  border-radius: 14px;
  padding: 1rem;
  min-height: 130px;
  position: relative;
}

.preview-card.locked {
  filter: blur(1.6px) grayscale(0.2);
  overflow: hidden;
}
.preview-card.locked::after {
  content: "";
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--gold);
  top: 10px;
  right: 10px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.1);
}
.preview-card.locked::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 12px;
  border: 4px solid var(--gold);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  top: -2px;
  right: 21px;
  z-index: 1;
}

@media (max-width: 980px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .desktop-only { display: none; }
  .two-cols { grid-template-columns: 1fr; }
  .auth-card, .wizard-card { padding: 1.35rem 1rem; }
  .quiz-focus-card { padding: 26px 18px; }
  .quiz-options-grid { grid-template-columns: 1fr; }
}

.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 24px rgba(27, 79, 138, 0.08);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-navbar.nav-hidden { transform: translateY(-100%); }

.nav-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.nav-brand:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 4px 12px rgba(27, 79, 138, 0.2));
}

.nav-brand-mascot {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-brand-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #1b4f8a;
  line-height: 1.1;
}

/* Back-compat dacă rămâne doar img în brand */
.nav-brand > img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-center {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.nav-link {
  font-size: 1.08rem;
  font-weight: 700;
  color: #1b4f8a;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.2rem;
  width: auto;
  height: 0;
  border-radius: 2px;
  background: #f5a623;
  transition: height 0.22s ease, opacity 0.22s ease;
  opacity: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #134070;
  background: rgba(27, 79, 138, 0.09);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 79, 138, 0.12);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after {
  height: 3px;
  opacity: 1;
}
.nav-link:hover::after { height: 3px; }
.nav-link.active { color: #134070; }

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-btn {
  text-decoration: none;
  font-weight: 800;
  padding: 0.7rem 1.35rem;
  border-radius: 50px;
  font-size: 1.05rem;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-btn-login {
  border: 2.5px solid #1b4f8a;
  color: #1b4f8a;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(27, 79, 138, 0.15);
}
.nav-btn-login:hover,
.nav-btn-login:focus-visible {
  background: #1b4f8a;
  color: #fff;
  box-shadow: 0 6px 20px rgba(27, 79, 138, 0.35);
  transform: translateY(-2px);
}

.nav-btn-signup {
  background: #f5a623;
  color: #1b3a5c;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.45);
}
.nav-btn-signup:hover,
.nav-btn-signup:focus-visible {
  background: #e8971a;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.55);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: rgba(255, 255, 255, 0.7);
  border: 2px solid rgba(27, 79, 138, 0.2);
  border-radius: 12px;
  width: 48px;
  height: 48px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #1b4f8a;
  margin: 5px auto;
  border-radius: 99px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.hamburger:hover,
.hamburger:focus-visible {
  background: #fff;
  box-shadow: 0 6px 18px rgba(27, 79, 138, 0.18);
  transform: scale(1.04);
}

.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  display: grid;
  gap: 0.7rem;
  transition: max-height 0.28s ease, padding 0.28s ease;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 8px 32px rgba(27, 79, 138, 0.15);
}

.mobile-menu.open {
  max-height: min(90vh, 720px);
  padding: 20px 24px 28px;
}

.mobile-link {
  color: #1b4f8a;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.85rem 0.75rem;
  border-radius: 12px;
  border-bottom: none;
  margin-bottom: 0.25rem;
  display: block;
  width: 100%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.mobile-link:hover,
.mobile-link:focus-visible {
  background: rgba(27, 79, 138, 0.08);
  color: #134070;
  transform: translateX(4px);
}
.mobile-link--logout {
  margin-top: 0.5rem;
  color: #a33;
  font-weight: 800;
}
.mobile-link--logout:hover {
  background: rgba(214, 57, 57, 0.08);
  color: #8a2020;
}

/* Clopoțel + avatar în navbar — cont elev sau părinte (același marcaj .nav-elev-student) */
.nav-elev-student {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav-bell-wrap,
.nav-avatar-wrap {
  position: relative;
}
.nav-icon-btn {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  border-radius: 14px;
  border: 2px solid rgba(27, 79, 138, 0.22);
  background: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.nav-icon-btn:hover,
.nav-icon-btn:focus-visible {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 22px rgba(27, 79, 138, 0.2);
  background: #fff;
}
.nav-bell-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.nav-bell-graphics {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}
.nav-bell-graphic {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: #1b4f8a;
  transition: opacity 0.22s ease;
  pointer-events: none;
}
.nav-bell-graphic--outline {
  opacity: 1;
  z-index: 1;
}
.nav-bell-graphic--filled {
  opacity: 0;
  z-index: 2;
}
.nav-bell--has-unread .nav-bell-graphic--filled {
  opacity: 1;
  color: #134070;
}
.nav-bell--has-unread .nav-bell-graphic--outline {
  opacity: 0.15;
}
.nav-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 5px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.35rem;
  text-align: center;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
  border: 2px solid #fff;
  box-sizing: border-box;
  z-index: 3;
  pointer-events: none;
}
.nav-avatar {
  width: 48px;
  height: 48px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav-avatar:hover,
.nav-avatar:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(27, 79, 138, 0.25);
}
.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
  padding: 0.65rem;
  z-index: 200;
  border: 1px solid rgba(27, 79, 138, 0.12);
  max-height: min(320px, 70vh);
  overflow-y: auto;
}
.nav-dropdown--notifs {
  min-width: 280px;
  max-width: min(360px, 96vw);
}
.notif-dropdown__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: -0.1rem 0 0.5rem 0;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(27, 79, 138, 0.12);
}
.notif-dropdown__title {
  font-weight: 800;
  font-size: 0.95rem;
  color: #1b4f8a;
  letter-spacing: -0.02em;
}
.notif-mark-all {
  flex-shrink: 0;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  color: #1b4f8a;
  background: rgba(27, 79, 138, 0.08);
  border: 1px solid rgba(27, 79, 138, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.notif-mark-all:hover,
.notif-mark-all:focus-visible {
  background: rgba(27, 79, 138, 0.14);
  transform: translateY(-1px);
}
.nav-drop-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  color: #1b4f8a;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nav-drop-link:hover {
  background: #f0f6fc;
}
.notif-line {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}
.notif-line__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.notif-line__text strong {
  line-height: 1.3;
}
.notif-line__body {
  display: block;
  line-height: 1.4;
  color: #3d5a7a;
  font-size: 0.88em;
  margin: 0;
  font-weight: 600;
}
.notif-mark-one {
  align-self: flex-end;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1b4f8a;
  background: rgba(27, 79, 138, 0.09);
  border: 1px solid rgba(27, 79, 138, 0.18);
  border-radius: 8px;
  padding: 0.38rem 0.65rem;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.notif-mark-one:hover,
.notif-mark-one:focus-visible {
  background: rgba(27, 79, 138, 0.16);
  box-shadow: 0 2px 8px rgba(27, 79, 138, 0.12);
}
.notif-line--unread {
  padding: 0.45rem 0.5rem 0.45rem 0.65rem;
  margin-bottom: 0.4rem;
  margin-left: -0.15rem;
  border-radius: 10px;
  border-left: 4px solid #1b4f8a;
  background: rgba(27, 79, 138, 0.07);
}
.notif-empty {
  color: #64748b;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}

.site-footer {
  background: #1b4f8a;
  color: #fff;
  padding: 28px 4% 16px;
  position: relative;
  /* Above elev Progres fixed gradient / main layers so footer + mascot stay visible */
  z-index: 10;
}

/* Register: panoul stâng fix (40%) acoperă primii px ai footer-ului; mutăm conținutul în zona dreaptă */
@media (min-width: 900px) {
  body[data-page="register"] .site-footer {
    box-sizing: border-box;
    padding-left: calc(40% + 1.5rem);
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-mascot {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin: 0;
}

.footer-tagline { margin: 4px 0 10px; }

.social-row {
  display: flex;
  gap: 12px;
}

.social-row a svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  transition: 0.2s ease;
}

.social-row a:hover svg {
  fill: #f5a623;
  transform: scale(1.15);
}

.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 8px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  transition: color 0.2s ease;
}
.site-footer a:hover { color: #f5a623; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 18px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
}
.footer-bottom span:first-child { color: rgba(255, 255, 255, 0.5); }
.footer-bottom span:last-child { color: rgba(255, 255, 255, 0.4); font-style: italic; }

.empty-page-main {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.empty-page-card {
  width: min(92vw, 760px);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
}

.empty-page-card p {
  margin: 0.6rem 0 1rem;
}

.empty-page-card img {
  height: 160px;
  animation: bob 3s ease-in-out infinite;
}

@media (max-width: 767px) {
  .desktop-nav { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 768px) {
  .mobile-menu .nav-btn-login,
  .mobile-menu .nav-btn-signup {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
    border-radius: 16px;
    margin-bottom: 12px;
    backdrop-filter: none;
    min-height: 56px;
  }

  .mobile-menu .nav-btn-login {
    border: 3px solid #1b4f8a;
    color: #1b4f8a;
    background: #fff;
    box-shadow: 0 4px 12px rgba(27, 79, 138, 0.12);
  }

  .mobile-menu .nav-btn-signup {
    border: none;
    color: #1b4f8a;
    background: #f5a623;
    box-shadow: 0 6px 18px rgba(245, 166, 35, 0.5);
  }
}

@media (max-width: 899px) {
  .login-left-panel, .register-left-panel { display: none !important; }
  .login-right-panel, .register-right-panel { width: 100% !important; margin-left: 0 !important; background: transparent !important; }
  .login-split-layout, .register-split-layout { display: block; }
}

@keyframes mascotFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}

.left-panel-text { transition: opacity 0.32s ease, transform 0.32s ease; }
.left-panel-text.changing { opacity: 0; transform: translateY(6px); }

.nav-btn-login, .nav-btn-signup { cursor: pointer; font-family: inherit; }

.form-constrained {
  max-width: 480px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.form-constrained input {
  max-width: 100%;
}

@media (max-width: 520px) {
  .form-constrained {
    max-width: 100%;
  }
}

.pricing-info-card {
  margin: 1.25rem auto 0;
  max-width: 480px;
  width: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #f0f6fc);
  border: 1px solid rgba(27, 79, 138, 0.12);
  box-shadow: 0 8px 24px rgba(27, 79, 138, 0.08);
  text-align: left;
  box-sizing: border-box;
}
.pricing-info-card--fixed {
  min-height: 248px;
  contain: layout style;
  transform: translateZ(0);
}
.pricing-info-card--fixed .pricing-info-list {
  min-height: 5.5rem;
}
.success-pricing-parinte[hidden] {
  display: none;
}

.pricing-info-title {
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.pricing-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.65rem;
  font-size: 15px;
  line-height: 1.4;
  color: var(--navy);
}

.pricing-icon {
  display: block;
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 2px solid #1b4f8a;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.35), rgba(27, 79, 138, 0.15));
  margin-top: 2px;
}

.pricing-info-list li:nth-child(2) .pricing-icon {
  height: 22px;
  border-style: solid;
  background: linear-gradient(180deg, rgba(27, 79, 138, 0.12) 0%, rgba(27, 79, 138, 0.12) 40%, rgba(245, 166, 35, 0.25) 40%, rgba(245, 166, 35, 0.25) 100%);
  border-color: #1b4f8a;
}

.pricing-badge {
  display: inline-block;
  background: var(--gold);
  color: #1b3a5c;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

.pricing-info-note {
  margin: 0.85rem 0 0;
  font-size: 13px;
  color: rgba(27, 79, 138, 0.78);
  line-height: 1.45;
}

#postRegisterContinue {
  margin-top: 1.25rem;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes driftUp {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-120vh) rotate(360deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes slideLeft {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0% { transform: scale(0.98); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}

/* —— Marketing & legal pages —— */
.marketing-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

/* Hero */
.mkt-hero {
  padding-top: 0.5rem;
}

.mkt-hero-panel {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 1);
  overflow: hidden;
  position: relative;
}

.mkt-hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(245, 166, 35, 0.12), transparent 65%);
  pointer-events: none;
}

.mkt-hero-copy {
  position: relative;
  z-index: 1;
  text-align: left;
}

.mkt-hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1b3a5c;
  background: rgba(245, 166, 35, 0.35);
  border: 1px solid rgba(245, 166, 35, 0.55);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.mkt-hero-copy h1,
.marketing-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  font-weight: 900;
  margin: 0 0 0.85rem;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.mkt-hero-copy .lead,
.marketing-hero p.lead {
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  line-height: 1.65;
  margin: 0 0 1.35rem;
  color: rgba(27, 79, 138, 0.82);
  max-width: 32rem;
}

.mkt-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.mkt-hero-pills span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(184, 223, 245, 0.55);
  border: 1px solid rgba(27, 79, 138, 0.12);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.marketing-cta-row,
.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.mkt-hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mkt-hero-visual-ring {
  width: min(260px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy) 0%, #2d6cb5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 24px 48px rgba(27, 79, 138, 0.28);
}

.marketing-hero-mascot,
.mkt-hero-mascot {
  width: min(200px, 55vw);
  height: auto;
  animation: bob 3s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.2));
}

.mkt-hero-visual-ring .mkt-hero-mascot {
  width: min(170px, 48vw);
}

/* Section blocks */
.mkt-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mkt-section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.mkt-section-head .mkt-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.mkt-section-head h2,
.marketing-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.mkt-section-head p,
.marketing-section > p.section-intro {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(27, 79, 138, 0.78);
}

.mkt-section-panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 79, 138, 0.07);
}

.marketing-section {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.2rem 1.2rem;
  border: 1px solid rgba(27, 79, 138, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(27, 79, 138, 0.12);
}

.feature-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(27, 79, 138, 0.12), rgba(245, 166, 35, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(27, 79, 138, 0.75);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step-card {
  background: var(--off-white);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.2rem 1.2rem;
  border: 1px solid rgba(27, 79, 138, 0.08);
  text-align: center;
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: #1b3a5c;
  font-weight: 900;
  font-size: 1rem;
  position: static;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.step-card p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(27, 79, 138, 0.72);
}

/* About page */
.mkt-about-intro {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.mkt-about-intro-text h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.mkt-about-intro-text p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(27, 79, 138, 0.82);
  max-width: 36rem;
}

.mkt-about-mascot-wrap {
  flex-shrink: 0;
}

.mkt-about-mascot-wrap img {
  width: 140px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(27, 79, 138, 0.2));
  animation: bob 3s ease-in-out infinite;
}

.mkt-audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.mkt-audience-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 2px solid rgba(27, 79, 138, 0.1);
  background: var(--off-white);
}

.mkt-audience-card--elev {
  border-color: rgba(55, 138, 221, 0.35);
  background: linear-gradient(160deg, rgba(55, 138, 221, 0.08), #fff);
}

.mkt-audience-card--parinte {
  border-color: rgba(245, 166, 35, 0.45);
  background: linear-gradient(160deg, rgba(245, 166, 35, 0.1), #fff);
}

.mkt-audience-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--navy);
}

.mkt-audience-card ul {
  margin: 0;
  padding-left: 1.15rem;
  line-height: 1.65;
  color: rgba(27, 79, 138, 0.8);
  font-size: 0.95rem;
}

.mkt-about-cta {
  text-align: center;
  padding-top: 0.5rem;
}

.mkt-about-cta .btn + .btn {
  margin-left: 0.5rem;
}

.marketing-cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--navy), #2563a8);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  margin-top: 2.5rem;
}

.marketing-cta-band h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.marketing-cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

.marketing-cta-band .btn-primary {
  background: var(--gold);
  color: #1b3a5c;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 0;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(27, 79, 138, 0.1);
  text-align: left;
}

.pricing-card--featured {
  border-color: var(--gold);
  box-shadow: 0 20px 50px rgba(245, 166, 35, 0.25);
}

.pricing-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.pricing-card .price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
  margin: 0.5rem 0;
}

.pricing-card .price-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(27, 79, 138, 0.65);
}

.mkt-faq-more {
  text-align: center;
  margin: 1.25rem 0 0;
  padding-top: 0.25rem;
}

.feature-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.marketing-cta-band .mkt-cta-band-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}

.marketing-cta-band .mkt-cta-band-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.marketing-main--about {
  gap: 2.5rem;
}

.pricing-card ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.6;
  color: rgba(27, 79, 138, 0.85);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  margin-bottom: 0.65rem;
  box-shadow: 0 4px 16px rgba(27, 79, 138, 0.08);
  border: 1px solid rgba(27, 79, 138, 0.08);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.15rem;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 900;
  color: var(--gold);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 1.15rem 1rem;
  margin: 0;
  line-height: 1.55;
  color: rgba(27, 79, 138, 0.82);
  font-size: 0.95rem;
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  color: var(--navy);
}

.legal-doc .legal-updated {
  font-size: 0.85rem;
  color: rgba(27, 79, 138, 0.65);
  margin-bottom: 1.5rem;
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--navy);
}

.legal-doc p,
.legal-doc li {
  line-height: 1.6;
  color: rgba(27, 79, 138, 0.88);
  font-size: 0.95rem;
}

.legal-doc ul {
  padding-left: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info-card,
.contact-form-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: left;
}

.contact-info-card h2,
.contact-form-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.comparison-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.comparison-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(27, 79, 138, 0.1);
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.marketing-page-card {
  width: 100%;
  margin: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.marketing-page-card h1 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

/* Account (elev + parinte shared patterns) */
.account-page-title {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}

.account-card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(27, 79, 138, 0.08);
  margin-bottom: 1.25rem;
  scroll-margin-top: calc(var(--nav-height) + 12px);
}

.account-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
}

.account-detail-grid {
  display: grid;
  gap: 0.65rem;
}

.account-detail-row {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(27, 79, 138, 0.08);
  font-size: 0.95rem;
}

.account-detail-row:last-child {
  border-bottom: none;
}

.account-detail-row dt {
  font-weight: 700;
  color: rgba(27, 79, 138, 0.7);
  margin: 0;
}

.account-detail-row dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
}

.account-form-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(27, 79, 138, 0.1);
}

.account-form-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.account-form-block h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy);
}

.account-form-block label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0.5rem 0 0.25rem;
  color: var(--navy);
}

.account-form-block input,
.account-form-block select,
.account-form-block textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(27, 79, 138, 0.2);
  font-family: inherit;
  font-size: 0.95rem;
}

.account-form-block .field-hint {
  font-size: 0.8rem;
  color: rgba(27, 79, 138, 0.65);
  margin-top: 0.2rem;
}

.account-msg {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  font-weight: 600;
}

.account-msg--ok {
  color: var(--success);
}

.account-msg--err {
  color: var(--error);
}

.account-danger-zone {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(214, 57, 57, 0.4);
}

.account-danger-zone h3 {
  color: var(--error);
}

.btn-danger {
  background: var(--error);
  color: #fff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-danger:hover {
  filter: brightness(1.05);
}

@media (max-width: 900px) {
  .mkt-hero-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mkt-hero-copy {
    text-align: center;
  }
  .mkt-hero-copy .lead,
  .marketing-hero p.lead {
    margin-left: auto;
    margin-right: auto;
  }
  .mkt-hero-pills,
  .mkt-cta-row,
  .marketing-cta-row {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps-row {
    grid-template-columns: 1fr;
  }
  .mkt-about-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .mkt-about-intro-text p {
    margin-left: auto;
    margin-right: auto;
  }
  .mkt-about-mascot-wrap {
    margin: 0 auto;
  }
  .mkt-audience-grid {
    grid-template-columns: 1fr;
  }
  .feature-grid--three {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .marketing-main {
    gap: 2rem;
    padding-bottom: 3rem;
  }
  .account-detail-row {
    grid-template-columns: 1fr;
  }
  .mkt-about-cta .btn {
    display: block;
    width: 100%;
    margin: 0.5rem 0 0 !important;
  }
}
