/* ========================================
   YOUR TUTOR GUIDE - Stylesheet
   ======================================== */

/* ===== Self-hosted Fonts ===== */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-sans-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1A2E4A;
  --navy-mid: #243d61;
  --teal: #1E7F74;
  --teal-light: #25a396;
  --teal-2: #155F56;
  --amber: #F0A500;
  --amber-light: #ffc53d;
  --white: #FFFFFF;
  --off-white: #F8F9FB;
  --gray-light: #F0F2F5;
  --gray-mid: #8896A8;
  --text: #1A1A2E;
  --overlay: rgba(26, 46, 74, 0.97);

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: 140px;

  --shadow-1: 0 2px 8px rgba(26, 46, 74, 0.06);
  --shadow-2: 0 4px 24px rgba(26, 46, 74, 0.1);
  --shadow-3: 0 8px 40px rgba(26, 46, 74, 0.15);
  --shadow-4: 0 16px 60px rgba(26, 46, 74, 0.2);
  --shadow-amber: 0 4px 24px rgba(240, 165, 0, 0.35);
  --shadow-amber-hover: 0 8px 40px rgba(240, 165, 0, 0.5);

  --radius-pill: 100px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}


/* ===== Reset & Base ===== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: hidden;
}

::selection {
  background: rgba(240, 165, 0, 0.2);
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}


/* ===== Shared Section ===== */

.section {
  padding: var(--space-2xl) 5%;
}

.section__container {
  max-width: 1280px;
  margin: 0 auto;
}

.section__content {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
}

.section-label--amber {
  color: var(--amber);
}

.section-label--teal-light {
  color: var(--teal-light);
}

.section__heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: -0.8px;
  color: var(--navy);
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.section__sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: var(--gray-mid);
  max-width: 640px;
}


/* ===== Navigation ===== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: 72px;
  background: var(--overlay);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  padding: 0 5%;
  transition: box-shadow 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav__wordmark {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  white-space: nowrap;
}

.nav__wordmark-accent {
  color: var(--amber);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
}

.nav__cta {
  background: var(--amber);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.97);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}

.nav__mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.nav__mobile-menu .nav__link {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.nav__mobile-menu .nav__cta {
  font-size: 16px;
  padding: 14px 32px;
  margin-top: 8px;
}


/* ===== Hero ===== */

.hero {
  min-height: 100vh;
  background: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(30, 127, 116, 0.15), transparent),
    radial-gradient(ellipse 40% 40% at 85% 15%, rgba(240, 165, 0, 0.08), transparent),
    radial-gradient(ellipse 40% 40% at 75% 50%, rgba(30, 127, 116, 0.1), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 5%;
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 0 0 55%;
  max-width: 55%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(30, 127, 116, 0.4);
  background: rgba(30, 127, 116, 0.1);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.6s ease 0.1s forwards;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulse 2s infinite ease-in-out;
}

.hero__badge-text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--teal-light);
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 68px;
  letter-spacing: -1.5px;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.6s ease 0.2s forwards;
}

.hero__title .highlight {
  color: var(--amber);
  position: relative;
  display: inline-block;
}

.hero__sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.6s ease 0.3s forwards;
}

.hero__buttons {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.6s ease 0.4s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--amber);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-amber);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber-hover);
}

.btn-primary .btn-arrow {
  transition: transform 0.25s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
}

.btn-secondary:hover {
  color: rgba(255, 255, 255, 0.7);
}

.btn-secondary .btn-circle {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.25s ease;
}

.btn-secondary:hover .btn-circle {
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateX(3px);
}

.hero__cards {
  flex: 0 0 40%;
  max-width: 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-top: 20px;
}

.hero__stat-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 200px;
  transition: transform 0.25s ease;
  opacity: 0;
  transform: translateY(24px);
}

.hero__stat-card:hover {
  transform: translateX(-4px);
}

.hero__stat-card:nth-child(1) {
  animation: heroFadeUp 0.6s ease 0.3s forwards;
}

.hero__stat-card:nth-child(2) {
  margin-left: 24px;
  animation: heroFadeUp 0.6s ease 0.45s forwards;
}

.hero__stat-card:nth-child(3) {
  animation: heroFadeUp 0.6s ease 0.6s forwards;
}

