/* ==========================================================================
   London Learners — static site stylesheet (hand-written, no framework).
   Edit freely: this file is bind-mounted; refresh the browser to see changes.

   Sections:
     1. Design tokens        2. Base & typography      3. Links & buttons
     4. Forms                5. Layout helpers         6. Navigation
     7. Footer & socials     8. Reveal animations      9. Scroll hint
    10+ Page sections (appended per page: home, pricing, contact, terms,
        find-a-tutor, tutor profile, payment, 404)
   ========================================================================== */

/* 1. Design tokens ------------------------------------------------------- */
:root {
  --ink: #1B2A4A;          /* Academy Navy */
  --ink-soft: #2C2C2C;     /* Ink Charcoal */
  --ink-mute: #5B5B5B;
  --ink-faint: #9B9B9B;
  --paper: #F5F0E6;        /* Parchment Cream */
  --paper-warm: #E8DCC8;   /* Warm Sand */
  --paper-cool: #FBFAF6;
  --accent: #C0272D;       /* Westminster Crimson */
  --accent-soft: #D1373D;
  --accent-warm: #9E1F24;
  --navy: #1B2A4A;
  --navy-dusk: #2C3E63;
  --line: #DED3BF;
  --font-sans: 'Lato', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Playfair Display', ui-serif, Georgia, serif;
  --font-script: 'Caveat', ui-serif, cursive;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --ease-house: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 2. Base & typography ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { scroll-behavior: smooth; }
html { background: var(--paper); }
body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: var(--paper-cool); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-warm); }
::-webkit-scrollbar-thumb { background: var(--ink-mute); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

.font-display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.headline {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.02;
}
.headline em, .font-display em, .pull-quote em {
  color: var(--accent);
  font-style: italic;
}
.font-script { font-family: var(--font-script); font-weight: 500; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.pull-quote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tnum { font-feature-settings: 'tnum', 'lnum'; font-variant-numeric: tabular-nums lining-nums; }
.hairline { border-color: var(--line); }
.font-mono { font-family: var(--font-mono); }

/* text helpers mirroring the React utility usage */
.text-ink { color: var(--ink); }
.text-ink-soft { color: var(--ink-soft); }
.text-ink-mute { color: var(--ink-mute); }
.text-accent { color: var(--accent); }
.text-white { color: #ffffff; }

/* 3. Links & buttons ------------------------------------------------------ */
.link {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: var(--ink);
  transition: color 0.2s ease;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-house);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); }
.link.on-dark { color: rgba(255, 255, 255, 0.82); }
.link.on-dark:hover, .link.on-dark:focus-visible { color: #ffffff; }
.link.on-dark.is-active { color: #ffffff; font-weight: 500; }
.link.on-dark.is-active::after { background: var(--accent); transform: scaleX(1); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.5;
  padding: 0.95rem 1.6rem;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
  border: none;
  cursor: pointer;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-warm);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(192, 39, 45, 0.55);
}
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1.5;
  padding: 0.9rem 1.6rem;
  background: transparent;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--navy);
  color: var(--paper-cool);
  transform: translateY(-1px);
}

/* 4. Forms ----------------------------------------------------------------- */
.field {
  width: 100%;
  line-height: 1.5;
  padding: 0.95rem 1rem;
  background: var(--paper-cool);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.field:focus { outline: none; border-color: var(--ink); background: #fff; }
.field::placeholder { color: var(--ink-mute); }
.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

/* 5. Layout helpers -------------------------------------------------------- */
.ll-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) {
  .ll-container { padding-left: 3rem; padding-right: 3rem; }
}
.section-border { border-bottom: 1px solid var(--line); }
.bg-paper { background: var(--paper); }
.bg-paper-warm { background: var(--paper-warm); }
.bg-navy { background: var(--navy); }
.hidden { display: none !important; }

/* 6. Navigation ------------------------------------------------------------ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 42, 74, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent);
}
.site-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .site-nav__inner { padding: 0 3rem; } }
.site-nav__logo img { height: 88px; width: auto; object-fit: contain; }
.site-nav__links {
  display: none;
  align-items: center;
  gap: 2.5rem;
  font-size: 15px;
}
@media (min-width: 768px) { .site-nav__links { display: flex; } }
.site-nav__cta { padding: 0.6rem 1.1rem; }

/* 7. Footer & socials -------------------------------------------------------- */
.site-footer {
  background: var(--paper-warm);
  border-top: 2px solid var(--accent);
}
.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
}
@media (min-width: 1024px) { .site-footer__inner { padding: 1.75rem 3rem; } }
.site-footer__row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__row { flex-direction: row; align-items: flex-end; }
}
.site-footer__brand { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.site-footer__logo { height: 6rem; width: auto; object-fit: contain; }
.site-footer__desc {
  font-size: 0.875rem;
  color: var(--ink-mute);
  margin-top: 1rem;
  max-width: 28ch;
  line-height: 1.625;
}
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2.5rem;
  row-gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
@media (min-width: 640px) { .site-footer__links { display: flex; } }
.site-footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--ink-mute);
}
@media (min-width: 640px) {
  .site-footer__bottom { flex-direction: row; align-items: center; }
}

