@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary: #4A6CF7;
  --primary-dark: #3B5DE7;
  --dark: #1E293B;
  --text: #334155;
  --text-light: #64748B;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navbar ─────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.navbar-brand span {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.navbar-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-links a:hover {
  color: var(--dark);
}

.navbar-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s !important;
}

.navbar-cta:hover {
  background: var(--primary-dark) !important;
}

/* ── Hero ───────────────────────────────────── */

.hero {
  text-align: center;
  padding: 88px 24px 72px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #EEF2FF;
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  border: 1px solid #D6DEFF;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

/* FLAW 1: White text on light yellow background — nearly unreadable */
.cta-button {
  background-color: #F5E642;
  color: #FFFFFF;
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
}

.cta-button:hover {
  transform: translateY(-1px);
}

/* ── Features ───────────────────────────────── */

.features {
  padding: 80px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 460px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #EEF2FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ── How It Works (Steps) ─────────────────────── */

.pricing {
  padding: 80px 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: box-shadow 0.2s;
}

/* FLAW 2: Inconsistent padding on second card */
.pricing-card:nth-child(2) {
  padding: 16px;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 12px;
}

.pricing-card:nth-child(2) .pricing-label {
  color: var(--primary);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 auto 12px;
}

.pricing-card:nth-child(2) .step-number {
  background: #EEF2FF;
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-desc {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

.pricing-btn {
  display: inline-block;
  width: 100%;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pricing-btn:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-card:nth-child(2) .pricing-btn {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pricing-card:nth-child(2) .pricing-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ── Testimonials ───────────────────────────── */

.testimonials {
  padding: 80px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* FLAW 3: Third testimonial text is too small */
.testimonial:nth-child(3) .testimonial-text {
  font-size: 0.7rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.88rem;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── Footer ─────────────────────────────────── */

.footer {
  padding: 56px 24px 28px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 36px;
}

.footer-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

/* FLAW 4: Footer links have no hover state */
.footer-col a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-light);
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .navbar-links {
    display: none;
  }
}
