:root {
  --ink: #23264f;
  --ink-soft: #464a6f;
  --orange: #ff6838;
  --orange-dark: #e94e21;
  --aqua: #55cee2;
  --aqua-pale: #dff8fc;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #dce7eb;
  --mint: #d9f4e8;
  --yellow: #ffe58b;
  --success: #147a5b;
  --error: #a82929;
  --shadow: 0 24px 70px rgba(35, 38, 79, .12);
  --radius: 24px;
  --shell: min(1160px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body, input, button, select { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { border-radius: 0; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #146f85;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: 1px solid rgba(35, 38, 79, .08);
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 34px;
}

.brand {
  width: fit-content;
  text-decoration: none;
}
.brand img { width: 128px; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-nav a,
.quiet-link,
.site-footer nav a,
.minimal-footer a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.primary-nav a:hover,
.quiet-link:hover,
.site-footer nav a:hover,
.minimal-footer a:hover { color: var(--orange-dark); }

.header-inner > .button { justify-self: end; }

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  background: var(--orange);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover {
  background: var(--orange-dark);
  box-shadow: 0 12px 24px rgba(233, 78, 33, .2);
  transform: translateY(-1px);
}
.button:disabled {
  cursor: wait;
  opacity: .68;
  transform: none;
}
.button-small { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #151838; box-shadow: 0 12px 24px rgba(35, 38, 79, .2); }
.button-full { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(85, 206, 226, .25) 0 4px, transparent 5px),
    radial-gradient(circle at 86% 20%, rgba(255, 104, 56, .18) 0 6px, transparent 7px),
    linear-gradient(135deg, #f7fdfe 0%, #ddf8fc 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -180px;
  width: 440px;
  height: 440px;
  border: 86px solid rgba(85, 206, 226, .18);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: center;
  gap: clamp(48px, 8vw, 108px);
  padding-block: 80px 86px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #087c91;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1,
.signup-page-copy h1 {
  max-width: 700px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 6.7vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero-intro {
  max-width: 650px;
  margin: 28px 0 30px;
  color: var(--ink-soft);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.45;
}

.signup-card {
  max-width: 720px;
  border: 1px solid rgba(35, 38, 79, .08);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow);
}
.signup-card label:not(.consent-row):not(.honeypot) {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}
.email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.quick-signup input[type="email"],
.profile-form input,
.profile-form select,
.signup-page-card > form > input[type="email"] {
  width: 100%;
  min-height: 54px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quick-signup input:focus,
.profile-form input:focus,
.profile-form select:focus,
.signup-page-card > form > input[type="email"]:focus {
  border-color: #1597ae;
  box-shadow: 0 0 0 4px rgba(85, 206, 226, .2);
}

.consent-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 16px;
  color: #5d617d;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}
.consent-row input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--orange); }
.form-note { margin: 12px 0 0; color: #6f738d; font-size: 13px; }
.form-note a { color: var(--ink); }
.form-status { min-height: 0; margin: 10px 0 0; color: var(--error); font-size: 14px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.signup-success h2 { margin: 4px 0 8px; font-size: 30px; }
.signup-success > p { margin: 0; }
.success-kicker { color: var(--success); font-size: 14px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.profile-form { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.profile-prompt { margin: 0 0 16px; font-weight: 800; }
.profile-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 14px; }
.profile-grid.single-column { grid-template-columns: 1fr; }
.profile-form select { appearance: auto; border-radius: 14px; }
.profile-form input { border-radius: 14px; }
.profile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 16px; }
.profile-actions a { color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.profile-saved { margin-top: 20px; }
.profile-saved p { color: var(--success); font-weight: 800; }

.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.value-list li::before { content: "✓"; margin-right: 7px; color: #05839b; font-weight: 900; }

.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.visual-orbit {
  position: absolute;
  border: 2px dashed rgba(35, 38, 79, .16);
  border-radius: 50%;
}
.orbit-one { width: 430px; height: 430px; }
.orbit-two { width: 310px; height: 310px; transform: rotate(28deg); }
.alert-card {
  position: absolute;
  border: 1px solid rgba(35, 38, 79, .08);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(35, 38, 79, .16);
}
.alert-main {
  z-index: 2;
  width: min(390px, 88%);
  padding: 30px;
  transform: rotate(-3deg);
}
.alert-topline { display: flex; justify-content: space-between; align-items: center; }
.alert-label { border-radius: 999px; padding: 6px 10px; background: var(--mint); color: #17674f; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.alert-date { color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.alert-amount { margin: 34px 0 0; color: var(--orange); font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.alert-main h2 { margin: 10px 0 6px; font-size: 25px; }
.alert-main > p:last-child { margin: 0; color: var(--ink-soft); }
a.alert-main { color: inherit; text-decoration: none; transition: box-shadow .2s ease; }
a.alert-main:hover { box-shadow: 0 34px 90px rgba(35, 38, 79, .24); }
a.alert-main:hover h2 { color: var(--orange-dark); }
.alert-secondary {
  z-index: 3;
  right: -12px;
  bottom: 70px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  padding: 15px 18px;
  transform: rotate(4deg);
}
.alert-secondary strong, .alert-secondary span { display: block; }
.alert-secondary span { color: var(--ink-soft); font-size: 12px; }
.alert-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--yellow); font-size: 24px; font-weight: 900; }
.visual-note { position: absolute; top: 66px; right: 8px; width: 140px; transform: rotate(5deg); color: #087c91; font-size: 15px; font-weight: 900; line-height: 1.25; }

.proof-strip { border-block: 1px solid var(--line); background: var(--white); }
.proof-inner { min-height: 116px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.proof-inner > p { max-width: 280px; margin: 0; color: var(--ink-soft); font-size: 14px; font-weight: 800; }
.proof-logos { display: flex; align-items: center; gap: 34px; }
.proof-logos img { width: 54px; height: 54px; border-radius: 12px; object-fit: contain; filter: grayscale(1); opacity: .72; }
.student-awards-wordmark { color: #247cb6; font-size: 22px; font-weight: 900; letter-spacing: -.02em; }

.section { padding-block: 104px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 38px; }
.section-heading h2,
.how-intro h2,
.closing-signup h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.text-link { color: #087c91; font-weight: 900; text-underline-offset: 5px; }
.text-link:hover { color: var(--orange-dark); }

.opportunities { background: var(--paper); }
.opportunity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.opportunity-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--white);
  box-shadow: 0 12px 40px rgba(35, 38, 79, .06);
}
.opportunity-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.opportunity-meta span { color: #087c91; text-transform: uppercase; letter-spacing: .08em; }
.opportunity-card img { width: 64px; height: 64px; margin: 34px 0 18px; border-radius: 14px; object-fit: contain; }
.opportunity-card h3 { margin: 0; font-size: 24px; line-height: 1.22; }
.opportunity-card .amount { margin: 18px 0 28px; color: var(--orange); font-size: 38px; font-weight: 900; line-height: 1; }
.opportunity-card .button { width: 100%; margin-top: auto; }
.opportunity-card .amount:has(+ .card-note) { margin-bottom: 14px; }
.opportunity-card .card-note { margin: 0 0 26px; color: var(--ink-soft); font-size: 15px; line-height: 1.5; }
/* A white sponsor mark (CIBC's) sits on the site's ink, in the same square slot as the other logos. */
.opportunity-card img.logo-tile { padding: 12px; background: var(--ink); }
.opportunity-featured {
  grid-column: 1 / -1;
  min-height: 0;
  display: grid;
  grid-template-columns: 160px 1fr auto;
  grid-template-areas:
    "meta meta meta"
    "logo title amount"
    "logo note button";
  column-gap: 32px;
  row-gap: 14px;
  align-items: center;
  border: 2px solid var(--orange);
}
.opportunity-featured .opportunity-meta { grid-area: meta; }
.opportunity-featured img { grid-area: logo; width: 160px; height: auto; margin: 0; border-radius: 0; }
.opportunity-featured h3 { grid-area: title; font-size: 30px; }
.opportunity-featured .amount { grid-area: amount; margin: 0; justify-self: end; }
.opportunity-featured .featured-note { grid-area: note; margin: 0; color: var(--ink-soft); }
.opportunity-featured .button { grid-area: button; width: auto; min-width: 220px; margin-top: 0; }
/* Desktop: the listed cards fill rows of three under the featured card, and this one spans two columns
   so it closes the last row (correct while the listed-card count is 1 or 4). The tablet and phone rules
   below override grid-column. Revisit when the number of cards changes. */
.opportunity-more { grid-column: span 2; justify-content: center; background: var(--aqua-pale); }
.opportunity-more h3 { font-size: 32px; }
.opportunity-more > p:not(.eyebrow) { color: var(--ink-soft); }
.more-mark { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 50%; background: var(--orange); color: white; font-size: 38px; font-weight: 500; }

.how { background: var(--ink); color: var(--white); }
.how-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(60px, 9vw, 120px); align-items: start; }
.how .eyebrow { color: #7ee4f3; }
.how-intro h2 { color: white; }
.how-intro > p:not(.eyebrow) { max-width: 500px; margin: 24px 0 32px; color: #c9cbe0; }
.how .button-dark { background: var(--orange); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 54px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li:first-child { padding-top: 0; }
.steps li > span { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: rgba(85, 206, 226, .16); color: #7ee4f3; font-weight: 900; }
.steps h3 { margin: 0 0 6px; color: white; font-size: 23px; }
.steps p { margin: 0; color: #c9cbe0; }

.story { background: var(--yellow); }
.story-grid { display: grid; grid-template-columns: 280px 1fr; gap: 70px; align-items: center; }
.story-art { position: relative; height: 240px; border-radius: 50%; background: var(--orange); }
.story-bubble { position: absolute; top: 28px; left: 52px; color: white; font-family: Georgia, serif; font-size: 150px; line-height: 1; }
.story-star { position: absolute; right: -10px; bottom: 14px; width: 80px; height: 80px; display: grid; place-items: center; border-radius: 28px; background: var(--aqua); color: var(--ink); font-size: 40px; transform: rotate(10deg); }
blockquote { margin: 0; }
blockquote p { max-width: 760px; margin: 0 0 22px; font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
blockquote cite { font-style: normal; font-weight: 900; }

.network { background: var(--white); }
.network-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.network-card { min-height: 160px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #f9fcfd; color: var(--ink-soft); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.network-card:hover { border-color: var(--aqua); transform: translateY(-2px); }
.network-name { margin-bottom: 8px; color: var(--ink); font-size: 28px; font-weight: 900; letter-spacing: -.025em; }

.closing-signup { padding-block: 88px; background: var(--aqua-pale); }
.closing-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.closing-signup p:not(.eyebrow) { color: var(--ink-soft); }
.signup-card.compact { max-width: none; }
.email-row.stacked { grid-template-columns: 1fr; }
.email-row.stacked .button { width: 100%; }

.site-footer { padding-block: 58px; background: #171a3e; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 60px; align-items: start; }
.footer-brand img { width: 120px; filter: brightness(0) invert(1); }
.site-footer p { max-width: 410px; color: #c9cbe0; font-size: 14px; }
.site-footer nav { display: grid; gap: 12px; }
.site-footer nav a { color: #e4e5ef; }
.footer-address { margin: 0; }

/* Standalone signup */
.signup-page { min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(135deg, #f7fdfe, #e6f9fc); }
.signup-header { position: relative; background: transparent; backdrop-filter: none; }
.signup-header .header-inner { grid-template-columns: 1fr 1fr; }
.signup-header .quiet-link { justify-self: end; }
.signup-main { flex: 1; display: grid; align-items: center; padding-block: 70px; }
.signup-page-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 9vw, 110px); align-items: center; }
.signup-page-copy h1 { font-size: clamp(52px, 6vw, 78px); }
.signup-page-copy > p:not(.eyebrow) { max-width: 540px; color: var(--ink-soft); font-size: 21px; }
.check-list { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.check-list li { font-weight: 800; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--mint); color: var(--success); font-size: 14px; }
.signup-page-card { max-width: 590px; padding: clamp(28px, 5vw, 48px); }
.signup-page-card h2 { margin: 0 0 24px; font-size: 36px; }
.signup-page-card > form > input[type="email"] { margin-bottom: 4px; }
.signup-page-card .button-full { margin-top: 22px; }
.minimal-footer { padding-block: 24px; }
.minimal-footer .shell { display: flex; justify-content: center; gap: 24px; }

[hidden] { display: none !important; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(580px, 100%); margin-inline: auto; }
  .opportunity-grid { grid-template-columns: 1fr 1fr; }
  .opportunity-more { grid-column: 1 / -1; min-height: 300px; }
  .how-grid, .closing-grid, .signup-page-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 210px 1fr; gap: 42px; }
  .story-art { height: 190px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 28px, 1160px); --radius: 20px; }
  body { font-size: 16px; }
  .header-inner { min-height: 70px; gap: 16px; }
  .brand img { width: 104px; }
  .button-small { min-height: 42px; padding-inline: 16px; }
  .hero-grid { gap: 22px; padding-block: 58px 64px; }
  .hero h1, .signup-page-copy h1 { font-size: clamp(48px, 15vw, 64px); }
  .hero-intro { margin-block: 22px 26px; font-size: 20px; }
  .signup-card { padding: 18px; }
  .email-row { grid-template-columns: 1fr; }
  .email-row .button { width: 100%; }
  .profile-grid { grid-template-columns: 1fr; }
  .value-list { display: grid; gap: 8px; }
  .hero-visual { min-height: 430px; }
  .orbit-one { width: 340px; height: 340px; }
  .orbit-two { width: 250px; height: 250px; }
  .alert-main { padding: 24px; }
  .alert-amount { font-size: 46px; }
  .alert-secondary { right: 0; bottom: 40px; }
  .visual-note { top: 32px; right: 0; }
  .proof-inner { min-height: 150px; flex-direction: column; justify-content: center; text-align: center; }
  .proof-logos { gap: 20px; }
  .proof-logos img { width: 46px; height: 46px; }
  .student-awards-wordmark { font-size: 18px; }
  .section { padding-block: 76px; }
  .section-heading { display: block; }
  .section-heading .text-link { display: inline-block; margin-top: 18px; }
  .section-heading h2, .how-intro h2, .closing-signup h2 { font-size: 40px; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .opportunity-more { grid-column: auto; }
  .opportunity-card { min-height: 390px; }
  .opportunity-featured { display: flex; align-items: start; min-height: 0; }
  .opportunity-featured img { width: 120px; margin: 30px 0 16px; }
  .opportunity-featured h3 { font-size: 24px; }
  .opportunity-featured .amount { margin: 18px 0 14px; }
  .opportunity-featured .featured-note { margin: 0 0 24px; }
  .opportunity-featured .button { width: 100%; min-width: 0; }
  .how-grid { gap: 58px; }
  .steps li { grid-template-columns: 46px 1fr; gap: 16px; }
  .steps li > span { width: 46px; height: 46px; border-radius: 14px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-art { width: 190px; }
  .network-grid { grid-template-columns: 1fr; }
  .closing-grid { gap: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .signup-main { padding-block: 42px 64px; }
  .signup-page-grid { gap: 34px; }
  .signup-page-copy > p:not(.eyebrow) { font-size: 18px; }
  .signup-page-card { padding: 24px 20px; }
  .signup-page-card h2 { font-size: 30px; }
}

@media (max-width: 390px) {
  .header-inner > .button { font-size: 14px; }
  .hero h1, .signup-page-copy h1 { font-size: 46px; }
  .alert-secondary { max-width: 260px; }
  .minimal-footer .shell { flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
