/* Testimonials page.
   New-design styles scoped under .tst so its generic class names (.section,
   .btn, .quotes…) can't collide with main.css or other pages' scoped sheets.
   Token block, primitives, and section conventions match educators.css /
   students.css (Inter + Source Serif 4, light/mist/dark sections). The global
   site header/footer (main.css) supply the chrome. */

.tst {
	--blue-50:  #EEF0FB; --blue-100: #D9DEF7; --blue-200: #B7BFF0; --blue-300: #8C97E6;
	--blue-400: #6470DB; --blue-500: #3543D0; --blue-600: #2C37B0; --blue-700: #232C8F;
	--blue-800: #1A216C; --blue-900: #111650;
	--teal: #43E8D8; --gold: #FDC801;
	--grey-50:  #F7F8FA; --grey-100: #EEF0F3; --grey-200: #DDE1E7; --grey-300: #C3C9D2;
	--grey-400: #9AA2AE; --grey-500: #6B7280; --grey-600: #4B5260; --grey-700: #353B47;
	--grey-800: #222730; --grey-900: #11141A;
	--surface-base: #0B0F1E; --surface-1: #111730; --surface-2: #1A2142;
	--border-dark: #2A3358; --text-dark-1: #F2F4FB; --text-dark-2: #A9B1C6; --muted-dark: #8891AA;
	--r-sm: 4px; --r: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px;
	--shadow-sm: 0 1px 2px 0 rgb(17 20 26 / 0.05);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--display: 'Source Serif 4', ui-serif, Georgia, serif;

	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--grey-900);
	background: #fff;
}
.tst a { color: var(--blue-500); text-decoration: underline; }
.tst a:hover { color: var(--blue-600); }
.tst img, .tst svg { max-width: 100%; }

/* Reset the theme's global display-face headings back to the sans face; the
   serif display headings re-assert var(--display) below. */
.tst h1, .tst h2, .tst h3, .tst h4 { font-family: var(--sans); line-height: 1.2; margin: 0; text-wrap: balance; }

.tst .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tst .section { padding: 72px 0; }
@media (min-width: 768px) { .tst .section { padding: 88px 0; } }

.tst .eyebrow {
	display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em;
	text-transform: uppercase; margin-bottom: 14px;
}
.tst .eyebrow.on-light { color: var(--blue-500); }
.tst .eyebrow.on-dark { color: var(--teal); }

