/* ==========================================================
   KudiLab — Landing Page
   Fonts: Space Grotesk (headings), Inter (text), Merriweather (prices)
   ========================================================== */

:root {
  --green-900: #052d24;   /* main dark background */
  --green-800: #0e3e30;   /* simulator card */
  --green-700: #144235;   /* simulator rows */
  --line-dark: rgba(255, 255, 255, 0.18);
  --gold: #c9a14a;
  --ink: #1e2329;
  --text: #5b6168;
  --muted: #8a9096;
  --light-bg: #f4f4f2;
  --light-bg-2: #f0f0ee;
  --border: #e6e8e8;
  --white: #ffffff;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-price: 'Merriweather', serif;
  --font-serif-italic: 'Playfair Display', serif;

  --fs-h1: 60px;
  --fs-h2: 44px;
  --fs-p: 18px;
  --fs-price: 42px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-p);
  line-height: 1.55;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

a { text-decoration: none; }

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

.section { padding: 96px 0; }
.bg-dark-green { background: var(--green-900); }
.bg-light-1 { background: var(--light-bg); }
.bg-light-2 { background: var(--light-bg-2); }
.bg-light-3 { background: #f7f7f5; }

/* Eyebrow / small gold label */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 820px;
  margin: 0 auto;
}

.section-head { text-align: center; }
.section-head .lead-text {
  max-width: 820px;
  margin: 24px auto 0;
  font-size: var(--fs-p);
  color: var(--text);
}

.on-dark .section-title,
.on-dark h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn-mc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all .2s ease;
  line-height: 1.2;
}
.btn-mc svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: #e9ecea; color: var(--ink); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.85); font-weight: 600; }
.btn-outline-white:hover { background: var(--white); color: var(--green-900); }

.btn-green { background: var(--green-900); color: var(--white); width: 100%; font-weight: 600; font-size: 15px; padding: 12px 20px; }
.btn-green:hover { background: #0b4234; color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  background: var(--green-900);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}
.site-header .container-mc {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--white);
}
.logo span { color: var(--gold); }
.logo:hover { color: var(--white); }
.header-actions { display: flex; align-items: center; gap: 24px; }
.login-link { color: var(--white); font-weight: 600; font-size: 16px; }
.login-link:hover { color: var(--gold); }
.header-actions .btn-mc { padding: 12px 28px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 90px; }
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero .hero-text {
  color: #c3ccc9;
  font-size: var(--fs-p);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 26px;
}
.hero .hero-note {
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.45;
  max-width: 560px;
  margin-bottom: 26px;
}
.hero .hero-btns { display: flex; flex-wrap: wrap; gap: 26px; }

/* Simulator card */
.sim-card {
  background: var(--green-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 26px 28px 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  max-width: 530px;
  margin-left: auto;
}
.sim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 20px;
}
.sim-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f9a90;
}
.sim-balance {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 16px;
  border-radius: 999px;
}
.sim-row {
  display: grid;
  grid-template-columns: 1.4fr 1.5fr 1fr 0.9fr;
  align-items: center;
  background: var(--green-700);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 9px;
  font-size: 13px;
}
.sim-row .sym { color: #e7ece9; font-weight: 600; }
.sim-row .spark { width: 64px; height: 20px; }
.sim-row .price { color: var(--white); font-weight: 600; font-size: 14px; }
.sim-row .chg { text-align: right; font-size: 11px; }
.chg.up { color: #8fc4a6; }
.chg.down { color: #e3967f; }
.sim-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.sim-pill {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: #93a8a0;
  font-size: 10px;
  padding: 5px 14px;
}
.sim-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 7px 18px;
}

/* ---------- Intro / Mission ---------- */
.intro .intro-body {
  max-width: 820px;
  margin: 40px auto 0;
  text-align: center;
}
.intro .intro-body p { color: var(--text); margin-bottom: 24px; line-height: 1.5; }
.intro .mission {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 17px;
  color: #4a5057;
  margin-bottom: 0 !important;
}

/* ---------- Problem cards ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  margin-top: 56px;
}
.problem-card { padding: 40px 26px 40px; border-right: 1px solid var(--border); }
.problem-card:last-child { border-right: 0; }
.problem-card .num {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}
.problem-card h3 { font-size: 19px; margin-bottom: 14px; }
.problem-card p { font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---------- Tools grid ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-dark);
  margin-top: 48px;
}
.tool-card {
  padding: 36px 26px 34px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
}
.tool-card:nth-child(3n) { border-right: 0; }
.tool-card:nth-last-child(-n+3) { border-bottom: 0; }
.tool-card .icon { width: 28px; height: 28px; color: var(--white); margin-bottom: 28px; }
.tool-card h3 { font-size: 19px; margin-bottom: 14px; }
.tool-card p { color: #d8dfdc; font-size: 15px; line-height: 1.45; }
.tool-card .tool-tag {
  margin-top: 24px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #e3e9e6;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-tag svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ---------- Why it works checklist ---------- */
.check-list {
  max-width: 1160px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
}
.check-list .item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid #e3e4e2;
  font-size: 15px;
  color: var(--text);
}
.check-list .item:nth-last-child(-n+2) { border-bottom: 0; }
.check-list svg { width: 14px; height: 14px; margin-top: 4px; color: var(--ink); flex-shrink: 0; }

/* ---------- Who it's for ---------- */
.who-card {
  border: 1px solid var(--border);
  background: var(--white);
  max-width: 1180px;
  margin: 40px auto 0;
  padding: 50px 54px 50px;
}
.who-card h3 { font-size: 22px; font-weight: 500; line-height: 1.4; margin-bottom: 24px; }
.who-card .who-quote {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-size: 16px;
  color: #4a5057;
  line-height: 1.5;
}
.who-list { list-style: none; padding: 0; margin: 0; }
.who-list li {
  font-size: 15px;
  color: var(--text);
  padding: 24px 0 24px;
  border-bottom: 1px solid #e3e4e2;
}
.who-list li:first-child { padding-top: 6px; }
.who-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.who-list li::before { content: "— "; color: var(--ink); font-weight: 700; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.testi-card {
  border: 1px solid var(--line-dark);
  padding: 30px 26px 30px;
  display: flex;
  flex-direction: column;
}
.testi-card blockquote {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--white);
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-dark);
}
.testi-card .result {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9d2ce;
  margin-bottom: 20px;
}
.testi-card .who { font-size: 14px; color: #9fb1aa; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 820px;
  margin: 40px auto 0;
  padding: 26px 0 26px 40px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
}
.tl-item { position: relative; margin-bottom: 64px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -46px;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--light-bg-2);
}
.tl-item.milestone::before { background: var(--ink); width: 16px; height: 16px; left: -47px; }
.tl-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.tl-label .gold-check { width: 14px; height: 14px; }
.tl-text {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.55;
  color: #3a3f45;
}
.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 4px 16px;
  border-radius: 999px;
  margin-top: 6px;
}
.tl-badge svg { width: 12px; height: 12px; }

