/* =============================================
   LearnBetter — Styles
   Colors: #3457A5 accent | #F5F5F5 bg | #F9FAFB card | #ffffff button text
============================================= */

:root {
  --accent:       #3457A5;
  --accent-light: #4a6cbf;
  --accent-dark:  #2a4590;
  --bg:           #F5F5F5;
  --card-bg:      #F9FAFB;
  --white:        #ffffff;
  --text:         #0f172a;
  --muted:        #64748b;
  --border:       #e2e8f0;
  --shadow:       0 4px 24px rgba(52,87,165,0.08);
  --shadow-lg:    0 24px 80px rgba(52,87,165,0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────── */
.display { font-size: clamp(72px,10vw,160px); font-weight:900; line-height:.9; letter-spacing:-0.04em; }
h1  { font-size: clamp(38px,5.5vw,60px);  font-weight:800; line-height:1.08; letter-spacing:-0.025em; }
h2  { font-size: 30px; font-weight:700; line-height:1.2; letter-spacing:-0.01em; }
h3  { font-size: 18px; font-weight:600; line-height:1.4; }
p   { font-size: 15px; color: var(--muted); line-height:1.75; }
.caption { font-size: 12px; }

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section-header h2  { margin-bottom: 14px; }

/* ── Labels / Badges ─────────────────────────── */
.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  background: rgba(52,87,165,.08);
  border: 1px solid rgba(52,87,165,.15);
  padding: 4px 13px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.accent { color: var(--accent); }

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(52,87,165,.32);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(52,87,165,.04);
}
.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 10px; }
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

/* ── Navigation (Floating Pill) ──────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  /* transparent outer — lets hero video/bg show through */
  background: transparent;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

/* The pill itself */
.nav-pill {
  width: 100%;
  max-width: 1180px;
  pointer-events: auto;   /* re-enable inside pointer-events:none nav */
  touch-action: auto;     /* iOS fix */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 16px;
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 9999px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.13);
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-transform: translateZ(0); /* force iOS compositing layer */
}

/* Logo */
.nav-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin-left: 8px;
}
.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity .3s, filter .3s;
}
.nav-logo-wrap:hover .nav-logo-img {
  opacity: .7;
}

/* Logo text — always visible alongside the icon */
.nav-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  display: block;
  margin-left: 8px;
}
.nav-logo-text em {
  font-style: italic;
}

/* Right side wrapper */
.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Text links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: #4B5563;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.01em;
  transition: color .2s;
  -webkit-font-smoothing: antialiased;
}
.nav-links a:hover,
.nav-links a.active { color: #000; }

/* CTA pill button */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  background: var(--accent);
  border-radius: 9999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: background .2s, transform .15s;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}
.nav-cta:hover { background: var(--accent-dark); transform: scale(1.02); }
.nav-cta:active { transform: scale(.97); }

.nav-cta-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.nav-cta:hover .nav-cta-circle { transform: scale(1.1); }

