/* Vetted Tutors: plain CSS port of the old Next.js + Tailwind page.
   Breakpoints match the old ones: 640 / 768 / 1024 / 1280 / 1536. */

:root {
  --text: #0a0a0a;
  --orange: #ea580c;
  --orange-light: #f97316;
  --orange-dark: #c2410c;
  --orange-tint: #ffedd5;
  --orange-ink: #9a3412;
  --yellow: #eab308;
  --yellow-dark: #ca8a04;
  --cream: #fff2e6;
  --gray-50: #f9fafb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --line: #e5e5e5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1; }
h1, h2, h3, p { margin: 0; }
img, svg, iframe { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.icon { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.center { display: flex; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  height: 80px; padding: 0 16px;
  display: flex; align-items: center;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--orange); }
.logo .icon { width: 24px; height: 24px; }
.site-header nav { margin-left: auto; display: flex; gap: 16px; }
.site-header nav a { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--orange-light); }
.site-header nav a:hover { opacity: .8; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); }
.hero-inner {
  max-width: 1280px; margin: 0 auto; padding: 80px 32px 0;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: flex-start;
}
.hero-copy {
  width: 100%; margin-bottom: 20px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  text-align: center;
}
.hero h1 { margin: 16px 0; font-size: 48px; line-height: 1.25; font-weight: 700; width: 100%; }
.hero h1 .hl { color: var(--yellow); }
.lead { width: 100%; margin-bottom: 32px; font-size: 20px; line-height: 1.5; color: var(--gray-700); }
.hero-actions { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; }
.hero-note { width: 100%; margin-top: 16px; text-align: center; color: var(--orange-dark); }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  white-space: nowrap; border-radius: 9999px;
  padding: 0 48px; font-size: 24px; line-height: 32px; font-weight: 700;
  transition: transform .3s ease-in-out, background-color .3s ease-in-out;
}
.pill:hover { transform: scale(1.1); }
.pill .icon { width: 16px; height: 16px; }
.pill-ghost { height: 52px; border: 2px solid var(--gray-700); color: var(--gray-700); }
.pill-solid {
  height: 48px; background: var(--yellow); color: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
.pill-solid:hover { background: var(--yellow-dark); }

.hero-art { width: 100%; position: relative; }
.hero-art img { width: 83.333%; margin: 0 auto; }

.wave { position: relative; z-index: 40; margin-top: -56px; color: #fff; }
.wave svg { width: 100%; height: auto; aspect-ratio: 10 / 1; }
.wave-fill { height: 80px; margin-top: -1px; background: #fff; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 16px; }

.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.05em; }
.section-head .sub { max-width: 900px; margin-top: 8px; color: var(--gray-500); }
.accent { color: var(--orange); }

.features { max-width: 1024px; margin: 0 auto; padding: 48px 0; display: grid; gap: 24px; align-items: center; }
.feature { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.feature .icon { width: 48px; height: 48px; color: var(--orange); }
.feature h3 { font-size: 20px; line-height: 28px; font-weight: 700; }
.feature p { color: var(--gray-500); }

.wanted-head { margin-bottom: 48px; }
.wanted-title { max-width: 768px; padding: 16px 0; color: #000; }
.tags { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.tags span { padding: 8px 16px; border-radius: 9999px; background: var(--orange-tint); color: var(--orange-ink); font-weight: 500; }

.photo { display: flex; justify-content: center; margin-bottom: 40px; }
.photo img { border-radius: 8px; box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1); }

.prose { max-width: 896px; margin: 0 auto; }
.prose p { font-size: 18px; line-height: 1.625; color: var(--gray-700); }
.prose > p:first-child { margin-bottom: 40px; }
.block { margin-bottom: 40px; }
.block h3 { margin-bottom: 12px; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--orange); }
.prose .apply-below { margin: 48px 0 24px; font-size: 20px; line-height: 28px; font-weight: 700; text-align: center; }
.prose .center { margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 16px;
  height: 48px; padding: 0 32px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--orange); color: #fff;
  font: inherit; font-size: 18px; line-height: 1; font-weight: 500; white-space: nowrap;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
}
.btn .icon { width: 16px; height: 16px; }
.btn-square { border-radius: 4px; box-shadow: none; }
.btn:focus-visible, .pill:focus-visible, .site-header a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.apply-head { margin-bottom: 32px; }
.apply-form { border: 0; width: 100%; max-width: 768px; min-height: 1000px; }

.faq-head { margin-bottom: 40px; }
.faq { max-width: 896px; margin: 0 auto; display: grid; gap: 24px; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px; border-radius: 8px; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--gray-50); }
.faq summary:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.faq h3 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--gray-800); }
.chev {
  width: 24px; height: 24px; margin-left: 16px; flex: none;
  fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s;
}
.faq details[open] .chev { transform: rotate(180deg); }
.faq details > p { padding: 0 24px 24px; color: var(--gray-700); }

