/* teraEd marketing site.
   Every value here comes from the design handoff. Plain CSS rather than a
   utility framework: the design is specified in exact values and clamp()
   ranges, and dropping the CDN removes a dependency that has already broken
   this site once on a network that blocked it. */

:root {
  --ink: #0F1214;          /* primary text, dark blocks, primary button */
  --body: #2E3438;         /* article first paragraphs */
  --body-muted: #4A5157;   /* article body, inactive nav */
  --text-2: #62676C;       /* card bodies, ledes */
  --text-3: #5E666C;       /* labels, captions, footnotes */
  --accent: #B44A1F;       /* the ONE accent — do not add a second */
  --accent-hover: #8C3714;
  --accent-light: #E9A484; /* dark-block hovers, "Developing" */
  --surface: #F5F5F7;
  --surface-hover: #EBEBEF;
  --hairline: #DFDFE4;
  --hairline-light: #E6E9EB;
  --neutral-cell: #D8D8DE;
  --photo-bg: #E4E4E9;
  --on-dark: #FFFFFF;
  --on-dark-muted: #A8B1B7;

  --container: 1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 132px);
  --section-lg: clamp(88px, 11vw, 168px);
  --card-pad: clamp(24px, 2.8vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 11px var(--gutter);
  min-height: 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
}

/* The wordmark is split tera / Ed in every position, header and footer.
   Brand requirement — keep it. */
.wordmark {
  font-weight: 600;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.032em;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }
.wordmark b { font-weight: 600; color: var(--accent); }

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: center;
}
.nav a {
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1;
  color: var(--body-muted);
}
.nav a:hover { color: var(--ink); }
.nav a.is-current { font-weight: 500; color: var(--ink); }

.actions { display: flex; flex-wrap: wrap; gap: 8px 18px; }

.pill {
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1;
  padding: 10px 18px;
  border-radius: 980px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.pill--secondary { color: var(--ink); background: var(--surface); }
.pill--secondary:hover { color: var(--ink); background: var(--surface-hover); }
.pill--primary { color: #FFFFFF; background: var(--ink); }
.pill--primary:hover { color: #FFFFFF; background: var(--accent); }

/* larger hero-scale pills */
.pill--lg { font-size: 16px; padding: 17px 30px; }

/* ---- type --------------------------------------------------------------- */

.eyebrow {
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: var(--text-3);
}
.eyebrow--accent { color: var(--accent); }

.h1 {
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  max-width: 19ch;
  text-wrap: balance;
}
.h2 {
  font-weight: 600;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  max-width: 20ch;
  text-wrap: balance;
}
.lede {
  max-width: 48ch;
  font-weight: 400;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.section { padding: var(--section) 0 0; }
.section--lg { padding: var(--section-lg) 0 0; }

/* ---- cards and panels --------------------------------------------------- */

.card {
  background: var(--surface);
  border-radius: 18px;
  padding: var(--card-pad);
}
.card h3 {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.022em;
}
.card p {
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-2);
  margin-top: 14px;
  text-wrap: pretty;
}

.panel {
  background: var(--surface);
  border-radius: 22px;
  padding: clamp(28px, 3.6vw, 56px);
}
.panel__headline {
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 24ch;
  margin-top: 16px;
  text-wrap: balance;
}
.panel__body {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 44ch;
  margin-top: 18px;
  text-wrap: pretty;
}

.grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* min(100%,380px) forces two columns at desktop so four cards balance, and
   collapses to one on mobile. Do NOT make this three columns. */
.grid--2x2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 3.5vw, 52px); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---- dark CTA ----------------------------------------------------------- */

.cta {
  background: var(--ink);
  border-radius: 26px;
  padding: clamp(36px, 5vw, 80px);
  text-align: center;
}
.cta h2 {
  color: var(--on-dark);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.036em;
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
}
.cta p {
  color: var(--on-dark-muted);
  max-width: 44ch;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.cta__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill--on-dark { color: var(--ink); background: #FFFFFF; }
.pill--on-dark:hover { color: var(--ink); background: var(--accent-light); }
.pill--ghost { color: #FFFFFF; background: rgba(255, 255, 255, 0.14); }
.pill--ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.24); }

/* ---- footer ------------------------------------------------------------- */

.site-footer {
  background: var(--surface);
  padding: clamp(44px, 5vw, 64px) 0 40px;
  margin-top: var(--section-lg);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(24px, 3vw, 44px);
}
.site-footer h4 {
  margin: 0 0 12px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: var(--text-3);
}
.site-footer p, .site-footer div.muted {
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}
.site-footer__base {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  color: var(--text-3);
}

/* ---- curricula ---------------------------------------------------------- */

.curricula__item h3 {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.016em;
}
.curricula__item p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

/* ---- home: hero --------------------------------------------------------- */

.hero { padding: clamp(72px, 9vw, 132px) 0 0; }
.hero__title {
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.042em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__accent { color: var(--accent); }
.hero__lede {
  max-width: 46ch;
  margin-top: 26px;
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--text-2);
  text-wrap: pretty;
}
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- home: live stats --------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: clamp(28px, 4vw, 52px);
}
.stats__figure {
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  letter-spacing: -0.042em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stats__figure--accent { color: var(--accent); }
.stats__label {
  margin-top: 12px;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-2);
}
.stats__footnote {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 88ch;
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
}

/* ---- home: 2x2 cards ---------------------------------------------------- */

.card__title-lg {
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ---- home: class mastery panel ------------------------------------------
   Built in HTML, not an image: the original screenshot was 714px wide being
   upscaled into a 1080px container and blurred. Do not swap an image back in. */

.mastery {
  max-width: 820px;
  background: var(--surface);
  border-radius: 18px;
  padding: clamp(24px, 2.8vw, 36px);
}
.mastery__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
}
.mastery__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.mastery__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.mastery__legend-label {
  font-weight: 400;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-3);
  margin-right: 6px;
}
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch--needs { background: var(--accent); }
.swatch--developing { background: var(--accent-light); }
.swatch--secure { background: var(--neutral-cell); }

.mastery__rows { border-top: 1px solid var(--hairline); }
.mastery__row {
  display: grid;
  grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 2fr);
  gap: 8px 20px;
  align-items: center;
  padding: 10px 0;
}
.mastery__label { font-weight: 400; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.mastery__cells { display: flex; gap: 5px; }
.cell { height: 24px; flex: 1; border-radius: 4px; }
.cell--needs { background: var(--accent); }
.cell--developing { background: var(--accent-light); }
.cell--secure { background: var(--neutral-cell); }

.mastery__closing {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}
.caption {
  margin-top: 16px;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-3);
}

