:root {
  --rm-bg: #ffffff;
  --rm-surface: #f8fafc;
  --rm-ink: #0f172a;
  --rm-muted: #475569;
  --rm-line: #e2e8f0;
  --rm-teal: #032d30;
  --rm-teal-deep: #022427;
  --rm-coral: #ff764c;
  --rm-coral-border: #d95431;
  --rm-coral-shadow: #df5634;
  --rm-coral-ink: #3d1609;
  --rm-cyan: #38e8f5;
  --rm-yellow: #ffca38;
  --rm-lavender: #a499ff;
  --rm-lime: #91eb4c;
  --rm-pink: #ff709c;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--rm-bg);
  color: var(--rm-ink);
  font-family: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.rm-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.rm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rm-line);
}

.rm-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.rm-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: var(--rm-teal);
}

.rm-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.rm-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rm-nav__link {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--rm-muted);
  padding: 6px 12px;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease;
}

.rm-nav__link:hover,
.rm-nav__link[aria-current="page"] {
  background: #f1f5f9;
  color: var(--rm-teal);
}

/* Buttons */
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rm-btn--coral {
  background: var(--rm-coral);
  color: var(--rm-coral-ink);
  border: 1px solid var(--rm-coral-border);
  box-shadow: -4px 4px var(--rm-coral-shadow), -8px 9px rgba(0, 0, 0, 0.08);
}

.rm-btn--coral:hover {
  transform: translateY(-2px);
  box-shadow: -5px 6px var(--rm-coral-shadow), -9px 12px rgba(0, 0, 0, 0.12);
}

.rm-btn--teal {
  background: var(--rm-teal);
  color: #ffffff;
  border: 1px solid var(--rm-teal-deep);
  box-shadow: 0 8px 20px rgba(3, 45, 48, 0.16);
}

.rm-btn--teal:hover {
  background: var(--rm-teal-deep);
  transform: translateY(-2px);
}

.rm-btn--outline {
  background: #ffffff;
  color: var(--rm-teal);
  border: 1px solid var(--rm-line);
}

.rm-btn--outline:hover {
  background: var(--rm-surface);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Selector Hero */
.rm-selector-hero {
  padding: 56px 0 72px;
  background: radial-gradient(circle at 18% 12%, rgba(255, 118, 76, 0.09), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(56, 232, 245, 0.12), transparent 38%),
    var(--rm-bg);
}

.rm-selector-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.rm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff3ee;
  border: 1px solid #ffd5c7;
  color: #9a3412;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.rm-h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--rm-teal);
}

.rm-lead {
  margin: 16px auto 0;
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
  color: var(--rm-muted);
  max-width: 660px;
}

/* Two Audience Cards */
.rm-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.rm-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 32px;
  border-radius: 26px;
  border: 1px solid var(--rm-line);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: rm-fade-up 0.55s ease both;
}

.rm-choice-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 56px rgba(3, 45, 48, 0.12);
  border-color: #cbd5e1;
}

.rm-choice-card--professor {
  background: linear-gradient(180deg, #fffaf7 0%, #ffffff 55%);
}

.rm-choice-card--school {
  background: linear-gradient(180deg, #f3fbfb 0%, #ffffff 55%);
}

.rm-choice-card__badge {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rm-choice-card__badge--b2c {
  background: #ffe4da;
  color: #7c2d12;
}

.rm-choice-card__badge--b2b {
  background: #d9f6f8;
  color: #032d30;
}

.rm-choice-card__title {
  margin: 12px 0 8px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rm-teal);
}

.rm-choice-card__desc {
  margin: 0;
  font-size: 1rem;
  color: var(--rm-muted);
}

.rm-choice-card__art {
  width: 100%;
  height: 180px;
  border-radius: 18px;
  background: var(--rm-surface);
  border: 1px solid var(--rm-line);
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: hidden;
}

.rm-choice-card__art img {
  max-width: 100%;
  max-height: 146px;
  object-fit: contain;
}

/* Teachers Landing Sections */
.rm-hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.rm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.rm-hero-visual {
  background: linear-gradient(135deg, #032d30 0%, #06454a 100%);
  border-radius: 28px;
  padding: 28px;
  color: #ffffff;
  box-shadow: 0 24px 50px rgba(3, 45, 48, 0.22);
}

.rm-hero-visual__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.rm-chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.rm-section {
  padding: 68px 0;
}

.rm-section--alt {
  background: var(--rm-surface);
  border-top: 1px solid var(--rm-line);
  border-bottom: 1px solid var(--rm-line);
}

.rm-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--rm-teal);
}

.rm-section-sub {
  margin: 0 0 34px;
  font-size: 1.05rem;
  color: var(--rm-muted);
  max-width: 720px;
}

.rm-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.rm-feature-card {
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rm-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.rm-feature-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.rm-feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #1e293b;
}

.rm-plan-box {
  background: var(--rm-teal);
  color: #ffffff;
  border-radius: 28px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.rm-plan-status {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 24px;
}

.rm-notice-list {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #e2e8f0;
  font-size: 0.94rem;
  display: grid;
  gap: 8px;
}

.rm-footer {
  background: #022427;
  color: #cbd5e1;
  padding: 36px 0;
  font-size: 14px;
}

.rm-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rm-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.rm-footer__links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 600;
}

.rm-footer__links a:hover {
  color: var(--rm-cyan);
}

@keyframes rm-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .rm-choice-grid,
  .rm-hero-split,
  .rm-plan-box {
    grid-template-columns: 1fr;
  }
  .rm-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rm-mosaic {
    grid-template-columns: 1fr;
  }
  .rm-choice-card,
  .rm-plan-box {
    padding: 22px;
  }
}

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