/* ============================================
   Learn AI With Ease — Shared Stylesheet
   Plain CSS (no Tailwind). Kid-friendly theme.
   ============================================ */

:root {
  --purple: #7c4dff;
  --purple-dark: #5e35b1;
  --green: #43c463;
  --blue: #29b6f6;
  --yellow: #ffca28;
  --pink: #ff7eb3;
  --ink: #2b2350;
  --muted: #6b6485;
  --bg: #fbf7ff;
  --card: #ffffff;
  --border: #ece4ff;
  --shadow: 0 10px 30px rgba(124, 77, 255, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand .logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--purple);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 77, 255, 0.35);
}

.btn-buy {
  background: linear-gradient(135deg, var(--green), #2ea84f);
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 196, 99, 0.4);
  font-size: 1.15rem;
  padding: 16px 42px;
}

.btn-ghost {
  background: #fff;
  color: var(--purple);
  border: 2px solid var(--border);
}

/* ---------- Hero ---------- */
.hero {
  padding: 60px 0 40px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 202, 40, 0.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(41, 182, 246, 0.18), transparent 40%);
}

.hero .badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--purple);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 .grad {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Characters row ---------- */
.characters {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.char-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  width: 150px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.char-card:hover {
  transform: translateY(-6px);
}

.char-emoji {
  font-size: 2.6rem;
}

.char-card h4 {
  margin-top: 8px;
  font-size: 1.05rem;
}

.char-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Sections ---------- */
section {
  padding: 56px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.feature .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: #f3edff;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

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

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-size: 1.1rem;
}

.step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

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

/* ---------- Pricing ---------- */
.pricing {
  background: linear-gradient(135deg, #f3edff, #e9f6ff);
}

.price-card {
  background: var(--card);
  border: 2px solid var(--purple);
  border-radius: 24px;
  padding: 40px 34px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow);
}

.price-card .tag {
  display: inline-block;
  background: var(--yellow);
  color: #6b4b00;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
}

.price small {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

.price .strike {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 1.3rem;
  font-weight: 500;
  margin-left: 8px;
}

.price-card ul {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.price-card li {
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
  color: var(--ink);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.note {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 14px;
  padding: 16px 18px;
  color: #7a5b00;
  font-size: 0.9rem;
  margin-top: 20px;
  text-align: left;
}

/* ---------- Access / how to get ---------- */
.access-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}

.access-box ol {
  margin-left: 20px;
  color: var(--ink);
}

.access-box li {
  padding: 6px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #cfc6f0;
  padding: 40px 0 26px;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-grid a {
  color: #cfc6f0;
  display: block;
  padding: 4px 0;
}

.footer-grid a:hover {
  color: #fff;
}

.site-footer h5 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  text-align: center;
  color: #9a90c4;
}

/* ---------- Policy / content pages ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
}

.content {
  max-width: 820px;
  margin: 40px auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.content h2 {
  margin: 26px 0 10px;
  font-size: 1.3rem;
  color: var(--purple-dark);
}

.content p,
.content li {
  color: var(--ink);
  margin-bottom: 10px;
}

.content ul {
  margin-left: 22px;
}

.content .updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* ---------- Course page (protected) ---------- */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f3edff, #e9f6ff);
  padding: 20px;
}

.gate-card {
  background: var(--card);
  border-radius: 24px;
  padding: 40px 34px;
  max-width: 420px;
  width: 100%;
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-card h2 {
  margin-bottom: 8px;
}

.gate-card p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 0.95rem;
}

.gate-card input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  margin-bottom: 14px;
  font-family: inherit;
}

.gate-card input:focus {
  outline: none;
  border-color: var(--purple);
}

.gate-error {
  color: #e53935;
  font-size: 0.9rem;
  min-height: 20px;
  margin-bottom: 10px;
}

.course-wrap {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.video-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

.video-card h3 {
  margin-bottom: 14px;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #efeaff;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 520px) {
  .grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
  .content {
    padding: 26px 20px;
  }
}
