:root {
  --ivory: #f7f4ed;
  --ivory-2: #f1ede4;
  --white: #ffffff;
  --ink: #20201e;
  --muted: #66625c;
  --subtle: #8a867f;
  --line: #d8d3c9;
  --line-strong: #bdb7ad;
  --aubergine: #493541;
  --aubergine-2: #372631;
  --sage: #74806a;
  --sage-soft: #e7eadf;
  --terracotta: #c96f4a;
  --terracotta-soft: #f4e4dc;
  --warning: #9e5b3d;
  --success: #51634b;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow: 0 18px 48px rgba(32, 32, 30, 0.08);
  --max: 1200px;
  --font: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.74rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aubergine);
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
h1 { font-size: clamp(3rem, 7vw, 5.7rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(2.2rem, 4.4vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 2rem); }
h4 { font-size: 1.05rem; letter-spacing: -0.015em; }
p { margin: 0; }
.lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--muted);
  max-width: 760px;
}
.small { font-size: 0.9rem; color: var(--muted); }
.micro { font-size: 0.77rem; color: var(--subtle); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(216, 211, 201, 0.88);
  background: rgba(247, 244, 237, 0.93);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}
.brand img { width: 28px; height: 28px; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a,
.nav-product-toggle {
  border: 0;
  background: transparent;
  text-decoration: none;
  padding: 10px 12px;
  font-size: 0.92rem;
  font-weight: 520;
  cursor: pointer;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.nav-product-toggle:hover,
.nav-product-toggle:focus-visible { color: var(--aubergine); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  content: "";
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--ink);
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  width: 330px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 160ms ease;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 14px;
  border: 1px solid transparent;
}
.dropdown-menu a:hover { border-color: var(--line); background: var(--ivory); }
.dropdown-menu strong { display: block; margin-bottom: 2px; }
.dropdown-menu span { display: block; color: var(--muted); font-size: 0.83rem; line-height: 1.45; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--aubergine);
  border-radius: var(--radius-sm);
  background: var(--aubergine);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}
.button:hover { background: var(--aubergine-2); border-color: var(--aubergine-2); transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(73, 53, 65, 0.24); outline-offset: 2px; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { background: var(--white); border-color: var(--ink); }
.button-light { background: var(--white); color: var(--aubergine); border-color: var(--white); }
.button-light:hover { background: var(--ivory); border-color: var(--ivory); }
.button-ghost { background: transparent; border-color: transparent; color: var(--aubergine); }
.button-ghost:hover { border-color: var(--line); background: var(--white); }
.button-sm { min-height: 40px; padding: 8px 13px; }
.icon-arrow { font-size: 1.05em; transition: transform 150ms ease; }
.button:hover .icon-arrow, .text-link:hover .icon-arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--aubergine); font-weight: 650; text-decoration: none; }