.social-links { display: flex; align-items: center; gap: 0.75rem; }
.social-links a {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  box-shadow: 0 10px 20px -12px rgba(27, 42, 74, 0.5);
}
.social-links a:hover { transform: translateY(-2px); }
.social-links--navy a { background: var(--navy); color: #ffffff; }
.social-links--navy a:hover { background: var(--accent); }
.social-links--light a { background: #ffffff; color: var(--navy); }
.social-links--light a:hover { background: var(--accent); color: #ffffff; }

/* 8. Reveal animations ------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease-house), transform 0.65s var(--ease-house);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--d1 { transition-delay: 0.12s; }
.reveal--card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease-house), transform 0.5s var(--ease-house);
}
.reveal--card.is-visible { opacity: 1; transform: translateY(0); }

/* 9. Floating scroll hint ---------------------------------------------------- */
.scroll-hint {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(27, 42, 74, 0.9);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -12px rgba(27, 42, 74, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.scroll-hint.is-visible { opacity: 1; }
.scroll-hint svg { animation: ll-bounce 1.6s ease-in-out infinite; }
@keyframes ll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   10. Homepage
   ========================================================================== */

/* Hero entrance (mirrors the React fadeUp variants) */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-house), transform 0.7s var(--ease-house);
}
.fade-up.is-in { opacity: 1; transform: translateY(0); }

/* Shared section shell: hairline bottom border */
.sec { border-bottom: 1px solid var(--line); }

/* Shared 12-column section header (approach / subjects / faculty) */
.sec-header { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) {
  .sec-header { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .sec-header__title { grid-column: span 5 / span 5; }
  .sec-header__intro { grid-column: 7 / span 6; align-self: flex-end; }
}
.sec-header .eyebrow { margin-bottom: 1.25rem; }
.sec-header h2 { font-size: 2.25rem; line-height: 1.02; }
@media (min-width: 1024px) { .sec-header h2 { font-size: 3rem; line-height: 1; } }
.sec-header__intro p {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 35.96em;
  line-height: 1.625;
}

/* Hero */
.hero__inner { padding-top: 2.5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .hero__inner { padding-top: 3.5rem; padding-bottom: 7rem; }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 45%; gap: 3rem; }
}
.hero__eyebrow { margin-bottom: 2rem; }
.hero__title { font-size: 3.4rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .hero__title { font-size: 4.6rem; } }
@media (min-width: 1024px) { .hero__title { font-size: 6rem; } }
.hero__subtext {
  max-width: 35.96em;
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}
@media (min-width: 1024px) { .hero__subtext { font-size: 1.25rem; line-height: 1.75rem; } }
.hero__seo {
  max-width: 35.96em;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-bottom: 2.5rem;
  font-size: 15px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__figure { position: relative; margin: 0; }
.hero__imgwrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
  border-top-left-radius: 6rem;
  border-bottom-right-radius: 6rem;
  border-top-right-radius: 1rem;
  border-bottom-left-radius: 1rem;
  box-shadow: 0 30px 60px -30px rgba(27, 42, 74, 0.35);
}
.hero__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.hero__chip .eyebrow { margin-bottom: 0; }

/* Brand values card */
.values__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .values__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.values__card {
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -40px rgba(27, 42, 74, 0.4);
  padding: 2rem 1.5rem;
}
@media (min-width: 1024px) { .values__card { padding: 2.5rem 2.5rem; } }
.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2.5rem;
  row-gap: 2.25rem;
}
@media (min-width: 640px) { .values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .values__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.values__item { display: flex; flex-direction: column; }
.values__head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.values__head svg { width: 2rem; height: 2rem; color: var(--navy); flex-shrink: 0; }
.values__head h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.025em; }
.values__item p { color: var(--ink-soft); font-size: 14px; line-height: 1.625; }

/* Scroll cue band */
.cue { background: var(--paper-warm); overflow: hidden; }
.cue__inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
  will-change: opacity, transform;
}
@media (min-width: 1024px) { .cue__inner { padding: 4rem 1.5rem; } }
.cue__inner h2 { font-size: 1.5rem; line-height: 1.02; max-width: 16ch; margin: 0 auto; }
@media (min-width: 640px) { .cue__inner h2 { font-size: 1.875rem; line-height: 2.25rem; } }
@media (min-width: 1024px) { .cue__inner h2 { font-size: 2.25rem; line-height: 2.5rem; } }

/* Stats */
.stats__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .stats__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 2.5rem;
  column-gap: 2rem;
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats__figure {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 3rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (min-width: 1024px) { .stats__figure { font-size: 3.75rem; } }
.stats__label {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--ink-mute);
  max-width: 18ch;
  line-height: 1.375;
}

/* Approach + faculty share big section padding */
.sec--big { padding-top: 6rem; padding-bottom: 6rem; }
@media (min-width: 1024px) { .sec--big { padding-top: 8rem; padding-bottom: 8rem; } }
.sec--mid { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .sec--mid { padding-top: 5rem; padding-bottom: 5rem; } }

.approach__cards {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  row-gap: 3.5rem;
}
@media (min-width: 768px) { .approach__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .approach__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.approach__num { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 0.75rem; }
.approach__num .rule { height: 1px; flex: 1; background: var(--line); }
.approach__cards h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
}
.approach__cards p { color: var(--ink-soft); line-height: 1.625; font-size: 15px; }

/* Subjects list */
.subjects-list { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subjects-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.subjects-list__row:first-child { border-top: none; }
@media (min-width: 768px) { .subjects-list__row { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.subjects-list__name { display: flex; align-items: baseline; gap: 0.75rem; }
@media (min-width: 768px) { .subjects-list__namecell { grid-column: span 4 / span 4; } }
.subjects-list__name h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
}
@media (min-width: 1024px) { .subjects-list__name h3 { font-size: 2.25rem; line-height: 2.5rem; } }
.subjects-list__row:hover .subjects-list__name h3 { color: var(--accent); }
.subjects-list__topics {
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.25rem;
  row-gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 15px;
  align-self: flex-end;
}
@media (min-width: 768px) { .subjects-list__topics { grid-column: span 8 / span 8; } }

/* Faculty cards */
.faculty__grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 3.5rem;
}
@media (min-width: 640px) { .faculty__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .faculty__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.faculty-card a { display: block; }
.faculty-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-warm);
  margin-bottom: 1.25rem;
}
.faculty-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.faculty-card:hover .faculty-card__img img { transform: scale(1.03); }
.faculty-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  min-height: 3.25rem;
}
.faculty-card__head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.025em;
  flex: 1;
  min-width: 0;
  transition: color 0.2s ease;
}
.faculty-card:hover .faculty-card__head h3 { color: var(--accent); }
.faculty-card__tags {
  flex-shrink: 0;
  text-align: right;
  line-height: 1.375;
  max-width: 42%;
  border-left: 1px solid var(--line);
  padding-left: 0.75rem;
  margin-bottom: 0;
}
.faculty-card__bio {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.faculty-card__more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

/* Testimonial */
.testimonial { background: var(--paper-warm); }
.testimonial__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
@media (min-width: 1024px) { .testimonial__inner { padding: 6rem 3rem; } }
.testimonial__inner .eyebrow { margin-bottom: 1.5rem; }
.testimonial__inner blockquote { font-size: 1.875rem; line-height: 2.25rem; }
@media (min-width: 640px) { .testimonial__inner blockquote { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .testimonial__inner blockquote { font-size: 3rem; line-height: 1; } }
.testimonial__by {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.testimonial__by .rule { display: block; width: 2.5rem; height: 1px; background: var(--ink); }
.testimonial__by strong { color: var(--ink); font-weight: 500; }

/* Closing CTA band */
.cta-band { background: var(--paper); }
.cta-band__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .cta-band__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.cta-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 1024px) { .cta-band__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.cta-band__title { grid-column: span 1; }
@media (min-width: 1024px) { .cta-band__title { grid-column: span 8 / span 8; } }
.cta-band__title .eyebrow { margin-bottom: 1rem; }
.cta-band__title h2 { font-size: 3rem; line-height: 1.02; }
@media (min-width: 1024px) { .cta-band__title h2 { font-size: 4.5rem; line-height: 1; } }
.cta-band__action { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
@media (min-width: 1024px) { .cta-band__action { grid-column: span 4 / span 4; align-items: flex-end; } }
.cta-band__stack { display: inline-flex; flex-direction: column; align-items: center; gap: 1rem; }
.cta-band__note { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); text-align: center; }
.cta-band__note span { display: block; }

/* Anchor offsets under the sticky nav */
.scroll-mt { scroll-margin-top: 7rem; }

/* ==========================================================================
   11. Pricing page
   ========================================================================== */
.price-hero__inner { padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .price-hero__inner { padding-top: 5rem; padding-bottom: 3.5rem; } }
.price-hero h1 { font-size: 3rem; }
@media (min-width: 640px) { .price-hero h1 { font-size: 4rem; } }
@media (min-width: 1024px) { .price-hero h1 { font-size: 5rem; } }
.price-hero .eyebrow { margin-bottom: 1.5rem; }
.price-hero__intro {
  max-width: 70ch;
  font-size: 1.125rem;
  color: var(--ink-soft);
  line-height: 1.625;
  margin-top: 2rem;
}
.fee-section { background: var(--paper-warm); }
.fee-section__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
@media (min-width: 1024px) { .fee-section__inner { padding: 4rem 3rem; } }
.fee-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.125rem;
  background: #ffffff;
}
.fee-table { width: 100%; border-collapse: collapse; text-align: left; }
.fee-table thead tr { background: var(--navy); color: #ffffff; }
.fee-table th {
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.025em;
}
.fee-table th:last-child { width: 42%; }
@media (min-width: 640px) { .fee-table th:last-child { width: 38%; } }
.fee-table tbody tr { border-top: 1px solid var(--line); background: #ffffff; }
.fee-table tbody tr:nth-child(even) { background: var(--paper-cool); }
.fee-table td { padding: 1rem 1.5rem; vertical-align: middle; }
.fee-table td:first-child { font-size: 15px; color: var(--ink-soft); line-height: 1.375; }
.fee-table td .fee {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 2rem;
  color: var(--ink);
}
.fee-offers {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .fee-offers { flex-direction: row; align-items: center; justify-content: space-between; }
}
.fee-offers__note { font-family: var(--font-script); font-weight: 500; font-size: 1.5rem; line-height: 2rem; color: var(--accent); }
.page-cta__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .page-cta__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.page-cta__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: end; }
@media (min-width: 1024px) { .page-cta__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.page-cta__title { grid-column: span 1; }
@media (min-width: 1024px) { .page-cta__title { grid-column: span 8 / span 8; } }
.page-cta__title .eyebrow { margin-bottom: 1rem; }
.page-cta__title h2 { font-size: 2.25rem; line-height: 1.02; }
@media (min-width: 1024px) { .page-cta__title h2 { font-size: 3.75rem; line-height: 1; } }
.page-cta__action { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 1024px) { .page-cta__action { grid-column: span 4 / span 4; align-items: flex-end; } }
.page-cta__note { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); }

/* ==========================================================================
   12. Contact page
   ========================================================================== */
.contact-hero__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .contact-hero__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.contact-hero__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: end; }
@media (min-width: 1024px) { .contact-hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.contact-hero__title { grid-column: span 1; }
@media (min-width: 1024px) { .contact-hero__title { grid-column: span 7 / span 7; } }
.contact-hero__title .eyebrow { margin-bottom: 1.25rem; }
.contact-hero__title h1 { font-size: 3rem; line-height: 1.02; }
@media (min-width: 640px) { .contact-hero__title h1 { font-size: 3.75rem; line-height: 1; } }
@media (min-width: 1024px) { .contact-hero__title h1 { font-size: 4.5rem; line-height: 1; } }
.contact-hero__intro { grid-column: span 1; }
@media (min-width: 1024px) { .contact-hero__intro { grid-column: span 5 / span 5; } }
.contact-hero__intro p { font-size: 1.125rem; color: var(--ink-soft); max-width: 35.96em; line-height: 1.625; }
.contact-info__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .contact-info__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.contact-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 4rem;
  row-gap: 2.5rem;
}
@media (min-width: 768px) { .contact-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-block .eyebrow { margin-bottom: 1rem; }
.contact-block__value {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}
@media (min-width: 1024px) { .contact-block__value { font-size: 2.25rem; line-height: 2.5rem; } }
.contact-block__value--wrap { overflow-wrap: anywhere; word-break: break-all; }
.contact-block__value--addr { line-height: 1.25; max-width: 32ch; }
@media (min-width: 1024px) { .contact-block__value--addr { line-height: 2.5rem; } }
.contact-block .link { font-size: 0.875rem; line-height: 1.25rem; }
.contact-block__hours { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); }
.contact-block--full { grid-column: span 1; }
@media (min-width: 768px) { .contact-block--full { grid-column: span 2 / span 2; } }
.social-card-section__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .social-card-section__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.social-card {
  border-radius: 0.125rem;
  background: var(--navy);
  color: #ffffff;
  padding: 2rem;
}
@media (min-width: 1024px) { .social-card { padding: 3rem; } }
.social-card__row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .social-card__row { flex-direction: row; align-items: center; justify-content: space-between; }
}
.social-card__left { display: flex; align-items: center; gap: 1.25rem; }
.social-card__glyph {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: var(--accent);
}
.social-card__eyebrow { color: rgba(255, 255, 255, 0.75); margin-bottom: 0.5rem; }
.social-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.025em;
}
@media (min-width: 1024px) { .social-card h3 { font-size: 1.875rem; line-height: 2.25rem; } }
.social-card__body { color: rgba(255, 255, 255, 0.7); margin-top: 0.5rem; font-size: 15px; line-height: 1.625; max-width: 52ch; }
.social-card .social-links { flex-shrink: 0; align-self: flex-start; }
@media (min-width: 640px) { .social-card .social-links { align-self: auto; } }
.contact-cta { background: var(--paper-warm); }
.contact-cta__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .contact-cta__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.contact-cta h2 { font-size: 2.25rem; line-height: 1.02; }
@media (min-width: 1024px) { .contact-cta h2 { font-size: 3rem; line-height: 1; } }