.hero__stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
}

.hero__stat-value--amber {
  color: var(--amber);
}

.hero__stat-value--teal {
  color: var(--teal-light);
}

.hero__stat-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}


/* ===== Trust Bar ===== */

.trust-bar {
  background: var(--gray-light);
  border-top: 1px solid rgba(26, 46, 74, 0.08);
  border-bottom: 1px solid rgba(26, 46, 74, 0.08);
  padding: 20px 5%;
}

.trust-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(26, 46, 74, 0.7);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.trust-bar__icon {
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-bar__icon svg {
  width: 11px;
  height: 11px;
}

.trust-bar__divider {
  width: 1px;
  height: 20px;
  background: rgba(26, 46, 74, 0.1);
  flex-shrink: 0;
}


/* ===== How It Works ===== */

.how-it-works {
  background: var(--white);
}

.how-it-works__header {
  margin-bottom: var(--space-xl);
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--gray-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step-card {
  background: var(--white);
  padding: 44px 36px;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  background: var(--off-white);
  transform: translateY(-4px);
}

.step-card__ghost {
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 72px;
  color: rgba(26, 46, 74, 0.05);
  line-height: 1;
  pointer-events: none;
}

.step-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.step-card__icon--amber {
  background: rgba(240, 165, 0, 0.12);
}

.step-card__icon--teal {
  background: rgba(30, 127, 116, 0.12);
}

.step-card__icon--navy {
  background: rgba(26, 46, 74, 0.08);
}

.step-card__heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: var(--navy);
  margin-bottom: 12px;
}

.step-card__body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-mid);
}


/* ===== Why YTG ===== */

.why-ytg {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.why-ytg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(30, 127, 116, 0.12), transparent);
  pointer-events: none;
}

.why-ytg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.why-ytg .section__heading {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.why-ytg .section__sub {
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

.why-ytg__header {
  margin-bottom: var(--space-xl);
  position: relative;
  z-index: 1;
}

.why-ytg__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all 0.25s ease;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--teal));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(30, 127, 116, 0.4);
  transform: translateY(-2px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.feature-card__heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--white);
  margin-bottom: 10px;
}

.feature-card__body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.45);
}


/* ===== Subjects & Pricing ===== */

.subjects {
  background: var(--off-white);
}

.subjects__header {
  margin-bottom: var(--space-xl);
}

.subjects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.subject-card {
  background: var(--white);
  border: 1px solid rgba(26, 46, 74, 0.08);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.25s ease;
}

.subject-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(30, 127, 116, 0.12);
  transform: translateY(-2px);
}

.subject-card__info {
  min-width: 0;
}

.subject-card__name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 4px;
}

.subject-card__detail {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: var(--gray-mid);
}

.subject-card__rate {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--teal);
  white-space: nowrap;
  flex-shrink: 0;
}

.subjects__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.subjects__cta-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--navy);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(26, 46, 74, 0.18);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.subjects__cta-link:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 127, 116, 0.25);
}


/* ===== Comparison Table ===== */

.comparison {
  background: var(--white);
}

.comparison__header {
  margin-bottom: var(--space-xl);
}

.comparison__table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-light);
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison__table th,
.comparison__table td {
  padding: 16px 24px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: middle;
}

.comparison__table thead th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 24px;
}

.comparison__table thead th:first-child {
  background: transparent;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
}

.comparison__table thead .col-ytg {
  background: var(--navy);
  color: var(--white);
}

.comparison__table thead .col-other {
  background: var(--gray-light);
  color: var(--navy);
}

.comparison__table tbody tr:nth-child(even) {
  background: var(--off-white);
}

.comparison__table tbody td:first-child {
  font-weight: 500;
  color: var(--navy);
}

.comparison__table tbody .col-ytg {
  border-left: 3px solid var(--amber);
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--amber);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

.check-yes svg {
  width: 12px;
  height: 12px;
}

.check-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--gray-light);
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
  vertical-align: middle;
}

.check-no svg {
  width: 10px;
  height: 10px;
}

.comparison__cell {
  display: flex;
  align-items: center;
}

.comparison__cell-text {
  font-size: 13px;
  color: var(--gray-mid);
}

.col-ytg .comparison__cell-text {
  color: var(--navy);
  font-weight: 500;
}


