/* ============================================
   TIA.COACH — GLOBAL STYLESHEET
   Colours: #1D9E75 (green), #E1F5EE (light green)
   Font: Inter (Google Fonts)
   ============================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a2e;
  background: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1D9E75;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: #111827;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

p {
  color: #4b5563;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 1.25rem;
}

.small-note {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 1rem 0;
}

.micro-note {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.75rem;
}

/* ---------- LAYOUT ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.narrow {
  max-width: 760px;
}

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: #f9fafb;
}

.section-green-bg {
  background: #1D9E75;
  color: white;
}

.section-green-bg h2,
.section-green-bg h3,
.section-green-bg p,
.section-green-bg .step-content p {
  color: rgba(255,255,255,0.9);
}

.section-green-bg h2,
.section-green-bg h3 {
  color: #ffffff;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1D9E75;
  margin-bottom: 0.75rem;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: #1D9E75;
  color: #ffffff;
  border-color: #1D9E75;
}

.btn-primary:hover {
  background: #178a64;
  border-color: #178a64;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: #1D9E75;
  border-color: #1D9E75;
}

.btn-outline:hover {
  background: #E1F5EE;
  text-decoration: none;
}

.btn-white {
  background: #ffffff;
  color: #1D9E75;
  border-color: #ffffff;
}

.btn-white:hover {
  background: #E1F5EE;
  text-decoration: none;
}

.btn-nav {
  background: #E1F5EE;
  color: #1D9E75;
  border-color: #E1F5EE;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

.btn-nav:hover {
  background: #1D9E75;
  color: #fff;
  border-color: #1D9E75;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-text-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-text-link:hover {
  color: #1D9E75;
}

/* ---------- NAVIGATION ---------- */
.nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: #1D9E75;
}

.logo-light {
  color: #ffffff;
}

.logo-light span {
  color: #a7f3d0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1D9E75;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #374151;
  padding: 0.25rem;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #E1F5EE 0%, #f0fdf9 100%);
  padding: 5rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: #374151;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.trust-line {
  font-size: 0.8rem;
  color: #6b7280;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(29, 158, 117, 0.15);
}

/* ---------- PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, #E1F5EE 0%, #f0fdf9 100%);
  padding: 5rem 1.5rem 4rem;
}

.page-hero h1 {
  margin-bottom: 1.25rem;
}

/* ---------- CARDS (3-up) ---------- */
.cards-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(29, 158, 117, 0.1);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

/* ---------- STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.section:not(.section-green-bg) .step-number {
  background: #E1F5EE;
  border-color: #1D9E75;
  color: #1D9E75;
}

.step-content h3 {
  margin-bottom: 0.35rem;
}

.section-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ---------- SUBJECT PILLS ---------- */
.subject-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.pill {
  background: #E1F5EE;
  color: #1D9E75;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  border: 1px solid #a7f3d0;
}

/* ---------- PRICING TABLE (homepage) ---------- */
.pricing-table-wrap {
  overflow-x: auto;
  margin: 2rem 0 1.5rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-table th {
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
}

.pricing-table td:first-child,
.pricing-table th:first-child {
  text-align: left;
}

.pricing-table .highlight-col {
  background: #E1F5EE;
  color: #1D9E75;
  font-weight: 600;
}

/* ---------- PRICING CARDS ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.pricing-card {
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  padding: 2.25rem;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.pricing-card.featured {
  border-color: #1D9E75;
  box-shadow: 0 8px 40px rgba(29, 158, 117, 0.18);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1D9E75;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
}

.pricing-card-header h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.pricing-card-header p {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.pricing-card-price {
  margin: 1.25rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #111827;
}

.price-period {
  font-size: 0.9rem;
  color: #6b7280;
}

.pricing-features {
  margin: 1.25rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: #374151;
}

.pricing-note {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 2rem;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:first-child {
  border-top: 1px solid #e5e7eb;
}

.faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.faq-a {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.7;
}

/* ---------- TEAM / QUOTES ---------- */
.team-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.quote-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  background: #1D9E75;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

blockquote {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.75;
  font-style: italic;
}

cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1D9E75;
  font-style: normal;
}

/* ---------- TEAM GRID (about) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.team-card {
  background: #f9fafb;
  border-radius: 16px;
  padding: 2rem;
}

.team-avatar {
  width: 56px;
  height: 56px;
  background: #1D9E75;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1D9E75;
  margin-bottom: 0.75rem;
}

.team-card p:not(.team-role) {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
  font-style: italic;
}

/* ---------- VALUES LIST ---------- */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.values-list li {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.value-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 44px;
  text-align: center;
}

.values-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.values-list p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* ---------- HOW IT WORKS SECTIONS ---------- */
.hiw-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hiw-section.reverse {
  direction: rtl;
}

.hiw-section.reverse > * {
  direction: ltr;
}

.hiw-text h2 {
  margin: 0.5rem 0 1rem;
}

.hiw-text p {
  margin-bottom: 1rem;
  color: #4b5563;
}

/* Chat bubbles */
.hiw-card-visual {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  padding: 0.75rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  max-width: 85%;
  line-height: 1.55;
}

.chat-bubble.tia {
  background: #E1F5EE;
  color: #1D9E75;
  font-weight: 500;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.student {
  background: #1D9E75;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Adapt cards */
.adapt-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.adapt-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid transparent;
}

.adapt-card.green { border-left-color: #1D9E75; }
.adapt-card.amber { border-left-color: #f59e0b; }
.adapt-card.blue  { border-left-color: #3b82f6; }

.adapt-icon {
  font-size: 1.1rem;
  font-weight: 700;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E1F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #1D9E75;
}

.adapt-card strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.2rem;
}

.adapt-card p {
  font-size: 0.85rem;
  color: #4b5563;
  margin: 0;
}

/* Dashboard mockup */
.dashboard-mockup {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.dash-header {
  background: #f3f4f6;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dash-dot.red    { background: #ef4444; }
.dash-dot.amber  { background: #f59e0b; }
.dash-dot.green-dot { background: #22c55e; }

.dash-title {
  margin-left: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
}

.dash-body {
  padding: 1.25rem;
}

.dash-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
}

.dash-row:last-child {
  border-bottom: none;
}

.dash-label {
  color: #6b7280;
  font-weight: 500;
}

.dash-value {
  color: #111827;
  font-weight: 600;
}

.trend-up {
  color: #1D9E75;
}

/* ---------- STORY BLOCK ---------- */
.story-block {
  border-left: 4px solid #1D9E75;
  padding-left: 2rem;
  margin: 2rem 0;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  background: #E1F5EE;
}

.final-cta h2 {
  margin-bottom: 1rem;
}

/* ---------- FOOTER ---------- */
.footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
  row-gap: 1.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-copy {
  font-size: 0.8rem;
  color: #6b7280;
  grid-column: 1 / -1;
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1f2937;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-ctas {
    justify-content: center;
  }

  .trust-line {
    text-align: center;
  }

  .cards-three {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .team-quotes {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .hiw-section,
  .hiw-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-direction: row;
    gap: 1rem;
  }

}

@media (max-width: 640px) {

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links .btn-nav {
    align-self: flex-start;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .page-hero {
    padding: 3.5rem 1.5rem 3rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .pricing-table {
    font-size: 0.85rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem 0.75rem;
  }

  .values-list li {
    flex-direction: row;
    gap: 1rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
  }

}