/* ============================================================
   Financial Learning Community — Landing Page
   Clean CSS v6.0
   ============================================================ */

/* ========== CSS Variables ========== */
:root {
  --bg: #081231;
  --bg-2: #0d1a3c;
  --card: #111f42;
  --card-2: #0e1a3b;
  --navy: #061936;
  --ink: #0e1730;
  --gold: #f5c26b;
  --gold-2: #ffd281;
  --gold-3: #e09038;
  --gold-deep: #0e1730;
  --line: rgba(255, 255, 255, 0.08);
  --muted: #c8cdd9;
  --muted-2: #979caa;
  --radius: 14px;
  --max: 1120px;
  --gold-grad: linear-gradient(135deg, var(--gold-2), var(--gold), var(--gold-3));
  --gold-shadow: 0 14px 38px rgba(242, 176, 83, 0.34);
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { display: block; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
  color: #fff;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
  text-align: center;
}

h1 { font-size: clamp(30px, 4.6vw, 48px); }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 15px; }

p { margin: 0; text-align: center; }

/* ========== Section Layout ========== */
section {
  padding: 76px 0;
  background: var(--bg);
}

section.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Light sections - white background with dark text */
section.light {
  background: #f7f8fa;
  border-top: 1px solid rgba(18, 31, 66, 0.06);
  border-bottom: 1px solid rgba(18, 31, 66, 0.06);
}

section.light h1,
section.light h2,
section.light h3 {
  color: #0f1a38;
}

section.light .lead,
section.light .sub {
  color: #3d4663;
}

section.light p {
  color: #3d4663;
}

section.light .eyebrow {
  color: #e0973a;
}

/* Cards on light sections */
section.light .gain-item,
section.light .env-card {
  background: #ffffff;
  border: 1px solid rgba(18, 31, 66, 0.08);
  box-shadow: 0 2px 12px rgba(15, 26, 56, 0.04);
}

section.light .gain-item:hover,
section.light .env-card:hover {
  background: #ffffff;
  border-color: rgba(224, 151, 58, 0.35);
  box-shadow: 0 6px 24px rgba(15, 26, 56, 0.08);
}

section.light .gain-item h3,
section.light .env-card h3 {
  color: #0f1a38;
}

section.light .gain-item p,
section.light .env-card p {
  color: #5a6480;
}

section.light .gain-icon,
section.light .env-card > .icon {
  background: #eef3fa;
  color: #d6882d;
  border: 1px solid rgba(224, 151, 58, 0.2);
}

/* Curriculum grid on light section */
section.light .curriculum-grid {
  background: #eaf0f8;
  border: 1px solid rgba(18, 31, 66, 0.08);
}

section.light .curriculum-item {
  background: #ffffff;
  border: 1px solid rgba(18, 31, 66, 0.06);
}

section.light .curriculum-item h3 {
  color: #0f1a38;
}

section.light .cur-num {
  background: #eef3fa;
  color: #d6882d;
  border: 1px solid rgba(224, 151, 58, 0.2);
}

/* Tick list on light */
section.light .tick-list li {
  color: #1a2340;
}

section.light .tick-list .icon {
  color: #e0973a;
}

/* Flow steps on light */
section.light .flow-icon {
  background: #eef3fa;
  color: #d6882d;
  border: 1px solid rgba(224, 151, 58, 0.2);
}

section.light .flow-label {
  color: #1a2340;
}

section.light .flow-line {
  background: linear-gradient(90deg, rgba(224, 151, 58, 0.5), rgba(224, 151, 58, 0.2));
}

/* CTA note on light */
section.light .hero-note {
  color: #6b7490;
}

/* Trust list on light */
section.light .trust li {
  color: #1a2340;
}

section.light .trust .icon {
  color: #e0973a;
}

/* Disclosure on light */
section.light .disclosure {
  color: #8a93ad;
}

/* CTA note */
section.light .cta-note {
  color: #6b7490;
}

/* Image containers on light section */
section.light .hero-book-img,
section.light .why-learn-img,
section.light .courses-right-img {
  background: #ffffff;
  border: 1px solid rgba(18, 31, 66, 0.08);
  box-shadow: 0 16px 48px rgba(15, 26, 56, 0.08), 0 0 0 1px rgba(18, 31, 66, 0.04);
}

