@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Nunito+Sans:wght@500;650;750;850&display=swap");

:root {
  --paper: #fbf8ef;
  --paper-deep: #f3efd9;
  --surface: #fffef7;
  --chalk-yellow: #fff5d8;
  --chalk-green: #f0f7eb;
  --chalk-blue: #ecf6f7;
  --chalk-coral: #fff0ea;
  --ink: #115d78;
  --ink-deep: #0b4055;
  --muted: #587986;
  --line: #d7d8c8;
  --coral: #ec6449;
  --yellow: #f5bd19;
  --green: #9ebd74;
  --white: #ffffff;
  --shadow: 10px 10px 0 rgba(17, 93, 120, 0.13);
  --font-display: "Baloo 2", "Avenir Next Rounded", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Aptos", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 44px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}
img { display: block; width: auto; height: auto; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 100;
  transform: translateY(-170%);
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--ink-deep);
  color: var(--white);
  font-weight: 750;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(17, 93, 120, 0.14);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: var(--wrap);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.brand-mark img { width: 132px; height: auto; }
.brand-caption {
  max-width: 165px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 750; }
.nav-links a, .footer-links a { text-decoration: none; text-underline-offset: 5px; }
.nav-links a:hover, .footer-links a:hover { text-decoration: underline; }
.menu-button {
  display: none;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 19px;
  height: 2px;
  margin: 0 auto;
  border-radius: 4px;
  background: currentColor;
  content: "";
}
.menu-button span::before { transform: translateY(-7px); }
.menu-button span::after { transform: translateY(5px); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 19px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink-deep);
  box-shadow: 0 5px 0 var(--ink);
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.button.secondary { background: transparent; box-shadow: none; }

main { overflow: hidden; }
.wrap { width: var(--wrap); margin: 0 auto; }
.section { padding: clamp(72px, 8vw, 108px) 0; }
.section.tone-blue { background: var(--chalk-blue); }
.section.tone-green { background: var(--chalk-green); }
.section.tone-yellow { background: var(--chalk-yellow); }
.section.tone-coral { background: var(--chalk-coral); }
.section.tone-dark { background: var(--ink-deep); color: var(--white); }

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 16px;
  color: var(--ink-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-mark::before {
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 19px 9px 0 var(--green);
  content: "";
}
.tone-dark .section-mark { color: var(--white); }
h1, h2, h3 { margin-top: 0; color: var(--ink-deep); font-family: var(--font-display); font-weight: 800; text-wrap: balance; }
h1 { margin-bottom: 24px; font-size: clamp(44px, 5.2vw, 68px); letter-spacing: -0.025em; line-height: 1.01; }
h2 { margin-bottom: 20px; font-size: clamp(31px, 3.7vw, 48px); letter-spacing: -0.02em; line-height: 1.08; }
h3 { margin-bottom: 8px; font-size: 23px; letter-spacing: -0.01em; line-height: 1.16; }
p { margin-top: 0; }
.lead { max-width: 68ch; color: var(--muted); font-size: clamp(19px, 1.6vw, 23px); font-weight: 550; line-height: 1.52; }
.tone-dark h2, .tone-dark h3 { color: var(--white); }
.tone-dark .lead, .tone-dark p { color: rgba(255,255,255,.78); }

.use-hero { position: relative; padding: clamp(64px, 8vw, 104px) 0; background: var(--hero-bg, var(--chalk-yellow)); }
.use-hero::before {
  position: absolute;
  inset: 0;
  background: url("/assets/milo-hero-education-pattern.svg") center/cover no-repeat;
  opacity: .19;
  mix-blend-mode: multiply;
  pointer-events: none;
  content: "";
}
.hero-layout { position: relative; display: grid; grid-template-columns: minmax(0,.92fr) minmax(400px,1.08fr); gap: clamp(40px,7vw,90px); align-items: center; }
.hero-copy { max-width: 62ch; color: var(--ink-deep); font-size: clamp(20px,1.7vw,24px); font-weight: 650; line-height: 1.48; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-visual { position: relative; margin: 0; padding: 18px; border: 3px solid var(--ink); border-radius: 48px 48px 48px 16px; background: var(--surface); box-shadow: 12px 12px 0 var(--hero-shadow, var(--yellow)); transform: rotate(1deg); }
.hero-visual img { width: 100%; aspect-ratio: 4/3; border-radius: 32px 32px 32px 8px; object-fit: cover; }
.hero-visual figcaption { padding: 14px 8px 2px; color: var(--ink-deep); font-weight: 750; line-height: 1.35; }
.partner-label { display: grid; grid-template-columns: 78px 1fr; gap: 14px; align-items: center; max-width: 420px; margin-top: 28px; padding: 14px 16px; border: 2px solid rgba(17,93,120,.2); border-radius: 20px; background: rgba(255,255,255,.76); }
.partner-label img { width: 78px; }
.partner-label strong { display: block; color: var(--ink-deep); font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.partner-label span { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }

.split { display: grid; grid-template-columns: minmax(0,.86fr) minmax(360px,1.14fr); gap: clamp(34px,7vw,92px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.statement {
  margin: 0;
  padding: 28px 30px;
  border: 3px solid var(--ink);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 9px 9px 0 var(--green);
  color: var(--ink-deep);
  font-family: var(--font-display);
  font-size: clamp(27px,3vw,39px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.contrast-list { margin: 28px 0 0; padding: 0; list-style: none; border-top: 2px solid var(--line); }
.contrast-list li { display: grid; grid-template-columns: 118px 1fr; gap: 22px; padding: 18px 0; border-bottom: 2px solid var(--line); }
.contrast-list strong { color: var(--ink-deep); font-family: var(--font-display); font-size: 19px; line-height: 1.2; }
.contrast-list p { margin: 0; color: var(--muted); }

.step-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-top: 38px; }
.step-card, .scenario-card, .role-card {
  min-height: 100%;
  padding: 24px;
  border: 3px solid var(--ink);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 7px 7px 0 rgba(17,93,120,.12);
}
.step-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink-deep); font-weight: 850; }
.step-card p, .scenario-card p, .role-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.52; }

.scenario-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 38px; }
.scenario-card { position: relative; overflow: hidden; padding-top: 72px; }
.scenario-card::before { position: absolute; left: 24px; top: 24px; width: 46px; height: 12px; border-radius: 999px; background: var(--scenario-color,var(--green)); content: ""; }
.scenario-card:nth-child(2) { --scenario-color: var(--yellow); }
.scenario-card:nth-child(3) { --scenario-color: var(--coral); }
.scenario-card:nth-child(4) { --scenario-color: var(--ink); }

.role-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-top: 34px; }
.role-card { padding: 22px; border-width: 2px; box-shadow: none; }
.role-card h3 { font-size: 20px; }

.workflow-panel { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: 36px; padding: clamp(28px,4vw,48px); border: 3px solid var(--ink); border-radius: 42px; background: var(--surface); box-shadow: 10px 10px 0 var(--yellow); }
.workflow-list { margin: 0; padding: 0; list-style: none; }
.workflow-list li { position: relative; padding: 15px 0 15px 34px; border-bottom: 2px solid var(--line); color: var(--muted); }
.workflow-list li:last-child { border-bottom: 0; }
.workflow-list li::before { position: absolute; left: 0; top: 20px; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; background: var(--green); content: ""; }

.day-moment { display: grid; grid-template-columns: 118px minmax(0,1fr); gap: 28px; max-width: 900px; margin-top: 34px; padding: 28px 0; border-top: 3px solid currentColor; border-bottom: 3px solid currentColor; }
.day-time { color: var(--yellow); font-family: var(--font-display); font-size: 25px; font-weight: 800; line-height: 1.1; }
.day-moment p { margin: 0; font-size: 20px; line-height: 1.55; }

.related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-top: 34px; }
.related-card { display: flex; min-height: 170px; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px; border: 2px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--ink-deep); text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.related-card:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: 6px 6px 0 var(--yellow); }
.related-card strong { font-family: var(--font-display); font-size: 23px; line-height: 1.1; }
.related-card span { color: var(--muted); font-size: 14px; font-weight: 750; }