.nav-cta-arrow {
  width: 16px; height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  color: #4B5563;
  transition: background .2s, color .2s;
  flex-shrink: 0;
  pointer-events: auto;      /* explicit iOS fix */
  touch-action: manipulation; /* prevents 300ms delay + double-tap zoom */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.nav-hamburger:hover { background: #f3f4f6; color: #000; }

/* Mobile dropdown — matches React component exactly */
.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px; right: 16px;          /* left-4 right-4 */
  background: #fff;
  border-radius: 24px;               /* rounded-2xl */
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 4px 16px rgba(0,0,0,0.08); /* shadow-xl */
  border: 1px solid #f3f4f6;         /* border-gray-100 */
  padding: 16px;                     /* p-4 */
  flex-direction: column;
  gap: 16px;                         /* gap-4 */
  z-index: 10;
  pointer-events: auto;
  animation: dropdownIn .2s ease both;
}
.nav-mobile.open { display: flex; }

/* Plain nav links inside dropdown */
.nav-mobile > a:not(.nav-cta) {
  text-decoration: none;
  font-size: 18px;                   /* text-lg */
  font-weight: 500;                  /* font-medium */
  color: #374151;                    /* text-gray-700 */
  padding: 8px 16px;                 /* px-4 py-2 */
  border-radius: 12px;               /* rounded-xl */
  transition: background .15s, color .15s;
}
.nav-mobile > a:not(.nav-cta):hover { background: #f9fafb; color: #000; }

.nav-mobile hr {
  border: none;
  border-top: 1px solid #f3f4f6;    /* border-gray-100 */
  margin: 0;
}

/* CTA button inside dropdown */
.nav-mobile .nav-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;    /* text left, circle right */
  width: 100%;
  padding: 12px 12px 12px 20px;     /* px-5 py-3 (left padding for text, right for circle) */
  font-size: 16px;                   /* text-base */
  font-weight: 700;                  /* font-bold */
  border-radius: 9999px;
  gap: 0;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nav outer wrapper for relative positioning (needed for mobile dropdown) */
.nav-outer {
  width: 100%;
  max-width: 1180px;
  position: relative;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-pill .nav-cta { display: none; }   /* hide pill links/CTA — NOT the dropdown CTA */
  .nav-hamburger { display: flex; align-items: center; justify-content: center; }
}

/* ── Scroll-Controlled Video Hero ─────────────── */
.sv-root {
  width: 100%;
  display: block;
}

.sv-wrapper {
  position: relative;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;   /* lets JS take over when scrubbing */
}

.sv-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1s;
}
.sv-video.loaded { opacity: 1; }

/* Dark/blur overlay — transitions driven by JS */
.sv-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.2;
  pointer-events: none;
  transition: opacity 0.5s ease-out, backdrop-filter 0.5s ease-out, -webkit-backdrop-filter 0.5s ease-out;
}

/* Centred text */
.sv-text-wrap {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
  margin: 0 auto;
  pointer-events: none;
  padding-top: env(safe-area-inset-top);
}
.sv-text-inner {
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.sv-title {
  font-size: clamp(1.7rem, 4vw, 3.375rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 1.5rem;
  line-height: 1.2;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.sv-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  color: #fff;
  margin: 0 0 2rem;
  line-height: 1.6;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.9));
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Scroll hint */
.sv-hint {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.5s 1s;   /* 1s delay before showing */
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
}
.sv-hint-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.8;
  animation: svBounce 1s infinite ease-in-out;
}
.sv-hint-text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
  display: block;
}

@keyframes svBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Old Hero (removed) ─────────────────────── */
/* kept selector stubs so other pages don't break */
.hero { display: none; }
.scroll-hint { display: none; }