/* ===== Testimonials ===== */

.testimonials {
  background: var(--white);
}

.testimonials__header {
  margin-bottom: var(--space-xl);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--off-white);
  border: 1px solid rgba(26, 46, 74, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.testimonial-card__quote-mark {
  position: absolute;
  top: 12px;
  left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 80px;
  color: rgba(30, 127, 116, 0.15);
  line-height: 1;
  pointer-events: none;
}

.testimonial-card__stars {
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  position: relative;
}

.testimonial-card__text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(26, 46, 74, 0.8);
  margin-bottom: var(--space-md);
  position: relative;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.testimonial-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: var(--gray-mid);
}


/* ===== Founder ===== */

.founder {
  padding: 0;
  display: grid;
  grid-template-columns: 45fr 55fr;
  min-height: 560px;
}

.founder__left {
  background: var(--navy);
  padding: var(--space-2xl) 5% var(--space-2xl) 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder__left-inner {
  max-width: 480px;
  margin-left: auto;
  padding-right: var(--space-xl);
}

.founder__heading {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.6px;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.founder__text {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-md);
}

.founder__bullets {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founder__bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--white);
}

.founder__bullet-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}

.founder__right {
  background: var(--white);
  padding: var(--space-2xl) 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder__right-inner {
  max-width: 480px;
  padding-left: var(--space-xl);
}

.founder__quote {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-style: italic;
  font-size: 28px;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin-bottom: var(--space-lg);
}

.founder__quote-rule {
  width: 60px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  border: none;
  margin-bottom: var(--space-sm);
}

.founder__caption {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-mid);
}


/* ===== CTA & Form ===== */

.cta {
  background: var(--teal);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(26, 46, 74, 0.2), transparent);
  pointer-events: none;
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__heading {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -0.8px;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.cta__sub {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
}

.cta__form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: var(--shadow-4);
  text-align: left;
}

.cta__form-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin-bottom: 8px;
}

.cta__form-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: var(--space-lg);
}

.form__row {
  margin-bottom: 20px;
}

.form__row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 6px;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  background: var(--off-white);
  border: 1px solid rgba(26, 46, 74, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 127, 116, 0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--gray-mid);
}

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238896A8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__textarea {
  min-height: 100px;
  resize: vertical;
}

.form__submit {
  width: 100%;
  background: var(--amber);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-amber);
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  margin-top: 8px;
}

.form__submit:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-amber-hover);
}

/* Custom Date & Time Pickers — Premium */
.picker-wrap {
  position: relative;
}

.picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.picker-trigger__text {
  flex: 1;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--gray-mid);
  pointer-events: none;
}

.picker-trigger__text.has-value {
  color: var(--text);
}

.picker-trigger__icon {
  flex-shrink: 0;
  color: var(--teal);
  transition: transform 0.25s ease;
}

.picker-trigger[aria-expanded="true"] .picker-trigger__icon {
  transform: rotate(8deg) scale(1.05);
}

.picker-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--white);
  border: 1px solid rgba(26, 46, 74, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  overflow: hidden;
}

.picker-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---- Calendar ---- */
.cal {
  padding: 20px;
}

.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal__arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--off-white);
  border-radius: 8px;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: 'DM Sans', sans-serif;
  line-height: 1;
}

.cal__arrow:hover {
  background: var(--teal);
  color: var(--white);
}

.cal__month-year {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  margin-bottom: 8px;
}

.cal__weekdays span {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-mid);
  padding: 4px 0;
}

.cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.cal__day:hover:not(.cal__day--disabled):not(.cal__day--selected) {
  background: rgba(30, 127, 116, 0.08);
  color: var(--teal);
}

.cal__day--today {
  font-weight: 700;
  color: var(--teal);
}

.cal__day--today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
}

.cal__day--selected {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 127, 116, 0.3);
}

.cal__day--selected::after {
  display: none;
}

.cal__day--disabled {
  color: rgba(136, 150, 168, 0.35);
  cursor: default;
  pointer-events: none;
}

.cal__day--empty {
  pointer-events: none;
}

/* ---- Time List ---- */
.picker-dropdown--time {
  max-height: 260px;
}

.time-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(26, 46, 74, 0.12) transparent;
}