/* ==========================================================================
   13. Terms page
   ========================================================================== */
.terms-hero__inner, .terms-body__inner {
  max-width: 900px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 1024px) { .terms-hero__inner, .terms-body__inner { padding-left: 3rem; padding-right: 3rem; } }
.terms-hero__inner { padding-top: 5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .terms-hero__inner { padding-top: 7rem; padding-bottom: 4rem; } }
.terms-hero .eyebrow { margin-bottom: 1.5rem; }
.terms-hero h1 { font-size: 2.6rem; }
@media (min-width: 640px) { .terms-hero h1 { font-size: 3.4rem; } }
@media (min-width: 1024px) { .terms-hero h1 { font-size: 4rem; } }
.terms-hero__intro { max-width: 68ch; font-size: 1.125rem; color: var(--ink-soft); line-height: 1.625; margin-top: 2rem; }
.terms-body__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .terms-body__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.terms-article {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.terms-article:first-child { border-top: none; }
@media (min-width: 768px) { .terms-article { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; } }
.terms-article__head { display: flex; align-items: baseline; gap: 0.75rem; }
@media (min-width: 768px) { .terms-article__headcell { grid-column: span 3 / span 3; } }
.terms-article__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}
@media (min-width: 1024px) { .terms-article__head h2 { font-size: 1.5rem; line-height: 2rem; } }
.terms-article__body { color: var(--ink-soft); line-height: 1.625; font-size: 15px; }
@media (min-width: 768px) { .terms-article__body { grid-column: span 9 / span 9; } }
.terms-article__body > * + * { margin-top: 0.75rem; }
.terms-article__body ul { list-style: disc; padding-left: 1.25rem; margin: 0.75rem 0 0 0; }
.terms-article__body ul:first-child { margin-top: 0; }
.terms-article__body li + li { margin-top: 0.25rem; }
.terms-article__body p { margin: 0; }