/* ---- shared column blocks ----------------------------------------------- */

.col__title { font-weight: 600; font-size: 19px; line-height: 1.28; letter-spacing: -0.016em; }
.col__body {
  margin-top: 12px;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---- founders quote ----------------------------------------------------- */

.quote {
  margin: 0;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.18;
  letter-spacing: -0.032em;
  max-width: 44ch;
  text-wrap: balance;
}
.quote__by {
  margin-top: clamp(28px, 3vw, 40px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
}
.quote__name { color: var(--ink); }
.quote__role { color: var(--text-2); }

/* ---- schools: unbulleted stacks ----------------------------------------- */

.stack {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.stack--lg {
  margin-top: 20px;
  gap: 16px;
  font-size: 16px;
  color: var(--ink);
}

/* ---- platform: marked report panel --------------------------------------
   Pure HTML, replacing a 500px screenshot that blurred at 1080px. */

.report {
  max-width: 780px;
  background: var(--surface);
  border-radius: 18px;
  padding: clamp(24px, 2.8vw, 36px);
}
.report__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
}
.report__name { font-weight: 600; font-size: 17px; line-height: 1.3; }
.report__meta { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.report__score { text-align: right; }
.report__mark {
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.report__pct {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.report__block { border-top: 1px solid var(--hairline); padding: 20px 0 4px; }
.report__label {
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1;
  color: var(--text-3);
  margin-bottom: 14px;
}
.report__fix {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  font-size: 15.5px;
  line-height: 1.5;
  padding: 5px 0;
}
.report__fix .was { color: var(--text-3); text-decoration: line-through; }
.report__fix .now { color: var(--accent); }
.report__focus { font-weight: 600; font-size: 17px; line-height: 1.3; }
.report__quote { font-size: 17px; line-height: 1.4; color: var(--ink); }
.report__note {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---- insights ----------------------------------------------------------- */

.index { max-width: 60ch; display: block; }
.index__row {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--hairline-light);
  color: var(--ink);
}
.index__row:last-child { border-bottom: 1px solid var(--hairline-light); }
.index__row:hover, .index__row:hover .index__num { color: var(--accent); }
.index__num { font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.index__title { font-weight: 500; font-size: 18px; line-height: 1.4; }

.article { padding-top: var(--section); scroll-margin-top: 54px; }
.article__title {
  margin-top: 18px;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.034em;
  max-width: 20ch;
  text-wrap: balance;
}
.article__lead {
  margin-top: 26px;
  max-width: 66ch;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.65;
  color: var(--body);
  text-wrap: pretty;
}
.article__p {
  margin-top: 20px;
  max-width: 66ch;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-muted);
  text-wrap: pretty;
}
.article__h3 {
  margin-top: 34px;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.016em;
}
.pull {
  margin-top: 34px;
  max-width: 66ch;
  background: var(--surface);
  border-radius: 18px;
  padding: clamp(24px, 2.8vw, 34px);
  font-weight: 600;
  font-size: clamp(19px, 1.9vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---- about -------------------------------------------------------------- */

.founder {
  background: var(--surface);
  border-radius: 22px;
  padding: clamp(26px, 3vw, 38px);
}
.founder__photo {
  width: 84px;
  height: 84px;
  border-radius: 980px;
  object-fit: cover;
  background: var(--photo-bg);
}
.founder__name {
  margin-top: 20px;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.026em;
}
.founder__role { margin-top: 8px; font-weight: 500; font-size: 14px; line-height: 1; color: var(--accent); }
.founder__creds {
  margin-top: 16px;
  font-weight: 400;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--body);
  text-wrap: pretty;
}
.founder__career {
  margin-top: 12px;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-2);
  text-wrap: pretty;
}
.about__team {
  margin-top: clamp(28px, 3vw, 40px);
  max-width: 64ch;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  text-wrap: pretty;
}
