/* ── Ensinaí · Landing ──────────────────────────────────────
   1. Palette & tokens (CSS custom properties = the color "env vars")
   2. Reset & base
   3. Background decorations
   4. Brand wordmark
   5. Header
   6. Hero
   7. Waitlist form + success
   8. Phone mockup
   9. Sections (how it works / features)
   10. For teachers
   11. Final CTA
   12. Footer
   13. Animations
   14. Responsive
── */

/* ═══ 1. Palette & tokens ═══ */
:root {
  /* Brand · orange (primary #fe7201) */
  --brand: #fe7201;
  --brand-600: #ec6500;
  --brand-700: #cf5600;
  --brand-400: #ff8f3d;
  --brand-300: #ffb073;
  --brand-glow: rgba(254, 114, 1, 0.42);
  --brand-tint: rgba(254, 114, 1, 0.10);
  --brand-tint-2: rgba(254, 114, 1, 0.05);

  /* Ink · dark blue (used in place of black) */
  --ink-900: #0e1830;
  --ink-800: #14223d;
  --ink-700: #233452;
  --ink-500: #47597a;
  --ink-400: #6c7c95;
  --ink-300: #98a4b8;

  /* Paper · proper warm off-white (in place of pure white) */
  --paper: #fbf9f6;
  --paper-2: #f4f0e9;
  --surface: #ffffff;

  /* Lines */
  --line: rgba(20, 34, 61, 0.08);
  --line-strong: rgba(20, 34, 61, 0.14);

  /* Semantic aliases */
  --bg: var(--paper);
  --text: var(--ink-800);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-400);
  --primary: var(--brand);
  --primary-hover: var(--brand-600);

  /* Typography */
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-brand: 'Fredoka', system-ui, sans-serif;

  /* Motion & shape */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-sm: 0.75rem;
  --r-md: 1.1rem;
  --r-lg: 1.5rem;
  --r-pill: 999px;
  --shadow-sm: 0 2px 12px rgba(20, 34, 61, 0.05);
  --shadow-md: 0 12px 40px rgba(20, 34, 61, 0.08);
  --shadow-brand: 0 14px 38px rgba(254, 114, 1, 0.28);
  --maxw: 1180px;
}

/* ═══ 2. Reset & base ═══ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* ═══ 3. Background decorations ═══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

.orb--1 {
  width: 620px;
  height: 620px;
  top: -240px;
  right: -180px;
  background: radial-gradient(circle, var(--brand-glow) 0%, rgba(254, 114, 1, 0.12) 45%, transparent 70%);
  animation: float 20s var(--ease-out) infinite;
}

.orb--2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  left: -160px;
  background: radial-gradient(circle, rgba(254, 114, 1, 0.28) 0%, rgba(254, 114, 1, 0.08) 50%, transparent 72%);
  animation: float 16s var(--ease-out) infinite reverse;
}

/* ═══ 4. Brand wordmark ═══ */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease-out);
}

.brand:hover {
  opacity: 0.88;
}

.brand__logo {
  height: 32px;
  width: auto;
}

.brand__logo--sm {
  height: 24px;
}

.brand__text-logo {
  height: 26px;
  width: auto;
}

.brand__text-logo--sm {
  height: 16px;
}

/* ═══ 5. Header ═══ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.5rem;
  background: rgba(251, 249, 246, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header__link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.header__link:hover {
  color: var(--brand);
}

.header__cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-spring);
}

.header__cta:hover {
  background: var(--brand-600);
  transform: translateY(-1px);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-out);
}

.header__burger:hover {
  background: var(--paper-2);
}

.header__burger span {
  display: block;
  height: 1.5px;
  background: var(--ink-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.header__mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1rem;
  border-top: 1px solid var(--line);
  gap: 0.15rem;
}

.header__mobile-menu.is-open {
  display: flex;
}

.mobile-menu__link {
  display: block;
  padding: 0.75rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.4rem;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.mobile-menu__link:hover {
  color: var(--ink-800);
  background: var(--paper-2);
}

.mobile-menu__link--cta {
  margin-top: 0.4rem;
  font-weight: 600;
  color: var(--brand);
}

.mobile-menu__link--cta:hover {
  background: var(--brand-tint);
  color: var(--brand-600);
}

/* ═══ 6. Hero ═══ */
.main {
  position: relative;
  z-index: 1;
}

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-500);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
  animation: fadeUp 0.6s var(--ease-out) both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.045em;
  color: var(--ink-900);
  text-wrap: balance;
  margin-bottom: 1.25rem;
  animation: fadeUp 0.6s var(--ease-out) 0.05s both;
}