.hero-text { padding-right: 20px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52,87,165,.1);
  border: 1px solid rgba(52,87,165,.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
  animation: fadeUp .6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

.hero-title {
  margin-bottom: 22px;
  animation: fadeUp .6s .08s ease both;
}

.hero-subtitle {
  font-size: 17px;
  max-width: 460px;
  margin-bottom: 36px;
  animation: fadeUp .6s .16s ease both;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp .6s .24s ease both;
}

.hero-social-proof {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp .6s .32s ease both;
}
.avatars {
  display: flex;
}
.avatars span {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: -8px;
}
.avatars span:first-child { margin-left: 0; }
.social-proof-text { font-size: 13px; color: var(--muted); }
.social-proof-text strong { color: var(--text); }

/* Hero Visual — App Mockup */
.hero-visual {
  animation: fadeUp .7s .1s ease both;
  position: relative;
}

.hero-video-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, #1e3a8a 0%, var(--accent) 60%, #6d85c9 100%);
  position: relative;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* App mockup shown over / when video absent */
.app-mockup {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  font-size: 13px;
}
.app-mockup-bar {
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(8px);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.dot { width:10px;height:10px;border-radius:50%; }
.dot-r{background:#ff5f57;} .dot-y{background:#febc2e;} .dot-g{background:#28c840;}
.app-mockup-bar span { color:rgba(255,255,255,.6); font-size:12px; margin-left:10px; }

.app-mockup-body {
  flex: 1;
  display: grid;
  grid-template-columns: 160px 1fr;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(12px);
}
.app-sidebar {
  border-right: 1px solid rgba(255,255,255,.08);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-sidebar-item {
  padding: 8px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 500;
  cursor: default;
  transition: all .2s;
}
.app-sidebar-item.active {
  background: rgba(52,87,165,.5);
  color: white;
}
.app-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}
.app-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 16px;
}
.app-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}
.app-card-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}
.app-conf-bar {
  height: 4px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  overflow: hidden;
}
.app-conf-fill {
  height: 100%;
  background: linear-gradient(90deg,#4ade80,#22c55e);
  border-radius: 100px;
  width: 72%;
}
.app-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.app-card-sm {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px;
}
.app-card-sm .app-card-title { font-size: 12px; margin-bottom: 4px; }
.app-card-due { font-size: 11px; color: rgba(255,255,255,.35); }

/* Scroll indicator */
.scroll-hint {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 10;
  animation: fadeIn 1s .9s ease both;
  pointer-events: none;
}
.scroll-chevron {
  width: 18px; height: 18px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

/* ── Retention System ─────────────────────────── */
.rs-section {
  background: #ffffff;
  padding: 80px 16px 48px;
}
@media (min-width: 1024px) {
  .rs-section { padding: 120px 32px 64px; }
}

.rs-inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* Header */
.rs-header {
  max-width: 768px;
  margin: 0 auto 32px;
  text-align: center;
}
@media (min-width: 1024px) { .rs-header { margin-bottom: 64px; } }

.rs-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}

.rs-subheading {
  font-size: 1.1rem;
  color: #374151;
  line-height: 1.7;
}

/* 2×2 grid */
.rs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .rs-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Card */
.rs-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 32px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.08);
  /* All color properties transition together */
  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
  color: #374151;
  /* scroll reveal */
  opacity: 0;
  transform: translateY(20px);
}
.rs-card.visible {
  opacity: 1;
  transform: translateY(0);
}
.rs-card:hover {
  transform: scale(1.03);
  background-color: #2050B3;
  color: #ffffff;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.12), 0 10px 10px -5px rgba(0,0,0,.06);
}
.rs-card:active { transform: scale(0.98); }

/* Label row */
.rs-label-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 16px;
}
.rs-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6B7280;
  transition: color 0.25s ease;
}
.rs-card:hover .rs-label { color: #ffffff; }

.rs-sublabel {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9CA3AF;
  transition: color 0.25s ease;
}
.rs-card:hover .rs-sublabel { color: #ffffff; }

/* Headline */
.rs-card-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  transition: color 0.25s ease;
}
.rs-card:hover .rs-card-headline { color: #ffffff; }

/* Body */
.rs-card-body {
  font-size: 15px;
  line-height: 1.7;
  color: inherit;        /* inherits card color — auto-flips on hover */
}

/* CTA */
.rs-cta {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  padding-bottom: 16px;
}
@media (min-width: 1024px) { .rs-cta { margin-top: 80px; } }

/* Ada-style button (reusable) */
.ada-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 20px;
  background: var(--accent);
  border-radius: 9999px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(52,87,165,.2);
  -webkit-font-smoothing: antialiased;
}
.ada-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(52,87,165,.3);
}
.ada-btn:active { transform: scale(.96); }

.ada-btn-circle {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .2s;
}
.ada-btn:hover .ada-btn-circle { transform: scale(1.1); }
.ada-btn-circle svg {
  width: 16px; height: 16px;
  stroke: var(--accent);
}

/* ── Forgetting Curve / Time Saver ───────────── */
.fc-section {
  padding: 120px 0;
  background: var(--white);
}
.fc-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: center;
}

