/* =====================================================================
   Financial Freedom with AI — Shared Stylesheet
   Brand: forest green (#2D4A3E) · cream white (#F4F0E6) · gold (#C2A14A)
   ===================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #2D4A3E;           /* forest green — primary dark / text */
  --white: #ffffff;           /* white — page background */
  --yellow: #C2A14A;          /* gold accent */
  --yellow-dark: #A6883A;     /* darker gold for hover states */
  --ink: #22392F;             /* deep green for soft contrast */
  --muted: #5A6B61;           /* muted green-grey body copy */
  --line: #E2E8E4;            /* soft green-tinted borders */
  --soft: #F2F6F3;            /* soft green-tinted section background */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.14);
  --maxw: 1180px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.1; letter-spacing: -0.01em; color: var(--black); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
section { position: relative; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.center { text-align: center; }

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: inline-block; background: var(--yellow); color: var(--black);
  font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 50px; margin-bottom: 18px;
}
.badge-free {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--black);
  font-weight: 800; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 50px;
}

/* ---------- Section heading ---------- */
.h-sec { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.sub-sec { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
  padding: 15px 28px; border-radius: 50px; cursor: pointer; border: 2px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-yellow { background: var(--yellow); color: var(--black); box-shadow: 0 8px 22px rgba(194,161,74,.35); }
.btn-yellow:hover { background: var(--yellow-dark); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(194,161,74,.45); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: .9rem; }

/* ---------- Navigation / Header ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.logo b { background: var(--yellow); padding: 2px 8px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: .92rem; font-weight: 600; color: var(--ink); transition: color .2s; }
.nav-links a:hover { color: var(--black); }
.nav-links a::after { content: ''; display: block; height: 2px; width: 0; background: var(--yellow); transition: width .25s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--black); transition: .3s; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 22px; border-bottom: 1px solid var(--line); background: var(--white); }
.mobile-menu a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }

/* ---------- Hero ---------- */
.hero { background: var(--white); padding: 80px 0 60px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; }
.hero .mark { background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 6px; }
.hero-sub { font-size: clamp(1.2rem, 3vw, 1.7rem); font-weight: 600; color: var(--black); margin-top: 14px; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; margin: 22px 0 30px; max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Video placeholder ---------- */
.video {
  position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg);
  background: var(--black); display: flex; align-items: center; justify-content: center;
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--black);
}
.video::after {
  content: 'Video coming soon'; position: absolute; bottom: 16px; left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.55); font-size: .8rem; letter-spacing: .04em;
}
.video .play {
  width: 84px; height: 84px; border-radius: 50%; background: var(--yellow);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 10px 30px rgba(194,161,74,.5);
}
.video .play:hover { transform: scale(1.08); }
.video .play svg { margin-left: 5px; }