/* ==========================================================================
   14. 404 page
   ========================================================================== */
.nf-body { display: flex; flex-direction: column; min-height: 100vh; }
.nf-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 6rem 1.5rem; }
.nf-card { text-align: center; max-width: 32rem; }
.nf-card .eyebrow { margin-bottom: 1rem; }
.nf-card h1 { font-size: 2.25rem; line-height: 1.02; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .nf-card h1 { font-size: 3rem; line-height: 1; } }
.nf-card p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 2.5rem; line-height: 1.625; }
.nf-actions { display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .nf-actions { flex-direction: row; } }

/* ==========================================================================
   15. Find-a-tutor pages
   ========================================================================== */
.vt-hero__inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .vt-hero__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.vt-hero .eyebrow { margin-bottom: 1rem; }
.vt-hero h1 { font-size: 2.25rem; line-height: 1.02; max-width: 20ch; }
@media (min-width: 640px) { .vt-hero h1 { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) { .vt-hero h1 { font-size: 3.75rem; line-height: 1; } }
.vt-hero__intro { margin-top: 1.5rem; max-width: 35.96em; font-size: 1.125rem; color: var(--ink-soft); line-height: 1.625; }
.vt-hero__seo { margin-top: 1rem; max-width: 35.96em; color: var(--ink-soft); line-height: 1.625; font-size: 15px; }
.vt-search {
  margin-top: 2rem;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: end;
}
@media (min-width: 768px) { .vt-search { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vt-search { padding: 2rem; } }
.vt-search__subject { grid-column: span 1; }
.vt-search__level { grid-column: span 1; }
.vt-search__submit { grid-column: span 1; }
@media (min-width: 768px) {
  .vt-search__subject { grid-column: span 5 / span 5; }
  .vt-search__level { grid-column: span 4 / span 4; }
  .vt-search__submit { grid-column: span 3 / span 3; }
}
.vt-search__submit .btn-primary { width: 100%; }
.vt-results { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .vt-results { padding-top: 5rem; padding-bottom: 5rem; } }
.vt-results__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.vt-results__head .eyebrow { margin-bottom: 0.5rem; }
.vt-results__head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.875rem;
  line-height: 2.25rem;
  letter-spacing: -0.025em;
}
.vt-results__clear { font-size: 0.875rem; line-height: 1.25rem; background: none; border: none; cursor: pointer; padding: 0; }
.vt-empty { border: 1px solid var(--line); padding: 4rem 0; text-align: center; color: var(--ink-mute); }
.vt-loading { padding: 4rem 0; text-align: center; color: var(--ink-mute); }
.vt-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 3rem;
}
@media (min-width: 768px) { .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .vt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Tutor result card (shared by both find-a-tutor pages) */
.tcard a { display: block; }
.tcard__top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.tcard__avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper-warm);
  flex-shrink: 0;
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .tcard__avatar { width: 6rem; height: 6rem; } }
.tcard__avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.tcard:hover .tcard__avatar img { transform: scale(1.06); }
.tcard__id { min-width: 0; flex: 1; }
.tcard__id h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  transition: color 0.2s ease;
}
@media (min-width: 640px) { .tcard__id h3 { font-size: 1.5rem; line-height: 2rem; } }
.tcard:hover .tcard__id h3 { color: var(--accent); }
.tcard__price {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5rem;
  display: block;
  margin-top: 0.25rem;
}
.tcard__price .per { color: var(--ink-mute); font-size: 0.875rem; line-height: 1.25rem; font-family: var(--font-sans); font-weight: 400; }
.tcard__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.tcard__chips span {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  padding: 0.125rem 0.5rem;
}
.tcard__days {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 11px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
}
.tcard__days .dots { display: flex; gap: 0.25rem; }
.tcard__days .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 10px;
  letter-spacing: normal;
}
.tcard__days .dot.on { background: var(--ink); color: var(--paper-cool); border-color: var(--ink); }
.tcard__bio {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.625;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tcard__more { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; font-weight: 500; }

/* Subject page */
.subj-hero__inner { padding-top: 2.5rem; padding-bottom: 2.5rem; }
@media (min-width: 1024px) { .subj-hero__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.subj-hero .eyebrow { margin-bottom: 1rem; }
.subj-hero h1 { font-size: 2.25rem; line-height: 1.02; max-width: 22ch; }
@media (min-width: 640px) { .subj-hero h1 { font-size: 3rem; line-height: 1; } }
@media (min-width: 1024px) { .subj-hero h1 { font-size: 3.75rem; line-height: 1; } }
.subj-hero__intro { margin-top: 1.5rem; max-width: 35.96em; color: var(--ink-soft); line-height: 1.625; }
.subj-curricula { margin-top: 2rem; max-width: 35.96em; border-left: 2px solid var(--line); padding-left: 1.25rem; }
.subj-curricula .eyebrow { margin-bottom: 0.5rem; }
.subj-curricula p:not(.eyebrow) { color: var(--ink-soft); line-height: 1.625; font-size: 15px; }
.subj-layout__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .subj-layout__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.subj-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .subj-layout { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; } }
.subj-aside { grid-column: span 1; }
@media (min-width: 1024px) { .subj-aside { grid-column: span 3 / span 3; } }
.subj-aside__sticky { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .subj-aside__sticky { position: sticky; top: 6rem; } }
.subj-aside .eyebrow { margin-bottom: 1rem; }
.subj-filters { display: block; }
.subj-filters > * + * { margin-top: 1.25rem; }
.subj-filters__price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.subj-clear { font-size: 0.75rem; line-height: 1rem; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; text-align: left; }
.subj-clear:hover { color: var(--accent); }
.subj-main { grid-column: span 1; }
@media (min-width: 1024px) { .subj-main { grid-column: span 9 / span 9; } }
.subj-main__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.5rem; }
.subj-main__count { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); }
.subj-faq { border-top: 1px solid var(--line); background: rgba(232, 220, 200, 0.4); }
.subj-faq__inner { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 1024px) { .subj-faq__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.subj-faq h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}
@media (min-width: 640px) { .subj-faq h2 { font-size: 1.875rem; line-height: 2.25rem; } }
.subj-faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  row-gap: 2.5rem;
  max-width: 64rem;
}
@media (min-width: 768px) { .subj-faq__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.subj-faq h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.75rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}
.subj-faq p { color: var(--ink-soft); font-size: 15px; line-height: 1.625; }

