/* ===== Tokens ===== */
:root {
  --night: #16123A;
  --night-2: #1F1950;
  --night-3: #2A2266;
  --line: #3B3378;
  --violet: #A68BFF;
  --blue: #63B3FF;
  --toon: #FFD23F;
  --toon-dark: #E5B800;
  --text: #F3F0FF;
  --muted: #B9B2DD;
  --strip: #0D0A24;

  --font-head: "Baloo 2", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.25rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--toon); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, 1040px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--toon); color: #1a1400; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .75rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  background: var(--toon); color: #221A00;
  box-shadow: 0 4px 0 var(--toon-dark);
}
.btn-primary:hover { background: #FFDC63; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--violet); }
.btn-small { min-height: 40px; padding: .4rem 1rem; font-size: .95rem; background: var(--toon); color: #221A00; }
.btn-block { width: 100%; }

/* ===== Announcement + header ===== */
.announce {
  background: linear-gradient(90deg, #5B3FD6, #3577E0);
  text-align: center; font-size: .95rem; padding: .5rem 1rem; color: #fff;
}
.announce s { opacity: .75; margin-left: .25rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(22, 18, 58, .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--violet); font-weight: 600; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--text); margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--text); }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--night-2); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: .9rem; }
}

/* ===== Hero ===== */
.hero { padding: 2.75rem 0 0; overflow: hidden; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.75rem); max-width: 17ch; letter-spacing: -.01em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.facts { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.facts li { background: var(--night-3); border: 1px solid var(--line); padding: .35rem .85rem; border-radius: 999px; font-size: .95rem; }

.price-line { display: flex; align-items: baseline; gap: .75rem; margin: 1.25rem 0 1rem; }
.price-now { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: var(--toon); line-height: 1; }
.price-old { color: var(--muted); font-size: 1.25rem; }
.price-line.big .price-now { font-size: 3.4rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 480px) { .cta-row .btn { width: 100%; } }

.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-art { margin: 0; }
.hero-art img { width: 100%; height: auto; border-radius: var(--radius-l); border: 2px solid var(--line); }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 3rem; } }
@media (max-width: 899px) { .hero-art { max-width: 520px; } }