/* Left pillar text */
.pillar-h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #111827;
  margin-bottom: 12px;
}
.fc-subhead {
  font-size: 15px;
  font-weight: 400;
  color: #374151;
  line-height: 1.6;
  margin-bottom: 14px;
}
.pillar-description {
  font-size: 15px;
  line-height: 1.75;
  color: #4B5563;
}

/* Right chart area */
.fc-chart-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fc-chart-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: visible;
}
.fc-chart-container svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Legend */
.fc-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.fc-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.fc-legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Green Ada button variant */
.ada-btn-green {
  background: #dcfce7;
  color: #14532d;
  box-shadow: 0 2px 8px rgba(22,163,74,.15);
}
.ada-btn-green:hover {
  background: #bbf7d0;
  box-shadow: 0 8px 20px rgba(22,163,74,.25);
}
.ada-btn-circle-green {
  background: #16a34a;
}
.ada-btn-green .ada-btn-circle-green svg { stroke: #ffffff; }

/* ── Concept To Question ─────────────────────── */
.ctq-section {
  padding: 120px 0 64px;
  background: #FAFAFA;
}
.ctq-section .section-header {
  max-width: 860px;
}
.ctq-section .section-header h2 {
  font-size: 30px;
}
.ctq-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.ctq-layout {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: stretch;
  height: 550px;
}

/* Cards */
.ctq-card {
  flex: 1;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.ctq-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.ctq-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #F3F4F6;
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  flex-shrink: 0;
}
.ctq-label-text {
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Text area */
.ctq-text-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 6px;
}
.ctq-para {
  font-size: 17px;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 16px;
}
.ctq-para:last-child { margin-bottom: 0; }

/* Concept spans */
.ctq-concept {
  border-radius: 4px;
  padding: 1px 4px;
  border: 1px solid transparent;
  transition: background-color .25s, color .25s, border-color .25s;
  position: relative;
  display: inline;
  cursor: default;
}
.ctq-concept--active-accept {
  background: rgba(16,185,129,.18);
  color: #065F46;
  border-color: #10B981;
}
.ctq-concept--active-reject {
  background: rgba(239,68,68,.12);
  color: #991B1B;
  border-color: #EF4444;
}
.ctq-concept--revealed-accept {
  background: rgba(16,185,129,.12);
  color: #10B981;
}
.ctq-concept--revealed-reject {
  color: #9CA3AF;
}

/* Floating tooltip on active concept */
.ctq-concept-tip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(.9);
  opacity: 0;
  transition: opacity .15s, transform .15s;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
  pointer-events: none;
  z-index: 20;
}
.ctq-concept-tip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
}
.ctq-concept--active-accept .ctq-concept-tip,
.ctq-concept--active-reject .ctq-concept-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.ctq-concept-tip--accept { background: #059669; }
.ctq-concept-tip--accept::after { border-top-color: #059669; }
.ctq-concept-tip--reject { background: #EF4444; }
.ctq-concept-tip--reject::after { border-top-color: #EF4444; }

/* Scan line */
.ctq-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(59,130,246,.5);
  box-shadow: 0 0 15px rgba(59,130,246,.5);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  top: -2px;
}
@keyframes ctqScan {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
.ctq-scan-line--active {
  animation: ctqScan 0.8s linear forwards;
}

/* Middle arrow */
.ctq-arrow-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
}
@keyframes ctqArrowPulse {
  0%,100% { transform: translateX(0); }
  50%     { transform: translateX(5px); }
}
.ctq-arrow-icon {
  animation: ctqArrowPulse 1.5s ease-in-out infinite;
}

/* Right: accepted box */
.ctq-accepted-wrap {
  min-height: 140px;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.ctq-accepted-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid #dcfce7;
  padding-bottom: 12px;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .3s, transform .3s;
}
.ctq-accepted-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.ctq-accepted-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.ctq-accepted-name {
  font-size: 17px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
}
.ctq-accepted-label {
  font-size: 10px;
  color: #16a34a;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 4px;
}
.ctq-accepted-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #bbf7d0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Right: divider */
.ctq-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  opacity: 0;
  transition: opacity .5s;
  flex-shrink: 0;
}
.ctq-divider-line { flex: 1; height: 1px; background: #E5E7EB; }
.ctq-divider-text {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
  white-space: nowrap;
}

/* Right: rejected list */
.ctq-rejected-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctq-rejected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 10px;
  background: #FEF2F2;
  border: 1px solid #FEE2E2;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .3s, transform .3s;
}
.ctq-rejected-item.visible { opacity: 1; transform: translateX(0); }
.ctq-rejected-name { font-size: 14px; color: #6B7280; font-weight: 500; }
.ctq-rejected-x {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #FEE2E2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F87171;
  flex-shrink: 0;
}

/* CTA */
.ctq-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
  .ctq-layout { flex-direction: column; height: auto; }
  .ctq-card { height: 500px; }
  .ctq-arrow-wrap { width: 100%; height: 40px; }
  .ctq-arrow-icon { animation: none; transform: rotate(90deg); }
}

/* ── Bloom's Taxonomy Slider ─────────────────── */
.blooms-section {
  padding: 120px 0;
  background: #F9FAFB;
}
.blooms-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}
.blooms-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: center;
}