.hero { padding: 94px 0 86px; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  gap: 72px;
  align-items: center;
}
.hero-copy .lead { margin-top: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 0.88rem; }
.status-dot { width: 8px; height: 8px; background: var(--sage); display: inline-block; }
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-system {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  padding: 22px;
  box-shadow: 14px 14px 0 var(--ivory-2);
}
.system-header { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.system-title { font-weight: 650; letter-spacing: -0.02em; }
.system-label { font-size: 0.72rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.09em; }
.system-track { margin-top: 28px; }
.track-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.track-heading strong { font-size: 0.9rem; }
.track-heading span { font-size: 0.75rem; color: var(--muted); }
.operation-flow { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr; align-items: center; gap: 8px; }
.flow-node { min-height: 82px; border: 1px solid var(--line); padding: 13px; background: var(--ivory); }
.flow-node strong { display: block; font-size: 0.85rem; }
.flow-node span { display: block; margin-top: 7px; font-size: 0.75rem; color: var(--muted); line-height: 1.35; }
.flow-arrow { text-align: center; color: var(--subtle); }
.flow-node.active-school { border-color: var(--sage); box-shadow: inset 3px 0 0 var(--sage); }
.flow-node.active-finance { border-color: var(--aubergine); box-shadow: inset 3px 0 0 var(--aubergine); }
.system-footer { position: absolute; left: 22px; right: 22px; bottom: 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.76rem; color: var(--muted); }

.section { padding: 104px 0; }
.section-tight { padding: 72px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--aubergine); color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 48px; }
.section-head > div:first-child { max-width: 780px; }
.section-head .lead { margin-top: 18px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product-card {
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 650px;
}
.product-card-copy { padding: 32px; }
.product-card-copy h3 { margin-top: 15px; }
.product-card-copy p { margin-top: 16px; color: var(--muted); }
.product-card-copy .text-link { margin-top: 24px; }
.product-visual { min-height: 340px; margin-top: auto; border-top: 1px solid var(--line); overflow: hidden; position: relative; }
.school-card .product-visual { background: var(--sage-soft); }
.finance-card .product-visual { background: #efedf0; }

.phone-stage { height: 100%; padding: 34px 28px; display: grid; place-items: center; }
.phone {
  width: min(260px, 82%);
  border: 1px solid #98948c;
  background: var(--white);
  padding: 9px;
  box-shadow: 12px 12px 0 rgba(116,128,106,0.16);
}
.phone-bar { width: 46px; height: 4px; background: var(--ink); margin: 2px auto 10px; opacity: 0.35; }
.app-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 9px 8px 12px; font-size: 0.78rem; }
.app-logo { font-weight: 700; }
.app-body { padding: 12px 8px 10px; }
.upload-card { height: 102px; border: 1px solid var(--line); background: linear-gradient(145deg,#ddd6c7,#f8f4ea); position: relative; overflow: hidden; }
.upload-card::before { content: ""; position: absolute; left: 16px; right: 16px; bottom: 16px; height: 28px; background: #d28e62; clip-path: polygon(0 100%,25% 35%,42% 66%,66% 16%,100% 100%); opacity: .75; }
.upload-card::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; top: 18px; right: 22px; background: #f8df9d; }
.route-card { margin-top: 10px; border: 1px solid var(--sage); padding: 10px; background: #fbfcf8; }
.route-card small { color: var(--muted); }
.route-title { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 700; }
.route-dot { width: 7px; height: 7px; background: var(--sage); }
.route-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.mini-tag { padding: 3px 6px; background: var(--sage-soft); font-size: 0.65rem; }
.app-button { margin-top: 10px; padding: 9px; background: var(--aubergine); color: var(--white); text-align: center; font-size: 0.72rem; font-weight: 650; }

.dashboard-stage { height: 100%; padding: 34px 22px; display: grid; place-items: center; }
.dashboard {
  width: min(560px, 95%);
  border: 1px solid #918d92;
  background: var(--white);
  box-shadow: 12px 12px 0 rgba(73,53,65,0.1);
}
.dash-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dash-title { font-size: .8rem; font-weight: 700; }
.dash-date { font-size: .62rem; color: var(--muted); }
.dash-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.metric { padding: 12px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric span { display: block; font-size: .58rem; color: var(--muted); }
.metric strong { display: block; margin-top: 5px; font-size: .84rem; font-variant-numeric: tabular-nums; }
.dash-table { padding: 8px 12px 12px; }
.dash-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; padding: 9px 3px; border-bottom: 1px solid #ebe7e0; font-size: .61rem; align-items: center; }
.dash-row.header { font-weight: 700; color: var(--muted); }
.risk { width: fit-content; padding: 3px 5px; font-weight: 650; }
.risk.good { background: var(--sage-soft); color: var(--success); }
.risk.watch { background: #f1e9dd; color: #795b2f; }
.risk.late { background: var(--terracotta-soft); color: var(--warning); }

.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong); }
.principle { min-height: 270px; padding: 30px; border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.principle-number { display: block; color: var(--aubergine); font-size: 0.74rem; font-weight: 700; letter-spacing: .09em; }
.principle h3 { margin-top: 62px; }
.principle p { margin-top: 14px; color: var(--muted); }

.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid rgba(255,255,255,.28); }
.engagement-step { padding: 34px; min-height: 230px; border-right: 1px solid rgba(255,255,255,.28); }
.engagement-step:last-child { border-right: 0; }
.engagement-step span { display: block; color: rgba(255,255,255,.7); font-size: .75rem; font-weight: 700; letter-spacing: .09em; }
.engagement-step h3 { margin-top: 45px; }
.engagement-step p { margin-top: 13px; color: rgba(255,255,255,.75); }
.dark-actions { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }

.cta-panel { border: 1px solid var(--line-strong); background: var(--white); display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 44px; }
.cta-panel p { margin-top: 14px; color: var(--muted); max-width: 720px; }

.site-footer { border-top: 1px solid var(--line); background: var(--white); padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 390px; margin-top: 18px; color: var(--muted); }
.footer-col h4 { margin-bottom: 14px; }
.footer-col a { display: block; width: fit-content; margin-top: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--aubergine); }
.footer-bottom { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; color: var(--subtle); }

/* Product pages */
.product-hero { padding: 88px 0 70px; border-bottom: 1px solid var(--line); }
.product-hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr); gap: 65px; align-items: center; }
.product-hero .lead { margin-top: 24px; }
.product-hero .hero-actions { margin-top: 30px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.product-meta span { border: 1px solid var(--line); background: var(--white); padding: 7px 9px; font-size: .76rem; }
.product-preview-frame { border: 1px solid var(--line-strong); background: var(--white); min-height: 520px; box-shadow: 14px 14px 0 var(--ivory-2); overflow: hidden; }
.preview-label { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.preview-label strong { color: var(--ink); }
.preview-tabs { display: flex; gap: 4px; }
.preview-tab { border: 0; background: transparent; color: var(--muted); padding: 5px 7px; cursor: pointer; font-size: .69rem; }
.preview-tab.is-active { color: var(--ink); background: var(--ivory); }
.preview-view { display: none; }
.preview-view.is-active { display: block; }

.school-preview { padding: 24px; background: var(--sage-soft); min-height: 475px; }
.school-app-shell { max-width: 380px; margin: 0 auto; background: var(--white); border: 1px solid var(--line-strong); }
.school-app-head { padding: 15px 17px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.school-app-head strong { font-size: .86rem; }
.school-app-head span { color: var(--muted); font-size: .72rem; }
.school-app-content { padding: 17px; }
.form-label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: .68rem; font-weight: 650; }
.fake-input { border: 1px solid var(--line); background: #fcfbf8; padding: 10px; font-size: .76rem; }
.fake-upload { height: 130px; border: 1px solid var(--line); background: linear-gradient(145deg,#d9d1bf,#f7f3e9); position: relative; }
.fake-upload::before { content: "Homework photo"; position: absolute; left: 12px; bottom: 10px; font-size: .62rem; color: var(--ink); background: rgba(255,255,255,.8); padding: 3px 5px; }
.fake-upload .paper-lines { position: absolute; top: 18px; left: 22px; width: 64%; height: 86px; background: #fffdf8; transform: rotate(-4deg); border: 1px solid #c8c1b7; }
.fake-upload .paper-lines::before { content: ""; position: absolute; inset: 13px; background: repeating-linear-gradient(to bottom,#b6b0a8 0 1px,transparent 1px 10px); }
.selection-box { border: 1px solid var(--sage); background: #fbfcf8; padding: 14px; }
.selection-box h4 { display: flex; gap: 8px; align-items: center; font-size: .83rem; }
.selection-box p { margin-top: 8px; font-size: .72rem; color: var(--muted); }
.confidence { margin-top: 12px; display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: .67rem; }
.confidence-bar { height: 5px; background: #dce1d7; }
.confidence-bar span { display: block; width: 89%; height: 100%; background: var(--sage); }
.delivery-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: center; }
.delivery-icon { width: 8px; height: 8px; background: var(--sage); }
.delivery-row strong { display: block; font-size: .74rem; }
.delivery-row small { display: block; color: var(--muted); font-size: .64rem; }
.delivery-status { font-size: .63rem; font-weight: 700; color: var(--success); }

.finance-preview { min-height: 475px; padding: 20px; background: #efedf0; }
.finance-shell { background: var(--white); border: 1px solid var(--line-strong); min-height: 420px; }
.finance-shell-head { padding: 14px 16px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.finance-shell-head strong { font-size: .84rem; }
.finance-shell-head span { color: var(--muted); font-size: .68rem; }
.finance-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.finance-kpi { padding: 14px; border-right: 1px solid var(--line); }
.finance-kpi:last-child { border-right: 0; }
.finance-kpi span { display: block; font-size: .59rem; color: var(--muted); }
.finance-kpi strong { display: block; margin-top: 7px; font-size: .93rem; font-variant-numeric: tabular-nums; }
.finance-table { padding: 0 14px; }
.finance-row { display: grid; grid-template-columns: 1.4fr .9fr 1fr .8fr; gap: 10px; padding: 12px 4px; border-bottom: 1px solid #ece8e2; font-size: .66rem; align-items: center; }
.finance-row.head { color: var(--muted); font-weight: 700; font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; }
.amount { font-variant-numeric: tabular-nums; }
.timeline { padding: 24px 18px; }
.timeline-track { height: 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.timeline-track span:nth-child(1) { background: #a8b3a0; }
.timeline-track span:nth-child(2) { background: #c6c4b4; }
.timeline-track span:nth-child(3) { background: #d6b59f; }
.timeline-track span:nth-child(4) { background: #c98668; }
.timeline-labels { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 10px; font-size: .62rem; color: var(--muted); }
.explanation-card { margin: 18px; border-left: 3px solid var(--aubergine); background: var(--ivory); padding: 14px; }
.explanation-card h4 { font-size: .8rem; }
.explanation-card p { margin-top: 7px; font-size: .68rem; color: var(--muted); }

.workflow-grid-school-relay { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.workflow-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-strong); }
.workflow-step { min-height: 220px; padding: 24px; border-right: 1px solid var(--line-strong); position: relative; }
.workflow-step:last-child { border-right: 0; }
.workflow-step span { color: var(--aubergine); font-size: .72rem; font-weight: 700; }
.workflow-step h3 { margin-top: 50px; font-size: 1.25rem; }
.workflow-step p { margin-top: 12px; color: var(--muted); font-size: .92rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.feature-card { border: 1px solid var(--line); background: var(--white); padding: 28px; min-height: 220px; }
.feature-card .feature-icon { width: 34px; height: 34px; border: 1px solid var(--line-strong); display: grid; place-items: center; font-weight: 700; color: var(--aubergine); }
.feature-card h3 { margin-top: 38px; font-size: 1.45rem; }
.feature-card p { margin-top: 13px; color: var(--muted); }

.pilot-card { border: 1px solid var(--line-strong); background: var(--white); display: grid; grid-template-columns: .8fr 1.2fr; }
.pilot-copy { padding: 42px; border-right: 1px solid var(--line); }
.pilot-copy p { margin-top: 16px; color: var(--muted); }
.pilot-list { padding: 28px 38px; }
.pilot-item { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pilot-item:last-child { border-bottom: 0; }
.pilot-item span { font-size: .75rem; color: var(--aubergine); font-weight: 700; }
.pilot-item strong { display: block; }
.pilot-item p { margin-top: 5px; color: var(--muted); font-size: .9rem; }

.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; border: 0; background: transparent; text-align: left; cursor: pointer; font-weight: 650; }
.faq-answer { display: none; padding: 0 0 24px; max-width: 850px; color: var(--muted); }
.faq-item.is-open .faq-answer { display: block; }
.faq-symbol { font-size: 1.2rem; color: var(--aubergine); }

/* Company/legal */
.page-hero { padding: 94px 0 70px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 24px; }
.company-statement { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; align-items: start; }
.company-statement blockquote { margin: 0; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.13; letter-spacing: -0.04em; font-weight: 600; }
.company-copy p + p { margin-top: 18px; }
.company-copy { color: var(--muted); font-size: 1.05rem; }
.legal { max-width: 850px; }
.legal h2 { margin-top: 48px; font-size: 1.7rem; }
.legal h3 { margin-top: 30px; font-size: 1.2rem; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin-top: 12px; }
.legal ul { padding-left: 20px; }

/* Demo Desk */
.demo-desk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(32,32,30,.66);
  backdrop-filter: blur(6px);
}
.demo-desk-backdrop.is-open { display: grid; place-items: center; padding: 18px; }
.demo-desk {
  width: min(860px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow: auto;
  background: var(--ivory);
  border: 1px solid #8e8982;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.demo-desk-head { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 24px 26px; border-bottom: 1px solid var(--line-strong); background: var(--white); }
.demo-desk-head p { margin-top: 5px; color: var(--muted); font-size: .88rem; }
.demo-close { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 1.25rem; }
.demo-body { padding: 28px; }
.demo-step { display: none; }
.demo-step.is-active { display: block; }
.demo-progress { display: flex; gap: 8px; margin-bottom: 25px; }
.demo-progress span { height: 3px; flex: 1; background: var(--line); }
.demo-progress span.is-active { background: var(--aubergine); }
.demo-body h3 { font-size: 1.65rem; }
.demo-intro { margin-top: 8px; color: var(--muted); }
.demo-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.demo-option { border: 1px solid var(--line-strong); background: var(--white); padding: 20px; text-align: left; cursor: pointer; min-height: 145px; }
.demo-option:hover, .demo-option:focus-visible { border-color: var(--aubergine); box-shadow: inset 3px 0 0 var(--aubergine); }
.demo-option strong { display: block; font-size: 1.05rem; }
.demo-option span { display: block; margin-top: 8px; color: var(--muted); font-size: .87rem; line-height: 1.5; }
.contact-options { grid-template-columns: repeat(3, 1fr); }
.contact-options .demo-option { min-height: 180px; }
.contact-icon { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); margin-bottom: 22px; font-weight: 700; color: var(--aubergine); }
.demo-back { margin-top: 22px; border: 0; background: transparent; color: var(--aubergine); font-weight: 650; cursor: pointer; }
.slot-wrap { margin-top: 24px; }
.slot-note { padding: 12px 14px; border-left: 3px solid var(--aubergine); background: var(--white); color: var(--muted); font-size: .85rem; }
.slot-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.slot-day { border: 1px solid var(--line); background: var(--white); padding: 12px; }
.slot-day h4 { font-size: .85rem; }
.slot-day small { color: var(--muted); }
.slot-list { display: grid; gap: 6px; margin-top: 10px; }
.slot-button { border: 1px solid var(--line); background: var(--ivory); padding: 8px; cursor: pointer; font-size: .75rem; }
.slot-button:hover, .slot-button.is-selected { border-color: var(--aubergine); background: var(--aubergine); color: var(--white); }
.slot-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; }
.slot-selection { color: var(--muted); font-size: .82rem; }
.demo-footer-note { margin-top: 18px; font-size: .76rem; color: var(--subtle); }

/* CSS product animations */
.relay-animation { position: relative; min-height: 420px; padding: 28px; background: var(--sage-soft); overflow: hidden; }
.relay-board { max-width: 720px; margin: 0 auto; display: grid; grid-template-columns: 1fr 42px 1fr 42px 1fr; align-items: center; gap: 8px; }
.relay-node { background: var(--white); border: 1px solid var(--line-strong); padding: 18px; min-height: 158px; position: relative; }
.relay-node h4 { font-size: .9rem; }
.relay-node p { margin-top: 10px; color: var(--muted); font-size: .76rem; }
.relay-arrow { text-align: center; color: var(--sage); font-size: 1.4rem; }
.relay-photo { margin-top: 14px; height: 62px; background: linear-gradient(145deg,#ddd2bc,#f9f5eb); border: 1px solid var(--line); }
.relay-detected { margin-top: 14px; display: grid; gap: 6px; }
.relay-detected span { padding: 5px 7px; background: var(--sage-soft); font-size: .67rem; }
.relay-confirm { margin-top: 20px; height: 29px; background: var(--aubergine); color: var(--white); display: grid; place-items: center; font-size: .68rem; font-weight: 650; }
.relay-pulse { position: absolute; width: 10px; height: 10px; background: var(--sage); top: 50%; transform: translateY(-50%); opacity: 0; }
.relay-pulse.one { left: 31%; animation: relayMove1 9s ease-in-out infinite; }
.relay-pulse.two { left: 64%; animation: relayMove2 9s ease-in-out infinite; }
@keyframes relayMove1 { 0%,14%{opacity:0;transform:translate(-20px,-50%)} 20%,32%{opacity:1;transform:translate(20px,-50%)} 38%,100%{opacity:0} }
@keyframes relayMove2 { 0%,47%{opacity:0;transform:translate(-20px,-50%)} 53%,66%{opacity:1;transform:translate(20px,-50%)} 72%,100%{opacity:0} }

.prediction-animation { min-height: 420px; padding: 28px; background: #efedf0; overflow: hidden; }
.prediction-board { max-width: 770px; margin: 0 auto; border: 1px solid var(--line-strong); background: var(--white); }
.prediction-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.prediction-head strong { font-size: .86rem; }
.prediction-head span { color: var(--muted); font-size: .68rem; }
.invoice-stream { display: grid; grid-template-columns: 1fr 1.4fr; min-height: 300px; }
.invoice-list { padding: 16px; border-right: 1px solid var(--line); }
.invoice-card { border: 1px solid var(--line); padding: 10px; margin-bottom: 8px; animation: invoicePulse 10s ease-in-out infinite; }
.invoice-card:nth-child(2) { animation-delay: .8s; }
.invoice-card:nth-child(3) { animation-delay: 1.6s; }
.invoice-card strong { display: block; font-size: .7rem; }
.invoice-card span { display: block; margin-top: 4px; color: var(--muted); font-size: .61rem; font-variant-numeric: tabular-nums; }
.prediction-output { padding: 16px; }
.prediction-band { display: grid; grid-template-columns: repeat(4,1fr); gap: 3px; }
.prediction-band span { height: 10px; }
.prediction-band span:nth-child(1){background:#a8b3a0}.prediction-band span:nth-child(2){background:#c6c4b4}.prediction-band span:nth-child(3){background:#d6b59f}.prediction-band span:nth-child(4){background:#c98668}
.prediction-labels { display: grid; grid-template-columns: repeat(4,1fr); gap: 5px; margin-top: 7px; font-size: .57rem; color: var(--muted); }
.attention-card { margin-top: 22px; border: 1px solid var(--terracotta); padding: 14px; animation: attentionPulse 10s ease-in-out infinite; }
.attention-card strong { font-size: .76rem; }
.attention-card p { margin-top: 7px; font-size: .66rem; color: var(--muted); }
@keyframes invoicePulse { 0%,12%,100%{transform:translateX(0);border-color:var(--line)} 18%,30%{transform:translateX(5px);border-color:var(--aubergine)} 38%{transform:translateX(0)} }
@keyframes attentionPulse { 0%,45%,100%{box-shadow:none} 55%,72%{box-shadow:inset 4px 0 0 var(--terracotta)} }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 75px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 20px 24px; border-bottom: 1px solid var(--line); background: var(--ivory); }
  .site-nav.is-open { display: flex; }
  .site-nav a, .nav-product-toggle { width: 100%; text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); }
  .dropdown-menu { position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; margin-top: 5px; }
  .nav-dropdown.is-open .dropdown-menu { display: block; }
  .nav-actions .button { display: none; }
  .mobile-toggle { display: block; }
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .hero-system { min-height: 480px; }
  .product-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .principle { min-height: auto; }
  .principle h3 { margin-top: 36px; }
  .engagement-grid { grid-template-columns: 1fr; }
  .engagement-step { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.28); min-height: auto; }
  .engagement-step:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .workflow-grid-school-relay { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-step { border-right: 0; border-bottom: 1px solid var(--line-strong); min-height: auto; }
  .workflow-step:last-child { border-bottom: 0; }
  .workflow-step h3 { margin-top: 25px; }
  .pilot-card { grid-template-columns: 1fr; }
  .pilot-copy { border-right: 0; border-bottom: 1px solid var(--line); }
  .company-statement { grid-template-columns: 1fr; gap: 36px; }
  .contact-options { grid-template-columns: 1fr; }
  .slot-days { grid-template-columns: 1fr; }
  .relay-board { grid-template-columns: 1fr; }
  .relay-arrow { transform: rotate(90deg); }
  .relay-pulse { display: none; }
  .invoice-stream { grid-template-columns: 1fr; }
  .invoice-list { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
  .hero, .product-hero, .page-hero { padding-top: 65px; }
  .hero-grid, .product-hero-grid { gap: 40px; }
  .hero-system { padding: 15px; min-height: 550px; box-shadow: 8px 8px 0 var(--ivory-2); }
  .operation-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .system-footer { position: static; margin-top: 28px; }
  .section { padding: 76px 0; }
  .section-head { display: block; }
  .section-head .button { margin-top: 20px; }
  .product-card { min-height: 580px; }
  .product-card-copy { padding: 24px; }
  .cta-panel { grid-template-columns: 1fr; padding: 30px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 7px; }
  .feature-grid { grid-template-columns: 1fr; }
  .finance-kpis { grid-template-columns: repeat(2, 1fr); }
  .finance-kpi:nth-child(2) { border-right: 0; }
  .finance-kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .finance-row { grid-template-columns: 1.3fr .9fr .9fr; }
  .finance-row > :nth-child(4) { display: none; }
  .demo-desk-backdrop.is-open { padding: 0; align-items: end; }
  .demo-desk { max-height: 92vh; border-left: 0; border-right: 0; border-bottom: 0; }
  .demo-options { grid-template-columns: 1fr; }
  .slot-actions { align-items: stretch; flex-direction: column; }
  .slot-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