/* ---------- Feature grid (What's Included) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--yellow); }
.feature-ico {
  width: 60px; height: 60px; border-radius: 16px; background: var(--yellow);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 1.6rem;
}
.feature-card h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); font-size: .9rem; }

/* ---------- Curriculum ---------- */
.curriculum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.curr-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.curr-col h3 { font-size: 1.4rem; margin-bottom: 4px; }
.curr-col .count { color: var(--muted); font-size: .85rem; margin-bottom: 22px; display: block; }
.curr-col .col-tag { display:inline-block; width: 36px; height: 4px; background: var(--yellow); border-radius: 4px; margin-bottom: 14px; }
.module-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: 10px; cursor: pointer; background: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.module-card:hover { transform: translateX(4px); border-color: var(--yellow); box-shadow: var(--shadow); }
.module-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px; background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem;
  font-family: 'Space Grotesk', sans-serif;
}
.module-card.is-free .module-num { background: var(--yellow); color: var(--black); }
.module-info { flex: 1; min-width: 0; }
.module-info .mtitle { font-weight: 600; font-size: .95rem; }
.module-info .mdesc { color: var(--muted); font-size: .8rem; display: none; }
.module-card .chev { color: #bbb; transition: transform .2s, color .2s; }
.module-card:hover .chev { color: var(--black); transform: translateX(3px); }

/* ---------- Curriculum — horizontal tracks ---------- */
.curr-track { margin-bottom: 44px; }
.curr-track:last-child { margin-bottom: 0; }
.curr-track-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.curr-track-head h3 { font-size: 1.4rem; line-height: 1.1; }
.curr-track-head .count { color: var(--muted); font-size: .85rem; }
.curr-track-head .col-tag { flex-shrink: 0; width: 6px; height: 40px; background: var(--yellow); border-radius: 6px; margin: 0; }

/* Horizontal scroller */
.curr-row {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 6px 4px 20px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.curr-row::-webkit-scrollbar { height: 8px; }
.curr-row::-webkit-scrollbar-track { background: transparent; }
.curr-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 50px; }
.curr-row::-webkit-scrollbar-thumb:hover { background: #cfcfcf; }

/* Card in horizontal row — image fills the whole card, text overlaid on top */
.curr-card {
  position: relative; scroll-snap-align: start; flex: 0 0 270px; width: 270px; height: 380px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: block; background: linear-gradient(135deg, #EFE6C8 0%, var(--yellow) 100%);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.curr-card:hover { transform: translateY(-6px); border-color: var(--yellow); box-shadow: var(--shadow-lg); }
.curr-card.is-free { border-color: var(--yellow); }

/* Full-bleed image fills the entire card */
.curr-card .cc-thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.curr-card .cc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Dark gradient so overlaid text stays legible */
.curr-card::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 30%, rgba(0,0,0,.05) 60%, rgba(0,0,0,0) 100%);
}

/* Corner badges */
.curr-card .module-num { position: absolute; top: 12px; left: 12px; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.curr-card .badge-free { position: absolute; top: 12px; right: 12px; z-index: 3; box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* Text overlay anchored to the bottom of the card */
.curr-card .cc-body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 6px;
}
.curr-card .cc-title { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.12rem; line-height: 1.18; color: #fff; }
.curr-card .cc-desc { color: rgba(255,255,255,.82); font-size: .82rem; line-height: 1.45; }
.curr-card .cc-link { font-weight: 700; font-size: .85rem; color: var(--yellow); transition: transform .2s; margin-top: 4px; }
.curr-card:hover .cc-link { transform: translateX(3px); }

/* Carousel arrows */
.curr-row-wrap { position: relative; }
.curr-arrow {
  position: absolute; top: calc(50% - 12px); transform: translateY(-50%);
  z-index: 5; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--white); color: var(--black);
  border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(0,0,0,.16);
  transition: background .2s var(--ease), color .2s var(--ease), opacity .25s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.curr-arrow:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); box-shadow: 0 12px 28px rgba(194,161,74,.4); }
.curr-arrow:active { transform: translateY(-50%) scale(.94); }
.curr-arrow.prev { left: -14px; }
.curr-arrow.next { right: -14px; }
/* Hidden when the row can't scroll further in that direction */
.curr-arrow.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 700px) {
  .curr-arrow { width: 40px; height: 40px; }
  .curr-arrow.prev { left: 2px; }
  .curr-arrow.next { right: 2px; }
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 24px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.price-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.price-card.popular { border-color: var(--black); background: var(--black); color: var(--white); }
.price-card.popular h3, .price-card.popular .price { color: var(--white); }
.price-banner {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--black); font-weight: 800; font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.price-card .price { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.6rem; letter-spacing: -.03em; }
.price-card .price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-card.popular .price small { color: rgba(255,255,255,.6); }
.price-card .pdesc { color: var(--muted); font-size: .92rem; margin: 14px 0 26px; flex: 1; }
.price-card.popular .pdesc { color: rgba(255,255,255,.75); }

/* ---------- Booking ---------- */
.booking {
  background: var(--black); color: var(--white); border-radius: var(--radius-lg);
  padding: 56px 40px; text-align: center;
}
.booking h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.booking p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 28px; }
.calendly-ph {
  background: rgba(255,255,255,.05); border: 1px dashed rgba(255,255,255,.25); border-radius: var(--radius);
  padding: 34px; max-width: 520px; margin: 0 auto;
}
.calendly-ph .cal-note { color: rgba(255,255,255,.5); font-size: .82rem; margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); padding: 54px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer .logo { color: var(--white); }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: 14px; align-items: center; }
.li-link {
  display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-weight: 600; font-size: .9rem;
  background: rgba(255,255,255,.08); padding: 10px 16px; border-radius: 50px; transition: background .2s, transform .2s;
}
.li-link:hover { background: #0A66C2; transform: translateY(-2px); color: #fff; }
.footer-copy { color: rgba(255,255,255,.45); font-size: .82rem; margin-top: 26px; text-align: center; }

/* ---------- Progress bar ---------- */
.progress { width: 100%; height: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 50px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--yellow); border-radius: 50px; transition: width .6s var(--ease); }
.progress-label { display: block; margin-top: 10px; font-weight: 600; font-size: .9rem; color: var(--black); }

/* ---------- Status pill ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 50px; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.not-started { background: var(--soft); color: #888; }
.pill.in-progress { background: var(--yellow); color: var(--black); }
.pill.completed { background: var(--black); color: var(--white); }

/* ---------- Dashboard ---------- */
.welcome-banner {
  background: var(--yellow); color: var(--black); text-align: center; padding: 22px 24px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.5rem);
}
.dash-section { margin-bottom: 50px; }
.dash-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.dash-section-head h2 { font-size: 1.6rem; }
.dash-section-head .tag { color: var(--muted); font-size: .85rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dash-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 12px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.dash-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--yellow); }
.dash-card .dc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dash-card .dc-num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: #ccc; font-size: 1.1rem; }
.dash-card h3 { font-size: 1.02rem; }
.dash-card p { color: var(--muted); font-size: .85rem; flex: 1; }

/* ---------- Module page ---------- */
.module-wrap { max-width: 920px; margin: 0 auto; padding: 40px 24px 80px; }
.module-wrap h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 18px 0 22px; }
.module-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.module-progress-box { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 28px 0; }
.module-desc { color: var(--muted); font-size: 1.05rem; margin: 28px 0; }
.module-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.module-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--line); }
.module-nav .btn { min-width: 0; }
.module-nav .btn.disabled { opacity: .35; pointer-events: none; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); font-size: .9rem; }
.back-link:hover { color: var(--black); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--yellow); border-radius: var(--radius-lg); padding: 44px 36px; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); margin-bottom: 18px; }
.cta-banner p { color: rgba(34,57,47,.85); margin-bottom: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin: 0 auto; }
}
@media (max-width: 620px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .price-card.popular { transform: none; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .booking { padding: 40px 22px; }
  .module-nav { flex-direction: column; }
  .module-nav .btn { width: 100%; }
}