/* Left */
.blooms-heading {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.blooms-subheading {
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
}

/* Card */
.blooms-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 20px 40px -10px rgba(52,87,165,.2), 0 0 0 1px rgba(0,0,0,.03);
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Card top */
.blooms-card-top {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #F9FAFB;
  background: #ffffff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.blooms-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.blooms-level-name {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  transition: color .3s;
}
.blooms-level-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: #F3F4F6;
  color: #6B7280;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}
.blooms-context-wrap {
  transition: opacity .25s;
}
.blooms-context-heading {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin-bottom: 8px;
}
.blooms-context-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.6;
  margin: 0;
}

/* Card middle */
.blooms-card-middle {
  flex: 1;
  background: rgba(249,250,251,.5);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.blooms-challenge-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0;
  transform: scale(.95);
  transition: opacity .25s, transform .25s;
}
.blooms-challenge-inner.active {
  opacity: 1;
  transform: scale(1);
}
.blooms-challenge-inner.exit {
  opacity: 0;
  transform: scale(1.04);
}
.blooms-challenge-type {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #9CA3AF;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 6px;
}
.blooms-challenge-text {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  line-height: 1.55;
  margin: 0 0 10px;
}
.blooms-visualizer {
  margin-top: auto;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #F3F4F6;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  width: 100%;
}
.blooms-visualizer--categorize {
  margin-top: 8px;
  margin-bottom: 2px;
  min-height: 0;
  max-height: none;
  align-items: stretch;
  justify-content: flex-start;
  overflow: visible;
}
.blooms-card--categorize {
  height: auto;
}
.blooms-card--categorize .blooms-card-middle {
  padding: 16px 20px 14px;
  overflow: visible;
}
.blooms-card--categorize .blooms-visualizer--categorize {
  margin-top: 6px;
  margin-bottom: 0;
}
.blooms-card--categorize + .blooms-slider-wrap {
  margin-top: 14px;
}
.blooms-card--simulation {
  height: auto;
}
.blooms-card--simulation .blooms-card-middle {
  padding: 14px 20px 14px;
  overflow: visible;
}
.blooms-card--simulation .blooms-visualizer--simulation {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 0;
  align-items: stretch;
  justify-content: flex-start;
}
.blooms-card--simulation + .blooms-slider-wrap {
  margin-top: 14px;
}
.blooms-card--venn {
  height: auto;
}
.blooms-card--venn .blooms-card-middle {
  padding: 14px 20px 18px;
  overflow: visible;
}
.blooms-card--venn .blooms-visualizer--venn {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 0;
}
.blooms-card--venn + .blooms-slider-wrap {
  margin-top: 14px;
}
.blooms-card--compare-select {
  height: auto;
}
.blooms-card--compare-select .blooms-card-middle {
  padding: 14px 20px 18px;
  overflow: visible;
}
.blooms-card--compare-select .blooms-visualizer--compare-select {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 0;
}
.blooms-card--compare-select + .blooms-slider-wrap {
  margin-top: 14px;
}
.blooms-card--flowchart {
  height: auto;
}
.blooms-card--flowchart .blooms-card-middle {
  padding: 14px 20px 18px;
  overflow: visible;
}
.blooms-card--flowchart .blooms-visualizer--flowchart {
  margin-top: 6px;
  margin-bottom: 0;
  min-height: 0;
}
.blooms-card--flowchart + .blooms-slider-wrap {
  margin-top: 14px;
}