.question { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.question h3 { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--orange); }

/* ---------- Footer ---------- */
.site-footer { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px; border-top: 1px solid var(--line); }
.site-footer p { font-size: 12px; line-height: 16px; color: var(--gray-500); }

/* ---------- Contact window ---------- */
.contact-modal {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  border: 0; border-radius: 16px; padding: 28px 24px 22px;
  background: #fff; color: var(--text);
  box-shadow: 0 24px 70px rgb(0 0 0 / .3);
}
.contact-modal::backdrop { background: rgb(0 0 0 / .45); backdrop-filter: blur(4px); }
.contact-modal h2 { font-size: 24px; line-height: 32px; font-weight: 700; color: var(--orange); }
.cm-sub { margin-top: 4px; color: var(--gray-500); }
.cm-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.cm-close { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--gray-50); color: var(--gray-700); font-size: 14px; cursor: pointer; }
.cm-close:hover { background: var(--orange-tint); }
.cm-form { margin-top: 20px; display: grid; gap: 14px; }
.cm-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gray-700); }
.cm-form input, .cm-form textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
  background: #fff; border: 1px solid #d4d4d4; border-radius: 8px; padding: 10px 12px; resize: vertical;
}
.cm-form input:focus, .cm-form textarea:focus { outline: 2px solid var(--orange); outline-offset: -1px; border-color: transparent; }
.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cm-send { justify-self: start; }
.cm-send:disabled { opacity: .6; cursor: default; }
.cm-status { font-size: 14px; min-height: 1.5em; }
.cm-status.ok { color: #15803d; }
.cm-status.err { color: #b91c1c; }
.cm-status a { color: var(--orange); text-decoration: underline; }

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .site-header nav { gap: 24px; }
  .wave { margin-top: -96px; }
  .section-head h2 { font-size: 48px; line-height: 1; }
  .site-footer { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero-copy { margin-bottom: 0; }
  .hero-actions { flex-direction: row; gap: 32px; }
  .section-tall { padding: 96px 0; }
  .wrap { padding: 0 24px; }
  .section-head .sub { font-size: 20px; line-height: 1.625; }
  .site-footer { padding: 24px; }
}
@media (min-width: 1024px) {
  .site-header { padding: 0 24px; }
  .hero-inner { flex-direction: row; }
  .hero-copy { width: 50%; padding-top: 96px; text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-art { width: 50%; margin-top: -40px; }
  .wave { margin-top: -144px; }
  .section-tall { padding: 128px 0; }
  .section-apply { padding: 96px 0; }
  .section-head .sub { font-size: 16px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}
@media (min-width: 1280px) {
  .wave svg { height: 160px; aspect-ratio: auto; }
  .section-head .sub { font-size: 20px; }
}
@media (min-width: 1536px) {
  .hero-art img { margin-bottom: -80px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .chev { transition: none; }
  .pill:hover { transform: none; }
}