/* ==========================================================================
   16. Tutor profile + booking
   ========================================================================== */
.tp-hero__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .tp-hero__inner { padding-top: 4rem; padding-bottom: 4rem; } }
.tp-hero .eyebrow { margin-bottom: 1.25rem; }
.tp-hero__row { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 640px) { .tp-hero__row { flex-direction: row; align-items: center; gap: 2rem; } }
.tp-hero__avatar {
  width: 7rem; height: 7rem;
  border-radius: 999px; overflow: hidden;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
@media (min-width: 640px) { .tp-hero__avatar { width: 8rem; height: 8rem; } }
@media (min-width: 1024px) { .tp-hero__avatar { width: 9rem; height: 9rem; } }
.tp-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tp-hero__id { min-width: 0; flex: 1; }
.tp-hero__id h1 { font-size: 1.875rem; line-height: 1.02; }
@media (min-width: 640px) { .tp-hero__id h1 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .tp-hero__id h1 { font-size: 3rem; line-height: 1; } }
.tp-hero__price { margin-top: 0.75rem; display: inline-flex; align-items: baseline; gap: 0.75rem; color: var(--ink-soft); }
.tp-hero__price .eyebrow { margin-bottom: 0; }
.tp-hero__price .val { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.75rem; color: var(--ink); }
.tp-hero__ctas { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.tp-about__inner {
  padding-top: 3rem; padding-bottom: 3rem;
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 1024px) {
  .tp-about__inner { padding-top: 4rem; padding-bottom: 4rem; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; }
  .tp-about__bio { grid-column: span 7 / span 7; }
  .tp-about__subjects { grid-column: span 5 / span 5; }
}
.tp-about__bio .eyebrow, .tp-about__subjects .eyebrow { margin-bottom: 1rem; }
.tp-about__bio h2 {
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.025em; margin-bottom: 1.25rem;
}
.tp-about__bio p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.125rem; line-height: 1.625; max-width: 35.96em; white-space: pre-line; }
.tp-expertise { margin-top: 1.5rem; }
.tp-expertise .eyebrow { margin-bottom: 0.75rem; }
.tp-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tp-chips span {
  display: inline-flex; align-items: center;
  font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-mute); border: 1px solid var(--line); padding: 0.125rem 0.5rem;
}
.tp-subjects-table { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.tp-subjects-table table { width: 100%; font-size: 0.875rem; line-height: 1.25rem; border-collapse: collapse; }
.tp-subjects-table th { padding: 0.75rem 1rem; text-align: left; font-weight: 700; border-bottom: 1px solid var(--line); }
.tp-subjects-table th:last-child { text-align: right; }
.tp-subjects-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.tp-subjects-table tr:last-child td { border-bottom: 0; }
.tp-subjects-table td.price { text-align: right; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tp-subjects-table td.price .per { color: var(--ink-mute); font-size: 0.75rem; line-height: 1rem; font-family: var(--font-sans); font-weight: 400; }

/* Booking area */
.tp-book { border-top: 1px solid var(--line); background: rgba(232, 220, 200, 0.4); scroll-margin-top: 5rem; }
.tp-book__inner { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 1024px) { .tp-book__inner { padding-top: 5rem; padding-bottom: 5rem; } }
.tp-book__head { margin-bottom: 2.5rem; }
.tp-book__head .eyebrow { margin-bottom: 0.75rem; }
.tp-book__head h2 { font-size: 1.875rem; line-height: 1.02; max-width: 22ch; }
@media (min-width: 640px) { .tp-book__head h2 { font-size: 2.25rem; line-height: 2.5rem; } }
@media (min-width: 1024px) { .tp-book__head h2 { font-size: 3rem; line-height: 1; } }
.tp-book__meta { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 2rem; row-gap: 0.5rem; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.25rem; }
.tp-book__meta .fee { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tp-book__tznote { margin-top: 0.75rem; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-soft); max-width: 35.96em; }
.tp-book__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 1024px) { .tp-book__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4rem; } }
.tp-book__left { grid-column: span 1; }
@media (min-width: 1024px) { .tp-book__left { grid-column: span 7 / span 7; } }
.tp-book__left > * + * { margin-top: 2.5rem; }
.tp-book__right { grid-column: span 1; }
@media (min-width: 1024px) { .tp-book__right { grid-column: span 5 / span 5; } }
.tp-book__sticky > * + * { margin-top: 1.5rem; }
@media (min-width: 1024px) { .tp-book__sticky { position: sticky; top: 6rem; } }
.tp-step { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.tp-step .eyebrow, #tp-details-step { margin-bottom: 0.25rem; }
.tp-step h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.025em; }
.tp-step .count { font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); }
.tp-note { font-size: 0.75rem; line-height: 1rem; color: var(--ink-mute); margin-bottom: 1rem; }

