/* ============================================
   PATIENCE Learning — patiencelearning.com
   Mobile-First | Brand-Aligned | Conversion-Optimized
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:ital,wght@0,400;0,600;1,400&family=Outfit:wght@700;900&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
  --blue: #2563EB;
  --purple: #7C3AED;
  --magenta: #AB22AE;
  --gradient: linear-gradient(135deg, #2563EB, #7C3AED, #AB22AE);
  --gradient-hover: linear-gradient(135deg, #1d4ed8, #6d28d9, #9b1fa0);
  --dark: #111827;
  --dark-soft: #1f2937;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --font-body: 'Inter', sans-serif;
  --font-wordmark: 'Outfit', sans-serif;
  --font-serif: 'Newsreader', serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
}

.nav-logo-patience {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: 22px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo-learning {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--gray-600);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--purple);
}

.nav-links .nav-cta {
  background: var(--gradient);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.2s;
}

.nav-links .nav-cta:hover {
  opacity: 0.9;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: all 0.3s;
  display: block;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  padding: 24px 16px;
  z-index: 999;
  flex-direction: column;
  gap: 0;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-800);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
}

.nav-mobile .nav-cta-mobile {
  display: block;
  margin-top: 24px;
  background: var(--gradient);
  color: var(--white);
  padding: 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  text-align: center;
  border: none;
}

/* ============================================
   Layout
   ============================================ */
.page-spacer {
  height: var(--nav-height);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

section {
  padding: 60px 0;
}

section:first-of-type {
  padding-top: 40px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subline {
  font-size: 18px;
  line-height: 1.5;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  min-width: 220px;
  min-height: 44px;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--purple);
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  min-width: 220px;
  min-height: 44px;
  border: 2px solid var(--gray-300);
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--purple);
  transform: translateY(-1px);
}

/* ============================================
   Content Sections
   ============================================ */
.section-dark {
  background: var(--gray-50);
}

.section-content {
  max-width: 720px;
  margin: 0 auto;
}

.section-content h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  line-height: 1.3;
}

.section-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 16px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Student Quote
   ============================================ */
.quote-block {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--gray-800);
  margin-bottom: 16px;
}

.quote-attribution {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Subject Grid (Home Page)
   ============================================ */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.subject-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-800);
  font-weight: 600;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.subject-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.subject-card .card-grade {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   Trust Strip
   ============================================ */
.trust-strip {
  text-align: center;
  padding: 32px 16px;
  font-size: 15px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================
   What's In The Box
   ============================================ */
.box-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 500px;
  margin: 24px auto;
}

.box-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--gray-700);
}

.box-item::before {
  content: "✓";
  color: var(--purple);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================
   Capacities List
   ============================================ */
.capacities-list {
  max-width: 600px;
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capacity-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 16px;
  color: var(--gray-700);
}

.capacity-letter {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  width: 24px;
}

/* ============================================
   Pricing Cards
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}

.pricing-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.2s;
}

.pricing-card:hover {
  border-color: var(--purple);
}

.pricing-card.featured {
  border-color: var(--purple);
  position: relative;
}

.pricing-card .card-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.pricing-card .card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pricing-card .card-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.pricing-card .card-price .price-note {
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-500);
}

.pricing-card .card-desc {
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* ============================================
   Simulation Filter Tabs
   ============================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple);
}

/* Simulation Cards */
.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sim-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sim-card:hover {
  border-color: var(--purple);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.08);
}

.sim-card .sim-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.sim-card .sim-meta {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.sim-card .sim-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.faq-question {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.faq-answer {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   Origin Story
   ============================================ */
.story-block {
  max-width: 680px;
  margin: 0 auto;
}

.story-block p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.story-block p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Research Section
   ============================================ */
.research-strategies {
  max-width: 600px;
  margin: 20px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.strategy-tag {
  background: var(--gray-100);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
}

/* ============================================
   Disclaimer
   ============================================ */
.disclaimer {
  font-size: 13px;
  color: var(--gray-400);
  font-style: italic;
  text-align: center;
  margin-top: 24px;
}

/* ============================================
   Section CTA
   ============================================ */
.section-cta {
  text-align: center;
  padding: 48px 16px;
}

.section-cta p {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 24px;
}

.section-cta .btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* ============================================
   Admin Secondary Link
   ============================================ */
.admin-link {
  text-align: center;
  padding: 24px 16px;
}

.admin-link a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 40px 16px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo .nav-logo-patience {
  font-size: 20px;
}

.footer a {
  color: var(--gray-300);
  text-decoration: underline;
}

.footer .footer-disclaimer {
  font-size: 12px;
  color: var(--gray-500);
  font-style: italic;
  margin-top: 16px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.footer-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--gray-400);
}

.footer-links a:hover {
  color: var(--white);
}

/* ============================================
   Desktop Breakpoint (768px+)
   ============================================ */
@media (min-width: 768px) {
  .nav {
    padding: 0 32px;
  }

  .nav-links {
    display: flex;
  }

  .nav-hamburger {
    display: none;
  }

  .container {
    padding: 0 32px;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero .subline {
    font-size: 20px;
  }

  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .subject-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
  }

  .box-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 600px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    padding: 0;
  }

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

  .quote-text {
    font-size: 24px;
  }

  .section-content h2 {
    font-size: 30px;
  }

  .section-cta .btn-row {
    flex-direction: row;
    justify-content: center;
  }
}

/* ============================================
   Large Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 50px;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
  }

  .sim-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .subject-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
