/* Eduloria: bone paper, ink lines, square corners, capitals. The cube gives the three colors. */

@font-face { font-family: Jost; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Jost; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: Jost; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/jost-latin-700-normal.woff2") format("woff2"); }

:root {
  --bone: #F4F1EA;
  --paper: #EAE5DA;
  --ink: #121212;
  --muted: #55534f;
  --blue: #1B3A8C;
  --brick: #C8402C;
  --brick-text: #B4361F;
  --mustard: #E7A33B;
  --line: 2px solid var(--ink);
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --maxw: 1160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bone); color: var(--ink);
  font: 400 1.0625rem/1.6 Jost, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--brick-text); }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bone); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 0; }

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

/* Type */
h1, h2, h3 { font-weight: 700; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.85rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
.lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; max-width: 40em; color: #2b2a28; }
.lead--light { color: #e7e3d8; }
.kicker { font-size: .85rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brick-text); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.kicker::before { content: ""; width: 14px; height: 14px; background: var(--mustard); border: 2px solid var(--ink); display: inline-block; }
.kicker--light { color: var(--mustard); }
.kicker--light::before { border-color: var(--bone); }
.small { font-size: .95rem; color: var(--muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bone); border-bottom: var(--line); }
.site-header::before { content: ""; display: block; height: 8px; background: linear-gradient(90deg, var(--mustard) 0 33.4%, var(--brick) 33.4% 66.7%, var(--blue) 66.7%); border-bottom: var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.35rem; letter-spacing: .12em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 0; border-bottom: 3px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brick); }
.nav-toggle { display: none; font: inherit; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: none; border: var(--line); padding: 8px 14px; cursor: pointer; color: var(--ink); }

.logo-mark { flex: none; }
.site-nav a { white-space: nowrap; }

@media (max-width: 1100px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bone); border-bottom: var(--line); padding: 8px var(--gutter) 20px; }
  .js .site-nav.open { display: flex; }
  .js .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #cfc9bb; }
  .js .site-nav .btn { margin-top: 14px; text-align: center; }
  html:not(.js) .site-header__bar { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; padding: 15px 26px; border: var(--line); cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; line-height: 1.2; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--primary { background: var(--blue); color: var(--bone); }
.btn--primary:hover { color: var(--bone); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--ink); }
.btn--mustard { background: var(--mustard); color: var(--ink); border-color: var(--bone); }
.btn--mustard:hover { color: var(--ink); box-shadow: 4px 4px 0 var(--bone); }
.btn--outline-light { background: transparent; color: var(--bone); border-color: var(--bone); }
.btn--outline-light:hover { color: var(--bone); box-shadow: 4px 4px 0 var(--bone); }
.btn--small { padding: 10px 16px; font-size: .88rem; }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--paper { background: var(--paper); border-block: var(--line); }
.section--blue { background: var(--blue); color: var(--bone); border-block: var(--line); }
.section--blue h2, .section--blue h3 { color: var(--bone); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--mustard { background: var(--mustard); border-block: var(--line); }
.section--tight { padding-block: clamp(36px, 5vw, 64px); }
.section__head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 52px); }
.section__head p:last-child { margin-bottom: 0; }

/* Hero */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 span { color: var(--brick-text); }
.hero__art { display: flex; justify-content: center; }
.stack { width: min(100%, 440px); height: auto; overflow: visible; }
.cube { animation: drop .7s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: var(--d, 0s); }
@keyframes drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; } }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } .hero__art { order: -1; max-height: 230px; } .stack { max-height: 230px; } }

.page-hero { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 56px); border-bottom: var(--line); background: var(--paper); }
.page-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); max-width: 18em; }
.page-hero .lead { margin-bottom: 0; }

/* Layout helpers */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.split > *, .grid > *, .hero__grid > * { min-width: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--wide-right { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
@media (max-width: 860px) { .split, .split--wide-right { grid-template-columns: 1fr; } }

/* Cards */
.card { background: var(--bone); border: var(--line); padding: 26px 24px 28px; position: relative; border-top-width: 10px; }
.card--blue { border-top-color: var(--blue); }
.card--brick { border-top-color: var(--brick); }
.card--mustard { border-top-color: var(--mustard); }
.card h3 { margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick-text); margin-bottom: .6rem; }
a.card { color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; display: block; }
a.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); color: inherit; }
a.card .more { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .88rem; color: var(--blue); }

