:root {
  --cream: #fff8f0;
  --cream-2: #ffedd5;
  --orange: #f97316;
  --orange-dark: #ea580c;
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --ink: #1e1b4b;
  --muted: #57534e;
  --white: #ffffff;
  --cyan: #22d3ee;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(30, 27, 75, 0.08);
  --font: "Nunito", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--purple-deep);
  text-decoration-thickness: 0.08em;
}

a:hover {
  color: var(--orange-dark);
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, 92vw);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(253, 186, 116, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  display: flex;
}

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

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--orange-dark);
}

.nav__cta {
  margin-left: 0.25rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 4vw 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--cream);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 880px) {
  .nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-weight: 800;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

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

.btn--small {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange), #fb923c);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.45);
  color: var(--white);
}

.btn--ghost {
  background: var(--white);
  border-color: rgba(139, 92, 246, 0.35);
  color: var(--purple-deep);
}

.btn--ghost:hover {
  background: #faf5ff;
}

.hero {
  padding: 2.5rem 0 3rem;
  background: radial-gradient(1200px 500px at 10% -10%, rgba(34, 211, 238, 0.2), transparent 55%),
    radial-gradient(900px 400px at 90% 0%, rgba(168, 85, 247, 0.18), transparent 50%),
    var(--cream);
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange-dark);
  margin: 0 0 0.75rem;
}

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 1rem;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  color: var(--purple-deep);
}