.page-cta { padding: clamp(72px,8vw,104px) 0; background: var(--ink); color: var(--white); }
.cta-layout { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 42px; align-items: center; }
.page-cta h2 { color: var(--white); }
.page-cta p { max-width: 66ch; color: rgba(255,255,255,.8); }

.site-footer { border-top: 1px solid rgba(17,93,120,.18); background: var(--paper); }
.footer-inner { width: var(--wrap); min-height: 120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 15px; }
.footer-inner img { width: 116px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; font-weight: 720; }

@media (max-width: 1040px) {
  :root { --wrap: min(calc(100% - 34px), 920px); }
  .hero-layout, .split, .workflow-panel, .cta-layout { grid-template-columns: minmax(0,1fr); }
  .hero-layout > *, .split > *, .workflow-panel > *, .cta-layout > * { min-width: 0; }
  .split.reverse > :first-child { order: initial; }
  .hero-visual { max-width: 760px; }
  .role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .step-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cta-layout { justify-items: start; }
}

@media (max-width: 780px) {
  :root { --wrap: min(calc(100% - 32px), 920px); }
  body { font-size: 17px; }
  .wrap, .nav-shell, .footer-inner { width: calc(100% - 32px); max-width: 920px; }
  .nav-shell { min-height: 72px; gap: 16px; }
  .brand-mark img { width: 112px; }
  .brand-caption, .nav-shell > .button { display: none; }
  .menu-button { display: block; }
  .nav-links { position: absolute; left: 16px; right: 16px; top: calc(100% + 10px); display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; border: 2px solid var(--ink); border-radius: 24px; background: var(--surface); box-shadow: 8px 8px 0 var(--yellow); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 10px; }
  .section { padding: 56px 0; }
  .use-hero { padding: 40px 0 56px; }
  .hero-layout { gap: 0; }
  .hero-layout > div { display: contents; }
  .hero-layout > div > .section-mark { grid-row: 1; margin-bottom: 14px; }
  .hero-layout h1 { grid-row: 2; margin-bottom: 18px; font-size: clamp(38px, 10vw, 48px); }
  .hero-layout .hero-copy { grid-row: 3; margin-bottom: 26px; }
  .hero-visual { grid-row: 4; margin: 0 0 28px; padding: 12px; border-radius: 30px 30px 30px 10px; box-shadow: 7px 7px 0 var(--hero-shadow, var(--yellow)); transform: none; }
  .hero-visual img { border-radius: 20px 20px 20px 7px; }
  .hero-visual figcaption { padding: 12px 4px 2px; font-size: 15px; }
  .hero-actions { grid-row: 5; display: grid; grid-template-columns: 1fr; gap: 12px; width: 100%; margin: 0 0 18px; }
  .hero-actions .button { width: 100%; }
  .partner-label { grid-row: 6; max-width: none; margin-top: 0; }
  .step-grid, .scenario-grid, .role-grid, .related-grid { grid-template-columns: 1fr; }
  .contrast-list li, .day-moment { grid-template-columns: 1fr; gap: 8px; }
  .step-card, .scenario-card, .role-card { padding: 20px; border-radius: 24px; }
  .statement { padding: 22px; border-radius: 26px; }
  .workflow-panel { padding: 20px; border-radius: 26px; }
  .related-card { min-height: 148px; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding: 30px 0; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .hero-layout h1 { font-size: 36px; }
  .section-mark { font-size: 12px; }
  .cta-layout { justify-items: stretch; }
  .cta-layout > div { width: 100%; }
  .cta-layout > .button { justify-self: start; }
}

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