:root {
  --navy: #141238;
  --navy-2: #221f55;
  --ink: #212529;
  --muted: #5c6070;
  --line: #e6e6ef;
  --soft: #f6f6fb;
  --g3: #21C0A8;
  --g4: #F5A623;
  --g5: #E0426E;
  --g6: #A8D02E;
  --g7: #FF6B4A;
  --g8: #4FC3F7;
  --cta: #F5A623;
  --cta-ink: #141238;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  /* Offset for the shared fixed navbar (#main-nav-bar floats at top:4vh, ~76px tall). */
  padding-top: 110px;
  background: #fff;
  color: var(--ink);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 760px) { body { padding-top: 88px; } }
h1, h2, h3, .display { font-family: "Fredoka", "Poppins", sans-serif; line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--navy); }
.section-lead { color: var(--muted); max-width: 680px; margin-top: 14px; font-size: 17px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--g8); outline-offset: 3px; }
/* Pin yellow across all states — Bootstrap's own blue .btn-primary uses higher-specificity :active/:focus selectors, so !important is required to keep our colour. */
.btn-primary { background: var(--cta); color: var(--cta-ink); border-color: transparent; box-shadow: 0 6px 0 #c9851a; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:focus-visible {
  background: var(--cta) !important; color: var(--cta-ink) !important; border-color: transparent !important; box-shadow: 0 7px 0 #c9851a !important;
}
.btn-primary:active, .btn-primary.active {
  background: var(--cta) !important; color: var(--cta-ink) !important; border-color: transparent !important; transform: translateY(3px); box-shadow: 0 3px 0 #c9851a !important;
}
/* Keep yellow while disabled (e.g. "Sending…") instead of Bootstrap's blue. */
.btn-primary:disabled, .btn-primary[disabled], .btn-primary.disabled {
  background: var(--cta) !important; color: var(--cta-ink) !important; border-color: transparent !important; box-shadow: 0 6px 0 #c9851a !important; opacity: .85;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }

/* Header (matches the main site's pill bar) */
.site-header { padding: 18px 0 0; position: relative; z-index: 5; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff; border: 3px solid #eeeef4; border-radius: 26px; padding: 12px 22px;
}
.bar .logo img { height: 46px; width: auto; }
.bar nav { display: flex; align-items: center; gap: 28px; }
.bar nav a { text-decoration: none; font-weight: 500; font-size: 15px; }
.bar nav a.navlink:hover { color: var(--g5); }
.bar .login { border: 2px solid #e2e2ea; border-radius: 10px; padding: 8px 22px; font-weight: 600; }
@media (max-width: 760px) {
  .bar nav .navlink { display: none; }
  .bar { padding: 10px 14px; border-radius: 18px; }
  .bar .logo img { height: 38px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  margin: 18px 16px 0; border-radius: 32px;
  background: radial-gradient(1200px 500px at 85% -10%, #2c2870 0%, transparent 60%), var(--navy);
  color: #fff; padding: 64px 0 72px;
}
.hero .dots { pointer-events: none; } /* decorative only — never intercept clicks on the CTA */
.hero .dots span { position: absolute; border-radius: 50%; opacity: .9; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .tag {
  display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap;
  font-weight: 600; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: #cfd0ff;
}
.hero .tag b { color: #fff; font-weight: 600; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; margin-top: 16px; letter-spacing: -.01em; }
.hero h1 .through { display: block; font-size: .46em; font-weight: 500; color: #cfd0ff; margin: 6px 0 2px; }
.hero .tagline { margin-top: 18px; font-family: "Fredoka", sans-serif; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }
.hero .tagline .d1 { color: var(--g3); } .hero .tagline .d2 { color: var(--g4); } .hero .tagline .d3 { color: var(--g8); }
.hero .lead { margin-top: 16px; font-size: 17px; color: #dedff5; max-width: 540px; }
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .hero-free { margin-top: 14px; font-size: 14px; color: #cfd0ff; }
.hero .hero-school { display: inline-block; margin-top: 10px; color: #fff; font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--g4); }
.hero .hero-school:hover { color: var(--g4); }
.hero .classes { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.hero .classes span {
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 14px;
  padding: 5px 12px; border-radius: 999px; color: var(--navy);
}
.fan { position: relative; height: 440px; }
.fan img {
  position: absolute; width: 46%; height: auto; aspect-ratio: 640 / 905; border-radius: 10px;
  box-shadow: 0 18px 40px rgba(0,0,0,.45); border: 3px solid rgba(255,255,255,.9);
  transition: transform .3s ease;
}
.fan img:nth-child(1) { left: 0%;  top: 70px;  transform: rotate(-12deg); }
.fan img:nth-child(2) { left: 27%; top: 10px;  transform: rotate(-3deg); z-index: 2; }
.fan img:nth-child(3) { left: 54%; top: 60px;  transform: rotate(9deg); }
.fan:hover img:nth-child(2) { transform: rotate(-3deg) translateY(-8px); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .fan { height: 300px; max-width: 420px; margin: 0 auto; width: 100%; }
}
@media (max-width: 900px) { .hero .dots { display: none; } }
@media (max-width: 520px) {
  .hero { margin: 12px 8px 0; border-radius: 24px; padding: 44px 0 52px; }
  .hero .ctas .btn { width: 100%; }
  .fan { height: 240px; }
}

/* Book owner strip */
.owner { padding: 56px 0 24px; }
.owner-card {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center;
  background: var(--soft); border-radius: var(--radius); padding: 36px;
  border: 2px dashed #d9d9ea;
}
.owner-card h2 { font-size: clamp(26px, 3.4vw, 36px); color: var(--navy); }
.owner-card .more { margin-top: 10px; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--g5); font-size: 19px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start;
  background: #fff; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--line);
}
.steps li::before {
  counter-increment: s; content: counter(s);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 20px; color: #fff; background: var(--navy);
}
.steps li b { display: block; color: var(--navy); }
.steps li span { color: var(--muted); font-size: 14.5px; }
.owner .actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 13.5px; color: var(--muted); }
.stores { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.stores a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: #111; color: #fff; border-radius: 10px; padding: 8px 14px; font-size: 13px; font-weight: 500;
}
.stores svg { width: 18px; height: 18px; fill: #fff; }
@media (max-width: 860px) { .owner-card { grid-template-columns: 1fr; padding: 24px 18px; } }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.skill {
  border-radius: var(--radius); padding: 26px 22px; background: #fff;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.skill::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--c); }
.skill .ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, #fff); margin-bottom: 16px;
}
.skill .ic svg { width: 30px; height: 30px; stroke: var(--navy); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skill h3 { font-size: 21px; color: var(--navy); }
.skill p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.skill .ex { margin-top: 12px; font-size: 13.5px; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 10px 12px; }
@media (max-width: 980px) { .skills-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .skills-grid { grid-template-columns: 1fr; } }

/* Mission */
.mission { background: var(--soft); }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.rule {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px;
  font-family: "Fredoka", sans-serif; font-size: clamp(24px, 3vw, 32px); font-weight: 600; line-height: 1.2;
}
.rule small { display: block; font-family: "Poppins", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #cfd0ff; margin-bottom: 10px; }
.rule q { quotes: "\201C" "\201D"; }
.points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.points li::before {
  content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--g3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.points b { color: var(--navy); }
.timeline { display: grid; gap: 0; margin-top: 4px; }
.timeline .row { display: grid; grid-template-columns: 92px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline .row:last-child { border-bottom: 0; }
.timeline .t { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--g5); font-size: 16px; }
.timeline b { color: var(--navy); display: block; }
.timeline span { color: var(--muted); font-size: 14.5px; }
.tl-cap { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 16px 0 2px; }
.timeline-card { background: #fff; border-radius: var(--radius); padding: 10px 26px; border: 1px solid var(--line); }
@media (max-width: 900px) { .mission-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Books */
.books-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 40px; }
.book { text-align: left; scroll-margin-top: 120px; }
section[id] { scroll-margin-top: 100px; }
.book .cover {
  border-radius: 8px; overflow: hidden; aspect-ratio: 595 / 842; background: var(--soft);
  box-shadow: 0 10px 24px rgba(20,18,56,.18); border-bottom: 6px solid var(--c);
  transition: transform .2s ease;
}
.book:hover .cover { transform: translateY(-4px); }
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book h3 { margin-top: 14px; font-size: 20px; color: var(--navy); }
.book .count { font-size: 14px; color: var(--muted); margin-top: 2px; }
.book .count b { color: var(--ink); font-weight: 600; }
.book .eg { font-size: 13px; color: var(--muted); margin-top: 6px; font-style: italic; }
@media (max-width: 1040px) { .books-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .books-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .book .eg { display: none; } }
.book .isbn { font-size: 12px; color: var(--muted); margin-top: 1px; letter-spacing: .01em; }
.glance-title { margin-top: 48px; font-size: 24px; color: var(--navy); }
.glance-wrap { margin-top: 16px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 900px; }
.glance { width: 100%; border-collapse: collapse; font-size: 15px; }
.glance th, .glance td { text-align: left; vertical-align: top; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.glance tr:last-child th, .glance tr:last-child td { border-bottom: 0; }
.glance th { width: 150px; background: var(--soft); color: var(--navy); font-weight: 600; }
@media (max-width: 560px) { .glance th, .glance td { display: block; width: auto; padding: 8px 14px; } .glance th { padding-top: 12px; border-bottom: 0; } }
.books-note { margin-top: 28px; color: var(--muted); font-size: 15px; }

/* Schools */
.schools { background: var(--navy); color: #fff; margin: 0 16px; border-radius: 32px; }
.schools .section-title { color: #fff; }
.schools .section-lead, .schools .eyebrow { color: #cfd0ff; }
.schools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 36px; align-items: start; }
.offer { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.offer li {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 16px 18px;
}
.offer b { display: block; font-family: "Fredoka", sans-serif; font-size: 19px; font-weight: 600; }
.offer span { color: #d7d8f2; font-size: 14.5px; }
.contact-line { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; }
.contact-line a { color: #fff; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.contact-line a:hover { text-decoration: underline; }
.contact-line svg { width: 18px; height: 18px; fill: var(--g4); flex: none; }

.form-card { background: #fff; color: var(--ink); border-radius: 24px; padding: 28px; }
.form-card h3 { font-size: 26px; color: var(--navy); }
.form-card .sub { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field .lbl { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 11px 13px; border-radius: 10px; border: 1.5px solid #d8d9e6;
  background: #fff; color: var(--ink); width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(20,18,56,.12); }
.field .err { font-size: 12.5px; color: #c62a4f; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: #c62a4f; }
.phone { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.phone .cc { background: var(--soft); text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1.5px solid #d8d9e6; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; color: var(--ink);
}
.chips input { accent-color: var(--navy); width: 16px; height: 16px; margin: 0; }
.chips label:has(input:checked) { border-color: var(--navy); background: #efeffa; }
.form-card .btn { width: 100%; margin-top: 18px; }
.form-card .fine { font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.form-card .fine a { color: var(--navy); }
.send-error { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #fdecef; color: #8a1c35; font-size: 14px; }
.send-error a { color: #8a1c35; font-weight: 600; }
.thanks { display: none; text-align: center; padding: 30px 6px; }
.thanks .tick { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--g3); display: grid; place-items: center; }
.thanks .tick svg { width: 34px; height: 34px; stroke: #fff; stroke-width: 3; fill: none; }
.thanks p { color: var(--muted); margin-top: 8px; }
.form-card.sent form { display: none; }
.form-card.sent .thanks { display: block; }
@media (max-width: 900px) { .schools-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .schools { margin: 0 8px; border-radius: 24px; }
  .fgrid { grid-template-columns: 1fr; }
  .form-card { padding: 22px 16px; }
}

/* FAQ */
#faq .eyebrow, #faq .section-title { text-align: center; }
.faq-list { margin-top: 32px; margin-inline: auto; display: grid; gap: 12px; max-width: 860px; }
details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; position: relative;
  font-weight: 600; color: var(--navy); font-size: 16.5px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-family: "Fredoka", sans-serif; font-size: 26px; color: var(--g5); line-height: 1;
}
details[open] summary::after { content: "–"; }
details .ans { padding: 0 20px 18px; color: var(--muted); }

/* Author */
.author { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; margin-top: 48px; margin-inline: auto; max-width: 860px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.author .mono { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: "Fredoka", sans-serif; font-weight: 700; font-size: 24px; }
.author .author-photo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--navy); }
.author b { color: var(--navy); }
.author p { font-size: 14.5px; color: var(--muted); }

/* Closing band */
.closing { text-align: center; padding: 64px 0 80px; }
.closing h2 { font-size: clamp(28px, 4vw, 44px); color: var(--navy); }
.closing .more { margin-top: 10px; font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 20px; }
.closing .more span:nth-child(1) { color: var(--g3); } .closing .more span:nth-child(2) { color: var(--g5); } .closing .more span:nth-child(3) { color: var(--g4); }
.closing .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.closing .btn-primary { box-shadow: 0 6px 0 #c9851a; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: space-between; align-items: flex-start; }
.foot img { height: 40px; width: auto; }
.foot a { text-decoration: none; color: var(--ink); }
.foot a:hover { color: var(--g5); }
.foot .cols { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot .addr { max-width: 340px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