.hero__title-accent {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-400) 55%, var(--brand-300) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

.hero__subtitle strong {
  color: var(--ink-800);
  font-weight: 600;
}

/* ═══ 7. Waitlist form + success ═══ */
.waitlist__label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s var(--ease-out) 0.12s both;
}

.waitlist {
  max-width: 480px;
  animation: fadeUp 0.6s var(--ease-out) 0.15s both;
}

.role {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.25rem;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 0.625rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.role__btn {
  padding: 0.45rem 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.role__btn.is-active {
  color: var(--ink-800);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(20,34,61,0.1);
}

.waitlist__field {
  display: flex;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  padding: 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.waitlist__field:focus-within {
  border-color: var(--brand-400);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.waitlist__input {
  flex: 1;
  min-width: 0;
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.waitlist__input::placeholder {
  color: var(--text-subtle);
}

.waitlist__button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-brand);
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-spring);
}

.waitlist__button:hover {
  background: var(--brand-600);
  transform: scale(1.02);
}

.waitlist__button:active {
  transform: scale(0.98);
}

.waitlist__arrow {
  transition: transform 0.2s var(--ease-out);
}

.waitlist__button:hover .waitlist__arrow {
  transform: translateX(3px);
}

.waitlist__error {
  display: none;
  margin-top: 0.7rem;
  padding-left: 1rem;
  color: #e0483b;
  font-size: 0.85rem;
  font-weight: 600;
}

.waitlist__error.is-visible {
  display: block;
  animation: fadeUp 0.3s var(--ease-out) both;
}

.waitlist__hint {
  margin-top: 0.8rem;
  padding-left: 0.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--text-subtle);
}

/* Success */
.success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
}

.success.is-visible {
  display: flex;
  animation: fadeUp 0.5s var(--ease-out) both;
}

.success__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(254, 114, 1, 0.2);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  animation: popIn 0.35s var(--ease-spring) both;
}

.success__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-800);
  margin-bottom: 0.45rem;
}

.success__sub {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.success__back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-500);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.success__back:hover {
  background: var(--paper-2);
  color: var(--ink-800);
}

/* ═══ 8. Phone mockup ═══ */
.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.7s var(--ease-out) 0.2s both;
}

.phone__glow {
  position: absolute;
  inset: 6% 18%;
  background: radial-gradient(circle at 50% 40%, var(--brand-glow), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

.phone {
  position: relative;
  width: 300px;
  background: linear-gradient(150deg, #2b3344 0%, #131a28 100%);
  border-radius: 3.2rem;
  padding: 0.7rem;
  box-shadow: 0 40px 80px -20px rgba(20, 34, 61, 0.5), 0 0 0 2px rgba(20, 34, 61, 0.14),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: floatPhone 6s ease-in-out infinite;
}

/* side buttons */
.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  background: #0d1320;
  border-radius: 0 2px 2px 0;
}

.phone::before {
  left: -3px;
  top: 120px;
  height: 34px;
  box-shadow: 0 52px 0 #0d1320, 0 104px 0 #0d1320;
}

.phone::after {
  right: -3px;
  top: 150px;
  height: 64px;
  border-radius: 2px 0 0 2px;
}

.phone__notch {
  position: absolute;
  top: 1.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 26px;
  background: #05080f;
  border-radius: var(--r-pill);
  z-index: 4;
}

.phone__screen {
  position: relative;
  border-radius: 2.55rem;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  height: 600px;
}

.app__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-800);
  padding: 0.7rem 1.4rem 0.2rem;
}

.app__signal {
  letter-spacing: 1px;
  font-size: 0.62rem;
}

/* Top bar */
.app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1.1rem 0.6rem;
}

.app__menu,
.app__bell {
  font-size: 1rem;
  color: var(--ink-700);
}

.app__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink-800);
}

.app__logo {
  height: 24px;
  width: auto;
}

.app__mark-accent {
  color: var(--brand);
}

.app__text-logo {
  height: 13px;
  width: auto;
}