.hero__typewrap {
  min-height: 3.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.typewriter-caret {
  width: 2px;
  height: 1.15em;
  background: var(--orange);
  margin-left: 2px;
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.hero__lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 1.25rem;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero__disclaimer,
.micro {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.mascot-wrap {
  position: relative;
  width: min(280px, 70vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.mascot-lottie {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
}

.mascot-lottie--mid {
  width: 70%;
  height: 70%;
}

.mascot-owl {
  position: relative;
  z-index: 2;
  animation: bob 3.2s ease-in-out infinite;
}

.mascot-owl.is-listening {
  animation: bob 1.6s ease-in-out infinite;
}

.mascot-owl.is-listening .mascot-eye {
  animation: eye-blink 2.5s infinite;
}

@keyframes eye-idle {
  0%,
  46%,
  48%,
  100% {
    transform: scaleY(1);
  }
  47% {
    transform: scaleY(0.12);
  }
}

@keyframes eye-blink {
  0%,
  94%,
  100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.1);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.mascot-eye {
  transform-origin: center;
  animation: eye-idle 5s ease-in-out infinite;
}

.demo-chat {
  width: min(100%, 420px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 0 1px rgba(139, 92, 246, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.demo-chat__top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: linear-gradient(90deg, #faf5ff, #fff7ed);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.demo-chat__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.demo-chat__title {
  font-weight: 800;
  flex: 1;
  font-size: 0.95rem;
}

.demo-chat__badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--cream-2);
  color: var(--orange-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.demo-chat__body {
  padding: 0.75rem;
}

.demo-chat__msgs {
  height: min(220px, 40vh);
  overflow-y: auto;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
  -webkit-overflow-scrolling: touch;
}

.msg {
  max-width: 92%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.msg--user {
  align-self: flex-end;
  background: #ede9fe;
  color: var(--ink);
  border-bottom-right-radius: 4px;
}

.msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.msg--typing {
  font-style: italic;
  color: var(--muted);
}

.demo-chat__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.chip {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: var(--white);
  color: var(--purple-deep);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 44px;
}

.chip:hover:not(:disabled) {
  background: #faf5ff;
}

.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-chat__composer {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.demo-chat__input {
  flex: 1;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d6d3d1;
  min-height: 48px;
}

.demo-chat__input:focus {
  outline: 2px solid rgba(139, 92, 246, 0.45);
  outline-offset: 1px;
}

.demo-chat__send {
  font-family: var(--font);
  font-weight: 800;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 1rem;
  cursor: pointer;
  min-height: 48px;
  min-width: 72px;
}

.demo-chat__send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-chat__footer {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
  text-align: center;
}

.demo-chat.is-locked .demo-chat__input,
.demo-chat.is-locked .demo-chat__send {
  opacity: 0.55;
  pointer-events: none;
}

.section {
  padding: 3.5rem 0;
}

.section--cream {
  background: linear-gradient(180deg, #fff4e6 0%, var(--cream) 100%);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section__head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 980px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.step__art {
  margin-bottom: 0.75rem;
}

.step__art .illo {
  width: 100%;
  height: auto;
  display: block;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.topic-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.topic-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  min-height: 120px;
  border: 2px solid rgba(139, 92, 246, 0.15);
  box-shadow: 0 6px 20px rgba(30, 27, 75, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s;
  cursor: default;
}

.topic-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.topic-card__reveal {
  margin-top: 0.5rem;
  max-height: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: max-height 0.35s ease, opacity 0.25s, transform 0.25s;
}

.topic-card__reveal p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.topic-card:hover .topic-card__reveal,
.topic-card:focus-within .topic-card__reveal {
  max-height: 120px;
  opacity: 1;
  transform: translateY(0);
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.45);
}

@media (hover: none) {
  .topic-card__reveal {
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 0.4rem;
  }
}

.lesson-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .lesson-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lesson-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow);
}

.lesson-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.lesson-card__open {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.lesson-card__locked {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(
    -45deg,
    #f5f5f4,
    #f5f5f4 8px,
    #fafaf9 8px,
    #fafaf9 16px
  );
  color: var(--muted);
  font-size: 0.88rem;
}

.lock {
  flex-shrink: 0;
  color: var(--purple);
}

.signup-form {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(139, 92, 246, 0.12);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d6d3d1;
  min-height: 48px;
}

.field-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.field--check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.field--check input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
}

.field--check label {
  font-weight: 600;
  color: var(--muted);
}

.form-success {
  margin-top: 1rem;
  font-weight: 700;
  color: #15803d;
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.t-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(251, 146, 60, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.t-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--purple));
}

.t-card__avatar--2 {
  background: linear-gradient(135deg, #22d3ee, var(--purple));
}

.t-card__avatar--3 {
  background: linear-gradient(135deg, #f472b6, var(--orange));
}

.t-card__avatar--4 {
  background: linear-gradient(135deg, #a3e635, var(--purple-deep));
}

.t-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.t-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.badge {
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--cream-2);
  color: var(--orange-dark);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.acc-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid #e7e5e4;
  padding: 0 0.75rem;
  margin-bottom: 0.6rem;
}

.acc-item summary {
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem 0;
  list-style: none;
}

.acc-item summary::-webkit-details-marker {
  display: none;
}

.acc-item summary::after {
  content: "+";
  float: right;
  font-weight: 900;
  color: var(--purple);
}

.acc-item[open] summary::after {
  content: "–";
}

.acc-item p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  background: #1e1b4b;
  color: #e7e5e4;
  padding: 3rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #fde68a;
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 0.8fr;
  }
}

.brand--footer {
  color: var(--white);
}

.brand--footer:hover {
  color: #fde68a;
}

.footer__tag {
  margin: 0.5rem 0 0;
  color: #a8a29e;
  font-size: 0.9rem;
}

.footer__h {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fde68a;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.35rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: 0.5rem;
}

.footer__bottom p {
  margin: 0;
  color: #a8a29e;
}

.footer__bottom a {
  color: #fde68a;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem;
  background: rgba(30, 27, 75, 0.45);
}

.cookie-banner__inner {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--shadow);
}

.cookie-banner__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.help-bubble {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.help-bubble__fab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.35);
}

.help-bubble__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.help-bubble__panel {
  width: min(300px, 88vw);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.help-bubble__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.help-bubble__text {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.help-bubble.is-collapsed .help-bubble__label {
  display: none;
}

.help-bubble.is-collapsed .help-bubble__fab {
  padding: 0.6rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.legal {
  padding: 2rem 0 4rem;
}

.legal h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal .lede {
  color: var(--muted);
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.legal p,
.legal li {
  color: #44403c;
}

.legal .container--narrow a {
  font-weight: 700;
}

.legal-page .nav {
  display: flex;
}