.section--blue .card { color: var(--ink); }

.steps { list-style: none; counter-reset: step; display: grid; gap: clamp(16px, 2.4vw, 28px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { counter-increment: step; border: var(--line); background: var(--bone); padding: 26px 24px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 46px; height: 46px; background: var(--mustard); border: var(--line); font-weight: 700; font-size: 1.4rem; margin-bottom: 16px; }
.steps li:nth-child(2)::before { background: var(--brick); color: var(--bone); }
.steps li:nth-child(3)::before { background: var(--blue); color: var(--bone); }
.steps h3 { margin-bottom: .4em; }
.steps li p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.ticks { list-style: none; display: grid; gap: .7em; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; background: var(--mustard); border: 2px solid var(--ink); }
.ticks--blue li::before { background: var(--blue); }
.ticks--light li::before { border-color: var(--bone); }

.note { border: var(--line); border-left-width: 10px; border-left-color: var(--mustard); background: var(--bone); padding: 16px 20px; font-size: .98rem; }
.note strong { letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: var(--line); background: var(--bone); }
.stat-row > div { padding: 22px 22px; border-right: var(--line); }
.stat-row > div:last-child { border-right: 0; }
.stat-row strong { display: block; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2em; }
.stat-row span { color: var(--muted); font-size: .98rem; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } .stat-row > div { border-right: 0; border-bottom: var(--line); } .stat-row > div:last-child { border-bottom: 0; } }

.dont { list-style: none; display: grid; gap: 14px; }
.dont li { padding: 16px 18px 16px 58px; border: 2px solid var(--bone); position: relative; }
.dont li::before { content: "×"; position: absolute; left: 14px; top: 10px; font-size: 2rem; line-height: 1; font-weight: 700; color: var(--mustard); }
.dont strong { display: block; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; }

/* Dashboard mock */
.mock { border: var(--line); background: var(--bone); box-shadow: 8px 8px 0 var(--ink); }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: var(--line); background: var(--ink); color: var(--bone); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.mock__bar i { width: 10px; height: 10px; background: var(--mustard); display: inline-block; }
.mock__bar i:nth-child(2) { background: var(--brick); }
.mock__bar i:nth-child(3) { background: #6F8FE8; }
.mock__bar span { margin-left: auto; }
.mock__body { padding: 16px; overflow-x: auto; }
.mock table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.mock th { text-align: left; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 8px; border-bottom: var(--line); color: var(--muted); }
.mock td { padding: 10px 8px; border-bottom: 1px solid #cfc9bb; vertical-align: middle; }
.bar { display: block; height: 12px; background: var(--paper); border: 2px solid var(--ink); position: relative; min-width: 110px; }
.bar b { position: absolute; inset: 0 auto 0 0; background: var(--blue); }
.bar--low b { background: var(--brick); }
.bar--mid b { background: var(--mustard); }
.pill { display: inline-block; padding: 2px 10px; border: 2px solid var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pill--brick { background: var(--brick); color: var(--bone); }
.pill--blue { background: var(--blue); color: var(--bone); }
.pill--mustard { background: var(--mustard); }

/* Interactive demos */
.demo { border: var(--line); background: var(--bone); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.demo__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--ink); color: var(--bone); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.demo__bar em { font-style: normal; color: var(--mustard); }
.demo__body { padding: clamp(16px, 3vw, 28px); }
.demo__q { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.demo__options { display: grid; gap: 10px; margin-bottom: 18px; }
.opt { text-align: left; font: inherit; font-weight: 500; font-size: 1.1rem; background: var(--bone); color: var(--ink); border: var(--line); padding: 12px 16px; cursor: pointer; transition: background .12s ease; }
.opt:hover:not(:disabled) { background: var(--paper); }
.opt:disabled { cursor: default; }
.opt.is-right { background: var(--blue); color: var(--bone); }
.opt.is-wrong { background: var(--brick); color: var(--bone); }
.demo__out { min-height: 6.5em; border-top: 2px dashed #8d887c; padding-top: 14px; font-size: 1rem; }
.demo__out p { margin-bottom: .6em; }
.demo__out ol { padding-left: 1.3em; margin: .3em 0 .6em; }
.demo__graph { width: 100%; height: auto; display: block; margin-top: 8px; }
.demo__graph text { font: 500 12.5px Jost, system-ui, sans-serif; fill: var(--ink); text-anchor: middle; }
.demo__graph .n-blue { fill: var(--blue); } .demo__graph .n-blue + text, .demo__graph .t-light { fill: var(--bone); }
.demo__graph .n-brick { fill: var(--brick); }
.demo__graph .n-mustard { fill: var(--mustard); }
.demo__graph .n-lock { fill: #d8d3c6; }
.demo__graph .n-open { fill: var(--bone); stroke-dasharray: 4 3; }
.demo__graph line { stroke: var(--ink); stroke-width: 2; }
.demo__graph rect { stroke: var(--ink); stroke-width: 2; }
.reset { font: inherit; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; background: none; border: 2px solid var(--ink); padding: 6px 12px; cursor: pointer; color: var(--ink); }
.demo__bar .reset { color: var(--bone); border-color: var(--bone); }
.demo__bar .reset:hover { background: var(--mustard); color: var(--ink); border-color: var(--mustard); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); margin-top: 8px; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ink); margin-right: 6px; vertical-align: -1px; }
.legend .l-blue::before { background: var(--blue); } .legend .l-brick::before { background: var(--brick); } .legend .l-mustard::before { background: var(--mustard); } .legend .l-lock::before { background: #d8d3c6; }

.lab__plot { width: 100%; height: auto; max-height: 400px; display: block; background: #fbfaf6; border: var(--line); }
.lab__plot .axis { stroke: var(--ink); stroke-width: 1.5; }
.lab__plot .grid-line { stroke: #cfc9bb; stroke-width: 1; }
.lab__plot .curve { fill: none; stroke: var(--brick); stroke-width: 3; }
.lab__plot .bar-r { fill: rgba(27, 58, 140, .55); stroke: var(--blue); stroke-width: 1; }
.lab__plot text { font: 500 12px Jost, system-ui, sans-serif; fill: var(--muted); }
.lab__controls { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin: 16px 0; }
.lab__controls label { font-weight: 500; }
.lab__controls input[type="range"] { width: min(260px, 60vw); accent-color: var(--blue); vertical-align: middle; }
.lab__readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.lab__readout div { border: var(--line); padding: 8px 12px; background: var(--bone); }
.lab__readout small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lab__readout strong { font-size: 1.35rem; }
@media (max-width: 520px) { .lab__readout { grid-template-columns: 1fr; } }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radio-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.radio-row input { accent-color: var(--blue); width: 18px; height: 18px; }

/* FAQ */
.faq { display: grid; gap: 0; border-top: var(--line); max-width: 52rem; }
.faq details { border-bottom: var(--line); }
.faq summary { cursor: pointer; padding: 20px 44px 20px 4px; font-weight: 700; font-size: 1.15rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.9rem; line-height: 1; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 4px 22px; max-width: 44rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Form */
.form { display: grid; gap: 18px; }
.field label { display: block; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: var(--line); background: #fbfaf6; color: var(--ink); border-radius: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.form__status { font-weight: 500; }

/* CTA band */
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.cta-band h2 { max-width: 14em; }
.cta-band .lead { margin-bottom: 0; }
.cta-band__buttons { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.site-footer { background: var(--bone); border-top: var(--line); padding-top: 52px; }
.site-footer .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr); gap: 40px; }
.site-footer__brand p { max-width: 26em; color: var(--muted); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.site-footer h2 { font-size: .85rem; letter-spacing: .16em; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); }
.site-footer a:hover { color: var(--brick-text); }
.site-footer__legal { margin-top: 40px; padding-block: 18px; border-top: 1px solid #cfc9bb; color: var(--muted); font-size: .92rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 760px) { .site-footer .wrap:first-child { grid-template-columns: 1fr; } .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