/* Scroll area */
.app__scroll {
  flex: 1;
  padding: 0.4rem 1.05rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.app__scroll > * {
  flex-shrink: 0;
}

/* Orange hero card */
.app__hero {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-600) 100%);
  border-radius: var(--r-md);
  padding: 1.2rem 1.2rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-brand);
}

.app__hero-title {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

/* Search bar — full-width, flush to bottom edge of the orange card */
.app__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem -1.2rem 0;
  padding: 0.5rem 0.5rem 0.5rem 0.95rem;
  color: var(--text-subtle);
  font-size: 0.78rem;
  background: var(--surface);
  border-radius: 0 0 var(--r-md) var(--r-md);
}

.app__search-ph {
  flex: 1;
}

.app__search-go {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--brand);
  border-radius: 50%;
  font-size: 0.72rem;
}

.app__section {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-800);
}

/* Subject grid */
.app__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.app__tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.3rem;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink-700);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
}

.app__tile-ic {
  font-size: 1.15rem;
  filter: saturate(0.9);
}

/* Bottom CTA card */
.app__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  padding: 0.85rem 1rem;
  text-align: left;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-600) 100%);
  border: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-brand);
}

.app__bottom-txt strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
}

.app__bottom-txt small {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.88);
}

.app__bottom-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
  color: var(--brand);
  background: #fff;
  border-radius: 50%;
}

/* ═══ 9. Sections ═══ */

.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.section__head {
  max-width: 40rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-800);
  text-wrap: balance;
}

.accent {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-light {
  color: var(--brand-300);
}

.section__subtitle {
  margin-top: 0.9rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-wrap: balance;
}

/* ═══ 9b. How it works ═══ */
.howto {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}


.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.timeline__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.4rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.timeline__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
  background: var(--brand-tint);
  border-radius: 0.35rem;
  margin-bottom: 1rem;
}

.timeline__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-800);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.timeline__text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.howto__footer {
  margin-top: 2rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-subtle);
  text-align: center;
  letter-spacing: 0.01em;
}


/* ═══ 10. For teachers ═══ */
.teachers {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--line);
}

.teachers__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

.teachers__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.teachers__title {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-800);
  text-wrap: balance;
  margin-bottom: 0.85rem;
}

.teachers__text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 26rem;
  margin-bottom: 1.5rem;
}

.teachers__list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.teachers__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-700);
}

.teachers__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
}

.btn__arrow {
  transition: transform 0.2s var(--ease-out);
}

.teachers__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-spring);
}

.teachers__cta:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

.teachers__cta:hover .btn__arrow {
  transform: translateX(3px);
}

.teachers__decor {
  display: grid;
  gap: 0.75rem;
}

.teachers__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.teachers__card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}

.teachers__card-text {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ═══ 11. Final CTA — full-height orange closing band ═══ */
/* ═══ 11. Final CTA ═══ */
.cta-final {
  position: relative;
  z-index: 1;
  padding: 5rem 1.5rem;
  text-align: center;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}

.cta-final__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.cta-final__title {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-800);
  margin-bottom: 0.75rem;
}

.cta-final__text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta-final__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: 0.5rem;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: background 0.25s var(--ease-out), transform 0.2s var(--ease-spring);
}

.cta-final__btn:hover {
  background: var(--brand-600);
  transform: translateY(-2px);
}

.cta-final__btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ═══ 12. Footer ═══ */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

.footer__link:hover {
  color: var(--ink-800);
}

.footer__copy {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ═══ 13. Animations ═══ */
@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 30px) scale(1.06);
  }
}

@keyframes floatPhone {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--brand-glow);
  }

  70% {
    box-shadow: 0 0 0 8px transparent;
  }

  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

/* ═══ 14. Responsive ═══ */
@media (min-width: 900px) {
  .hero {
    padding: 5rem 1.5rem;
  }

  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .teachers__inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

@media (max-width: 899px) {
  .teachers__decor {
    display: grid;
  }

  .phone {
    width: 260px;
  }

  .phone__screen {
    height: 520px;
  }
}

@media (max-width: 760px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 460px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header__link {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
  }
}

@media (max-width: 480px) {
  .waitlist__field {
    flex-direction: column;
    gap: 0.4rem;
    border-radius: var(--r-md);
  }

  .waitlist__button {
    width: 100%;
    justify-content: center;
  }

  .role {
    width: 100%;
    justify-content: center;
  }

  .role__btn {
    flex: 1;
    padding: 0.5rem 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