.tp-offerings { display: grid; grid-template-columns: 1fr; gap: 0.5rem; }
@media (min-width: 640px) { .tp-offerings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tp-offering {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  font-size: 0.875rem; line-height: 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.125rem;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  font-family: inherit;
}
.tp-offering:hover { border-color: var(--ink); }
.tp-offering .lvl { display: block; color: var(--ink-mute); font-size: 0.75rem; line-height: 1rem; }
.tp-offering .name { display: block; font-weight: 500; }
.tp-offering .prc { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.tp-offering .prc .per { color: var(--ink-mute); font-size: 0.75rem; line-height: 1rem; font-family: var(--font-sans); font-weight: 400; }
.tp-offering.selected { background: var(--ink); color: var(--paper-cool); border-color: var(--ink); }
.tp-offering.selected .lvl { color: rgba(251, 250, 246, 0.7); }
.tp-offering.selected .prc { color: var(--paper-cool); }
.tp-offering.selected .prc .per { color: rgba(251, 250, 246, 0.7); }

/* Month calendar */
.cal { border: 1px solid var(--line); background: #fff; }
.cal__head { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.cal__head button { background: none; border: none; cursor: pointer; font-size: 0.875rem; line-height: 1.25rem; color: var(--ink-mute); width: 2rem; padding: 0; }
.cal__head button:hover:not(:disabled) { color: var(--ink); }
.cal__head button:disabled { opacity: 0.3; cursor: not-allowed; }
.cal__head .prev { text-align: left; }
.cal__head .next { text-align: right; }
.cal__title { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.125rem; line-height: 1.75rem; letter-spacing: -0.025em; }
.cal__weekdays {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  font-size: 11px; line-height: 1.5; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-mute);
}
.cal__weekdays div { padding: 0.5rem; text-align: center; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__cell {
  height: 5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem;
  text-align: left;
  position: relative;
  background: none;
  font-family: inherit;
  border-top: none; border-left: none;
  display: block; width: 100%;
  cursor: default;
  color: var(--ink);
}
.cal__cell:last-child { border-right: 0; }
.cal__cell .num { font-size: 0.875rem; line-height: 1.25rem; }
.cal__cell .num.today { border-radius: 999px; box-shadow: 0 0 0 1px var(--ink); padding: 0 0.375rem; margin: 0 -0.375rem; }
.cal__cell .sub { margin-top: 0.25rem; font-size: 11px; line-height: 1.5; }
.cal__cell--open { background: #fff; }
.cal__cell--open .sub { color: var(--ink-soft); }
.cal__cell--faint { background: rgba(232, 220, 200, 0.4); color: var(--ink-faint); }
.cal__cell--faint .sub { color: var(--ink-faint); }
.cal__cell--noslots { background: rgba(232, 220, 200, 0.6); color: var(--ink-faint); }
.cal__cell--noslots .sub { color: var(--ink-faint); }
.cal__cell--leave { background: var(--paper-warm); color: var(--ink-faint); }
.cal__cell--leave .sub { text-decoration: line-through; color: var(--ink-faint); }
.cal__cell--selected { background: var(--ink); color: var(--paper-cool); }
.cal__cell--selected .sub { color: rgba(251, 250, 246, 0.8); }
.cal__cell--click { cursor: pointer; }
.cal__cell--click:hover:not(.cal__cell--selected) { background: var(--paper-warm); }
.hatched-leave {
  background-image: repeating-linear-gradient(135deg, transparent 0, transparent 6px, rgba(0, 0, 0, 0.045) 6px, rgba(0, 0, 0, 0.045) 7px);
}

/* Slots */
.tp-slots-empty { border: 1px solid var(--line); background: #fff; padding: 4rem 0; text-align: center; color: var(--ink-mute); }
.tp-slots-wrap { margin-top: 2rem; }
.tp-day-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.tp-day-head h4 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.25rem; line-height: 1.75rem; letter-spacing: -0.025em; }
.tp-clear-slots { font-size: 0.75rem; line-height: 1rem; color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; }
.tp-clear-slots:hover { color: var(--accent); }
.tp-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
@media (min-width: 640px) { .tp-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .tp-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tp-slot {
  display: flex; flex-direction: column; align-items: center;
  font-size: 0.875rem; line-height: 1.25rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.125rem;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.tp-slot:hover:not(:disabled):not(.selected) { border-color: var(--ink); }
.tp-slot.selected { background: var(--ink); color: var(--paper-cool); border-color: var(--ink); }
.tp-slot:disabled { background: var(--paper-warm); color: var(--ink-faint); text-decoration: line-through; cursor: not-allowed; }
.tp-slot .teacher-time { font-size: 10px; margin-top: 0.25rem; line-height: 1; color: var(--ink-mute); }
.tp-slot.selected .teacher-time { color: rgba(251, 250, 246, 0.7); }

/* Booking form */
.tp-form { background: #fff; border: 1px solid var(--line); padding: 1.5rem; }
@media (min-width: 1024px) { .tp-form { padding: 2rem; } }
.tp-form > * + * { margin-top: 1.25rem; }
.tp-summary { border-top: 1px solid var(--line); padding-top: 1.25rem; font-size: 0.875rem; line-height: 1.25rem; }
.tp-summary > * + * { margin-top: 0.75rem; }
.tp-summary .row { display: flex; align-items: center; justify-content: space-between; }
.tp-summary .row--baseline { align-items: baseline; }
.tp-summary .muted { color: var(--ink-mute); }
.tp-summary .total { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.5rem; line-height: 2rem; }
.tp-summary ul { list-style: none; margin: 0; padding: 0; }
.tp-summary ul > * + * { margin-top: 0.375rem; }
.tp-summary li { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; line-height: 1rem; color: var(--ink); }
.tp-summary li button { color: var(--ink-mute); background: none; border: none; cursor: pointer; padding: 0; font-size: 1rem; line-height: 1; }
.tp-summary li button:hover { color: var(--accent); }
.tp-summary .none { color: var(--ink-faint); font-style: italic; font-size: 0.75rem; line-height: 1rem; }
.tp-form .hint { font-size: 0.75rem; line-height: 1rem; color: var(--ink-mute); text-align: center; }
.tp-form .hint--warn { color: var(--accent); }
.tp-form .btn-primary { width: 100%; }

/* Terms modal */
.tm-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) { .tm-overlay { padding: 1.5rem; } }
.tm-backdrop {
  position: absolute; inset: 0;
  background: rgba(27, 42, 74, 0.7);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.tm-panel {
  position: relative;
  background: var(--paper);
  width: 100%;
  max-width: 820px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: 0.125rem;
  border-top: 4px solid var(--accent);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.tm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.5rem 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .tm-head { padding-left: 2rem; padding-right: 2rem; } }
.tm-head .eyebrow { margin-bottom: 0.5rem; }
.tm-head h2 { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.025em; }
@media (min-width: 1024px) { .tm-head h2 { font-size: 1.875rem; line-height: 2.25rem; } }
.tm-close { color: var(--ink-mute); background: none; border: none; cursor: pointer; font-size: 1.5rem; line-height: 1; flex-shrink: 0; padding: 0; }
.tm-close:hover { color: var(--accent); }
.tm-body { overflow-y: auto; padding: 1.25rem 1.5rem; }
@media (min-width: 1024px) { .tm-body { padding-left: 2rem; padding-right: 2rem; } }
.tm-body__intro { color: var(--ink-soft); line-height: 1.625; font-size: 15px; margin-bottom: 1.5rem; }
.tm-foot {
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  background: var(--paper-cool);
}
@media (min-width: 640px) { .tm-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
@media (min-width: 1024px) { .tm-foot { padding-left: 2rem; padding-right: 2rem; } }
.tm-foot p { font-size: 0.75rem; line-height: 1rem; color: var(--ink-mute); max-width: 46ch; }
.tm-foot__btns { display: flex; gap: 0.75rem; flex-shrink: 0; }
.tm-foot__btns .btn-primary, .tm-foot__btns .btn-secondary { font-size: 0.875rem; padding: 0.6rem 1.1rem; }

/* ==========================================================================
   17. Payment + success pages
   ========================================================================== */
.thin-nav { border-bottom: 1px solid var(--line); }
.thin-nav__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 1024px) { .thin-nav__inner { padding: 0 3rem; } }
.thin-nav__brand { display: flex; align-items: baseline; gap: 0.5rem; }
.thin-nav__brand .b1 { font-family: var(--font-display); font-weight: 500; color: var(--ink); font-size: 1.5rem; line-height: 2rem; letter-spacing: -0.02em; }
.thin-nav__brand .b2 { font-family: var(--font-display); font-style: italic; color: var(--ink-mute); font-size: 0.875rem; line-height: 1.25rem; }
.center-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 5rem 1.5rem; }
.center-main--page { min-height: 100vh; display: flex; flex-direction: column; }

.pay-card { width: 100%; max-width: 28rem; }
.pay-card .eyebrow { margin-bottom: 1rem; text-align: center; display: block; }
.pay-card h1 { font-size: 2.25rem; line-height: 1.02; text-align: center; margin-bottom: 1rem; }
@media (min-width: 640px) { .pay-card h1 { font-size: 3rem; line-height: 1; } }
.pay-card__sub { color: var(--ink-soft); text-align: center; margin-bottom: 2.5rem; max-width: 35.96em; margin-left: auto; margin-right: auto; }
.pay-box { background: #fff; border: 1px solid var(--line); padding: 1.5rem; }
.pay-box__msg { padding: 2.5rem 0; text-align: center; color: var(--ink-mute); }
.pay-box__msg--error { color: var(--accent); font-size: 0.875rem; line-height: 1.25rem; }
.pay-cancel {
  margin-top: 1.5rem;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-mute);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
  text-align: center;
}
.pay-cancel:hover { color: var(--ink); }

.success-card { width: 100%; max-width: 42rem; text-align: center; }
.success-card svg { width: 4rem; height: 4rem; margin: 0 auto 2.5rem; color: var(--accent); display: block; }
.success-card svg path {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: ll-draw 0.8s ease 0.3s forwards;
}
@keyframes ll-draw { to { stroke-dashoffset: 0; } }
.success-card .eyebrow { margin-bottom: 1.25rem; display: block; }
.success-card h1 { font-size: 3rem; line-height: 1.02; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .success-card h1 { font-size: 3.75rem; line-height: 1; } }
.success-card p.lead { font-size: 1.125rem; color: var(--ink-soft); max-width: 35.96em; margin: 0 auto; line-height: 1.625; }
.success-card__actions { margin-top: 3rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
@media (min-width: 640px) { .success-card__actions { flex-direction: row; } }