/* ---------- FAQ (Bootstrap accordion overrides) ---------- */
.faq-wrap { max-width: 820px; margin: 40px auto 0; }
.faq-wrap .accordion-item {
  background: var(--light-bg-2);
  border: 0;
  border-radius: 6px !important;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-wrap .accordion-button {
  background: var(--light-bg-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 18px 16px;
  box-shadow: none;
}
.faq-wrap .accordion-button:not(.collapsed) { background: var(--light-bg-2); color: var(--ink); }
.faq-wrap .accordion-button:focus { box-shadow: none; }
.faq-wrap .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231e2329' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3.5 6l4.5 4.5L12.5 6'/%3e%3c/svg%3e");
  width: 16px;
  height: 16px;
  background-size: 16px;
}
.faq-wrap .accordion-body { font-size: 15px; color: var(--text); padding: 0 16px 20px; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 56px auto 0;
}
.price-card {
  border: 1px solid var(--border);
  padding: 44px 28px 32px;
  display: flex;
  flex-direction: column;
  background: var(--white);
}
.price-card .plan {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.price-card .price {
  font-family: var(--font-price);
  font-size: var(--fs-price);
  font-weight: 400;
  color: var(--green-900);
  line-height: 1;
  margin-bottom: 30px;
}
.price-card .price small {
  font-family: var(--font-price);
  font-size: 15px;
  color: var(--text);
}
.price-card ul { list-style: none; padding: 0; margin: 0 0 50px; flex-grow: 1; }
.price-card li {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}
.price-card li svg { width: 13px; height: 13px; margin-top: 2px; color: var(--ink); flex-shrink: 0; }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; padding: 96px 0; }
.final-cta h2 { color: var(--white); font-size: var(--fs-h2); line-height: 1.25; max-width: 760px; margin: 0 auto 28px; }
.final-cta p { color: #e7ecea; max-width: 820px; margin: 0 auto 26px; line-height: 1.45; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1199.98px) {
  :root { --fs-h1: 52px; --fs-h2: 40px; }
}

@media (max-width: 991.98px) {
  :root { --fs-h1: 46px; --fs-h2: 36px; --fs-p: 17px; --fs-price: 38px; }
  .section { padding: 80px 0; }
  .hero { padding: 70px 0; }
  .sim-card { margin: 56px auto 0; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-card:nth-child(2) { border-right: 0; }
  .problem-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-card { border-right: 1px solid var(--line-dark) !important; border-bottom: 1px solid var(--line-dark) !important; }
  .tool-card:nth-child(2n) { border-right: 0 !important; }
  .tool-card:nth-last-child(-n+2) { border-bottom: 0 !important; }
  .testi-grid { grid-template-columns: 1fr; max-width: 620px; margin-left: auto; margin-right: auto; }
  .who-card { padding: 40px 32px; }
  .who-card .who-left { margin-bottom: 32px; }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 767.98px) {
  :root { --fs-h1: 38px; --fs-h2: 30px; --fs-p: 16px; --fs-price: 36px; }
  .section { padding: 64px 0; }
  .final-cta { padding: 64px 0; }
  .header-actions { gap: 14px; }
  .header-actions .btn-mc { padding: 10px 16px; font-size: 14px; }
  .logo { font-size: 18px; }
  .problem-grid,
  .tools-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .problem-card:last-child { border-bottom: 0; }
  .tool-card { border-right: 0 !important; border-bottom: 1px solid var(--line-dark) !important; }
  .tool-card:last-child { border-bottom: 0 !important; }
  .check-list { grid-template-columns: 1fr; }
  .check-list .item:nth-last-child(2) { border-bottom: 1px solid #e3e4e2; }
  .tl-text { font-size: 17px; }
  .testi-card blockquote { font-size: 18px; }
  .sim-card { padding: 20px 18px; }
  .sim-row { grid-template-columns: 1.3fr 1.3fr 1fr 0.9fr; padding: 10px; font-size: 12px; }
  .sim-row .spark { width: 48px; }
}

@media (max-width: 575.98px) {
  :root { --fs-h1: 34px; --fs-h2: 28px; }
  .container-mc { padding: 0 16px; }
  .login-link { display: none; }
  .logo { font-size: 16px; white-space: nowrap; }
  .header-actions .btn-mc { padding: 9px 12px; font-size: 13px; white-space: nowrap; }
  .hero .hero-btns { gap: 14px; }
  .hero .hero-btns .btn-mc { width: 100%; }
  .who-card { padding: 32px 22px; }
  .timeline { padding-left: 30px; }
  .tl-item::before { left: -36px; }
  .tl-item.milestone::before { left: -37px; }
  .sim-foot { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
}

/* Desktop-only line breaks so headings wrap exactly like the design */
@media (min-width: 992px) {
  .section-title,
  .final-cta h2 { max-width: none; }
}
@media (max-width: 991.98px) {
  .br-lg { display: none; }
}

/* ==========================================================
   Multi-page additions: nav, footer, About, Pricing page
   ========================================================== */

/* ---------- Header / Navigation ---------- */
.site-header { position: relative; z-index: 10; }
.site-header .navbar { flex-wrap: wrap; justify-content: space-between; }
.logo-mark { display: inline-flex; align-items: center; }
.logo-mark svg { width: 40px; height: 30px; }
.navbar-collapse { flex-grow: 1; }
.main-nav {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
  padding: 0;
}
.main-nav a {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  color: var(--white);
  transition: color .2s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--gold); }

.nav-toggle {
  border: 0;
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 5px;
  box-shadow: none !important;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 34px 0;
  text-align: center;
}
.site-footer p { font-size: 14px; color: #8d9ca8; margin: 0; }
.site-footer a { color: #8d9ca8; }
.site-footer a:hover { color: var(--gold); }
.site-footer .sep { color: #c9d2ce; margin: 0 2px; }

/* ---------- About: page hero ---------- */
.page-hero { padding: 90px 0 90px; text-align: center; }
.page-hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.01em;
  margin: 0 auto 26px;
}
.page-hero p { color: #c3ccc9; max-width: 760px; margin: 0 auto; line-height: 1.45; }

/* ---------- About: mission band ---------- */
.mission-band { padding: 90px 0; text-align: center; }
.mission-band blockquote {
  font-family: var(--font-head);
  font-style: italic;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 auto;
  max-width: 820px;
}

/* ---------- About: brand story ---------- */
.story-body { max-width: 820px; margin: 28px auto 0; text-align: center; }
.story-body p { margin-bottom: 22px; line-height: 1.45; }
.story-body p:last-child { margin-bottom: 0; }
.story-body .story-note { font-style: italic; }

/* ---------- Pricing page ---------- */
.pricing-page { padding-top: 90px; }
.pricing-page .price-grid { margin-top: 40px; }
.price-card.featured { background: var(--green-900); border-color: var(--green-900); }
.price-card.featured .plan { color: var(--gold); }
.price-card.featured .price,
.price-card.featured .price small { color: var(--white); }
.price-card.featured li { color: var(--white); font-weight: 500; }
.price-card.featured li svg { color: var(--gold); }
.price-card.featured .btn-white { width: 100%; font-weight: 600; font-size: 15px; padding: 12px 20px; }

/* ---------- Responsive nav ---------- */
@media (min-width: 992px) {
  .site-header .navbar-collapse { display: flex !important; }
  .main-nav { padding-right: 60px; }
}
@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .navbar-collapse { flex-basis: 100%; }
  .main-nav { flex-direction: column; align-items: flex-start; gap: 0; margin: 18px 0 8px; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .site-header .header-actions { padding: 12px 0 6px; }
  .site-header .login-link { display: inline-block; }
  .mission-band { padding: 70px 0; }
  .mission-band blockquote { font-size: 26px; }
  .page-hero { padding: 70px 0; }
}
@media (max-width: 575.98px) {
  .mission-band blockquote { font-size: 22px; }
  .site-footer p { font-size: 13px; line-height: 1.8; }
}
