/* ================================================================
   CNA Study Guide — Landing Page Styles
   Clean, medical-professional, warm and encouraging
   ================================================================ */

/* ── Variables ── */
:root {
  --red:    #DC2626;
  --blue:   #2563EB;
  --green:  #16A34A;
  --yellow: #D97706;
  --purple: #7C3AED;
  --bg:         #F8FAFC;
  --surface:    #FFFFFF;
  --border:     #E2E8F0;
  --text:       #1E293B;
  --text-muted: #64748B;
  --radius:     12px;
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -1px rgba(0,0,0,.06);
  --font-sans:  'Inter', system-ui, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ── Nav ── */
.lnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.lnav.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.lnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.lnav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
  margin-right: auto;
}

.lnav-icon { font-size: 22px; line-height: 1; }

.lnav-links {
  display: flex;
  gap: 24px;
}

.lnav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.lnav-links a:hover { color: var(--text); }

.lnav-cta {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.lnav-cta:hover { background: #1D4ED8; }

/* ── Hero ── */
.hero-lp {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 80px 24px;
}

.hero-lp-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-lp-badge {
  display: inline-block;
  background: #EFF6FF;
  color: var(--blue);
  border: 1px solid #BFDBFE;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-lp-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-lp-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-lp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-hero-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.1s;
}
.btn-hero-primary:hover { background: #1D4ED8; transform: translateY(-1px); }

.btn-hero-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: border-color 0.15s, color 0.15s;
}
.btn-hero-secondary:hover { border-color: var(--blue); color: var(--blue); }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; }
.btn-primary-lp {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
.btn-primary-lp:hover { background: #1D4ED8; }

.hero-lp-note { font-size: 12px; color: var(--text-muted); }

.hero-lp-visual { position: relative; }

.hero-lp-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.hero-lp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hbadge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.hbadge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hbadge-dot.red    { background: var(--red); }
.hbadge-dot.blue   { background: var(--blue); }
.hbadge-dot.green  { background: var(--green); }
.hbadge-dot.yellow { background: var(--yellow); }
.hbadge-dot.purple { background: var(--purple); }

/* ── Trust Strip ── */
.trust-strip {
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  padding: 24px;
}

.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-stat { text-align: center; }
.trust-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 4px;
}
.trust-stat span { font-size: 13px; color: var(--text-muted); }

.trust-div { width: 1px; height: 40px; background: #BFDBFE; }

/* ── Shared Section ── */
.section-header-lp { text-align: center; margin-bottom: 48px; }

.section-label-lp {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-h2-lp {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.section-sub-lp {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Features ── */
.features-lp { padding: 96px 24px; background: var(--bg); }
.features-lp-inner { max-width: 1200px; margin: 0 auto; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.feature-card-green { border-color: #BBF7D0; }

.feature-icon { font-size: 40px; margin-bottom: 16px; }

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.feature-list li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 18px;
  position: relative;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.cat-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cat-red    { background: #FEF2F2; color: var(--red);    border: 1px solid #FECACA; }
.cat-blue   { background: #EFF6FF; color: var(--blue);   border: 1px solid #BFDBFE; }
.cat-green  { background: #F0FDF4; color: var(--green);  border: 1px solid #BBF7D0; }

/* ── Preview ── */
.preview-section { padding: 96px 24px; background: #fff; border-top: 1px solid var(--border); }
.preview-section-inner { max-width: 1100px; margin: 0 auto; }

.preview-teasers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.preview-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sq-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.sq-card .cat-badge { margin-bottom: 12px; }

.sq-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.sq-answers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }

.sq-opt {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: var(--text);
}
.sq-opt:hover:not(:disabled) { border-color: var(--blue); background: #EFF6FF; }
.sq-opt.sq-correct { background: #DCFCE7; border-color: var(--green); color: #14532D; font-weight: 600; }
.sq-opt.sq-wrong { background: #FEE2E2; border-color: var(--red); color: #7F1D1D; }

.sq-feedback {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  color: #14532D;
  margin-bottom: 8px;
}

.sq-reveal-btn {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

/* Flashcard demo */
.fc-demo {
  width: 100%;
  max-width: 300px;
  height: 200px;
  position: relative;
  perspective: 800px;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.fc-demo-front, .fc-demo-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  backface-visibility: hidden;
  transition: transform 0.5s;
}

.fc-demo-front {
  background: var(--surface);
  border: 2px solid var(--border);
}
.fc-demo-back {
  background: #F0FDF4;
  border: 2px solid #BBF7D0;
  transform: rotateY(180deg);
}
.fc-demo.flipped .fc-demo-front { transform: rotateY(180deg); }
.fc-demo.flipped .fc-demo-back  { transform: rotateY(0); }

.fc-demo-q { font-family: var(--font-serif); font-size: 14px; color: var(--text); line-height: 1.6; }
.fc-demo-a { font-size: 16px; font-weight: 700; color: #14532D; }
.fc-demo-note { font-size: 12px; color: #166534; }
.fc-demo-hint { font-size: 11px; color: var(--text-muted); margin-top: auto; }

.fc-demo-caption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: 12px; }

/* Preview CTA */
.preview-cta-block {
  background: #F0F6FF;
  border: 1px solid #BFDBFE;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.preview-cta-text { font-size: 15px; color: var(--text); margin-bottom: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }
.preview-cta-text strong { color: var(--blue); }

/* ── Social Proof ── */
.social-proof { padding: 96px 24px; background: var(--bg); border-top: 1px solid var(--border); }
.social-proof-inner { max-width: 1100px; margin: 0 auto; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.testimonial-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.testimonial-stars { color: #F59E0B; font-size: 18px; margin-bottom: 12px; }

.testimonial-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}

.testimonial-author strong { display: block; font-size: 14px; color: var(--text); }
.testimonial-author span { font-size: 12px; color: var(--text-muted); }

.proof-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proof-stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.proof-num {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.proof-desc { font-size: 13px; color: var(--text-muted); }

/* ── Pricing ── */
.pricing-lp { padding: 96px 24px; background: #fff; border-top: 1px solid var(--border); }
.pricing-lp-inner { max-width: 900px; margin: 0 auto; }

.pricing-main-card {
  background: var(--bg);
  border: 2px solid var(--blue);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  margin-bottom: 40px;
}

.pricing-label-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.pricing-card-body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  padding: 40px;
}

.pricing-left h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

.pricing-features-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.pfx-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.pfx-icon {
  width: 20px;
  height: 20px;
  background: #DCFCE7;
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-right {
  border-left: 1px solid var(--border);
  padding-left: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.pricing-price { display: flex; flex-direction: column; align-items: center; }

.price-amount { font-size: 3.2rem; font-weight: 800; color: var(--text); line-height: 1; }
.price-label { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.price-note { font-size: 12px; color: var(--text-muted); font-style: italic; }

.price-secure { font-size: 12px; color: var(--text-muted); }

/* vs books table */
.vs-books { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.vs-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 20px; text-align: center; }

.vs-table { width: 100%; border-collapse: collapse; }
.vs-table .vs-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0; }
.vs-header { font-weight: 600; font-size: 12px; color: var(--text-muted); padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.vs-header span:not(:first-child) { text-align: center; }
.vs-row { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.vs-row:last-child { border-bottom: none; }
.vs-row span:not(:first-child) { text-align: center; }
.vs-yes { color: var(--green); font-weight: 700; }
.vs-no  { color: #CBD5E1; font-weight: 700; }
.vs-maybe { color: var(--text-muted); }
.vs-highlight { color: var(--blue) !important; }

/* ── FAQ ── */
.faq-lp { padding: 96px 24px; background: var(--bg); border-top: 1px solid var(--border); }
.faq-lp-inner { max-width: 800px; margin: 0 auto; }

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.faq-q:hover { color: var(--blue); }

.faq-arrow { font-size: 12px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-a {
  display: none;
  padding-bottom: 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
}
.faq-item.open .faq-a { display: block; }

/* ── Bottom CTA ── */
.bottom-cta {
  background: var(--text);
  padding: 100px 24px;
  text-align: center;
}

.bottom-cta-inner { max-width: 600px; margin: 0 auto; }

.bottom-cta-h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.bottom-cta-sub { font-size: 1rem; color: rgba(255,255,255,.6); margin-bottom: 32px; line-height: 1.7; }
.bottom-cta .btn-hero-primary { font-size: 16px; padding: 16px 36px; }

.bottom-cta-note { font-size: 13px; color: rgba(255,255,255,.4); margin-top: 16px; }
.bottom-cta-note a { color: rgba(255,255,255,.6); text-decoration: none; }
.bottom-cta-note a:hover { color: #fff; }

/* ── Footer ── */
.lfooter {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px;
}

.lfooter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.lfooter-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.lfooter-links { display: flex; gap: 20px; }
.lfooter-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.lfooter-links a:hover { color: var(--text); }

.lfooter-copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-lp-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-lp-visual { max-width: 500px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .preview-teasers { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 32px; }
  .proof-stat-row { grid-template-columns: repeat(3, 1fr); }
  .pricing-card-body { grid-template-columns: 1fr; }
  .pricing-right { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
}

@media (max-width: 768px) {
  .lnav-links { display: none; }
  .hero-lp { padding: 60px 20px; }
  .trust-strip-inner { gap: 24px; }
  .trust-div { display: none; }
  .proof-stat-row { grid-template-columns: 1fr; }
  .vs-table .vs-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .features-lp, .preview-section, .social-proof, .pricing-lp, .faq-lp { padding: 64px 20px; }
}

@media (max-width: 480px) {
  .hero-lp-actions { flex-direction: column; }
  .btn-hero-primary, .btn-hero-secondary, .btn-primary-lp, .btn-lg { width: 100%; text-align: center; }
  .vs-table .vs-row { grid-template-columns: 1fr 1fr; }
  .vs-row span:first-child { display: none; }
}