section.light .hero-book-img::before,
section.light .why-learn-img::before {
  background: linear-gradient(145deg, #e8eef6, #d5deea);
}

section.light .courses-right-img::before {
  background: linear-gradient(135deg, #e8eef6, #dde6f2);
}

section.light .courses-right-img {
  border: 4px solid #e0e7f1;
}

/* Feature text on light */
section.light .feature-text {
  color: #1a2340;
}

/* Book text on light */
section.light .book-text-col {
  color: #1a2340;
}

/* Courses text on light */
section.light .courses-left {
  color: #1a2340;
}

section.light .courses-lead {
  color: #1a2340;
}

/* ========== Eyebrow / Sub / Lead ========== */
.eyebrow {
  display: block;
  text-align: center;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.sub {
  color: #e8eaf0;
  font-size: 15px;
  line-height: 1.68;
  max-width: 720px;
  margin: 14px auto 0;
  text-align: center;
}

.lead {
  color: #fff;
  font-size: 16px;
  line-height: 1.68;
  margin: 0 0 22px;
  font-weight: 500;
  text-align: center;
}

/* ========== CTA Buttons ========== */
.cta {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: var(--gold-grad);
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  border: 0;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  box-shadow: var(--gold-shadow);
  animation: breathe 2.4s ease-in-out infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.2px;
  overflow: hidden;
  margin: 24px auto 0;
  min-height: 52px;
  width: auto;
  text-align: center;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(242, 176, 83, 0.46);
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(245, 194, 107, 0.6);
  animation: halo 2.4s ease-out infinite;
  pointer-events: none;
}

.cta .price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-deep);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 999px 0 0 999px;
  flex-shrink: 0;
  align-self: stretch;
  z-index: 1;
}

.cta .cta-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  white-space: normal;
  line-height: 1.3;
  text-align: center;
  flex-wrap: wrap;
  flex: 1;
  z-index: 1;
}

.cta .cta-label .icon { width: 20px; height: 20px; color: var(--ink); }

.cta-no-chip .cta-label { padding: 16px 32px; }

/* ========== Icons ========== */
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-lg { width: 24px; height: 24px; }

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: 44px 0 52px;
  background:
    radial-gradient(circle at 78% 20%, rgba(40, 92, 142, 0.30), transparent 31%),
    linear-gradient(135deg, #031329 0%, #061936 52%, #092b50 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.30));
  pointer-events: none;
}

.hero-content-wrapper { position: relative; z-index: 2; text-align: center; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-left { text-align: center; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.brand-shield {
  width: 36px;
  height: 39px;
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.7px;
  font-weight: 800;
}

.brand-text em {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 1.1px;
  margin-top: 3px;
  font-weight: 600;
}

.hero h1 { margin: 12px 0 16px; }

.hero h1 em {
  color: var(--gold);
  font-style: italic;
}

.highlight-text {
  background: linear-gradient(180deg, transparent 62%, rgba(245, 194, 107, 0.45) 62%, rgba(245, 194, 107, 0.45) 92%, transparent 92%);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.hero-ticks li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.hero-ticks .icon { color: var(--gold); }

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: #d8dbe3;
  line-height: 1.55;
  font-weight: 500;
  text-align: center;
}

.hero-book-img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(245, 194, 107, 0.10);
  background: #0b1738;
  aspect-ratio: 4 / 3;
  display: block;
  position: relative;
}

.hero-book-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.hero-book-img::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: linear-gradient(145deg, #1a315c, #0f1f42);
  border-radius: 10px;
  z-index: 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-book-img img { position: relative; z-index: 1; }

/* ========== K-line Background Animation ========== */
.kline-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.75;
  z-index: 0;
}

.kline-svg {
  width: 100%;
  height: 55%;
  display: block;
}

.kline-track {
  animation: klineScroll 30s linear infinite;
}

.kline-group {
  animation: klineFade 30s linear infinite;
}

.kline-ma-glow {
  animation: maGlow 3s ease-in-out infinite;
}

@keyframes klineScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-1600px); }
}

@keyframes klineFade {
  0% { opacity: 0.9; }
  50% { opacity: 0.6; }
  100% { opacity: 0.9; }
}

@keyframes maGlow {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.75; }
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 14px 38px rgba(242, 176, 83, 0.34); }
  50% { box-shadow: 0 18px 48px rgba(242, 176, 83, 0.48); }
}

@keyframes halo {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* ========== Gain Section ========== */
.gain-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 30px;
  justify-items: center;
}

.gain-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 18px 22px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  justify-self: center;
  max-width: 160px;
  width: 100%;
}

.gain-item:hover {
  border-color: rgba(245, 194, 107, 0.32);
  transform: translateY(-3px);
  background: #14244a;
}

.gain-icon {
  width: 56px;
  height: 56px;
  background: var(--bg);
  color: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  border: 1px solid rgba(245, 194, 107, 0.14);
}

