/* === AfterClass Landing Page === */

:root {
  --primary: #FF6600;
  --primary-dark: #963508;
  --primary-active: #CC5200;
  --primary-light: #FF8D3B;
  --primary-pale: #FEB357;
  --secondary: #1C50C8;
  --secondary-dark: #002C90;
  --secondary-light: #3E8EFF;
  --secondary-pale: #6FC5FF;
  --success: #38AB43;
  --success-dark: #007C27;
  --destructive: #C8301C;
  --amber: #FFA20B;
  --accent: #6631A8;
  --accent-light: #9957DF;
  --foreground: #1F1B16;
  --muted: #FFE8D9;
  --border: #FFD3B0;
  --bg: #FFFFFF;
  --bg-alt: #FFF8F3;
  --brand-green: #6EB943;
  --brand-blue: #1360C3;
  --brand-pink: #C3138C;
  --brand-orange: #FB812E;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(31, 27, 22, 0.08);
  --shadow-lg: 0 8px 32px rgba(31, 27, 22, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* === Header === */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--foreground);
  flex-shrink: 0;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--foreground);
  border-radius: 10px;
  font-weight: 800;
  font-size: 1.1rem;
}

.logo-text {
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  gap: 12px;
  margin-left: 24px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
}

/* === Buttons === */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--foreground);
}

.btn-primary:hover {
  background: var(--primary-active);
}

.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--muted);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: var(--radius);
}

/* === Sections === */

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

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--foreground);
  opacity: 0.7;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* === Hero === */

.hero {
  padding: 120px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  opacity: 0.75;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
}

.hero-card-header {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-dark);
  margin-bottom: 16px;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-card-subject {
  display: inline-block;
  background: #E8F5E9;
  color: var(--success-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
}

.hero-card-task {
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-card-time {
  font-size: 0.9rem;
  opacity: 0.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-active);
  letter-spacing: -0.02em;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.65;
  margin-top: 4px;
}

/* === Social Proof === */

.social-proof {
  padding: 80px 0;
  background: var(--bg-alt);
}

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

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

.testimonial blockquote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: normal;
}

.testimonial cite {
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  opacity: 0.6;
}

/* === Features === */

.features {
  padding: 96px 0;
}

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

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

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

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

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* === How It Works === */

.how-it-works {
  padding: 96px 0;
  background: var(--bg-alt);
}

.timeline {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border);
  border-radius: 2px;
}

.timeline-step {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--foreground);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step-content {
  padding-top: 12px;
}

.step-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* === Subjects === */

.subjects {
  padding: 96px 0;
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.subject-card {
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}

.subject-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.subject-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #fff;
}

/* White text is too faint on the lighter brand colours */
.subject-thinking h3,
.subject-thinking p,
.subject-maths h3,
.subject-maths p {
  color: var(--foreground);
}

.subject-thinking {
  background: var(--brand-green);
}

.subject-reading {
  background: var(--brand-blue);
}

.subject-maths {
  background: var(--brand-orange);
}

.subject-writing {
  background: var(--brand-pink);
}

/* === Pricing === */

.pricing {
  padding: 96px 0;
  background: var(--bg-alt);
}

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

.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.04);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--foreground);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.6;
}

.price-period {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 24px;
}

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

.pricing-card li {
  font-size: 0.9rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--muted);
  position: relative;
  padding-left: 24px;
}

.pricing-card li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success-dark);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
}

/* === FAQ === */

.faq {
  padding: 96px 0;
}

.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}

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

.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  padding: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.75;
}

/* === Final CTA === */

.final-cta {
  padding: 96px 0;
  background: var(--primary);
  text-align: center;
}

.final-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.final-cta p {
  font-size: 1.1rem;
  color: var(--foreground);
  opacity: 0.9;
  margin-bottom: 32px;
}

.final-cta .btn-primary {
  background: var(--foreground);
  color: var(--bg);
}

.final-cta .btn-primary:hover {
  background: var(--secondary-dark);
  color: var(--bg);
}

/* === Footer === */

.site-footer {
  background: var(--foreground);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
}

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

.footer-brand .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  opacity: 0.6;
  max-width: 300px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  padding: 4px 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.65;
}

/* === Posts & Pages (index.php) === */

.site-main {
  max-width: 760px;
  margin: 0 auto;
  /* Clear the fixed 72px header */
  padding: 120px 24px 80px;
}

.entry + .entry {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border);
}

.entry-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.entry-title a:hover {
  color: var(--primary);
}

.entry-content > * + * {
  margin-top: 1.25em;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.3;
  margin-top: 1.75em;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.5em;
}

.entry-content a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.site-main .pagination {
  margin-top: 64px;
}

.site-main .nav-links {
  display: flex;
  gap: 12px;
}

/* === Responsive === */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-visual {
    order: -1;
  }

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

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

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .pricing-card.featured {
    transform: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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

  .mobile-menu-toggle {
    display: flex;
  }

  /* Open state, toggled by assets/js/menu.js */
  .site-header.menu-open {
    background: #fff;
  }

  .site-header.menu-open .header-inner {
    height: auto;
    flex-wrap: wrap;
    row-gap: 16px;
    padding-top: 18px;
    padding-bottom: 20px;
  }

  .site-header.menu-open .header-nav,
  .site-header.menu-open .header-actions {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    margin-left: 0;
    order: 1;
  }

  .site-header.menu-open .header-nav {
    gap: 16px;
  }

  .site-header.menu-open .header-nav a {
    font-size: 1rem;
  }

  .site-header.menu-open .header-actions .btn {
    justify-content: center;
  }

  .hero {
    padding: 100px 24px 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .hero-stats {
    padding: 24px;
    gap: 20px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

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

  .final-cta h2 {
    font-size: 1.75rem;
  }
}