/* Slider */
.blooms-slider-wrap { margin-top: 28px; padding: 0 2px; }
.blooms-track-wrap {
  position: relative;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
}
.blooms-track-bg {
  position: absolute;
  width: 100%;
  height: 8px;
  border-radius: 100px;
  background: #E5E7EB;
}
.blooms-track-fill {
  position: absolute;
  height: 8px;
  border-radius: 100px;
  background: var(--accent);
  pointer-events: none;
}
.blooms-thumb {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transform: translateX(-50%);
}
.blooms-thumb-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.blooms-input {
  position: absolute;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
  margin: 0;
}
.blooms-labels {
  position: relative;
  width: 100%;
  height: 24px;
  margin-top: 8px;
}
.blooms-label {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #D1D5DB;
  transition: color .2s;
  white-space: nowrap;
  letter-spacing: .04em;
}
.blooms-label.active-label { color: var(--accent); }

@media (max-width: 1024px) {
  .blooms-grid { grid-template-columns: 1fr; gap: 48px; }
  .blooms-card { height: 580px; }
  .blooms-card--categorize { height: auto; }
  .blooms-card--simulation { height: auto; }
  .blooms-card--venn       { height: auto; }

  /* Scrollable tall cards on smaller screens */
  .blooms-card--compare-select { height: auto; }
  .blooms-card--compare-select .blooms-card-middle {
    overflow-y: auto;
    max-height: 420px;
    -webkit-overflow-scrolling: touch;
  }
  .blooms-card--flowchart { height: auto; }
  .blooms-card--flowchart .blooms-card-middle {
    overflow-y: auto;
    max-height: 420px;
    -webkit-overflow-scrolling: touch;
  }
}

/* ── Concept Demo (legacy — keep for safety) ─── */
.concept-demo { padding: 120px 0; }

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 8px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  letter-spacing: .01em;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(52,87,165,.25);
}