/* Film strip: the one bold element */
.strip-wrap {
  margin-top: 2.75rem;
  background: var(--strip);
  padding: 22px 0;
  position: relative;
  transform: rotate(-1.5deg);
  width: 104%; margin-left: -2%;
  overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 3rem;
}
.strip-wrap::-webkit-scrollbar { display: none; }
.strip-wrap::before, .strip-wrap::after {
  content: ""; position: absolute; left: 0; height: 10px;
  width: max(100%, 1500px);
  background: radial-gradient(circle at 9px 5px, var(--night) 3.5px, transparent 4px) 0 0 / 22px 10px repeat-x;
}
.strip-wrap::before { top: 6px; }
.strip-wrap::after { bottom: 6px; }
.strip {
  list-style: none; margin: 0; padding: 0 2rem 0 3rem;
  display: flex; gap: 10px; width: max-content;
}
.strip li {
  scroll-snap-align: start;
  width: 150px; min-height: 120px; padding: .8rem .9rem;
  border-radius: var(--radius-s);
  background: linear-gradient(160deg, #3A2B9A, #1E4C9C);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
}
@media (min-width: 1100px) { .strip { width: 100%; justify-content: center; } .strip li { width: auto; flex: 1; max-width: 170px; } }
.strip li:nth-child(even) { background: linear-gradient(160deg, #4B2F9E, #2C3B8F); }
.strip b { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.1; }
.strip small { color: #CFC8F5; font-size: .85rem; }
.frame-no { position: absolute; top: .55rem; left: .8rem; font-family: var(--font-head); font-weight: 800; color: var(--toon); font-size: 1rem; }

@media (prefers-reduced-motion: no-preference) {
  .strip { animation: roll 1.1s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes roll { from { transform: translateX(40%); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-alt { background: var(--night-2); }
.hero + .section { padding-top: 4.5rem; }
.section-intro { color: var(--muted); max-width: 62ch; margin-bottom: 1.75rem; }
.note { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--violet); padding-left: .9rem; margin-top: 1.5rem; max-width: 62ch; }

/* Videos */
.video-grid { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .video-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; } }
.video-card { background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.video-media { position: relative; aspect-ratio: 9 / 16; background: #0E0B26; }
.video-media.landscape { aspect-ratio: 16 / 9; }
.video-card.wide { grid-column: 1 / -1; }
.video-media img, .video-media video, .video-media iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer; padding: 0; color: inherit;
}
.play img { position: absolute; inset: 0; }
.play-icon {
  position: relative; width: 64px; height: 64px; border-radius: 50%;
  background: var(--toon); display: grid; place-items: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
}
.play-icon::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #221A00; margin-left: 5px; }
.video-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem; color: var(--muted); font-size: .95rem; border: 2px dashed var(--line); border-radius: var(--radius-m); margin: .75rem; }
.video-info { padding: .6rem .8rem .8rem; }
.video-info b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.tag { display: inline-block; font-size: .8rem; color: var(--violet); margin-top: .15rem; }
.yt-link { display: block; font-size: .85rem; margin-top: .35rem; color: var(--toon); }
.ext-link { position: absolute; inset: 0; display: grid; place-items: center; gap: .5rem; text-decoration: none; color: var(--text); background: linear-gradient(160deg, #3A2B9A, #1E4C9C); text-align: center; padding: 1rem; }

/* Modules */
.modules { display: grid; gap: .6rem; }
.modules details, .faq details {
  background: var(--night); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.modules details[open] { border-color: var(--violet); }
.modules summary, .faq summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1rem; position: relative;
  font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .85rem;
}
.modules summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.modules summary::after, .faq summary::after {
  content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--violet); font-weight: 400;
}
.modules details[open] summary::after, .faq details[open] summary::after { content: "−"; }
.m-no {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-3); color: var(--toon); font-family: var(--font-head); font-size: 1rem;
}
.modules ul { margin: 0; padding: 0 1.25rem 1.1rem 4.1rem; color: var(--muted); }
.modules li { margin: .2rem 0; }

/* Tools */
.tools { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.tools > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.tools dt { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.tools dd { margin: 0; color: var(--muted); }
@media (min-width: 700px) { .tools > div { grid-template-columns: 300px 1fr; align-items: baseline; } }

/* Lists */
.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 1rem; }
.ticks li, .crosses li { padding-left: 1.9rem; position: relative; margin: .55rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--toon); font-weight: 700; }
.crosses li { color: var(--muted); }
.crosses li::before { content: "✕"; position: absolute; left: .1rem; top: 0; color: #FF8A9B; }
.not-head { font-size: 1.15rem; margin-top: 1.5rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--night-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.1rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--toon); color: #221A00; font-family: var(--font-head); font-weight: 800; margin-bottom: .6rem; }
.steps b { display: block; font-family: var(--font-head); font-size: 1.15rem; }
.steps span { color: var(--muted); font-size: .97rem; }

/* Instructor */
.instructor { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 700px) { .instructor { grid-template-columns: 160px 1fr; gap: 2.5rem; } }
.avatar { width: 160px; height: 160px; border-radius: 50%; position: relative; background: linear-gradient(160deg, #5B3FD6, #3577E0); display: grid; place-items: center; overflow: hidden; border: 3px solid var(--toon); }
.avatar span { font-family: var(--font-head); font-weight: 800; font-size: 3rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.instructor p { color: var(--muted); max-width: 60ch; }

/* Price */
.price-card {
  max-width: 520px; margin-inline: auto; padding: 2rem 1.5rem;
  border-radius: var(--radius-l);
  background: linear-gradient(170deg, var(--night-3), var(--night-2));
  border: 2px solid var(--violet);
}
.price-card h2 { font-size: 1.5rem; }
.price-card .btn { margin-top: .5rem; }
.fine { color: var(--muted); font-size: .9rem; margin: 1rem 0 0; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq summary { font-weight: 500; padding-left: 1.1rem; }
.faq p { padding: 0 1.1rem 1.1rem; margin: 0; color: var(--muted); }

/* Final */
.final { padding: 4.5rem 0; text-align: center; background: linear-gradient(180deg, var(--night), #241C63); }
.final p { color: var(--muted); }
.final .btn { margin: .75rem 0 1.25rem; }
.final-help a { color: var(--toon); }

/* Footer */
.site-footer { padding: 2.5rem 0 7rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.site-footer a { color: var(--text); }
.policy-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.policy-links button { background: none; border: 0; padding: .25rem 0; color: var(--text); text-decoration: underline; cursor: pointer; font: inherit; }
.copy { font-size: .85rem; }

/* Dialogs */
.policy {
  max-width: 560px; width: calc(100% - 2rem); border: 1px solid var(--line); border-radius: var(--radius-l);
  background: var(--night-2); color: var(--text); padding: 1.5rem;
}
.policy::backdrop { background: rgba(5, 3, 20, .7); }
.policy h2 { font-size: 1.5rem; }
.policy p { color: var(--muted); }

/* Floating WhatsApp + sticky CTA */
.wa-float { isolation: isolate;
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; display: grid; isolation: isolate; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: rgba(31, 25, 80, .97); border-top: 1px solid var(--line);
}
.sticky-cta[hidden] { display: none; }
.sticky-price b { font-family: var(--font-head); font-size: 1.5rem; color: var(--toon); }
.sticky-price s { color: var(--muted); }
.sticky-cta .btn { min-height: 46px; flex: 1; max-width: 240px; }
body.has-sticky .wa-float { bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 761px) { .sticky-cta { display: none !important; } body.has-sticky .wa-float { bottom: 1rem; } }

/* ===== Colour accents (v2) ===== */
.section h2, .final h2 {
  background: linear-gradient(90deg, #C3AEFF 0%, #7FC4FF 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  width: fit-content;
}
.price-card h2 { background: none; color: var(--text); }
.section h2::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: var(--toon); margin-top: .55rem;
}
.price-card h2::after, .policy h2::after { display: none; }
.faq details { border-left: 4px solid var(--violet); }
.faq details:nth-child(3n+2) { border-left-color: var(--blue); }
.faq details:nth-child(3n) { border-left-color: var(--toon); }
.faq details[open] { background: var(--night-3); }
.faq details[open] summary { color: var(--toon); }
.faq summary:hover { color: #FFE27A; }
.tools dt { color: var(--blue); }
.not-head { color: #FF9BAA; }
.steps li:nth-child(2)::before { background: var(--violet); color: #fff; }
.steps li:nth-child(3)::before { background: var(--blue); color: #0B1A33; }
.steps li:nth-child(4)::before { background: #3DDC97; color: #062A1A; }
.video-info b { color: #E4DCFF; }

/* ===== Animations (v3) ===== */
@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveal (only when JS has added .anim to <html>) */
  .anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.8,.2,1); }
  .anim .reveal.in { opacity: 1; transform: none; }

  /* Hero entrance, staggered */
  .hero-text > * { animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) both; }
  .hero-text > *:nth-child(2) { animation-delay: .1s; }
  .hero-text > *:nth-child(3) { animation-delay: .2s; }
  .hero-text > *:nth-child(4) { animation-delay: .3s; }
  .hero-text > *:nth-child(5) { animation-delay: .4s; }
  .hero-art { animation: fadeUp .8s .25s cubic-bezier(.2,.8,.2,1) both; }
  .hero-art img { animation: floaty 6s 1.2s ease-in-out infinite; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

  /* Price pop */
  .price-now { display: inline-block; animation: pop 2.8s 1.2s ease-in-out infinite; }
  @keyframes pop { 0%, 85%, 100% { transform: scale(1); } 92% { transform: scale(1.08); } }

  /* Shine sweep on main buttons */
  .btn-primary { position: relative; overflow: hidden; }
  .btn-primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
    transform: skewX(-20deg); animation: shine 3.5s 1.5s ease-in-out infinite;
  }
  @keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

  /* Play button ring pulse */
  .play-icon::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    border: 3px solid var(--toon); animation: ring 2s ease-out infinite;
  }
  @keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
  .video-card { transition: transform .25s ease, border-color .25s ease; }
  .video-card:hover { transform: translateY(-4px); border-color: var(--violet); }

  /* WhatsApp button: pop in, then gentle ring */
  .wa-float { animation: waIn .6s 1s cubic-bezier(.3,1.6,.5,1) both; }
  .wa-float::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: #25D366; z-index: -1; animation: ring 2.4s 2s ease-out infinite;
  }
  @keyframes waIn { from { transform: scale(0); } to { transform: scale(1); } }

  /* Hover lifts */
  .steps li, .modules details, .faq details { transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
  .steps li:hover { transform: translateY(-3px); }
  .strip li { transition: transform .2s ease; }
  .strip li:hover { transform: translateY(-4px) rotate(-1deg); }

  /* Smooth accordion content */
  .modules details[open] ul, .faq details[open] p { animation: fadeUp .35s ease both; }
  .sticky-cta:not([hidden]) { animation: slideUp .35s ease both; }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
}
