/* Waystar Learning. Every colour, shape, and weight here comes from the logo:
   paper and the wordmark's ink, the ribbon's gradient, its pill ends and 45 degree angle. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-latin-var-v15.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Neutrals: paper, and the wordmark's ink with its tints */
  --paper: #ffffff;
  --paper-2: rgb(255 255 255 / 0.72);
  --ink: #111111;
  --ink-2: rgb(17 17 17 / 0.68);
  --line: rgb(17 17 17 / 0.12);
  --wash: rgb(17 17 17 / 0.04);

  /* The ribbon, gold end to indigo end. Text only ever uses raspberry or indigo (AA on paper). */
  --gold: #f7b014;
  --orange: #f38b22;
  --coral: #e52a49;
  --crimson: #d61e53;
  --raspberry: #bb195d;
  --plum: #7a2b76;
  --violet: #503987;
  --indigo: #344192;
  --ribbon: linear-gradient(90deg, #f7b014 0%, #f7aa16 2.4%, #f38b22 7.4%, #f17d28 12.4%, #ec5e34 17.3%,
    #eb5538 20.7%, #e52a49 30.1%, #d61e53 40.6%, #cc1d55 51.1%, #bb195d 62.7%, #9f2268 68.8%,
    #96246b 72.7%, #7a2b76 79.9%, #702e7a 84.3%, #503987 91%, #443c8c 95.9%, #344192 100%);

  /* EduFinder's own accent-ink, used only on its card */
  --edufinder: #1d4ed8;

  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pill: 999px;
  --radius: 24px;
  --max: 1120px;
  --gutter: 24px;
  --space: clamp(64px, 10vw, 128px);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--raspberry); }

:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }
.skip:hover { color: var(--paper); }

/* The horizon rule: the ribbon's gradient, unrolled */
.horizon { height: 4px; background: var(--ribbon); }

/* Header and tabs */
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px;
}
.brand { display: inline-flex; border-radius: 8px; }
.brand img { height: 36px; width: auto; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.tabs a {
  position: relative;
  padding: 8px 14px 10px;
  border-radius: var(--pill);
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.tabs a:hover { color: var(--ink); background: var(--wash); }
.tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.tabs a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  border-radius: var(--pill);
  background: var(--ribbon);
}

/* Eyebrow: a short ribbon at the logo's 45 degrees */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 8px;
  border-radius: var(--pill);
  background: var(--ribbon);
  transform: rotate(-45deg);
}

.lede { max-width: 38ch; color: var(--ink-2); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; }

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--indigo); color: var(--paper); }

/* Sections */
main { padding-bottom: var(--space); }
.section { margin-top: var(--space); }
.section > h2 { margin-bottom: 28px; }
.page-head { padding-top: clamp(48px, 7vw, 96px); }
.page-head .lede { margin-top: 20px; }
.page-head .actions { margin-top: 32px; }
.page-head + .section { margin-top: clamp(40px, 6vw, 72px); }

/* About Us hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding-top: clamp(48px, 7vw, 96px);
}
.hero .lede { margin-top: 24px; }
.hero .actions { margin-top: 36px; }
.hero-emblem { width: 100%; max-width: 560px; justify-self: end; }

@media (prefers-reduced-motion: no-preference) {
  .hero-emblem { animation: reveal 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards; }
  @keyframes reveal {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
  }
}

/* Cards */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); }

/* Founder */
.founder { display: grid; gap: 6px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 720px; }
.founder .name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.founder .role { color: var(--ink-2); font-weight: 600; }
.founder .bio { margin-top: 10px; }
.company-line { margin-top: 20px; color: var(--ink-2); }


/* The Brands */
.brand-card {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.brand-card .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 32px 16px;
  background: var(--edufinder);
}
.brand-card .mark h2 { width: 100%; }
.brand-card .mark img { width: 100%; max-width: 440px; margin-inline: auto; }
.brand-card .body { display: grid; gap: 18px; align-content: center; padding: clamp(24px, 4vw, 40px); }
.status { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ribbon); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 14px; border: 1px solid var(--line); border-radius: var(--pill); color: var(--ink-2); font-size: 0.9375rem; font-weight: 600; }
.more { margin-top: 28px; color: var(--ink-2); }

/* Investors */
.facts { display: grid; margin: 0; border-top: 1px solid var(--line); max-width: 720px; }
.facts div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 0; }
.contact p + p { margin-top: 16px; }
.contact .actions { margin-top: 24px; }
.fine { max-width: 62ch; margin-top: 40px; color: var(--ink-2); font-size: 0.9375rem; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { display: grid; gap: 28px; padding-block: 48px; }
.site-footer img { height: 24px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--paper-2); }
.site-footer :focus-visible { outline-color: var(--paper); }
.site-footer .legal { display: grid; gap: 6px; color: var(--paper-2); font-size: 0.9375rem; }

/* Narrow screens */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-emblem { order: -1; max-width: 420px; justify-self: start; }
  .grid.three { grid-template-columns: minmax(0, 1fr); }
  .brand-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header .wrap { padding-block: 14px 10px; }
  .brand img { height: 28px; }
  .tabs { width: calc(100% + 20px); margin-inline: -10px; justify-content: space-between; }
  .tabs a { padding-inline: 10px; font-size: 0.9375rem; }
  .tabs a[aria-current="page"]::after { left: 10px; right: 10px; }
  .grid.two { grid-template-columns: minmax(0, 1fr); }
  .card, .founder { padding: 24px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