.concepts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.concept-card {
  background: var(--white);
  border-radius: 16px;
  padding: 26px;
  border: 1px solid var(--border);
  transition: all .25s ease;
}
.concept-card.hidden { display: none; }
.concept-card:hover {
  border-color: rgba(52,87,165,.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.concept-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(52,87,165,.08);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.concept-card h3 { color: var(--text); margin-bottom: 8px; font-size: 16px; }
.concept-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.concept-meta span { font-size: 12px; color: var(--muted); font-weight: 500; }
.mastery-pip {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

/* ── Align Section ────────────────────────────── */
.align-section {
  padding: 120px 0;
  background: var(--white);
}
.align-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.align-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.align-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.align-card:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.align-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
}
.align-card-head .icon { font-size: 18px; }
.prog-row { display: flex; align-items: center; gap: 12px; }
.prog-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.prog-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 100px;
}
.prog-label { font-size: 12px; font-weight: 700; color: var(--accent); }
.align-card p { font-size: 13px; }

.align-content h2 { margin-bottom: 18px; }
.align-content > p { margin-bottom: 30px; }

.check-list {
  list-style: none;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--muted);
}
.check-list li::before {
  content: '✓';
  width: 22px; height: 22px;
  background: rgba(52,87,165,.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

/* ── Steps Section ────────────────────────────── */
.steps-section {
  padding: 120px 0;
  background: #F9FAFB;
}
.steps-section .section-header { margin-bottom: 56px; }
.steps-section .section-header h2 { font-size: 30px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}
.step-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 28px 32px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.step-card.visible { opacity: 1; transform: translateY(0); }

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.step-img {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 10/7;
  margin-bottom: 24px;
}
.step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
  display: block;
}
.step-card:hover .step-img img { transform: scale(1.04); }
.step-card h3 { font-size: 20px; font-weight: 600; color: #111827; margin-bottom: 10px; }
.step-card p  { font-size: 15px; color: #6B7280; line-height: 1.65; margin: 0; }

/* ── Testimonials Carousel ────────────────────── */
.testimonials {
  padding: 120px 0;
  background: #F3F4F6;
}
.testimonials .section-header { margin-bottom: 56px; }

.testi-carousel { display: flex; flex-direction: column; align-items: center; }

.testi-stack {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 900px;
  perspective: 1000px;
  perspective-origin: center center;
}

.testi-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 340px;
  max-width: 85vw;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border: 2px solid transparent;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.35s ease,
              border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 340px;
  will-change: transform, opacity;
  backface-visibility: hidden;
  overflow: hidden;
  user-select: none;
}

.testi-quote-mark {
  position: absolute;
  top: 10px;
  left: 18px;
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
}

.testi-quote {
  font-size: 14px;
  color: #374151;
  font-style: italic;
  line-height: 1.75;
  margin-top: 40px;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #F3F4F6;
  margin-top: auto;
}

.testi-avatar-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}

.testi-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testi-avatar-fallback {
  width: 100%;
  height: 100%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testi-name {
  display: block;
  font-weight: 700;
  color: #111827;
  font-size: 14px;
  line-height: 1.2;
}

.testi-role {
  display: block;
  font-size: 12px;
  color: #6B7280;
  margin-top: 3px;
}

/* Controls */
.testi-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.testi-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background .2s, transform .15s;
  flex-shrink: 0;
}
.testi-btn:hover  { background: rgba(52,87,165,0.08); }
.testi-btn:active { transform: scale(0.9); }

.testi-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: none;
  background: var(--accent);
  opacity: 0.3;
  cursor: pointer;
  transition: width .3s ease, opacity .3s ease;
  padding: 0;
  flex-shrink: 0;
}
.testi-dot.active { width: 24px; opacity: 1; }

@media (max-width: 600px) {
  .testi-stack { height: 340px; }
  .testi-card  { height: 300px; padding: 22px; }
  .testi-quote { font-size: 13px; margin-top: 34px; -webkit-line-clamp: 4; }
}

/* ── Bloom's CTA strip ───────────────────────── */
.blooms-cta-strip {
  padding: 0 28px 80px;
  background: #F9FAFB;
  display: flex;
  justify-content: center;
}
.blooms-cta-btn {
  font-size: 17px;
  padding: 16px 32px;
}

/* ── CTA Strip ────────────────────────────────── */
.cta-strip {
  padding: 120px 28px;
  text-align: center;
  background: linear-gradient(140deg, var(--accent-dark) 0%, var(--accent) 55%, var(--accent-light) 100%);
}
.cta-strip h2 { color: white; margin-bottom: 14px; }
.cta-strip p  { color: rgba(255,255,255,.75); font-size: 17px; margin-bottom: 40px; }
.cta-strip .btn-primary {
  background: white;
  color: var(--accent);
}
.cta-strip .btn-primary:hover {
  background: rgba(255,255,255,.92);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}

/* ── Footer ───────────────────────────────────── */
.footer {
  background: #0b1120;
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}
.footer-brand .nav-logo { color: white; display: block; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,.4); font-size: 14px; line-height: 1.7; }
.footer-col h4 {
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(255,255,255,.4);
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 24px 0;
}
.footer-bottom p { color: rgba(255,255,255,.25); font-size: 13px; }

/* ── Blog Page ────────────────────────────────── */
.page-hero {
  padding: 140px 28px 80px;
  text-align: center;
  background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 100%);
}
.page-hero h1 { margin-bottom: 14px; }
.page-hero p  { font-size: 18px; max-width: 480px; margin: 0 auto; }