.time-list::-webkit-scrollbar {
  width: 5px;
}

.time-list::-webkit-scrollbar-track {
  background: transparent;
}

.time-list::-webkit-scrollbar-thumb {
  background: rgba(26, 46, 74, 0.15);
  border-radius: 10px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.time-slot:hover {
  background: rgba(30, 127, 116, 0.06);
  color: var(--teal);
}

.time-slot--selected {
  background: var(--teal);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 127, 116, 0.2);
}

.time-slot--selected:hover {
  background: var(--teal);
  color: var(--white);
}

.time-slot__period {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.6;
}

.cta__calendly {
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

.cta__calendly-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.cta__calendly-link:hover {
  color: var(--white);
}

.cta__calendly-link .link-arrow {
  transition: transform 0.25s ease;
}

.cta__calendly-link:hover .link-arrow {
  transform: translateX(3px);
}


/* ===== Footer ===== */

.footer {
  background: var(--navy);
  padding: 80px 5% 40px;
}

.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: var(--space-xl);
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.4);
  max-width: 280px;
}

.footer__col-heading {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--white);
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-md);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer__legal-link {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.3s ease;
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.6);
}


/* ===== Animations ===== */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.2);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===== Responsive: Tablet ===== */

@media (max-width: 1100px) {
  .why-ytg__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subjects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero__content {
    flex: none;
    max-width: 100%;
  }

  .hero__sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__cards {
    flex: none;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero__stat-card:nth-child(2) {
    margin-left: 0;
  }

  .hero__title {
    font-size: 48px;
  }

  .how-it-works__grid {
    grid-template-columns: 1fr;
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder__left-inner {
    max-width: 100%;
    margin-left: 0;
    padding-right: 0;
  }

  .founder__right-inner {
    max-width: 100%;
    padding-left: 0;
  }

  .founder__left,
  .founder__right {
    padding: var(--space-xl) 5%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-xl) 5%;
  }

  .section__heading {
    font-size: 32px;
  }

  .section__sub {
    font-size: 16px;
  }

  .nav__links {
    display: none;
  }

  .nav > .nav__inner > .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 100px 5% 56px;
  }

  .hero__title {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .hero__sub {
    font-size: 16px;
  }

  .hero__badge-text {
    font-size: 12px;
  }

  .trust-bar {
    padding: 16px 5%;
  }

  .trust-bar__inner {
    gap: 16px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .trust-bar__inner::-webkit-scrollbar {
    display: none;
  }

  .trust-bar__divider {
    display: none;
  }

  .trust-bar__item {
    font-size: 12px;
    flex-shrink: 0;
  }

  .why-ytg__grid {
    grid-template-columns: 1fr;
  }

  .subjects__grid {
    grid-template-columns: 1fr;
  }

  .subjects__ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .subjects__cta-link {
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.93rem;
  }

  .comparison__table {
    min-width: 600px;
    font-size: 13px;
  }

  .comparison__table th,
  .comparison__table td {
    padding: 12px 14px;
  }

  .comparison__table-wrap {
    -webkit-overflow-scrolling: touch;
  }

  .cta__heading {
    font-size: 32px;
  }

  .cta__sub {
    font-size: 16px;
  }

  .cta__form-card {
    padding: 28px 20px;
  }

  .form__row--half {
    grid-template-columns: 1fr;
  }

  .form__input,
  .form__select,
  .form__textarea,
  .picker-trigger {
    font-size: 16px;
    padding: 14px 16px;
  }

  /* Picker dropdowns — full width on mobile */
  .picker-dropdown {
    left: 0;
    right: 0;
    border-radius: var(--radius-md);
  }

  .cal {
    padding: 16px;
  }

  .cal__day {
    font-size: 14px;
    min-height: 40px;
  }

  .cal__arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .time-slot {
    padding: 12px 14px;
    font-size: 15px;
  }

  .picker-dropdown--time {
    max-height: 220px;
  }

  .time-list {
    max-height: 220px;
  }

  .form__submit {
    padding: 18px;
    font-size: 16px;
  }

  .founder__heading {
    font-size: 28px;
  }

  .founder__quote {
    font-size: 22px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legal-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 96px 5% 48px;
  }

  .hero__title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .hero__sub {
    font-size: 15px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .btn-primary {
    justify-content: center;
    padding: 16px 24px;
  }

  .btn-secondary {
    justify-content: center;
  }

  .hero__stat-card {
    width: 100%;
  }

  .hero__cards {
    flex-direction: column;
    align-items: stretch;
  }

  .section__heading {
    font-size: 26px;
  }

  .section__sub {
    font-size: 15px;
  }

  .step-card {
    padding: 28px 20px;
  }

  .step-card__heading {
    font-size: 19px;
  }

  .feature-card {
    padding: 24px;
  }

  .subject-card {
    padding: 20px;
  }

  .subject-card__name {
    font-size: 15px;
  }

  .subject-card__rate {
    font-size: 16px;
  }

  .cta__heading {
    font-size: 26px;
  }

  .founder__heading {
    font-size: 24px;
  }

  .founder__quote {
    font-size: 20px;
  }

  .footer {
    padding: 48px 5% 32px;
  }
}

/* Touch device: disable hover transforms */
@media (hover: none) {
  .step-card:hover,
  .feature-card:hover,
  .subject-card:hover,
  .hero__stat-card:hover {
    transform: none;
  }

  .cal__day:hover:not(.cal__day--disabled):not(.cal__day--selected) {
    background: transparent;
    color: var(--navy);
  }

  .cal__day:active:not(.cal__day--disabled):not(.cal__day--selected) {
    background: rgba(30, 127, 116, 0.08);
    color: var(--teal);
  }

  .time-slot:hover {
    background: transparent;
    color: var(--navy);
  }

  .time-slot:active {
    background: rgba(30, 127, 116, 0.06);
    color: var(--teal);
  }

  .cal__arrow:hover {
    background: var(--off-white);
    color: var(--navy);
  }

  .cal__arrow:active {
    background: var(--teal);
    color: var(--white);
  }
}


/* ===== Legal / Policy Pages ===== */

.legal {
  padding: 160px 0 80px;
  background: var(--white);
}

.legal__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.legal__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 127, 116, 0.08);
  border: 1px solid rgba(30, 127, 116, 0.18);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.legal__title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: var(--space-xs);
}

.legal__updated {
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: var(--space-lg);
}

.legal__intro {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

/* Compliance summary table */
.legal__summary {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  font-size: 0.92rem;
}

.legal__summary th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.legal__summary td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.legal__summary tr:last-child td {
  border-bottom: none;
}

.legal__summary tbody tr:nth-child(even) {
  background: var(--off-white);
}

.legal__summary .status-yes {
  color: var(--teal);
  font-weight: 600;
}

/* Section headings */
.legal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
}

.legal h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.legal p,
.legal li {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: var(--space-sm);
}

.legal li {
  margin-bottom: 6px;
}

.legal strong {
  color: var(--navy);
}

.legal a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--teal-light);
}

