:root {
  --latte: #a98467;
  --latte-soft: #b4917a;
  --latte-deep: #94735a;
  --foam: #fbf6ef;
  --vanilla: #f6ecdb;
  --espresso: #3a2a20;
  --espresso-soft: #6b5546;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, .88);
  --hairline: rgba(255, 255, 255, .28);

  /* block palette */
  --bubblegum: #f06ba8;
  --grape: #8a45b5;
  --coral: #f4857a;
  --seaglass: #6dbfb6;
  --mint: #a8dcb4;
  --tangerine: #ff6a4a;
  --lilac: #b47ad6;
  --sky: #8ec5e8;
  --lemon: #ece25e;
  --orchid: #e596c9;

  --chalk: linear-gradient(90deg,
    var(--bubblegum) 0 10%, var(--grape) 0 20%, var(--coral) 0 30%, var(--seaglass) 0 40%, var(--mint) 0 50%,
    var(--orchid) 0 60%, var(--tangerine) 0 70%, var(--lilac) 0 80%, var(--sky) 0 90%, var(--lemon) 0 100%);

  --radius: 22px;
  --max: 1160px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--white);
  background: var(--latte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--lemon); color: var(--espresso); }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--white);
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.15em; }
em.script { font-style: italic; font-weight: 400; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } body { font-size: 1.0625rem; } }

/* little rainbow stripe, like a box of chalk */
.chalk { height: 8px; border-radius: 999px; background: var(--chalk); }
.chalk.full { border-radius: 0; height: 10px; }
.chalk.short { width: 132px; height: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lemon); flex: none; }

/* Buttons */
.btn {
  --bg: var(--foam);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1em 1.7em;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--espresso);
  font: 700 1rem/1.2 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -14px rgba(58, 42, 32, .55);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(58, 42, 32, .6); filter: saturate(1.15); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn .arrow { width: 18px; height: 18px; flex: none; transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-bubblegum { --bg: var(--bubblegum); }
.btn-sky { --bg: var(--sky); }
.btn-lemon { --bg: var(--lemon); }
.btn-mint { --bg: var(--mint); }
.btn-lilac { --bg: var(--lilac); }
.btn-foam { --bg: var(--foam); }
.btn-espresso { --bg: var(--espresso); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  color: var(--espresso);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: #efe4d4; box-shadow: 0 8px 24px -18px rgba(58, 42, 32, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 56px; height: 56px; border-radius: 50%; }
.brand-name { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.25rem; letter-spacing: -0.01em; white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flags { display: flex; gap: 8px; margin-left: auto; }
.flag {
  display: block; position: relative; width: 38px; height: 26px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: pointer;
  background: none; box-shadow: 0 0 0 1px rgba(58, 42, 32, .14); opacity: .6;
  transition: opacity .15s ease, filter .15s ease, box-shadow .15s ease, transform .15s ease;
}
.flag svg { width: 100%; height: 100%; display: block; }
.flag:hover { opacity: .9; filter: none; transform: translateY(-1px); }
.flag[aria-current="page"] { opacity: 1; filter: none; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--latte); }
.flag:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-left: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--espresso-soft); position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-radius: 3px;
  background: var(--lemon); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--espresso); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.schools-link::after { background: var(--bubblegum); }
.nav-links a.brands-link::after { background: var(--sky); }
.nav-links .btn { --bg: var(--latte); color: var(--white); padding: .7em 1.25em; font-size: .9rem; white-space: nowrap; }
@media (max-width: 640px) { .nav-links { gap: 16px; margin-left: 18px; } .nav-links a:not(.btn) { font-size: .9rem; } }
@media (max-width: 420px) { .brand img { width: 46px; height: 46px; } .flags { gap: 6px; } .flag { width: 30px; height: 20px; border-radius: 4px; } .nav-links { gap: 12px; margin-left: 14px; } .nav-links a:not(.btn) { font-size: .82rem; } }
@media (max-width: 520px) { .brand-name { display: none; } }

/* Footer */
.site-footer { background: var(--white); color: var(--espresso-soft); padding: 36px 0; font-size: .9rem; }
.site-footer .brand-name { color: var(--espresso); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-inner .brand img { width: 48px; height: 48px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--espresso); text-decoration: underline; text-underline-offset: 4px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow { transition: none; }
}

/* ---------- Form pages ---------- */
.form-hero { padding: 64px 0 40px; text-align: center; }
.form-hero .chalk.short { margin: 0 auto 26px; }
.form-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); max-width: 14em; margin-left: auto; margin-right: auto; }
.form-hero p { color: var(--white-soft); max-width: 36em; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; color: var(--white-soft); text-decoration: none; margin-bottom: 28px; }
.back-link:hover { color: var(--white); }
.back-link svg { width: 16px; height: 16px; }

.form-page { background: linear-gradient(var(--latte) 0 260px, var(--vanilla) 260px); padding-bottom: 96px; }
.form-card {
  max-width: 760px; margin: 0 auto;
  background: var(--foam); color: var(--espresso);
  border-radius: 28px;
  box-shadow: 0 30px 60px -30px rgba(58, 42, 32, .55);
  overflow: hidden;
}
.form-card .chalk.full { height: 8px; }
.form-body { padding: 44px 48px 48px; }
@media (max-width: 640px) { .form-body { padding: 30px 20px 32px; } .form-card { border-radius: 22px; } .form-page { padding-bottom: 64px; } }

fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; }
legend {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 18px;
  font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.35rem; font-weight: 500; color: var(--espresso);
}
legend .swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px 16px; }
.col-6 { grid-column: span 6; }
.col-3 { grid-column: span 3; }
.col-2 { grid-column: span 2; }
.col-4 { grid-column: span 4; }
@media (max-width: 640px) { .col-3, .col-2, .col-4 { grid-column: span 6; } }

.field label, .field .label {
  display: block; margin-bottom: 7px;
  font-size: .9rem; font-weight: 700; color: var(--espresso);
}
.field .req { color: #c0566f; margin-left: 2px; }
.field .opt { font-weight: 500; color: var(--espresso-soft); font-size: .82rem; margin-left: 4px; }
.field .hint { display: block; font-size: .82rem; color: var(--espresso-soft); margin-top: 6px; line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%;
  font: 500 1rem/1.4 var(--sans);
  color: var(--espresso);
  background: var(--white);
  border: 1.5px solid #e6d9c8;
  border-radius: 14px;
  padding: .85em 1em;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233a2a20' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #b3a291; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--latte); box-shadow: 0 0 0 4px rgba(169, 132, 103, .22);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d4607b; }
.field .error { display: none; font-size: .84rem; font-weight: 600; color: #b3445e; margin-top: 6px; }
.field.invalid .error { display: block; }

.prefix-input { position: relative; }
.prefix-input span { position: absolute; left: 1em; top: 50%; transform: translateY(-50%); color: var(--espresso-soft); font-weight: 600; pointer-events: none; }
.prefix-input input { padding-left: 2.1em; }

/* grade chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-grid; place-items: center; min-width: 52px; height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1.5px solid #e6d9c8; background: var(--white);
  font-weight: 700; font-size: .95rem; color: var(--espresso); cursor: pointer; user-select: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.chip span:hover { transform: translateY(-1px); border-color: var(--latte); }
.chip input:checked + span { background: var(--c, var(--bubblegum)); border-color: var(--c, var(--bubblegum)); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(169, 132, 103, .3); }
.chip-actions { margin-top: 10px; font-size: .85rem; }
.chip-actions button { background: none; border: 0; padding: 0; color: var(--espresso-soft); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip-actions button:hover { color: var(--espresso); }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 8px; }
.form-footer .note { font-size: .85rem; color: var(--espresso-soft); margin: 0; }
.form-alert { display: none; margin-bottom: 22px; padding: 14px 18px; border-radius: 14px; background: #fbe3e8; color: #8d2f45; font-weight: 600; font-size: .95rem; }
.form-alert.show { display: block; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.success { display: none; text-align: center; padding: 64px 32px 72px; }
.success.show { display: block; }
.success .badge {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 24px; display: grid; place-items: center;
  background: var(--mint);
}
.success .badge svg { width: 40px; height: 40px; color: var(--espresso); }
.success h2 { color: var(--espresso); font-size: clamp(1.9rem, 4vw, 2.6rem); }
.success p { color: var(--espresso-soft); max-width: 28em; margin: 0 auto 28px; }

/* Marketing opt-in and privacy notice (application forms) */
.optin { margin: 6px 0 26px; padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1.5px solid #ecdfcd; }
.optin-box { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.5; color: var(--espresso); }
.optin-box input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--espresso); cursor: pointer; }
.optin-note { margin: 10px 0 0 32px; font-size: .82rem; line-height: 1.5; color: var(--espresso-soft); }
.privacy-note { margin-bottom: 24px; padding: 20px 22px; border-radius: 16px; background: var(--vanilla); font-size: .9rem; line-height: 1.6; color: var(--espresso-soft); }
.privacy-note h3 { font-size: 1.15rem; color: var(--espresso); margin-bottom: .4em; }
.privacy-note p { margin: 0 0 .7em; }
.privacy-note p:last-child { margin-bottom: 0; }
.optin a, .privacy-note a { color: var(--espresso); font-weight: 700; text-underline-offset: 3px; }

/* Privacy Policy page */
.policy { max-width: 820px; }
.policy-body { padding: 44px 52px 52px; font-size: 1.02rem; line-height: 1.75; color: var(--espresso-soft); }
.policy-body h2 { color: var(--espresso); font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 2em 0 .55em; scroll-margin-top: 100px; }
.policy-body h3 { color: var(--espresso); font-size: 1.12rem; margin: 1.4em 0 .4em; }
.policy-body ul { margin: 0 0 1.15em; padding-left: 1.3em; }
.policy-body li { margin-bottom: .4em; }
.policy-body li::marker { color: var(--bubblegum); }
.policy-body strong { color: var(--espresso); }
.policy-body a { color: var(--espresso); font-weight: 600; text-underline-offset: 3px; }
.policy-lead { font-family: var(--serif); font-variation-settings: "SOFT" 100; font-size: 1.3rem; line-height: 1.5; color: var(--espresso); }
.policy-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 8px; }
.policy-toc a { padding: 6px 14px; border-radius: 999px; background: var(--vanilla); font-size: .85rem; font-weight: 700; text-decoration: none; }
.policy-toc a:hover { background: var(--lemon); }
.policy-contact { padding: 18px 20px; border-radius: 16px; background: var(--vanilla); line-height: 1.8; }
@media (max-width: 640px) { .policy-body { padding: 30px 20px 36px; font-size: 1rem; } .optin-note { margin-left: 0; } }
.footer-links .footer-email { font-weight: 700; color: var(--espresso); }