.tst .light { background: #fff; }
.tst .mist { background: var(--grey-50); }
.tst .dark { background: var(--surface-base); color: var(--text-dark-1); }

/* ---------- Hero (light, centered) ---------- */
.tst .page-hero { padding: 72px 0 56px; position: relative; overflow: hidden; text-align: center; }
@media (min-width: 1024px) { .tst .page-hero { padding: 96px 0 72px; } }
.tst .page-hero::before {
	content: ""; position: absolute; top: -300px; left: 50%; transform: translateX(-50%);
	width: 720px; height: 720px;
	background: radial-gradient(circle, rgba(67,232,216,0.18) 0%, rgba(67,232,216,0) 65%);
	pointer-events: none;
}
.tst .page-hero .wrap { position: relative; }
.tst .page-hero h1 {
	font-family: var(--display); font-optical-sizing: auto; font-variation-settings: "opsz" 60;
	font-weight: 600; font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -0.02em; line-height: 1.06;
	color: var(--ink); margin: 0 auto 18px; max-width: 820px;
}
.tst .hero-sub { font-size: 18px; line-height: 29px; color: var(--grey-600); max-width: 640px; margin: 0 auto; }

/* ---------- Section headers ---------- */
.tst .sec-head { max-width: 720px; margin-bottom: 40px; }
.tst .sec-head.is-wide { max-width: 780px; }
.tst .sec-head h2, .tst .faq-head, .tst .cta h2 {
	font-family: var(--display); font-optical-sizing: auto;
	font-variation-settings: "opsz" 48; font-weight: 600;
	font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.015em; line-height: 1.12; margin: 0 0 16px;
	color: var(--ink);
}
.tst .dark .sec-head h2, .tst .dark .cta h2, .tst .cta.dark h2 { color: var(--text-dark-1); }
.tst .sec-head p { font-size: 17px; line-height: 27px; color: var(--grey-600); margin: 0; }
.tst .dark .sec-head p { color: var(--text-dark-2); }

/* ---------- Named quotes (dark) ---------- */
.tst .quotes { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; }
@media (min-width: 768px) { .tst .quotes { grid-template-columns: 1fr 1fr; } }
.tst figure.quote {
	background: var(--surface-1); border: 1px solid var(--border-dark); border-radius: var(--r-xl);
	padding: 32px 28px; margin: 0; display: flex; flex-direction: column; gap: 20px;
}
.tst figure.quote blockquote { font-size: 16px; line-height: 1.6; color: #DDE2F0; margin: 0; }
.tst figure.quote figcaption { font-size: 14px; font-weight: 700; color: var(--text-dark-1); margin-top: auto; }
.tst figure.quote figcaption span { font-weight: 500; color: var(--text-dark-2); }

/* ---------- Survey quotes (mist) ---------- */
.tst .survey-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .tst .survey-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .tst .survey-grid { grid-template-columns: repeat(3, 1fr); } }
.tst .survey-card {
	background: #fff; border: 1px solid var(--grey-200); border-radius: var(--r-xl);
	box-shadow: var(--shadow-sm); padding: 26px 24px; margin: 0;
	display: flex; flex-direction: column; gap: 14px;
}
/* Star row: grey outline row with a gold overlay clipped to the rating width.
   Ratings on the wall are whole or half stars (4, 4.5, 5), so widths are
   fixed per rating class; the accessible value lives in the aria-label. */
.tst .stars { position: relative; display: inline-block; align-self: flex-start; font-size: 17px; line-height: 1; letter-spacing: 2px; color: var(--grey-300); margin: 0; }
.tst .stars .stars-fg { position: absolute; top: 0; left: 0; overflow: hidden; white-space: nowrap; color: var(--gold); }
.tst .stars--4 .stars-fg { width: 80%; }
.tst .stars--4-5 .stars-fg { width: 90%; }
.tst .stars--5 .stars-fg { width: 100%; }
.tst .survey-card blockquote { font-size: 15px; line-height: 24px; color: var(--grey-700); margin: 0; }
.tst .survey-card figcaption { font-size: 13px; font-weight: 600; color: var(--grey-500); margin-top: auto; }

/* ---------- Methodology accordion (light) ---------- */
.tst .faq-head { margin-bottom: 32px; }
.tst .faq-list { max-width: 820px; margin: 0; display: grid; gap: 12px; }
.tst .faq-item { background: var(--grey-50); border: 1px solid var(--grey-200); border-radius: var(--r-lg); }
.tst .faq-item summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
	gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 700; color: var(--grey-900);
}
.tst .faq-item summary::-webkit-details-marker { display: none; }
.tst .faq-item summary .chev { flex-shrink: 0; color: var(--blue-500); transition: transform 200ms var(--ease); }
.tst .faq-item[open] summary .chev { transform: rotate(180deg); }
.tst .faq-item summary:focus-visible { outline: none; border-radius: var(--r-lg); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue-500); }
.tst .faq-body { padding: 0 24px 22px; font-size: 15px; line-height: 24px; color: var(--grey-600); }
.tst .faq-body p { margin: 0; }

/* ---------- Buttons + final CTA (dark) ---------- */
.tst .btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 50px; padding: 0 28px; border-radius: var(--r-lg); border: 1px solid transparent;
	font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none;
	transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.tst .btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 10px 24px -8px rgba(53,67,208,.45); }
.tst .btn-primary:hover { background: var(--blue-600); color: #fff; }
.tst .btn-primary:active { background: var(--blue-700); }
.tst .btn-lg { height: 56px; padding: 0 34px; font-size: 17px; }
.tst .btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface-base), 0 0 0 4px var(--teal); }

.tst .cta { text-align: center; }
.tst .cta-inner { max-width: 760px; margin: 0 auto; }
.tst .cta p.lede { font-size: 18px; line-height: 28px; color: var(--text-dark-2); margin: 0 auto 30px; max-width: 620px; }
.tst .cta .cta-support { font-size: 14px; color: var(--muted-dark); margin: 28px 0 0; }
.tst .cta .cta-support a { color: var(--teal); font-weight: 600; text-decoration: none; }
.tst .cta .cta-support a:hover { color: var(--text-dark-1); }