.gain-item h3 {
  font-size: 13.5px;
  color: #fff;
  margin: 0 0 7px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.gain-item p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
  margin: 0;
}

/* ========== Why Learn Section ========== */
.feature-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  justify-items: center;
}

.feature-text { text-align: center; }

.feature-text h2,
.feature-text .sub,
.feature-text .eyebrow {
  text-align: center;
}

.tick-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  max-width: 400px;
}

.tick-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 0;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  text-align: left;
}

.tick-list .icon { color: var(--gold); margin-top: 3px; flex-shrink: 0; }

.why-learn-img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
  background: #0b1738;
  aspect-ratio: 4 / 3;
  display: block;
  position: relative;
}

.why-learn-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  position: relative;
  z-index: 1;
}

.why-learn-img::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: linear-gradient(145deg, #1a315c, #0f1f42);
  border-radius: 12px;
  z-index: 0;
}

/* ========== Book Section ========== */
.book-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
  justify-items: center;
}

.book-image-col { text-align: center; }

.book-image-col .hero-book-img { max-width: 400px; }

.book-text-col { text-align: center; }

.book-text-col h2,
.book-text-col .sub,
.book-text-col .eyebrow {
  text-align: center;
}

.book-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 28px 0 32px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: auto;
}

.flow-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold);
  border: 1px solid rgba(245, 194, 107, 0.18);
}

.flow-icon .icon { width: 24px; height: 24px; }

.flow-label {
  font-size: 12.5px;
  color: #fff;
  font-weight: 700;
  max-width: 80px;
  line-height: 1.35;
  text-align: center;
}

.flow-line {
  flex: 1 1 auto;
  min-width: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 194, 107, 0.35), rgba(245, 194, 107, 0.15));
  margin: 0 6px 28px;
  border-radius: 1px;
}

/* ========== Courses Section ========== */
.courses-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  justify-items: center;
}

.courses-left { text-align: center; }

.courses-left h2,
.courses-left .sub,
.courses-left .eyebrow {
  text-align: center;
}

.courses-lead {
  font-size: 15px;
  color: #fff;
  margin: 18px 0 26px;
  line-height: 1.68;
  font-weight: 500;
  text-align: center;
}

.courses-right {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.courses-right-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1738;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  display: block;
  position: relative;
  border: 6px solid #16234a;
  margin: 0 auto;
}

.courses-right-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.courses-right-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1638, #0e1f48, #132a5c);
  z-index: 0;
}

.courses-right-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 44px, rgba(255, 255, 255, 0.04) 44px, rgba(255, 255, 255, 0.04) 45px),
    repeating-linear-gradient(90deg, transparent 0, transparent 44px, rgba(255, 255, 255, 0.04) 44px, rgba(255, 255, 255, 0.04) 45px);
  z-index: 1;
  pointer-events: none;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
  background: var(--card-2);
  border-radius: 16px;
  border: 1px solid var(--line);
  margin-top: 14px;
  justify-items: center;
}

.curriculum-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 68px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  justify-self: center;
  width: 100%;
  max-width: 260px;
}

.curriculum-item:hover {
  border-color: rgba(245, 194, 107, 0.36);
  background: #14244a;
  transform: translateX(3px);
}

.cur-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--gold);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid rgba(245, 194, 107, 0.14);
}

.curriculum-item h3 {
  font-size: 14px;
  color: #fff;
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  word-break: keep-all;
}

/* ========== Environment Section ========== */
.env-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
  justify-items: center;
}

.env-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  justify-self: center;
  width: 100%;
  max-width: 240px;
}

.env-card:hover {
  border-color: rgba(245, 194, 107, 0.32);
  transform: translateY(-3px);
  background: #14244a;
}

.env-card > .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--gold);
  box-sizing: border-box;
  border: 1px solid rgba(245, 194, 107, 0.14);
  margin: 0 auto 14px;
}

.env-card h3 {
  font-size: 15px;
  color: #fff;
  margin: 0 0 7px;
  font-weight: 700;
  text-align: center;
}

.env-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* ========== FAQ Section ========== */
#faq {
  background: #fff;
}

#faq .eyebrow { color: #e0973a; }

#faq h2 { color: #0f1a38; }

#faq details {
  background: #fff;
  border: 1px solid rgba(18, 31, 66, 0.10);
  border-radius: 14px;
  padding: 0 24px;
  margin: 0 auto 12px;
  max-width: 860px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

#faq details[open],
#faq details:hover {
  border-color: rgba(245, 194, 107, 0.5);
  box-shadow: 0 4px 18px rgba(245, 194, 107, 0.10);
}

#faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 0;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #0f1a38;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary .icon {
  color: #e0973a;
  transition: 0.25s;
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
  flex-shrink: 0;
}

#faq details[open] summary .icon { transform: rotate(45deg); }

#faq details p {
  margin: 0 0 20px;
  color: #4a5573;
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 500;
  text-align: left;
}

/* ========== Final CTA ========== */
.final {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(245, 194, 107, 0.20), transparent 70%),
    var(--bg);
  text-align: center;
}

.final .cta {
  min-width: 340px;
  display: inline-flex;
  margin: 24px auto 0;
}

.cta-center-wrap {
  text-align: center;
  margin-top: 20px;
}

.cta-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 14px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  list-style: none;
  padding: 0;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #fff;
  font-weight: 600;
}

.trust .icon { color: var(--gold); }

.disclosure {
  text-align: center;
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========== Footer ========== */
footer {
  background: var(--bg-2);
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.footer-link-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-link-btn:hover { color: var(--gold); }

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--muted-2);
}

/* ========== Mobile Bar ========== */
.mobilebar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 16px max(14px, calc(33px + env(safe-area-inset-bottom)));
  background: rgba(8, 18, 49, 0.97);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mobilebar .cta {
  width: 100%;
  font-size: 15px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.mobilebar .cta .cta-label {
  padding: 12px 18px;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  flex: 1;
}

/* The actual text span inside CTA label — force center */
.mobilebar .cta .cta-label > span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  flex: 1;
}

/* Override browser default button text direction */
.mobilebar .cta button,
.mobilebar .cta {
  text-align: center !important;
  direction: ltr;
}

.cta-sub-copy { text-align: center; }

.btn-copy-link {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
}

/* ========== Modals ========== */
.policy-modal-overlay,
.fb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3, 10, 28, 0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.policy-modal-overlay.open,
.fb-modal-overlay.open { display: flex; }

.policy-modal-card,
.fb-modal-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 28px;
  color: #fff;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.policy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.policy-modal-header h3 {
  text-align: left;
  font-size: 18px;
}

.policy-close-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.policy-close-btn:hover { color: #fff; }

.policy-modal-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  text-align: left;
}

.fb-arrow-pointer {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.fb-modal-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  margin-bottom: 12px;
  text-align: left;
}

.fb-modal-card p {
  font-size: 14px;
  color: var(--muted);
  text-align: left;
  margin-bottom: 20px;
}

.fb-modal-card p b { color: #fff; }

.btn-copy,
.btn-close {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-copy {
  background: var(--gold-grad);
  color: var(--ink);
}

.btn-close {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ========== Toast ========== */
.toast-msg {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--card);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  border: 1px solid rgba(245, 194, 107, 0.30);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  z-index: 200;
  text-align: center;
  max-width: 88vw;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========== Image Fallback ========== */
img {
  color: transparent;
  font-size: 0;
  line-height: 0;
}

/* ========== Responsive ========== */
@media (max-width: 899px) {
  section { padding: 52px 0; }
  .hero { padding: 38px 0 42px; }

  .hero-grid,
  .feature-split-grid,
  .book-layout,
  .courses-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-book-img,
  .why-learn-img,
  .courses-right-img {
    margin: 0 auto;
  }

  .hero-left,
  .feature-text,
  .book-text-col,
  .courses-left {
    text-align: center;
  }

  .tick-list { margin-left: auto; margin-right: auto; }

  .gain-grid { grid-template-columns: repeat(3, 1fr); }
  .env-grid { grid-template-columns: repeat(2, 1fr); }

  .book-flow { flex-wrap: wrap; gap: 14px; justify-content: center; }
  .flow-line { display: none; }
  .flow-step { flex-direction: row; gap: 10px; }

  .gain-item,
  .env-card,
  .curriculum-item { max-width: none; }

  .cta .cta-label { font-size: 14px; padding: 12px 20px; }
  .cta .price-chip { padding: 12px 14px; font-size: 14px; }

  h1 { font-size: clamp(28px, 7.2vw, 38px); }
  h2 { font-size: clamp(23px, 6vw, 29px); }

  .mobilebar { display: flex; }
  body { padding-bottom: 170px; }
}

@media (max-width: 599px) {
  .gain-grid { grid-template-columns: repeat(2, 1fr); }
  .curriculum-grid { grid-template-columns: repeat(2, 1fr); }
  .env-grid { grid-template-columns: 1fr; }
  .final .cta { min-width: 260px; }
}
