@font-face {
  font-family: Manrope;
  src: url("/white-label/fonts/manrope.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142f3b;
  --text: #30434a;
  --muted: #50636a;
  --paper: #f7f7f2;
  --sea: #24515a;
  --mist: #e7eeeb;
  --line: #cdd8d5;
  --amber: #ffc281;
  --shadow: 0 18px 46px -22px #142f3b55, 0 3px 9px -5px #142f3b22;
  --space: clamp(3.3rem, 6vw, 5.5rem);
}

* { box-sizing: border-box; }
[hidden] { display: none; }
body { margin: 0; background: var(--paper); color: var(--text); font: 1rem/1.6 Manrope, system-ui, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 5.2vw, 4.8rem); font-weight: 690; letter-spacing: -.055em; }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.7rem); letter-spacing: -.045em; font-weight: 700; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -.025em; }
a { color: var(--sea); font-weight: 700; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #176584; outline-offset: 4px; }
[id] { scroll-margin-block-start: 1.25rem; }
.wrap { width: min(74rem, calc(100% - clamp(2.5rem, 8vw, 7rem))); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: .6rem; z-index: 2; padding: .6rem 1rem; background: white; transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.masthead, nav, .actions, .resources, .footer { display: flex; align-items: center; }
.masthead { min-height: 5rem; gap: 1.45rem; }
.brand { display: inline-flex; min-height: 44px; align-items: center; }
.brand img { display: block; width: auto; height: 1.85rem; }
.section-name { padding-inline-start: 1.35rem; border-inline-start: 1px solid #b7c4c2; font-weight: 650; color: var(--sea); }
nav { flex-wrap: wrap; gap: .2rem clamp(1rem, 2.4vw, 2.3rem); }
.masthead nav { margin-inline-start: auto; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: .92rem; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.intro {
  padding-bottom: 1.15rem;
  background: linear-gradient(110deg, #122c38 5%, #173a46 68%, #214651);
  color: #e6eeed;
}
.intro-inner { display: grid; grid-template-columns: 1.05fr 1fr; column-gap: clamp(1.4rem, 4.4vw, 4.5rem); }
.intro-copy { align-self: center; padding-block: clamp(2.6rem, 5.4vw, 4.9rem) clamp(3.5rem, 6.3vw, 5.6rem); }
h1 { max-width: 16ch; color: #fcfcf7; }
.customers { margin-top: 1.1rem; font-size: clamp(1.06rem, 1.47vw, 1.27rem); line-height: 1.45; text-wrap: balance; }
.customers strong { color: #ffcb96; font-weight: 760; }
.intro-lead { max-width: 50ch; margin-block: 1.1rem 1.55rem; }
.actions { flex-wrap: wrap; gap: .4rem 1.45rem; }
.actions a { display: inline-flex; min-height: 46px; align-items: center; color: white; }
.actions .button { min-height: 48px; padding: .65rem 1.2rem; border-radius: .45rem; background: var(--amber); color: #231e19; text-decoration: none; }
.intro :focus-visible, .contact :focus-visible { outline-color: var(--amber); }
@media (hover: hover) {
  .actions .button:hover { background: #ffd5a9; }
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 140ms ease, transform 140ms ease-out; }
  .button:active { transform: scale(.98); }
}

.portrait {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  align-self: end;
  min-width: 0;
  aspect-ratio: 1.48;
}
.portrait::before, .portrait::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 18%;
  border-radius: 50% 50% 0 0 / 48% 48% 0 0;
}
.portrait::before {
  border: 1px solid #64808a;
  border-bottom: 0;
  background: linear-gradient(112deg, #47636b, #2d505c 42%, #294853);
  box-shadow: inset 9px 5px 24px #bfd4d012, -15px 0 36px #071c261f;
}
.portrait::after {
  inset: 6% 5% 0 23%;
  border: 1px solid #739099;
  border-bottom: 0;
  background: linear-gradient(145deg, #193a48, #305562 72%, #48656b);
  box-shadow: inset 5px 7px 18px #0c253336;
}
.mascot { display: block; justify-self: end; width: min(112%, calc(100% + 3.5rem)); height: auto; }

.offer-sheet {
  position: relative;
  display: grid;
  grid-template-columns: 1.63fr 1fr;
  margin-top: -1.15rem;
  border: 1px solid #d6ded8;
  border-radius: .8rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.school, .gift { padding: clamp(1.4rem, 2.7vw, 2.3rem); }
.offer-sheet h2 { font-size: clamp(1.12rem, 1.55vw, 1.35rem); letter-spacing: -.025em; }
.school { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.2rem, 2.7vw, 2.5rem); }
.annual-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .18em;
  margin-block: .55rem .35rem;
  color: var(--ink);
  font-weight: 650;
  font-size: clamp(2.7rem, 3.7vw, 3.7rem);
  letter-spacing: -.065em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}
.annual-price output, .price-basis { overflow-wrap: anywhere; }
.annual-price span { font-size: .7em; letter-spacing: -.04em; white-space: nowrap; }
.estimate { padding-inline-start: clamp(1rem, 2.2vw, 2rem); border-inline-start: 1px solid var(--line); }
.estimate label { display: block; margin-bottom: .35rem; font-size: .87rem; color: var(--muted); font-weight: 650; }
.calculation { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; color: var(--ink); font-size: .93rem; }
.calculation span { white-space: nowrap; }
.estimate input {
  width: 5rem;
  max-width: 100%;
  min-height: 44px;
  padding: .46rem .7rem;
  border: 1px solid #8ba2a4;
  border-radius: .35rem;
  background: #f8faf9;
  color: var(--ink);
  font: 650 1rem Manrope, system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.estimate input[aria-invalid="true"] { border-color: #9b3829; }
.rate-terms { margin-top: .45rem; color: var(--muted); font-size: .93rem; }
#volume-hint { color: #8c362b; font-size: .86rem; }
.gift { border-radius: 0 .8rem .8rem 0; border-inline-start: 1px solid #d4ded7; background: #eaf0e9; }
.gift-amount { margin-top: .55rem; line-height: 1.45; }
.gift-amount strong { display: inline-block; margin: 0 .4rem .3rem 0; color: var(--ink); font-size: clamp(2rem, 2.9vw, 2.85rem); font-weight: 650; letter-spacing: -.065em; line-height: 1.02; font-variant-numeric: tabular-nums; vertical-align: middle; }
.gift p:last-child { margin-top: .5rem; color: #415851; font-size: .93rem; }

.town { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); align-items: center; margin-block: var(--space); }
.town-photo {
  grid-area: 1 / 1 / 2 / 9;
  display: block;
  width: 100%;
  height: clamp(19rem, 29vw, 25rem);
  object-fit: cover;
  object-position: 35% center;
  border-radius: .7rem;
}
.town-copy {
  position: relative;
  grid-area: 1 / 8 / 2 / -1;
  padding: clamp(1.6rem, 3.3vw, 3rem);
  border: 1px solid #dde2da;
  border-radius: .6rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.town-copy p, .invitations p, .contact p { margin-top: .9rem; }
.text-link, .steps a, .resources a { display: inline-block; padding-block: .3rem; }
.town-copy .text-link { margin-top: .8rem; }

.integration { background: var(--mist); }
.guide { padding-block: var(--space); }
.guide-intro { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.guide-intro h2 { max-width: 24ch; }
.guide-intro p { max-width: 64ch; margin-top: .75rem; }
.keo-logo { display: block; width: 5.75rem; height: auto; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.steps li { position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(list-item);
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  background: var(--sea);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.15rem; left: 3rem; right: -1rem; border-top: 1px solid #a5bbb6; }
.steps p { margin-top: .65rem; }
.steps a { margin-top: .35rem; }
.resources { flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: 1.7rem; padding-top: 1rem; border-top: 1px solid #b9cbc5; font-size: .92rem; }

.closing { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: clamp(2rem, 6.5vw, 6rem); padding-block: var(--space); }
.invitations h2, .contact h2 { font-size: clamp(1.5rem, 2.25vw, 2.1rem); }
.contact { padding: clamp(1.5rem, 3vw, 2.6rem); border-radius: .65rem; background: var(--ink); color: #dce8e6; }
.contact h2 { color: white; }
.contact a { display: inline-block; margin-top: .9rem; color: var(--amber); font-size: 1.15rem; }
.footer { justify-content: space-between; flex-wrap: wrap; gap: .2rem 1.2rem; padding-block: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer a { font-size: inherit; }

@media screen and (max-width: 62rem) {
  .offer-sheet { grid-template-columns: 1.5fr 1fr; }
  .school { gap: 1rem; }
  .town-photo { grid-column-end: 8; }
  .town-copy { grid-column-start: 7; }
}
@media screen and (max-width: 49rem) {
  .masthead { min-height: 4.4rem; }
  .masthead nav { display: none; }
  .section-name { margin-inline-start: auto; }
  .intro-inner { grid-template-columns: 1.12fr .88fr; gap: .5rem; }
  .intro-copy { padding-block: 2.7rem 3.5rem; }
  .offer-sheet { grid-template-columns: 1.25fr 1fr; }
  .school { grid-template-columns: 1fr; }
  .estimate { padding: .8rem 0 0; border: 0; border-top: 1px solid var(--line); }
  .town-copy { padding: 1.6rem; }
  .steps { gap: 1.5rem; }
  .closing { gap: 2rem; }
}
@media screen and (min-width: 40.01rem) and (max-width: 55rem) {
  .intro-inner { grid-template-columns: 1.05fr 1fr; gap: 0 2rem; padding-top: 2.6rem; }
  .intro-copy { display: contents; }
  h1, .customers { grid-column: 1 / -1; }
  h1 { max-width: none; font-size: clamp(2.55rem, 5.4vw, 3rem); }
  .customers { margin-top: .65rem; }
  .intro-lead { grid-area: 3 / 1; margin-block: .9rem; }
  .actions { grid-area: 4 / 1; align-self: start; margin-bottom: 2rem; }
  .portrait { grid-area: 3 / 2 / 5 / 3; }
}
@media screen and (max-width: 40rem) {
  .intro { padding-bottom: 0; }
  .intro-inner, .offer-sheet, .town, .closing { grid-template-columns: minmax(0, 1fr); }
  .masthead { gap: .65rem; }
  .brand img { height: 1.5rem; }
  .section-name { border: 0; padding: 0; font-size: .9rem; }
  .intro-copy { padding-block: 2.5rem 1rem; }
  h1 { font-size: clamp(2.38rem, 10.55vw, 3.35rem); }
  .portrait { justify-self: end; width: min(90%, 23rem); aspect-ratio: 1.95; }
  .mascot { width: 100%; }
  .portrait::before { inset-inline-start: 29%; }
  .portrait::after { inset-inline-start: 33%; }
  .offer-sheet { margin-top: 0; border-top: 0; border-radius: 0 0 .75rem .75rem; }
  .school, .gift { padding: 1.25rem; }
  .gift { border-inline-start: 0; border-top: 1px solid var(--line); border-radius: 0 0 .75rem .75rem; }
  .town-photo { grid-area: auto; height: auto; aspect-ratio: 1.95; }
  .town-copy { grid-area: auto; margin: -1.25rem .65rem 0; }
  .guide-intro { align-items: flex-start; gap: .7rem; }
  .keo-logo { width: 3.5rem; }
  .steps { grid-template-columns: minmax(0,1fr); gap: 1.35rem; margin-top: 1.5rem; }
  .steps li { padding: .2rem 0 0 3.2rem; }
  .steps li:not(:last-child)::after { inset: 2.8rem auto -.8rem 1.15rem; border: 0; border-left: 1px solid #a5bbb6; }
  .closing { gap: 1.6rem; }
  .footer { padding-block: .5rem; }
}
@media screen and (max-width: 28rem) {
  .actions { gap: .3rem 1rem; }
}

/* Sign-in stays visible alongside the institutional identity on small screens. */
.masthead .portal-entry {
  padding-inline: 1rem;
  border-radius: .45rem;
  background: var(--ink);
  color: white;
}
.portal-directory { padding-top: var(--space); }
.directory-head { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: end; }
.directory-head p { max-width: 56ch; }
.portal-directory nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 1.6rem; border-block: 1px solid var(--line); }
.portal-directory a { position: relative; display: grid; align-content: center; gap: .3rem; padding: 1.45rem 2.5rem 1.45rem 1.1rem; }
.portal-directory a + a { border-inline-start: 1px solid var(--line); }
.portal-directory a::after { content: "›"; position: absolute; right: 1rem; top: 50%; transform: translateY(-55%); color: var(--sea); font-size: 1.5rem; }
.portal-directory strong { font-size: 1.18rem; }
.portal-directory span { color: var(--muted); font-weight: 500; }
@media (hover: hover) {
  .portal-directory a:hover { background: var(--mist); text-decoration: none; }
  .portal-directory a:hover strong { text-decoration: underline; }
}
@media screen and (max-width: 58rem) {
  .masthead nav { display: flex; margin-inline-start: auto; }
  .masthead nav > :not(.portal-entry) { display: none; }
}
@media screen and (max-width: 46rem) {
  .directory-head, .portal-directory nav { grid-template-columns: 1fr; }
  .portal-directory a + a { border-inline-start: 0; border-top: 1px solid var(--line); }
  .portal-directory a { padding-block: 1rem; }
}
@media screen and (max-width: 30rem) {
  .masthead { flex-wrap: wrap; gap: .2rem .5rem; padding-block: .5rem; }
  .masthead .portal-entry { padding-inline: .65rem; font-size: .82rem; }
  .masthead .section-name { font-size: .8rem; }
  .masthead .brand img { height: 1.12rem; }
}

@media print {
  .portal-directory { display: none; }
  @page { size: A4 portrait; margin: 8mm 10mm; }
  body { print-color-adjust: exact; background: white; font-size: 10pt; line-height: 1.4; }
  :focus-visible { outline: 0; }
  .wrap { width: 100%; }
  .masthead { min-height: 9mm; gap: 3mm; margin-bottom: 1.3mm; }
  .brand { min-height: 0; }
  .brand img { height: 5.8mm; }
  .section-name { margin-inline-start: auto; padding: 0; border: 0; }
  .skip-link, .masthead nav, .actions, .town .text-link { display: none; }
  .intro { padding-bottom: 0; }
  .intro-inner { grid-template-columns: 1.35fr 1fr; gap: 2mm; }
  .intro-copy { padding: 4mm 0 4mm 5mm; }
  h1 { max-width: 18ch; font-size: 25pt; }
  .customers { margin-top: 1.5mm; font-size: 10.5pt; }
  .intro-lead { margin: 1.5mm 0 0; }
  .portrait { margin-right: 3mm; aspect-ratio: 1.6; }
  .mascot { width: 100%; }
  .offer-sheet { grid-template-columns: 1.4fr 1fr; margin-top: 0; box-shadow: none; border-radius: 0 0 2mm 2mm; }
  .school, .gift { padding: 3mm; }
  .school { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2mm; }
  .offer-sheet h2 { font-size: 10.5pt; }
  .gift-amount, .gift p:last-child { margin-top: .7mm; font-size: 9pt; }
  .annual-price { margin-block: 1mm; font-size: 22pt; }
  .price-basis, .calculation, .rate-terms { font-size: 9pt; }
  .estimate { padding-left: 2.5mm; }
  .estimate label { margin: 0; font-size: 9pt; }
  .calculation { gap: .5mm 1mm; margin-top: .7mm; }
  .estimate input { display: none; }
  #monthly-factor[hidden] { display: inline; }
  .rate-terms { margin-top: 1mm; }
  .gift { border-radius: 0 0 2mm 0; }
  .gift-amount strong { font-size: 15pt; }
  .town { grid-template-columns: 40% 60%; margin-block: 3.5mm; }
  .town-photo { grid-area: 1 / 1; height: 34mm; object-position: 25% center; border-radius: 1.5mm; }
  .town-copy { grid-area: 1 / 2; padding: 2mm 0 2mm 3.5mm; border: 0; background: white; box-shadow: none; }
  h2, .town-copy h2 { font-size: 16pt; }
  .town-copy p, .guide-intro p, .steps p, .invitations p, .contact p { margin-top: 1.3mm; }
  .guide { padding: 3mm; }
  .guide-intro { gap: 4mm; }
  .guide-intro h2 { max-width: none; }
  .guide-intro p { max-width: 94ch; }
  .keo-logo { width: 13mm; }
  .steps { gap: 3.5mm; margin-top: 2.3mm; }
  .steps li { padding-top: 6mm; }
  .steps li::before { width: 5mm; height: 5mm; font-size: 8.5pt; }
  .steps li:not(:last-child)::after { top: 2.5mm; left: 7mm; right: 0; }
  .steps h3 { font-size: 10.5pt; }
  .steps a, .resources a { margin-top: .8mm; padding: 0; }
  .resources { margin-top: 1.5mm; padding-top: 1mm; font-size: 8.5pt; }
  .closing { grid-template-columns: 1.3fr .9fr; align-items: start; gap: 4mm; padding-block: 3.2mm; }
  .invitations h2, .contact h2 { font-size: 13pt; }
  .contact { padding: 3mm; border-radius: 1.5mm; }
  .contact a { margin-top: 1mm; font-size: 10pt; }
  .footer { padding-block: 1.4mm 0; font-size: 8pt; }
  .footer a { min-height: 0; }
}