.blog-section { padding: 80px 0 120px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all .3s ease;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(52,87,165,.2);
}
.blog-img {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#eef2ff,#c7d2fe);
  overflow: hidden;
}
.blog-img img { width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.blog-cat {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.blog-date { font-size: 12px; color: var(--muted); }
.blog-card h3 { color: var(--text); margin-bottom: 8px; font-size: 16px; line-height: 1.4; transition: color .2s; }
.blog-card:hover h3 { color: var(--accent); }
.blog-card p  { font-size: 13px; flex: 1; }
.blog-read-more {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Pricing Page ─────────────────────────────── */
.pricing-section { padding: 80px 0 120px; }

.billing-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 60px;
}
.billing-toggle span { font-size: 14px; font-weight: 500; color: var(--muted); }
.toggle-wrap { position: relative; width: 50px; height: 26px; }
.toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background .3s;
}
.toggle-track::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 4px; top: 4px;
  background: white;
  border-radius: 50%;
  transition: transform .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-wrap input:checked + .toggle-track { background: var(--accent); }
.toggle-wrap input:checked + .toggle-track::after { transform: translateX(24px); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  align-items: start;
}
.p-card {
  background: var(--white);
  border-radius: 22px;
  padding: 40px;
  border: 1px solid var(--border);
  transition: all .3s ease;
}
.p-card:hover:not(.p-featured) {
  box-shadow: var(--shadow);
  border-color: rgba(52,87,165,.2);
}
.p-card.p-featured {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}
.p-tier {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent);
  margin-bottom: 6px;
}
.p-featured .p-tier { color: rgba(255,255,255,.65); }
.p-badge {
  display: inline-block;
  background: rgba(255,255,255,.18);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.p-price { display: flex; align-items: flex-start; line-height: 1; margin: 8px 0 4px; }
.p-currency { font-size: 22px; font-weight: 700; color: var(--muted); padding-top: 10px; }
.p-featured .p-currency { color: rgba(255,255,255,.6); }
.p-amount { font-size: 58px; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.p-featured .p-amount { color: white; }
.p-period { font-size: 13px; color: var(--muted); margin-bottom: 22px; display: block; }
.p-featured .p-period { color: rgba(255,255,255,.6); }
.p-desc { font-size: 14px; color: var(--muted); margin-bottom: 28px; line-height: 1.6; }
.p-featured .p-desc { color: rgba(255,255,255,.75); }

.p-features {
  list-style: none;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.p-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.p-featured .p-features li { color: rgba(255,255,255,.82); }
.p-features li::before {
  content: '✓';
  width: 20px; height: 20px;
  background: rgba(52,87,165,.1);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.p-featured .p-features li::before {
  background: rgba(255,255,255,.18);
  color: white;
}
.p-card .btn { width: 100%; }
.p-featured .btn-primary { background: white; color: var(--accent); }
.p-featured .btn-primary:hover { background: rgba(255,255,255,.9); }

/* FAQ */
.faq-section { padding: 80px 0; background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.faq-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border);
}
.faq-card h3 { font-size: 16px; margin-bottom: 10px; color: var(--text); }

/* ── Shared Animations ────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounce {
  0%,100% { transform: rotate(45deg) translate(0,0); }
  50%      { transform: rotate(45deg) translate(3px,3px); }
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .4; }
}

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; max-width: 640px; text-align: center; }
  .hero-text { padding-right: 0; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { max-width: 560px; margin: 0 auto; }

  .features-grid,
  .steps-grid,
  .concepts-grid { grid-template-columns: repeat(2,1fr); }

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .p-card.p-featured { transform: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .features-grid,
  .steps-grid,
  .concepts-grid,
  .blog-grid,
  .faq-grid { grid-template-columns: 1fr; }

  .fc-grid,
  .align-grid,
  .footer-grid { grid-template-columns: 1fr; gap: 48px; }

  .fc-chart-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { text-align: center; }
}