/* Inline data tables */
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-sm) 0 var(--space-md);
  font-size: 0.92rem;
}

.legal__table th {
  background: var(--off-white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gray-light);
}

.legal__table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-light);
  vertical-align: top;
}

.legal__table tr:last-child td {
  border-bottom: none;
}

/* Info box */
.legal__box {
  background: rgba(30, 127, 116, 0.05);
  border-left: 4px solid var(--teal);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--space-md) 0;
}

.legal__box p {
  margin-bottom: 0;
}

.legal__box-list {
  margin-top: 8px;
  margin-bottom: 0;
}

.legal__box--urgent {
  background: rgba(240, 165, 0, 0.06);
  border-left-color: var(--amber);
}

.legal__box--important {
  background: rgba(26, 46, 74, 0.04);
  border-left-color: var(--navy);
}

/* Numbered step list */
.legal__steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.legal__steps li {
  counter-increment: step;
  padding-left: 40px;
  position: relative;
  margin-bottom: var(--space-sm);
}

.legal__steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Legal page responsive */
@media (max-width: 768px) {
  .legal {
    padding: 120px 0 60px;
  }

  .legal__summary,
  .legal__table {
    font-size: 0.82rem;
  }

  .legal__summary th,
  .legal__summary td,
  .legal__table th,
  .legal__table td {
    padding: 8px 10px;
  }
}
