/* Classrove website.
 *
 * One direction: warm paper, ink, one red accent. Instrument Serif for display,
 * Geist for reading. The only imagery is the product itself, drawn with the
 * app's own tokens (the --a-* variables, Plus Jakarta Sans).
 *
 * System
 *   space   8 · 16 · 24 · 32 · 48 · 64 · 96 · 128 (--s1 … --s8)
 *   type    15 · 17 · 20 · 26 · 40/48/64 · 72–104 (display)
 *   radius  10 (controls) · 14 (frames) · 44 (phones)
 *   shadow  one, --frame
 *   motion  one easing, 200 / 450 / 700 ms
 */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece8de;
  --ink: #141c28;
  --ink-2: #4a525d;
  --ink-3: #757c86;
  --hair: rgb(20 28 40 / 12%);
  --red: #c23624;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;
  --frame: 0 1px 2px rgb(20 28 40 / 6%), 0 12px 24px -12px rgb(20 28 40 / 14%), 0 40px 80px -40px rgb(20 28 40 / 30%);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  --a-navy: #14243b; --a-navy-dark: #0f1d33; --a-navy-mid: #29415c; --a-ink: #14243b; --a-soft: #58616a;
  --a-paper: #f7f7f2; --a-line: #dcded7; --a-gold: #c4a35f; --a-gold-ink: #80652e; --a-gold-tint: #f5efdf;
  --a-marigold: #d4920a; --a-success: #176447; --a-success-tint: #e5f3eb; --a-danger: #b42318; --a-danger-tint: #fbeae6;
  --a-blue: #2a78d6; --a-font: "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -50px; z-index: 50; padding: 8px 12px; background: var(--ink); color: var(--paper); }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* --- type ----------------------------------------------------------------------------------- */
.kicker { margin-bottom: var(--s2); color: var(--red); font-size: 15px; font-weight: 500; }
.display { font-family: var(--serif); font-size: clamp(56px, 7.6vw, 108px); line-height: .94; letter-spacing: -0.02em; }
.display .line { display: block; }
.display em, .h2 em { font-style: italic; }
.h2 { font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.015em; max-width: 18ch; }
.sub { max-width: 38rem; margin-top: var(--s3); color: var(--ink-2); font-size: 20px; line-height: 1.5; }
.lede { max-width: 36rem; color: var(--ink-2); font-size: 20px; line-height: 1.5; }
h3 { font-family: var(--serif); font-size: 26px; line-height: 1.12; }

/* --- controls ------------------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: var(--s1); min-height: 48px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s var(--ease), transform .2s var(--ease); }
.btn:hover { background: #26303f; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-quiet { min-height: 40px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 10px; background: transparent; font-size: 15px; }
.btn-quiet:hover { border-color: var(--ink); }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--hair); text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .2s; }
.link:hover { text-decoration-color: currentColor; }

/* --- top bar ---------------------------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--hair); }
.top-row { display: flex; align-items: center; gap: var(--s4); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Cabinet Grotesk", var(--sans); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; text-decoration: none; }
.mark { width: 26px; height: 26px; }
.top-nav { display: flex; gap: var(--s3); margin-left: auto; font-size: 15px; }
.top-nav a { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); }
.top-menu { display: none; margin-left: auto; border: 0; background: none; font-size: 15px; font-weight: 500; }

/* --- sections ------------------------------------------------------------------------------ */
.section { padding-block: var(--s8); }
.sec-head { margin-bottom: var(--s6); }

/* --- hero ---------------------------------------------------------------------------------- */
.hero { padding-top: var(--s7); padding-bottom: var(--s8); }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s3) var(--s6); margin-top: var(--s4); }
.actions { display: flex; align-items: center; gap: var(--s3); }
.frame { margin-top: var(--s7); }
.frame > .ui-window { box-shadow: var(--frame); }
.ui-sample { margin-left: 10px; padding: 2px 8px; border-radius: 999px; background: var(--a-gold-tint); color: var(--a-gold-ink); font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--hair); }
.proof li { color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.proof b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
.credit { display: inline-flex; align-items: center; gap: var(--s1); margin-top: var(--s4); color: var(--ink-3); font-size: 15px; text-decoration: none; transition: color .2s; }
.credit img { width: 18px; height: 18px; }
.credit:hover { color: var(--ink); }
/* =========================================================================================
   The product, as it looks in Classrove
   ======================================================================================= */

.ui-window { overflow: hidden; border: 1px solid rgb(20 36 59 / 14%); border-radius: 14px; background: var(--a-paper); color: var(--a-ink); font-family: var(--a-font); font-size: 15px; line-height: 1.45; box-shadow: 0 2px 4px rgb(20 36 59 / 5%), 0 50px 100px -50px rgb(20 36 59 / 55%); }
.ui-chrome { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--a-line); background: #fff; }
.ui-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #e3e3dc; }
.ui-chrome span { margin: 0 auto; padding: 2px 14px; border-radius: 6px; background: var(--a-paper); color: var(--a-soft); font-size: .74rem; transform: translateX(-20px); }
.ui-app { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 560px; }
.ui-side { padding: 16px 9px; background: linear-gradient(165deg, var(--a-navy-mid) 0%, var(--a-navy) 48%, var(--a-navy-dark) 100%); color: #fff; border-right: 1px solid color-mix(in srgb, var(--a-gold) 28%, transparent); }
.ui-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; }
.ui-brand svg { width: 28px; height: 28px; }
.ui-brand b { display: block; font-family: "Cabinet Grotesk", var(--a-font); font-size: 1.05rem; letter-spacing: -0.03em; }
.ui-brand small { display: block; font-size: .72rem; opacity: .72; }
.ui-nav li { padding: 7px 10px; border-left: 2px solid transparent; border-radius: 3px; color: rgb(255 255 255 / 90%); font-size: .9rem; font-weight: 500; }
.ui-nav li.home { margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid rgb(255 255 255 / 12%); border-radius: 0; font-weight: 600; }
.ui-nav li.on { border-left-color: var(--a-gold); background: rgb(255 255 255 / 14%); color: #fff; font-weight: 600; }
.ui-main { display: flex; flex-direction: column; min-width: 0; }
.ui-top { display: flex; align-items: center; gap: 4px; min-height: 52px; padding: 0 20px; border-bottom: 1px solid var(--a-line); background: rgb(255 255 255 / 92%); font-size: .88rem; }
.ui-top span { padding: 6px 12px; border-radius: 999px; color: var(--a-soft); font-weight: 500; }
.ui-top span.on { background: rgb(20 36 59 / 7%); color: var(--a-ink); font-weight: 600; }
.ui-top em { margin-left: auto; color: var(--a-soft); font-style: normal; }
.ui-avatar { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 12px; border-radius: 50%; background: var(--a-gold-tint); color: var(--a-gold-ink); font-size: .72rem; }
.ui-page { padding: 22px 26px 26px; }
.ui-page.pad { padding: 22px 24px 24px; }
.ui-h1 { margin-bottom: 14px; font-family: var(--a-font); font-size: 1.75rem; font-weight: 750; letter-spacing: -0.025em; }

/* Ask: the question you build */
.ui-ask { display: flex; align-items: center; gap: 10px; }
.ui-q { flex: 1; min-width: 0; padding: 12px 16px; border: 1px solid rgb(21 35 58 / 20%); border-radius: 10px; background: #fff; box-shadow: inset 0 1px 1px rgb(21 35 58 / 4%), 0 0 0 4px rgb(42 120 214 / 10%); font-size: 1.08rem; font-weight: 500; line-height: 2; }
.ui-q label { display: inline-block; }
.ui-q select { appearance: none; -webkit-appearance: none; margin: 0 1px; padding: 0 22px 0 8px; border: 0; border-radius: 6px; background: var(--a-gold-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2380652e' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 7px center; color: var(--a-gold-ink); font: 600 1rem/1.7 var(--a-font); cursor: pointer; }
.ui-q select:hover { background-color: #efe3c4; }
.ui-q select:focus-visible { outline: 2px solid var(--a-blue); outline-offset: 1px; }
.ui-btn { padding: 12px 20px; border-radius: 10px; background: var(--a-navy); color: #fff; font-weight: 600; }
.ui-reading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; margin: 14px 0 12px; font-size: .85rem; color: var(--a-soft); }
.ui-chip { padding: 2px 10px; border: 1px solid var(--a-line); border-radius: 999px; background: #fff; color: var(--a-ink); font-size: .84rem; font-weight: 600; animation: chipin .18s ease-out both; }
.ui-chip.measure { border-color: var(--a-navy-mid); color: var(--a-navy); }
.ui-chip.group, .ui-chip.period { background: var(--a-paper); }
.ui-chip.order { border-color: var(--a-gold); background: var(--a-gold-tint); }
.ui-chip.assumed { border-style: dashed; color: var(--a-soft); }
@keyframes chipin { from { opacity: 0; transform: translateY(3px); } }
.ui-note { width: 100%; margin-top: 2px; color: #9a6a00; font-weight: 600; }
.ui-answer { display: grid; gap: 8px; padding: 18px 22px; border: 1px solid var(--a-line); border-radius: 6px; background: #fff; animation: chipin .25s ease-out both; }
.ui-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ui-value { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.ui-value + p { color: var(--a-soft); font-size: .86rem; }
.ui-change { padding: 6px 10px; border-radius: 8px; font-size: .84rem; text-align: right; }
.ui-change strong { display: block; }
.ui-change span { color: var(--a-soft); font-size: .78rem; }
.ui-change.good { background: var(--a-success-tint); color: var(--a-success); }
.ui-change.bad { background: var(--a-danger-tint); color: var(--a-danger); }
.ui-sentence { font-size: 1.04rem; }
.ui-chart { margin-top: 6px; padding: 14px 16px 10px; border: 1px solid var(--a-line); border-radius: 6px; }
.ui-chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .88rem; font-weight: 600; }
.ui-chart-head button { padding: 3px 10px; border: 1px solid var(--a-line); border-radius: 999px; background: #fff; font-size: .78rem; font-weight: 600; color: var(--a-soft); }
.ui-bars { display: grid; grid-template-columns: max-content 1fr max-content; align-items: center; gap: 7px 12px; font-size: .84rem; }
.ui-bar { display: contents; }
.ui-bar span { color: var(--a-ink); font-weight: 500; }
.ui-bar i { height: 16px; border-radius: 0 4px 4px 0; background: #9fc0ea; transform-origin: left; transform: scaleX(var(--w)); transition: transform .7s var(--ease) var(--dl, 0s); }
.ui-bar.hit i { background: var(--a-blue); }
.ui-bar.enter i { transform: scaleX(0); }
.ui-bar b { font-weight: 600; text-align: right; }
.ui-tablev { width: 100%; border-collapse: collapse; font-size: .86rem; }
.ui-tablev th { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--a-line); color: var(--a-soft); font-weight: 600; text-align: left; }
.ui-tablev td { padding: 7px 8px 7px 0; border-bottom: 1px solid #ecede7; }
.ui-tablev .num { text-align: right; }
.ui-source { color: var(--a-soft); font-size: .8rem; }

/* Dashboard */
.ui-window.small { font-size: 14px; }
.ui-hello { font-family: var(--a-font); font-size: 1.5rem; font-weight: 750; letter-spacing: -0.025em; }
.ui-hello.sm { font-size: 1.3rem; }
.ui-sub { margin-top: 2px; color: var(--a-soft); font-size: .86rem; }
.ui-alert { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-top: 16px; padding: 11px 14px; border: 1px solid #f0d9a8; border-left: 3px solid var(--a-marigold); border-radius: 6px; background: #fdf3dc; font-size: .88rem; }
.ui-alert span { margin-left: auto; color: var(--a-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ui-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.ui-tile { padding: 12px 14px; border: 1px solid var(--a-line); border-radius: 6px; background: #fff; }
.ui-tile small { display: block; color: var(--a-soft); font-size: .78rem; font-weight: 600; }
.ui-tile b { display: block; margin-top: 2px; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.ui-tile b span { color: var(--a-soft); font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.ui-tile em { color: var(--a-soft); font-size: .78rem; font-style: normal; }
.ui-tile em.up { color: var(--a-success); font-weight: 600; }
.ui-card { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--a-line); border-radius: 6px; background: #fff; }
.ui-card-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .9rem; }
.ui-card-head span { color: var(--a-soft); font-size: .8rem; }
.ui-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #ecede7; }
.ui-list li div { flex: 1; min-width: 0; }
.ui-list b { display: block; font-size: .88rem; }
.ui-list small { color: var(--a-soft); font-size: .78rem; }
.ui-av { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #edf0f3; color: var(--a-navy-mid); font-size: .7rem; font-weight: 700; }
.tag { flex: none; padding: 2px 9px; border-radius: 999px; background: #edf0f3; color: var(--a-navy-mid); font-size: .74rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.tag.warn { background: #fdf3dc; color: #815500; }
.tag.gold { background: var(--a-gold-tint); color: var(--a-gold-ink); }

/* Fees table */
.ui-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ui-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(20 36 59 / 6%); font-size: .8rem; font-weight: 600; }
.ui-seg span { padding: 4px 11px; border-radius: 999px; color: var(--a-soft); }
.ui-seg span.on { background: #fff; color: var(--a-ink); box-shadow: 0 1px 2px rgb(20 36 59 / 14%); }
.ui-table { width: 100%; border-collapse: collapse; overflow: hidden; border: 1px solid var(--a-line); border-radius: 6px; background: #fff; font-size: .85rem; }
.ui-table th { padding: 9px 10px; background: #fafaf6; border-bottom: 1px solid var(--a-line); color: var(--a-soft); font-size: .78rem; font-weight: 600; text-align: left; }
.ui-table td { padding: 10px; border-bottom: 1px solid #ecede7; }
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table .num { text-align: right; white-space: nowrap; }
.ui-table .late { color: var(--a-danger); font-weight: 600; }
.ui-foot { margin-top: 10px; color: var(--a-soft); font-size: .8rem; }

/* Phones */
.phone { justify-self: center; width: 318px; padding: 10px; border-radius: 44px; background: #10161f; box-shadow: 0 40px 80px -40px rgb(20 28 40 / 70%); }
.phone-screen { position: relative; min-height: 560px; overflow: hidden; padding: 46px 16px 18px; border-radius: 34px; background: var(--a-paper); color: var(--a-ink); font-family: var(--a-font); font-size: 14px; }
.phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 24px; border-radius: 999px; background: #10161f; transform: translateX(-50%); }
.ph-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.ph-top b { font-size: 1.3rem; font-weight: 750; letter-spacing: -0.02em; }
.ph-top span { color: var(--a-soft); font-size: .8rem; }
.ph-day li { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; padding: 10px 11px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; }
.ph-day time { width: 40px; flex: none; color: var(--a-soft); font-size: .78rem; font-weight: 600; }
.ph-day div { flex: 1; min-width: 0; }
.ph-day b { display: block; font-size: .86rem; }
.ph-day small { color: var(--a-soft); font-size: .74rem; }
.ph-day .done { opacity: .62; }
.ph-label { margin: 14px 0 6px; color: var(--a-soft); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ph-day.compact li { padding: 8px 11px; margin-bottom: 5px; }
.ph-day .now { border-color: var(--a-navy); box-shadow: 0 0 0 3px rgb(20 36 59 / 8%); }
.ph-day .cover { border-color: #e9dcb8; background: #fffcf3; }
.ok { color: var(--a-success); font-weight: 700; }
.ui-mini-btn { padding: 5px 10px; border-radius: 8px; background: var(--a-navy); color: #fff; font-size: .74rem; font-weight: 600; }
.ph-card { margin-top: 8px; padding: 11px 12px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; }
.ph-card b { display: block; font-size: .86rem; }
.ph-card small { color: var(--a-soft); font-size: .76rem; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-stats div { padding: 10px; border: 1px solid var(--a-line); border-radius: 10px; background: #fff; }
.ph-stats small { display: block; color: var(--a-soft); font-size: .7rem; font-weight: 600; }
.ph-stats b { font-size: 1.25rem; font-weight: 800; }
.ph-stats b.warn { color: #815500; }
.ph-msg { margin-top: 10px; padding: 11px 12px; border-radius: 14px 14px 14px 4px; background: #e9ecf1; }
.ph-msg small { color: var(--a-soft); font-size: .72rem; font-weight: 600; }
.ph-msg p { margin-top: 3px; font-size: .86rem; line-height: 1.4; }


/* =========================================================================================
   Sections
   ======================================================================================= */

/* --- one tap ------------------------------------------------------------------------------ */
.flow { background: var(--paper-2); }
.flow-stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s5); }
.flow-col { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--s2); }
.flow-col.wide { justify-items: stretch; }
.flow-col.wide .ui-window { box-shadow: var(--frame); }
.flow-cap { display: flex; align-items: center; gap: var(--s1); color: var(--ink-2); font-size: 15px; }
.flow-cap span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; }
.flow-phone { width: 300px; }
.flow-phone .phone-screen { min-height: 600px; }
.flow-lines { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.flow-lines path { fill: none; stroke: rgb(20 28 40 / 28%); stroke-width: 1; stroke-dasharray: 3 5; }
.flow-lines circle { fill: var(--red); }
.flow-controls { display: flex; align-items: center; justify-content: center; gap: var(--s2); margin-top: var(--s5); color: var(--ink-3); font-size: 15px; }
.reg-help { margin: -4px 0 10px; color: var(--a-soft); font-size: .76rem; }
.reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.reg-grid button { min-height: 50px; padding: 6px 8px; border: 1px solid #cfe3d7; border-radius: 9px; background: var(--a-success-tint); color: var(--a-ink); font: 600 .74rem/1.2 var(--a-font); text-align: left; transition: background .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.reg-grid button small { display: block; margin-top: 2px; color: var(--a-success); font-size: .66rem; font-weight: 700; }
.reg-grid button:active { transform: scale(.96); }
.reg-grid button.absent { border-color: #f1c2b8; background: var(--a-danger-tint); }
.reg-grid button.absent small { color: var(--a-danger); }
.reg-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--a-soft); font-size: .74rem; }
.reg-save { padding: 9px 12px; border: 0; border-radius: 9px; background: var(--a-navy); color: #fff; font: 600 .78rem var(--a-font); transition: background .2s; }
.reg-save.saved { background: var(--a-success); }
.dash-alert-slot { min-height: 64px; margin-top: 14px; }
.dash-alert-slot .ui-alert { margin-top: 0; animation: settle .45s var(--ease) both; }
.dash-quiet { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border: 1px dashed var(--a-line); border-radius: 6px; color: var(--a-soft); font-size: .84rem; }
.dash-quiet i { width: 8px; height: 8px; border-radius: 50%; background: var(--a-success); }
.ui-tile.bump, .fam-today.bump { animation: bump .7s var(--ease); }
@keyframes settle { from { opacity: 0; transform: translateY(-6px); } }
@keyframes bump { 30% { border-color: var(--a-gold); background: var(--a-gold-tint); } }
.fam-today { display: grid; gap: 2px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; transition: background .3s, border-color .3s; }
.fam-today small { color: var(--a-soft); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.fam-today b { font-size: 1.1rem; }
.fam-today span { color: var(--a-soft); font-size: .78rem; }
.fam-today.absent { border-color: #f1c2b8; background: var(--a-danger-tint); }
.fam-today.absent b { color: var(--a-danger); }
.fam-today.present { border-color: #cfe3d7; background: var(--a-success-tint); }
.fam-today.present b { color: var(--a-success); }

/* --- three jobs ----------------------------------------------------------------------------- */
.jobs-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); }
.m-step { display: flex; align-items: center; min-height: 56vh; }
.m-step button { padding: 0 0 0 var(--s3); border: 0; border-left: 1px solid var(--hair); background: none; text-align: left; color: var(--ink-3); transition: color .45s var(--ease), border-color .45s var(--ease); }
.m-step.is-on button { color: var(--ink); border-left-color: var(--ink); }
.m-num { display: block; margin-bottom: var(--s1); font-size: 15px; font-weight: 500; }
.m-step.is-on .m-num { color: var(--red); }
.m-step h3 { font-size: clamp(28px, 3vw, 36px); }
.m-step p { margin-top: var(--s2); max-width: 28rem; font-size: 17px; }
.m-step.is-on p { color: var(--ink-2); }
.m-stage { position: sticky; top: calc(50vh - 240px); align-self: start; height: 480px; }
.m-screen { position: absolute; inset: 0 0 auto; box-shadow: var(--frame); opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .7s var(--ease); pointer-events: none; }
.m-screen.is-on { opacity: 1; transform: none; pointer-events: auto; }
.tt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tt-bar { height: 3px; margin: 14px 0; border-radius: 3px; background: #ecede7; overflow: hidden; }
.tt-bar i { display: block; height: 100%; width: 0; background: var(--a-navy); transition: width 2.2s linear; }
.tt-grid { display: grid; grid-template-columns: 44px repeat(5, 1fr); gap: 4px; font-size: .74rem; }
.tt-grid .h { padding: 4px 0; color: var(--a-soft); font-weight: 700; text-align: center; }
.tt-grid .p { display: grid; align-items: center; color: var(--a-soft); font-weight: 600; }
.tt-grid .c { min-height: 38px; padding: 5px 6px; border-radius: 6px; background: #f1f1ec; color: transparent; font-weight: 700; line-height: 1.15; transition: background .3s var(--ease), color .3s var(--ease); }
.tt-grid .c.on { color: var(--a-ink); }
.tt-grid .c small { display: block; font-weight: 500; color: var(--a-soft); }
.tt-grid .c.lock { box-shadow: inset 0 0 0 1.5px var(--a-gold); }
.cv-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid #ecede7; }
.cv-list li div { flex: 1; min-width: 0; }
.cv-list b { display: block; font-size: .9rem; }
.cv-list small { color: var(--a-soft); font-size: .78rem; }
.cv-list i { display: block; height: 4px; margin-top: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--a-blue) calc(var(--s) * 100%), #ecede7 0); }
.cv-list em { font-style: normal; font-weight: 800; }
.cv-list em.off { color: var(--a-soft); font-size: .78rem; font-weight: 600; }
.cv-list li.top { margin: 0 -10px; padding: 11px 10px; border-radius: 10px; background: #eef4fd; transition: background .3s; }
.cv-offer { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid #f0d9a8; border-radius: 10px; background: #fdf3dc; font-size: .86rem; transition: background .3s, border-color .3s; }
.cv-offer small { margin-left: auto; color: var(--a-soft); }
.cv-offer.done { border-color: #bfe0cd; background: var(--a-success-tint); }
.fc-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.fc-dot.warn { background: var(--a-marigold); }
.fc-dot.ok { background: var(--a-success); }
.rc-table { margin-top: 14px; }
.rc-stamp { padding: 4px 12px; border: 1.5px solid var(--a-soft); border-radius: 6px; color: var(--a-soft); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: color .3s, border-color .3s, background .3s; }
.rc-stamp.approved { border-color: var(--a-blue); color: var(--a-blue); }
.rc-stamp.published { border-color: var(--a-success); color: var(--a-success); background: var(--a-success-tint); }
.rc-trail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rc-trail li { position: relative; padding: 10px 12px 10px 30px; border: 1px solid #ecede7; border-radius: 8px; background: #fafaf6; opacity: .45; transition: opacity .3s, border-color .3s, background .3s; }
.rc-trail li::before { content: ""; position: absolute; left: 11px; top: 14px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--a-soft); }
.rc-trail li.on { opacity: 1; border-color: #bfe0cd; background: #fff; }
.rc-trail li.on::before { border-color: var(--a-success); background: var(--a-success); }
.rc-trail b { display: block; font-size: .84rem; }
.rc-trail small { color: var(--a-soft); font-size: .72rem; }

/* --- roles ------------------------------------------------------------------------------------ */
.roles { background: var(--paper-2); }
.tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgb(20 28 40 / 6%); }
.tabs button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: 15px; font-weight: 500; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgb(20 28 40 / 12%); }
.role-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s6); margin-top: var(--s5); min-height: 600px; }
.role-panel.is-on { animation: settle .45s var(--ease) both; }
.role-text h3 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; }
.role-text ul { margin-top: var(--s3); }
.role-text li { padding: 12px 0; border-top: 1px solid var(--hair); color: var(--ink-2); }
.role-text li:last-child { border-bottom: 1px solid var(--hair); }
.role-screen { display: grid; justify-items: center; }
.role-screen > .ui-window { width: 100%; box-shadow: var(--frame); }

/* --- security ------------------------------------------------------------------------------- */
.clauses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5) var(--s4); counter-reset: c; }
.clauses li { padding-top: var(--s2); border-top: 1px solid var(--ink); counter-increment: c; }
.clauses li::before { content: counter(c, decimal-leading-zero); display: block; margin-bottom: var(--s2); color: var(--red); font-size: 15px; font-weight: 500; }
.clauses p { margin-top: var(--s1); color: var(--ink-2); font-size: 17px; }
.more { margin-top: var(--s6); }

/* --- demo ---------------------------------------------------------------------------------- */
.demo { background: var(--ink); color: var(--paper); }
.demo .kicker { color: #e8836f; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.next { margin-top: var(--s5); counter-reset: n; }
.next li { position: relative; padding: var(--s2) 0 var(--s2) var(--s5); border-top: 1px solid rgb(244 241 234 / 16%); color: rgb(244 241 234 / 70%); font-size: 15px; counter-increment: n; }
.next li::before { content: counter(n); position: absolute; left: 0; top: var(--s2); color: #e8836f; font-weight: 500; }
.next b { display: block; color: var(--paper); font-weight: 500; }
.letter { font-family: var(--serif); font-size: clamp(24px, 2.1vw, 30px); line-height: 1.6; }
.letter > p + p { margin-top: var(--s2); }
.blank { display: inline-block; }
.blank input { width: 8em; padding: 0 2px; border: 0; border-bottom: 1px solid rgb(244 241 234 / 45%); border-radius: 0; background: none; color: var(--paper); font-family: var(--serif); font-size: 1em; font-style: italic; outline: none; transition: border-color .2s; }
.blank.wide input { width: 10em; }
.blank.short input { width: 3.2em; text-align: center; }
.blank input::placeholder { color: rgb(244 241 234 / 35%); }
.blank input:focus { border-bottom-color: var(--paper); }
.blank.bad input { border-bottom: 2px solid #e8836f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sign { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s4); font-family: var(--sans); font-size: 15px; }
.status { color: rgb(244 241 234 / 75%); }
.status.err { color: #f0b9a6; }
.status a { color: var(--paper); }
.aside { margin-top: var(--s3); font-family: var(--sans); font-size: 15px; color: rgb(244 241 234 / 55%); }
.sent { font-family: var(--serif); font-size: 34px; line-height: 1.25; }

/* --- footer ------------------------------------------------------------------------------- */
.foot { padding-block: var(--s5); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s3); margin-left: auto; font-size: 15px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { width: 100%; color: var(--ink-3); font-size: 15px; }

/* --- features page ----------------------------------------------------------------------- */
.page-top { padding-top: var(--s7); }
.index-body { columns: 4 230px; column-gap: var(--s5); column-rule: 1px solid var(--hair); }
.letter-group { break-inside: avoid; margin-bottom: var(--s3); }
.letter-group h3 { margin-bottom: 4px; color: var(--red); font-size: 32px; line-height: 1; }
.entry { display: flex; align-items: baseline; gap: 6px; padding: 3px 0; font-size: 15px; cursor: default; }
.entry .name { flex: none; max-width: 75%; }
.entry .dots { flex: 1; min-width: 12px; border-bottom: 1px dotted rgb(20 28 40 / 30%); transform: translateY(-4px); }
.entry .where { flex: none; color: var(--ink-3); font-family: var(--serif); font-style: italic; font-size: 16px; }
.entry:hover .name, .entry:focus .name { color: var(--red); }
.entry:focus { outline: none; }
.index-note { min-height: 3em; margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.index-note span { color: var(--red); }
.ledger { width: 100%; border-collapse: collapse; }
.ledger thead th { padding: 0 var(--s3) 10px 0; border-bottom: 1px solid var(--ink); color: var(--ink-3); font-size: 15px; font-weight: 500; text-align: left; }
.ledger tbody tr { border-bottom: 1px solid var(--hair); }
.ledger tbody th { width: 18%; padding: var(--s3) var(--s3) var(--s3) 0; font-family: var(--serif); font-size: 26px; font-weight: 400; text-align: left; vertical-align: top; }
.ledger td { padding: var(--s3) var(--s3) var(--s3) 0; vertical-align: top; }
.ledger td.was { width: 32%; color: var(--ink-3); }

/* --- reveal (one pattern, used once per block) -------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* --- narrower ---------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .flow-stage { grid-template-columns: 1fr; max-width: 720px; }
  .flow-lines { display: none; }
  .flow-col + .flow-col::before { content: "↓"; display: block; color: var(--ink-3); text-align: center; }
  .flow-phone .phone-screen { min-height: 0; }
  .ui-app { grid-template-columns: 170px minmax(0, 1fr); }
  .ui-top span:nth-child(n + 4) { display: none; }
}
@media (max-width: 980px) {
  .section { padding-block: var(--s7); }
  .top-nav { display: none; }
  .top-menu { display: block; }
  .top.open .top-nav { position: absolute; top: 100%; left: 0; right: 0; display: grid; gap: 0; margin: 0; padding: 0 var(--gutter) var(--s2); background: var(--paper); border-bottom: 1px solid var(--hair); }
  .top.open .top-nav a { padding: 14px 0; border-bottom: 1px solid var(--hair); font-family: var(--serif); font-size: 26px; color: var(--ink); }
  .jobs-grid, .role-panel, .demo-grid { grid-template-columns: 1fr; }
  .m-stage { position: relative; top: 0; order: -1; height: 470px; }
  .m-step { min-height: 0; padding: var(--s2) 0; }
  .role-panel { min-height: 0; }
  .ui-app { grid-template-columns: 1fr; }
  .ui-side { display: none; }
  .proof, .clauses { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s6); }
  .sec-head { margin-bottom: var(--s5); }
  .top-row { gap: var(--s2); height: 56px; }
  .brand { font-size: 19px; }
  .hero { padding-top: var(--s6); padding-bottom: var(--s6); }
  .display { font-size: clamp(46px, 13.4vw, 60px); }
  .h2 { font-size: 38px; }
  .sub, .lede { font-size: 18px; }
  .actions { width: 100%; flex-wrap: wrap; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .frame { margin-top: var(--s5); }
  .ui-window { border-radius: 12px; font-size: 14px; }
  .ui-chrome span, .ui-top { display: none; }
  .ui-page { padding: 16px 14px 18px; }
  .ui-h1 { font-size: 1.4rem; }
  .ui-ask { flex-direction: column; align-items: stretch; }
  .ui-btn { text-align: center; }
  .ui-q { font-size: 1rem; line-height: 2.1; }
  .ui-answer { padding: 14px; }
  .ui-value { font-size: 1.9rem; }
  .ui-tiles { grid-template-columns: 1fr 1fr; }
  .ui-tiles .ui-tile:last-child { grid-column: 1 / -1; }
  .ui-table th:nth-child(2), .ui-table td:nth-child(2), .ui-table th:nth-child(5), .ui-table td:nth-child(5) { display: none; }
  .ui-list li { flex-wrap: wrap; }
  .ui-list li div { flex-basis: calc(100% - 44px); }
  .ui-list li .tag { margin-left: 40px; }
  .proof, .clauses { grid-template-columns: 1fr; gap: var(--s3); }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .m-stage { height: 440px; }
  .tt-grid { grid-template-columns: 30px repeat(5, 1fr); font-size: .62rem; }
  .tt-grid .c { min-height: 30px; padding: 3px; }
  .tt-grid .c small { display: none; }
  .rc-table th:nth-child(4), .rc-table td:nth-child(4) { display: none; }
  .rc-trail { grid-template-columns: 1fr; }
  .phone, .flow-phone { width: 296px; }
  .letter { font-size: 24px; line-height: 1.7; }
  .blank input { width: 7em; }
  .blank.wide input { width: 10em; }
  .blank.short input { width: 3em; }
  .foot nav { margin-left: 0; }
  .ledger thead { display: none; }
  .ledger tbody tr { display: grid; padding: var(--s2) 0; }
  .ledger tbody th, .ledger td { width: auto !important; padding: 2px 0; }
  .index-note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 640px) { .flow-controls { flex-direction: column; text-align: center; } .flow-controls .btn-quiet { white-space: nowrap; } }

/* --- Ask: question box, self-typing, menu, answers ------------------------------------------- */
.ui-field { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid rgb(21 35 58 / 22%); border-radius: 10px; background: #fff; box-shadow: inset 0 1px 1px rgb(21 35 58 / 4%); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.ui-field:focus-within { border-color: var(--a-blue); box-shadow: 0 0 0 4px rgb(42 120 214 / 15%); }
.ui-field-icon { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--a-soft); stroke-width: 1.8; stroke-linecap: round; }
.ui-field input { flex: 1; min-width: 0; height: 52px; border: 0; background: none; color: var(--a-ink); font: 500 1.08rem var(--a-font); outline: none; }
.ui-ghost { position: absolute; left: 44px; right: 16px; top: 50%; display: none; align-items: center; color: var(--a-ink); font: 500 1.08rem var(--a-font); white-space: nowrap; overflow: hidden; transform: translateY(-50%); pointer-events: none; }
.ui-field.auto input { color: transparent; caret-color: transparent; }
.ui-field.auto .ui-ghost { display: flex; }
.ui-caret { display: inline-block; width: 2px; height: 1.2em; margin-left: 2px; background: var(--a-blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ui-ask .ui-btn { border: 0; font: 600 1rem var(--a-font); cursor: pointer; transition: background .2s var(--ease); }
.ui-ask .ui-btn:hover { background: var(--a-navy-mid); }
.ui-try { position: relative; display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--a-soft); font-size: .84rem; }
.ui-try-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--a-line); border-radius: 999px; background: #fff; color: var(--a-ink); font: 600 .84rem var(--a-font); transition: border-color .2s var(--ease); }
.ui-try-btn:hover, .ui-try-btn[aria-expanded="true"] { border-color: var(--a-navy-mid); }
.ui-try-btn svg { width: 10px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .2s var(--ease); }
.ui-try-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.ui-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 10; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; width: min(720px, 100%); max-height: 330px; overflow: auto; padding: 14px; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; box-shadow: 0 24px 48px -16px rgb(20 36 59 / 30%); animation: settle .2s var(--ease); }
.ui-menu-group p { margin: 6px 8px 4px; color: var(--a-soft); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ui-menu-group button { display: block; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; color: var(--a-ink); font: 500 .88rem/1.35 var(--a-font); text-align: left; }
.ui-menu-group button:hover, .ui-menu-group button:focus-visible { background: #f1f4f8; outline: none; }
.ui-answer { min-height: 330px; transition: opacity .25s var(--ease); }
.ui-answer.ui-thinking { opacity: .35; }
.ui-bars.has-rule .ui-bar i { background-image: linear-gradient(90deg, transparent calc(var(--rule) / var(--w) * 100% - 1px), var(--a-danger) 0, var(--a-danger) calc(var(--rule) / var(--w) * 100% + 1px), transparent 0); }
.ui-tablev tbody tr { animation: settle .4s var(--ease) both; animation-delay: var(--dl, 0s); }
.ui-tablev td.up { color: var(--a-success); font-weight: 600; }
.ui-tablev td.down { color: var(--a-danger); font-weight: 600; }
.ui-line { width: 100%; height: auto; overflow: visible; }
.ui-line .g { stroke: #ecede7; }
.ui-line .t { fill: var(--a-soft); font: 500 11px var(--a-font); }
.ui-line .l { fill: none; stroke: var(--a-blue); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len); stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
.ui-line .a { fill: rgb(42 120 214 / 8%); transition: opacity .8s var(--ease) .4s; }
.ui-line .d { fill: #fff; stroke: var(--a-blue); stroke-width: 2; transition: opacity .3s var(--ease) var(--dl); }
.ui-line .d.last { fill: var(--a-blue); }
.ui-line.enter .l { stroke-dashoffset: var(--len); transition: none; }
.ui-line.enter .a, .ui-line.enter .d { opacity: 0; transition: none; }
.ui-unsure p { color: var(--a-soft); }
.ui-suggest { display: grid; gap: 6px; margin-top: 12px; }
.ui-suggest button { padding: 10px 12px; border: 1px solid var(--a-line); border-radius: 8px; background: #fff; font: 500 .9rem var(--a-font); text-align: left; }
.ui-suggest button:hover { border-color: var(--a-navy-mid); }
@media (max-width: 640px) {
  .ui-field input, .ui-ghost { font-size: .95rem; }
  .ui-ghost { white-space: normal; }
  .ui-field.auto .ui-ghost { position: static; transform: none; padding: 12px 0; }
  .ui-field.auto input { position: absolute; inset: 0; opacity: 0; }
  .ui-menu { grid-template-columns: 1fr; }
  .ui-try span { display: none; }
}
@media (max-width: 640px) { .ui-field.auto .ui-ghost { display: block; } .ui-caret { vertical-align: -0.2em; } }

.ui-hint { margin-top: 10px; color: var(--a-soft); font-size: .84rem; }

/* =========================================================================================
   Visual components: icons, rings, sparklines, meters, faces, badges
   ======================================================================================= */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* hero proof: three icon lines */
.proof { grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s5); }
.proof li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 17px; }
.proof .ic { width: 26px; height: 26px; color: var(--red); }
.proof b { display: inline; margin: 0; font-weight: 500; }

/* ring: a figure drawn as an arc */
.ring { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.ring .rt { stroke: #e9ebe4; }
.ring .rv { stroke: var(--a-blue); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.2s var(--ease); }
.ring.gold .rv { stroke: var(--a-gold); }
.ring.in .rv { stroke-dashoffset: calc(100 - var(--p) * 100); }
.ring b { position: relative; font: 800 .8rem var(--a-font); letter-spacing: -.02em; }
.ui-tile.viz { display: flex; align-items: center; gap: 12px; }
.ui-tile.viz small { margin: 0; }
.ui-tile.viz small em { display: block; color: var(--a-success); font-style: normal; font-weight: 700; }

/* sparkline */
.spark { display: block; width: 100%; height: 32px; margin: 6px 0 2px; overflow: visible; }
.spark path { fill: none; stroke: var(--a-blue); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 140; stroke-dashoffset: 140; transition: stroke-dashoffset 1.3s var(--ease); }
.spark circle { fill: var(--a-blue); opacity: 0; transition: opacity .3s var(--ease) 1.1s; }
.spark.in path { stroke-dashoffset: 0; }
.spark.in circle { opacity: 1; }
.ui-tile b span { color: var(--a-soft); font-size: .78rem; font-weight: 600; letter-spacing: 0; }

/* meter and dots */
.meter { display: block; height: 6px; margin-top: 8px; border-radius: 6px; background: #e9ebe4; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 6px; background: var(--a-success); transition: width .8s var(--ease); }
.dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 8px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: #e3a99b; }
.dots i.new { background: var(--a-danger); animation: settle .4s var(--ease) both; }

/* faces */
.ui-av { background: hsl(var(--h, 210) 45% 90%); color: hsl(var(--h, 210) 45% 30%); }
.reg-grid { grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.reg-grid button { display: grid; justify-items: center; gap: 4px; min-height: 0; padding: 4px 0; border: 0; background: none; text-align: center; }
.reg-grid button small { margin: 0; color: var(--a-soft); font-size: .64rem; font-weight: 600; }
.face { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: hsl(var(--h) 45% 88%); color: hsl(var(--h) 45% 28%); font: 700 .78rem var(--a-font); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #bfe0cd; transition: box-shadow .25s var(--ease), filter .25s var(--ease), transform .2s var(--ease); }
.face::after { content: "✓"; position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--a-success); color: #fff; font-size: .6rem; box-shadow: 0 0 0 2px #fff; transition: background .25s var(--ease); }
.reg-grid button.absent { background: none; border: 0; }
.reg-grid button.absent .face { filter: grayscale(1); box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f1b7aa; }
.reg-grid button.absent .face::after { content: "✕"; background: var(--a-danger); }
.reg-grid button.absent small { color: var(--a-danger); }
.reg-grid button.tapped .face { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(.88); } }
.reg-help { display: none; }

/* family: status with a symbol, ring row */
.fam-today { grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; }
.fam-today::before { content: "…"; grid-row: 1 / span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef0f2; color: var(--a-soft); font-weight: 800; }
.fam-today.absent::before { content: "✕"; background: var(--a-danger); color: #fff; }
.fam-today.present::before { content: "✓"; background: var(--a-success); color: #fff; }
.ph-ring-row { display: flex; align-items: center; gap: 14px; margin: 10px 0; padding: 12px; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; }
.ph-ring-row small { color: var(--a-soft); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ph-ring-row p { font-size: .82rem; color: var(--a-soft); }
.ph-ring-row p b { color: var(--a-ink); }
.ph-badges { display: flex; align-items: center; gap: 8px; }

/* grade badges */
.gb { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; font: 800 .8rem var(--a-font); }
.gb.a { background: var(--a-success-tint); color: var(--a-success); }
.gb.b { background: #e6effb; color: #1d5bab; }
.ph-badges .gb { height: 34px; min-width: 44px; font-size: 1rem; }

/* fees by age */
.age { margin-bottom: 14px; }
.age-bar { display: flex; gap: 3px; height: 12px; }
.age-bar i { flex: var(--w) 0 0; border-radius: 4px; background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.age-bar i:nth-child(2) { transition-delay: .08s; } .age-bar i:nth-child(3) { transition-delay: .16s; } .age-bar i:nth-child(4) { transition-delay: .24s; }
.age.in .age-bar i { transform: none; }
.age-key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; color: var(--a-soft); font-size: .76rem; }
.age-key span { display: inline-flex; align-items: center; gap: 6px; }
.age-key i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.age-key b { color: var(--a-ink); }

/* roles: icon lines instead of paragraphs */
.icon-list { margin-top: var(--s4); }
.icon-list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--hair); color: var(--ink); font-size: 17px; }
.icon-list li:last-child { border-bottom: 1px solid var(--hair); }
.icon-list .ic { color: var(--red); }

/* security: six icon tiles */
.vaults { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.vaults li { display: flex; align-items: center; gap: var(--s2); padding: var(--s4); border-radius: 14px; background: var(--paper-2); transition: background .25s var(--ease), transform .25s var(--ease); }
.vaults li:hover { background: #e6e1d4; transform: translateY(-2px); }
.vaults .ic { width: 34px; height: 34px; color: var(--red); stroke-width: 1.4; }
.vaults h3 { font-size: 24px; }

/* demo: three steps as a line */
.next { display: grid; gap: 0; margin-top: var(--s5); }
.next li { padding: var(--s2) 0 var(--s2) var(--s5); color: var(--paper); font-size: 17px; }
.next li::before { top: var(--s2); }

@media (max-width: 980px) { .vaults { grid-template-columns: 1fr 1fr; } .proof { grid-template-columns: 1fr; gap: var(--s2); } }
@media (max-width: 640px) { .vaults { grid-template-columns: 1fr; } .vaults li { padding: var(--s3); } .reg-grid { gap: 8px 4px; } .face { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .ring .rv { stroke-dashoffset: calc(100 - var(--p) * 100); } .spark path { stroke-dashoffset: 0; } .spark circle { opacity: 1; } .age-bar i { transform: none; } }

/* --- Ask, watch-only: typed field, press, loader ------------------------------------------ */
.ui-field { min-height: 54px; }
.ui-field.auto .ui-ghost { position: static; display: block; flex: 1; min-width: 0; padding: 14px 0; transform: none; white-space: normal; line-height: 1.4; }
.ui-caret { vertical-align: -0.2em; }
.ui-ask .ui-btn { display: grid; place-items: center; transition: transform .15s var(--ease), background .15s var(--ease); }
.ui-ask .ui-btn.pressed { transform: scale(.94); background: var(--a-navy-mid); }
.ui-loading { padding: 4px 0; }
.ui-loading-line { display: flex; align-items: center; gap: 10px; font: 600 .95rem var(--a-font); }
.ui-loading-line span { background: linear-gradient(90deg, var(--a-soft) 0%, var(--a-soft) 35%, #2a78d6 50%, #8a5cf6 58%, var(--a-soft) 72%, var(--a-soft) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sweep 1.6s linear infinite; }
.ui-orb { position: relative; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from var(--a, 0deg), #2a78d6, #8a5cf6, #e8836f, #c4a35f, #2a78d6); animation: orb 1.4s linear infinite; }
.ui-orb::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / 60%); }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes orb { to { --a: 360deg; } }
@keyframes sweep { from { background-position: 125% 0; } to { background-position: -125% 0; } }
.ui-skel { display: grid; gap: 10px; margin-top: 18px; }
.ui-skel i { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, #eef0ec 0%, #f6f7f3 40%, #e4e9f3 50%, #f6f7f3 60%, #eef0ec 100%); background-size: 300% 100%; animation: sweep 1.4s linear infinite; }
.ui-skel .tall { height: 36px; width: 30%; margin-bottom: 6px; }
.ui-skel .w60 { width: 60%; } .ui-skel .w90 { width: 90%; } .ui-skel .w75 { width: 75%; } .ui-skel .w50 { width: 50%; } .ui-skel .w30 { width: 30%; }
@media (prefers-reduced-motion: reduce) { .ui-orb, .ui-loading-line span, .ui-skel i { animation: none; } }

/* =========================================================================================
   App chrome, product-grade
   ======================================================================================= */
.brand { font-size: 24px; letter-spacing: -0.035em; }
.ui-window { background: #fafaf7; }
.ui-app { grid-template-columns: 224px minmax(0, 1fr); min-height: 600px; }
.ui-side { display: flex; flex-direction: column; gap: 12px; padding: 16px 10px 14px; }
.ui-brand { display: block; padding: 2px 8px 0; }
.ui-brand b { display: block; font: 700 1.2rem "Cabinet Grotesk", var(--a-font); letter-spacing: -0.035em; }
.ui-school { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 8px 3px 6px; border-radius: 6px; background: rgb(255 255 255 / 8%); font-size: .72rem; color: rgb(255 255 255 / 75%); }
.ui-school i { width: 7px; height: 7px; border-radius: 50%; background: #4cc38a; }
.ui-search { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid rgb(255 255 255 / 12%); border-radius: 8px; background: rgb(255 255 255 / 6%); color: rgb(255 255 255 / 55%); font-size: .8rem; }
.ui-search .ic { width: 15px; height: 15px; }
.ui-search kbd, .ui-kbd { margin-left: auto; padding: 1px 6px; border: 1px solid currentColor; border-radius: 5px; font: 600 .66rem var(--a-font); opacity: .7; }
.ui-nav { display: grid; gap: 1px; }
.ui-nav li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-left: 0; border-radius: 7px; color: rgb(255 255 255 / 80%); font-size: .84rem; font-weight: 500; }
.ui-nav li .ic { width: 16px; height: 16px; opacity: .85; }
.ui-nav li em { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: rgb(255 255 255 / 12%); color: #fff; font: 700 .66rem/18px var(--a-font); font-style: normal; text-align: center; }
.ui-nav li em.warn { background: var(--a-marigold); color: #241600; }
.ui-nav li.on { background: rgb(255 255 255 / 13%); color: #fff; box-shadow: inset 2px 0 0 var(--a-gold); }
.ui-nav .ui-nav-h { margin-top: 10px; padding: 4px 10px; color: rgb(255 255 255 / 42%); font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ui-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px 8px 0; border-top: 1px solid rgb(255 255 255 / 10%); }
.ui-me b { display: block; font-size: .8rem; }
.ui-me small { color: rgb(255 255 255 / 55%); font-size: .7rem; }
.ui-me .ui-av { width: 30px; height: 30px; }
.ui-top { gap: 12px; min-height: 50px; padding: 0 18px; background: #fff; }
.crumb { color: var(--a-soft); font-size: .84rem; }
.crumb i { margin: 0 4px; font-style: normal; opacity: .5; }
.crumb b { color: var(--a-ink); font-weight: 600; }
.ui-top .crumb { margin-right: auto; }
.ui-pill { padding: 3px 10px; border: 1px solid var(--a-line); border-radius: 999px; color: var(--a-soft); font-size: .76rem; font-weight: 600; }
.ui-bell { position: relative; display: grid; place-items: center; color: var(--a-soft); }
.ui-bell .ic { width: 18px; height: 18px; }
.ui-bell i { position: absolute; top: 0; right: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--a-danger); box-shadow: 0 0 0 2px #fff; }
.ui-av.sm { width: 26px; height: 26px; font-size: .64rem; }
.ui-mini-top { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--a-line); background: #fff; font-family: var(--a-font); }
.ui-mini-top > b { font: 700 1rem "Cabinet Grotesk", var(--a-font); letter-spacing: -0.035em; }
.ui-mini-top .crumb { padding-left: 12px; border-left: 1px solid var(--a-line); }
.ui-mini-top .ui-kbd { color: var(--a-soft); }
/* surfaces: one radius, one hairline, one lift */
.ui-answer, .ui-chart, .ui-tile, .ui-card, .ui-table, .ph-card, .ph-ring-row, .fam-today, .ui-alert { border-radius: 10px; }
.ui-answer, .ui-tile, .ui-card { box-shadow: 0 1px 2px rgb(20 36 59 / 5%); }
.ui-hello { font-size: 1.35rem; }

/* section rhythm */
.notices { background: var(--paper); }
.jobs { background: var(--paper-2); }
.bento-sec { background: var(--paper); }

/* =========================================================================================
   Insights feed
   ======================================================================================= */
.notices-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--s6); }
.notices .sec-head { margin: 0; }
.feed-window { box-shadow: var(--frame); }
.feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.feed-list { display: grid; gap: 10px; min-height: 420px; align-content: start; }
.insight { display: grid; grid-template-columns: 36px minmax(0, 1fr) 96px; gap: 4px 14px; padding: 14px; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(20 36 59 / 5%); animation: feedin .6s var(--ease) both; }
.insight.out { animation: feedout .4s var(--ease) both; }
@keyframes feedin { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
@keyframes feedout { to { opacity: 0; transform: translateY(10px); } }
.insight .badge-ic { grid-row: span 3; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: hsl(var(--h) 70% 94%); color: hsl(var(--h) 55% 38%); }
.insight .badge-ic .ic { width: 19px; height: 19px; }
.insight b { font-size: .92rem; }
.insight .why { grid-column: 2; color: var(--a-soft); font-size: .8rem; line-height: 1.45; }
.insight .viz { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
.insight .acts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.insight .acts span { padding: 5px 10px; border: 1px solid var(--a-line); border-radius: 7px; font-size: .74rem; font-weight: 600; }
.insight .acts span:first-child { border-color: var(--a-navy); background: var(--a-navy); color: #fff; }
.insight time { grid-column: 3; justify-self: end; color: var(--a-soft); font-size: .7rem; }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.mini-bars i { flex: 1; height: calc(var(--v) * 100%); border-radius: 2px 2px 0 0; background: #c9d8ec; }
.mini-bars i.hot { background: var(--a-danger); }
.mini-spark { width: 96px; height: 34px; overflow: visible; }
.mini-spark path { fill: none; stroke: var(--a-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mini-spark.down path { stroke: var(--a-danger); }

/* =========================================================================================
   Bento: everything else
   ======================================================================================= */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); }
.tile { position: relative; display: flex; flex-direction: column; gap: var(--s3); min-height: 340px; padding: var(--s4); border-radius: 20px; background: var(--paper-2); overflow: hidden; }
.tile header h3 { font-size: 28px; }
.tile header p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.t-adm { grid-column: span 4; } .t-pay { grid-column: span 2; }
.t-lang, .t-group, .t-cmd { grid-column: span 2; }
.t-acc { grid-column: span 6; flex-direction: row; align-items: center; justify-content: space-between; min-height: 0; }
.t-acc header { max-width: 26rem; }
.tile > div:last-child, .tile > ul:last-child { margin-top: auto; }
.t-acc > div:last-child { margin-top: 0; }

.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; font-family: var(--a-font); }
.kanban .col { display: grid; align-content: start; gap: 6px; min-height: 150px; padding: 10px; border-radius: 12px; background: rgb(255 255 255 / 55%); }
.kanban p { display: flex; justify-content: space-between; color: var(--a-soft); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kanban p b { color: var(--a-ink); }
.kc { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--a-line); border-radius: 9px; background: #fff; color: var(--a-ink); font-size: .74rem; font-weight: 600; box-shadow: 0 1px 2px rgb(20 36 59 / 6%); transition: transform .7s var(--ease), opacity .4s var(--ease); }
.kc i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: hsl(var(--h) 60% 88%); color: hsl(var(--h) 45% 28%); font-size: .58rem; font-style: normal; }
.kc.done { border-color: #bfe0cd; }
.kc.flying { opacity: 0; }

.pay { padding: 18px; border-radius: 16px; background: #fff; font-family: var(--a-font); box-shadow: 0 10px 30px -18px rgb(20 36 59 / 40%); }
.pay-top { display: flex; align-items: center; gap: 8px; color: var(--a-soft); font-size: .8rem; }
.pay-top .ic { width: 18px; height: 18px; color: var(--a-navy); }
.pay-top b { color: var(--a-ink); }
.pay-amt { margin: 10px 0 14px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; color: var(--a-ink); }
.pay-btn { display: grid; place-items: center; height: 42px; border-radius: 10px; background: var(--a-navy); color: #fff; font-weight: 700; font-size: .9rem; transition: background .3s var(--ease); }
.pay-btn.paid { background: var(--a-success); }
.pay-note { margin-top: 10px; color: var(--a-success); font-size: .76rem; font-weight: 600; opacity: 0; transition: opacity .4s var(--ease); }
.pay-note.on { opacity: 1; }

.lang-msg { padding: 16px; border-radius: 16px 16px 16px 4px; background: #fff; font-family: var(--a-font); box-shadow: 0 10px 30px -18px rgb(20 36 59 / 40%); }
.lang-msg small { color: var(--a-soft); font-size: .72rem; font-weight: 700; }
.lang-msg p { min-height: 3em; margin: 6px 0 10px; color: var(--a-ink); font-size: .98rem; line-height: 1.45; transition: opacity .35s var(--ease), filter .35s var(--ease); }
.lang-msg p.swap { opacity: 0; filter: blur(4px); }
.lang-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #eef3fb; color: #1d5bab; font-size: .72rem; font-weight: 700; }
.lang-tag .ic { width: 14px; height: 14px; }

.campus { display: grid; gap: 8px; font-family: var(--a-font); }
.campus li { position: relative; display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #fff; overflow: hidden; }
.campus .ic { width: 18px; height: 18px; color: var(--red); }
.campus b { display: block; font-size: .86rem; }
.campus small { color: var(--a-soft); font-size: .72rem; }
.campus em { font-style: normal; font-weight: 800; font-size: .92rem; }
.campus li > i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--a-blue) calc(var(--w) * 100%), transparent 0); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.campus.in li > i { transform: none; }

.cmd { border-radius: 14px; background: #fff; font-family: var(--a-font); box-shadow: 0 20px 40px -20px rgb(20 36 59 / 45%); overflow: hidden; }
.cmd-in { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--a-line); font-size: .95rem; font-weight: 600; min-height: 46px; }
.cmd-in .ic { width: 17px; height: 17px; color: var(--a-soft); }
.cmd-res { padding: 6px; min-height: 150px; }
.cmd-res li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: .8rem; animation: settle .3s var(--ease) both; }
.cmd-res li:first-child { background: #eef3fb; }
.cmd-res small { color: var(--a-soft); font-size: .7rem; }

.acc { display: flex; align-items: center; gap: var(--s4); font-family: var(--a-font); }
.acc-file { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px -18px rgb(20 36 59 / 40%); }
.acc-file .ic { width: 30px; height: 30px; color: var(--red); }
.acc-file b { display: block; font-size: .95rem; }
.acc-file small { color: var(--a-soft); font-size: .78rem; }
.acc-std { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; }
.acc-std li { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 15px; }
.acc-std li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--hair); transition: background .3s var(--ease), border-color .3s var(--ease); }
.acc-std li.ok i { border-color: var(--a-success); background: var(--a-success); }
.acc-std li.ok i::after { content: "✓"; color: #fff; font-size: .62rem; font-style: normal; }

@media (max-width: 1100px) {
  .t-adm { grid-column: span 6; } .t-pay { grid-column: span 3; } .t-lang { grid-column: span 3; } .t-group, .t-cmd { grid-column: span 3; }
  .t-acc { flex-direction: column; align-items: stretch; }
  .acc { flex-wrap: wrap; }
}
@media (max-width: 980px) {
  .notices-grid { grid-template-columns: 1fr; }
  .ui-app { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile { grid-column: auto !important; min-height: 0; padding: var(--s3); }
  .kanban { grid-template-columns: 1fr 1fr; }
  .insight { grid-template-columns: 32px minmax(0, 1fr); }
  .insight .viz, .insight time { display: none; }
  .acc-std { grid-template-columns: 1fr; }
  .ui-mini-top .ui-kbd { display: none; }
  .feed-head .ui-seg { display: none; }
}

.acc-std { grid-template-columns: repeat(2, minmax(220px, auto)); }
.acc-std li { white-space: nowrap; }
@media (max-width: 640px) { .acc-std { grid-template-columns: 1fr; } .acc-std li { white-space: normal; } }

/* =========================================================================================
   PRODUCT INTERFACE SYSTEM (v50)
   One type scale, one colour per subject, one set of statuses, rows not cards.
   ======================================================================================= */
:root {
  --c-ma: #3c78d8; --c-en: #d9614a; --c-sc: #23946a; --c-hu: #c08a1e; --c-ge: #1f97b0;
  --c-la: #8159cc; --c-ar: #cf4f8c; --c-ga: #66808f; --c-co: #4d5bd1;
  --st-ok: #1d8a5a; --st-warn: #c47f00; --st-bad: #c4321f;
  --p-line: #e6e7e1; --p-ink: #14243b; --p-soft: #6b737c; --p-bg: #fbfbf9;
}
/* panes: a screen without fake browser chrome */
.pane, .flow-dash { overflow: hidden; border: 1px solid rgb(20 36 59 / 10%); border-radius: 14px; background: var(--p-bg); color: var(--p-ink); font-family: var(--a-font); font-size: 14px; line-height: 1.4; box-shadow: var(--frame); }
.pane-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--p-line); background: #fff; }
.pane-bar .crumb { margin-right: auto; }
.pane-tools { display: flex; align-items: center; gap: 12px; color: var(--p-soft); }
.pane-body { padding: 20px 22px 22px; }
.p-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p-head h5 { margin: 0; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; }
.p-head p { margin-top: 2px; color: var(--p-soft); font-size: .82rem; }
.p-foot { margin-top: 12px; color: var(--p-soft); font-size: .78rem; }
.p-label { display: flex; justify-content: space-between; margin: 18px 0 4px; color: var(--p-soft); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.p-label span { letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--st-warn); }
.d-greet { font-size: 1.45rem; font-weight: 750; letter-spacing: -.025em; }
.d-when { margin-top: 2px; color: var(--p-soft); font-size: .84rem; }
.pane .ui-alert, .flow-dash .ui-alert { margin-top: 14px; border-radius: 10px; }

/* stats: numbers on hairlines, no boxes */
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 16px; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { padding: 14px 16px 14px 0; }
.stat + .stat { padding-left: 16px; border-left: 1px solid var(--p-line); }
.stat small { display: block; color: var(--p-soft); font-size: .74rem; font-weight: 600; }
.stat b { display: block; margin-top: 2px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.035em; }
.stat b span { color: var(--p-soft); font-size: .8rem; font-weight: 600; letter-spacing: 0; }
.stat.big b { font-size: 2.6rem; line-height: 1; margin-top: 6px; }
.stat.bump { animation: bump2 .8s var(--ease); }
@keyframes bump2 { 30% { background: var(--a-gold-tint); } }

/* rows: one pattern for people, money and lessons */
.rows { border-top: 1px solid var(--p-line); }
.rows li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--p-line); }
.rows li > div { flex: 1; min-width: 0; }
.rows b { display: block; font-size: .9rem; }
.rows small { color: var(--p-soft); font-size: .78rem; }
.st { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--p-soft); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c9cdd2; }
.st.warn::before { background: var(--st-warn); } .st.warn { color: #8a5a00; }
.st.new::before { background: var(--a-blue); }
.ui-av { width: 30px; height: 30px; font-size: .68rem; }
.rows.fees li { gap: 14px; }
.late { display: flex; align-items: center; gap: 8px; width: 110px; flex: none; }
.late i { flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, #e9b98a calc(var(--d) * 100%), #eeefea 0); }
.late i.hot { background: linear-gradient(90deg, var(--st-bad) calc(var(--d) * 100%), #eeefea 0); }
.late em { width: 28px; color: var(--p-soft); font-size: .74rem; font-style: normal; font-weight: 700; text-align: right; }
.amt { width: 54px; flex: none; text-align: right; font-size: .88rem !important; }
.rows.fees .st { width: 82px; justify-content: flex-start; }

/* dashboard hero chart */
.d-hero { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 18px; margin-top: 18px; }
.d-hero small { display: block; color: var(--p-soft); font-size: .74rem; font-weight: 600; }
.d-hero b { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.d-hero em { color: var(--st-ok); font-size: .78rem; font-style: normal; font-weight: 700; }
.d-area { width: 100%; height: auto; overflow: visible; }
.d-area .a { fill: rgb(60 120 216 / 9%); }
.d-area .l { fill: none; stroke: var(--c-ma); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s var(--ease); }
.d-area circle { fill: #fff; stroke: var(--c-ma); stroke-width: 2; }
.d-area circle.last { fill: var(--c-ma); }
.d-area text { fill: var(--p-soft); font: 600 10px var(--a-font); text-anchor: middle; }
.role-panel.is-on .d-area .l, .d-area.in .l { stroke-dashoffset: 0; }

/* timetable cells in subject colour */
.tt-grid .c { border-radius: 5px; background: #f0f1ec; }
.tt-grid .c.on { background: color-mix(in srgb, var(--sc) 13%, #fff); box-shadow: inset 3px 0 0 var(--sc); color: var(--p-ink); }
.tt-grid .c.lock { box-shadow: inset 3px 0 0 var(--sc), inset 0 0 0 1.5px var(--a-gold); }
.tt-bar i { background: var(--p-ink); }

/* cover: each teacher's day as six periods */
.day-key { display: flex; gap: 4px; justify-content: flex-end; margin: 0 52px 6px 0; }
.day-key span { width: 20px; color: var(--p-soft); font-size: .62rem; font-weight: 700; text-align: center; }
.day-key .now { color: var(--p-ink); }
.cv-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--p-line); }
.cv-list li > div { flex: 1; min-width: 0; }
.cv-list li.limit { opacity: .55; }
.cv-list li.top { margin: 0 -10px; padding: 10px; border-radius: 10px; background: #edf3fc; border-top-color: transparent; }
.day { display: flex; gap: 4px; }
.day i { width: 20px; height: 18px; border-radius: 4px; background: #eef0ea; }
.day i.busy { background: #c7cfdb; }
.day i.now { box-shadow: 0 0 0 1.5px var(--p-ink); }
.day i.now:not(.busy) { background: #d9efe3; }
.cv-list em { width: 40px; text-align: right; font-size: 1.05rem; }

/* report card */
.rc-rows { border-top: 1px solid var(--p-line); }
.rc-rows li { display: grid; grid-template-columns: 110px 1fr 32px 40px; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--p-line); }
.rc-s { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; }
.rc-s::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.rc-bar { height: 6px; border-radius: 6px; background: #eeefea; overflow: hidden; }
.rc-bar i { display: block; height: 100%; width: calc(var(--m) * 100%); border-radius: 6px; background: var(--sc); }
.rc-rows b { text-align: right; font-size: .9rem; }
.rc-quote { margin: 14px 0 0; padding-left: 12px; border-left: 2px solid var(--p-line); font-size: .9rem; font-style: italic; }
.rc-quote cite { display: block; margin-top: 4px; color: var(--p-soft); font-size: .74rem; font-style: normal; }

/* =========================== mobile app =========================== */
.phone { width: 300px; padding: 8px; border-radius: 46px; background: #0e1219; box-shadow: 0 0 0 1px rgb(255 255 255 / 6%) inset, 0 40px 80px -36px rgb(20 28 40 / 60%); }
.phone-screen { position: relative; display: flex; flex-direction: column; min-height: 600px; padding: 50px 18px 76px; border-radius: 38px; background: #f8f8f5; color: var(--p-ink); font-family: var(--a-font); font-size: 14px; overflow: hidden; }
.phone-screen::before { top: 12px; width: 86px; height: 24px; background: #0e1219; }
.m-over { color: var(--p-soft); font-size: .74rem; font-weight: 600; }
.m-title { margin: 2px 0 14px; font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.m-label { margin: 16px 0 6px; color: var(--p-soft); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.m-tabs { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px 18px; border-top: 1px solid var(--p-line); background: rgb(248 248 245 / 92%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.m-tabs span { display: grid; justify-items: center; gap: 2px; color: #9aa1a8; }
.m-tabs .ic { width: 20px; height: 20px; }
.m-tabs small { font-size: .6rem; font-weight: 600; }
.m-tabs .on { color: var(--p-ink); }
.m-btn { display: grid; place-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--p-ink); color: #fff; font-size: .84rem; font-weight: 700; }
.m-now { display: grid; gap: 2px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--sc) 12%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sc) 22%, transparent); }
.m-now small { color: var(--sc); font-size: .74rem; font-weight: 700; }
.m-now b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.m-now > span:not(.m-btn) { color: var(--p-soft); font-size: .8rem; }
.m-now .m-btn { margin-top: 12px; background: var(--sc); }
.m-day { margin-top: 12px; }
.m-day li { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 11px 0 11px 0; border-bottom: 1px solid var(--p-line); }
.m-day li::before { content: ""; position: absolute; left: 46px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--sc); }
.m-day time { color: var(--p-soft); font-size: .74rem; font-weight: 600; }
.m-day b { padding-left: 10px; font-size: .88rem; }
.m-day small { color: var(--p-soft); font-size: .72rem; }
.m-day li.done { opacity: .5; }
.m-day li.cover small { color: #8a5a00; font-weight: 700; }
.m-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.m-stats div { padding: 10px 0; text-align: center; }
.m-stats div + div { border-left: 1px solid var(--p-line); }
.m-stats b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.m-stats small { color: var(--p-soft); font-size: .66rem; font-weight: 600; }
.m-status { display: grid; grid-template-columns: 12px 1fr; column-gap: 8px; align-items: center; }
.m-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--st-ok); box-shadow: 0 0 0 4px rgb(29 138 90 / 16%); }
.m-status b { font-size: 1rem; }
.m-status span { grid-column: 2; color: var(--p-soft); font-size: .8rem; }
.m-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(20 36 59 / 6%), 0 0 0 1px var(--p-line); }
.m-action small { color: var(--p-soft); font-size: .72rem; font-weight: 600; }
.m-action b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.m-action span:not(.m-btn) { color: var(--st-warn); font-size: .74rem; font-weight: 700; }
.m-msg { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.m-msg p { padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: #e9edf3; font-size: .84rem; line-height: 1.4; }
.m-msg small { display: block; color: var(--p-soft); font-size: .68rem; font-weight: 700; }

/* register */
.reg-grid { grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
.reg-foot { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 8px; margin: 0; text-align: center; }
.reg-save { height: 46px; border-radius: 14px; font-size: .9rem; }
.flow-phone .phone-screen { padding-bottom: 110px; }

/* family status (register result) */
.fam-today { border-radius: 16px; }

/* role panels hold one screen, centred */
.role-screen { justify-items: center; }
.role-screen > .pane { width: 100%; }

/* bento: visuals sit on the bottom edge and bleed */
.tile { padding-bottom: 0; min-height: 0; }
.tile > :last-child { margin: auto calc(-1 * var(--s4)) 0; border-radius: 16px 16px 0 0; }
.tile .pay, .tile .lang, .tile .cmd, .tile .campus, .tile .kanban { padding: 18px 20px 20px; background: rgb(255 255 255 / 70%); box-shadow: none; }
.tile .lang-msg { box-shadow: 0 1px 2px rgb(20 36 59 / 6%); }
.tile .cmd { background: #fff; }
.t-acc { padding-bottom: var(--s4); }
.t-acc > :last-child { margin: 0; border-radius: 0; }

.hide-sm { }
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .pane-body { padding: 16px 14px 18px; }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .stats .stat:nth-child(2) { padding-left: 0; border-left: 0; }
  .stat { border-top: 1px solid var(--p-line); }
  .d-hero { grid-template-columns: 1fr; }
  .rows.fees .st, .rows.fees small { display: none; }
  .late { width: 70px; }
  .day-key { display: none; }
  .day i { width: 12px; }
  .rc-rows li { grid-template-columns: 90px 1fr 28px 36px; gap: 8px; }
  .tile > :last-child { margin-inline: calc(-1 * var(--s3)); }
}
.stat.big b span { color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; }
.acc-file { flex: none; min-width: 230px; }
@media (max-width: 980px) { .ui-side { display: none; } }
.reg-save { width: 100%; }

/* Tabs never change the section's height: panels share one cell, the tallest sets it. */
.role-stack { display: grid; margin-top: var(--s5); }
.role-stack > .role-panel { grid-area: 1 / 1; margin-top: 0; min-height: 0; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .35s; animation: none; }
.role-stack > .role-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease) .05s, transform .45s var(--ease) .05s, visibility 0s; }
/* steady heights */
.insight { height: var(--card-h, auto); animation-name: feedfade; }
@keyframes feedfade { from { opacity: 0; } }
.feed-list { min-height: calc(3 * var(--card-h, 140px) + 20px); }
.flow-controls { min-height: 48px; }
.flow-controls [data-flow-status] { min-height: 1.6em; }
.sign .status { min-height: 1.6em; flex-basis: 100%; }
@media (max-width: 640px) { .flow-controls [data-flow-status] { min-height: 3.2em; } .sign .status { min-height: 3.2em; } }
.dots { height: 24px; align-content: flex-start; overflow: hidden; }
.blank.bad input { border-bottom: 1px solid #e8836f; box-shadow: 0 1px 0 #e8836f; }
.sign .status { line-height: 1.5; min-height: 3em; }
@media (max-width: 640px) { .sign .status { min-height: 4.5em; } }
.acc-std li i { flex: none; }
.ic, .ui-av, .fc-dot, .face, .st::before, .m-status i { flex-shrink: 0; }

/* =========================================================================================
   Type: Newsreader for display (optical sizes), Plus Jakarta Sans for everything else
   ======================================================================================= */
:root { --serif: "Newsreader", "Iowan Old Style", Georgia, serif; --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
body { font-family: var(--sans); font-size: 16.5px; }
.display, .h2, h3, .m-step h3, .role-text h3, .tile header h3, .vaults h3, .letter, .ledger tbody th, .letter-group h3, .index-note, .sent, .entry .where { font-optical-sizing: auto; }
.display { font-weight: 450; letter-spacing: -0.035em; line-height: .95; font-size: clamp(52px, 7vw, 100px); }
.display em { font-weight: 400; }
.h2 { font-weight: 450; letter-spacing: -0.03em; line-height: 1.02; }
h3, .m-step h3, .role-text h3, .tile header h3, .vaults h3 { font-weight: 500; letter-spacing: -0.02em; }
.letter { font-weight: 400; letter-spacing: -0.01em; }
.lede, .sub { letter-spacing: -0.005em; }
.kicker { font-weight: 600; letter-spacing: 0; }

/* =========================================================================================
   Cover: leave → rank → offer → accepted, told as four steps
   ======================================================================================= */
.cv-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; counter-reset: s; }
.cv-steps li { position: relative; padding-top: 10px; color: #a3a9b0; font-size: .74rem; font-weight: 700; counter-increment: s; transition: color .3s var(--ease); }
.cv-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: #e8e9e4; transition: background .4s var(--ease); }
.cv-steps li.done { color: var(--p-ink); }
.cv-steps li.done::before { background: var(--st-ok); }
.cv-steps li.on { color: var(--p-ink); }
.cv-steps li.on::before { background: linear-gradient(90deg, var(--a-blue) 50%, #e8e9e4 50%); background-size: 200% 100%; animation: fill 1.2s var(--ease) forwards; }
@keyframes fill { from { background-position: 100% 0; } to { background-position: 0 0; } }
.cv-lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 12px; background: #fff; transition: border-color .4s var(--ease), background .4s var(--ease); }
.cv-lesson > div { flex: 1; min-width: 0; }
.cv-lesson b { display: block; font-size: .95rem; }
.cv-lesson small { color: var(--p-soft); font-size: .78rem; }
.cv-sub { width: 4px; align-self: stretch; border-radius: 4px; background: var(--sc); }
.cv-state { flex: none; padding: 4px 10px; border-radius: 999px; background: #f2f3ef; color: var(--p-soft); font-size: .74rem; font-weight: 700; transition: background .3s, color .3s; }
.cv-lesson.alert { border-color: #f0c9a0; background: #fffaf2; }
.cv-lesson.alert .cv-state { background: #fdebd2; color: #8a5a00; animation: pulse 1.4s ease-in-out infinite; }
.cv-lesson.covered { border-color: #bfe0cd; background: #f4fbf7; }
.cv-lesson.covered .cv-state { background: var(--st-ok); color: #fff; animation: none; }
@keyframes pulse { 50% { opacity: .55; } }
.day-key { margin: 14px 52px 4px 0; }
.cv-list li { opacity: .18; transform: none; transition: opacity .4s var(--ease), background .4s var(--ease); }
.cv-list li.in { opacity: 1; }
.cv-list li.limit.in { opacity: .5; }
.whys { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.why { padding: 1px 7px; border-radius: 999px; background: #eef4ec; color: #2d6a48; font-size: .66rem; font-weight: 700; }
.why.no { background: #fbeae6; color: var(--a-danger); }
.cv-list li.top { background: #edf3fc; box-shadow: inset 0 0 0 1.5px var(--a-blue); }
.day i.now { box-shadow: 0 0 0 1.5px var(--a-blue); }
.cv-list li.in .day i.now:not(.busy) { background: #bfe6cf; }
.cv-toast { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--p-ink); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease), background .4s var(--ease); }
.cv-toast.in { opacity: 1; transform: none; }
.cv-toast > div { flex: 1; }
.cv-toast b { display: block; font-size: .86rem; }
.cv-toast small { color: rgb(255 255 255 / 70%); font-size: .74rem; }
.cv-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgb(255 255 255 / 15%); opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s var(--ease); }
.cv-toast.ok { background: var(--st-ok); }
.cv-toast.ok .cv-tick { opacity: 1; transform: none; }
.m-stage { height: 520px; }
@media (max-width: 640px) { .m-stage { height: 560px; } .whys .why:nth-child(n+3) { display: none; } .cv-steps li { font-size: .66rem; } }
@media (prefers-reduced-motion: reduce) { .cv-list li { opacity: 1; } .cv-toast.in { transform: none; } }
.cv-list li.limit:not(.in) { opacity: .18; }

/* =========================================================================================
   Features page
   ======================================================================================= */
.fnav { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin-top: calc(-1 * var(--s3)); padding: 10px 0; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fnav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: border-color .2s, color .2s; }
.fnav a:hover { border-color: var(--ink); color: var(--ink); }
.fnav .ic { width: 17px; height: 17px; color: var(--red); }
.fgroup { padding-block: var(--s7); border-top: 1px solid var(--hair); }
.fgroup:nth-of-type(odd) { background: var(--paper-2); }
.fgroup-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: start; }
.fgroup-side { position: sticky; top: 140px; }
.fgroup .kicker { display: flex; align-items: center; gap: 8px; }
.fgroup .kicker .ic { width: 18px; height: 18px; }
.fcount { margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: rgb(194 54 36 / 10%); font-size: 13px; }
.fgroup .h2 { font-size: clamp(30px, 3.2vw, 42px); }
.fv { margin-top: var(--s4); }
.fv .m-msg.me { justify-content: flex-end; margin-top: 8px; }
.fv .m-msg.me p { background: var(--p-ink); color: #fff; border-radius: 16px 16px 4px 16px; }
.fv .d-hero { margin-top: 0; }
.fcells { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s4); }
.fcell { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--hair); }
.fcell .ic { width: 22px; height: 22px; margin-top: 1px; color: var(--red); }
.fcell b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.fcell p { margin-top: 3px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.opt { padding: 1px 7px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); font-size: 11px; font-weight: 600; }
.fgroup:nth-of-type(odd) .opt { background: var(--paper); }
.swaps2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s3); }
.swaps2 li { padding: var(--s3); border-radius: 16px; background: var(--paper-2); }
.swaps2 h3 { font-size: 26px; }
.swaps2 .was { margin-top: var(--s2); color: var(--ink-3); font-size: 15px; text-decoration: line-through; text-decoration-color: rgb(194 54 36 / 50%); }
.swaps2 p:last-child { margin-top: 6px; color: var(--ink); font-size: 16px; }
.fcta { padding-block: var(--s7); }
.fcta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.fcta .h2 { color: var(--paper); }
@media (max-width: 980px) { .fgroup-grid { grid-template-columns: 1fr; } .fgroup-side { position: static; } }
@media (max-width: 640px) { .fcells { grid-template-columns: 1fr; } .fgroup { padding-block: var(--s6); } .fnav { top: 56px; overflow-x: auto; flex-wrap: nowrap; } .fnav a { white-space: nowrap; } }

/* ===================== Version B: one tap, told in three beats ===================== */
.flow-lines { display: none; }
.flow-stage .flow-col { transition: opacity .5s var(--ease), filter .5s var(--ease), transform .6s var(--ease); }
.flow-stage[data-focus="1"] .flow-col:not(:nth-child(2)),
.flow-stage[data-focus="2"] .flow-col:not(:nth-child(3)),
.flow-stage[data-focus="3"] .flow-col:not(:nth-child(4)) { opacity: .35; filter: saturate(.4); transform: scale(.97); }
.flow-stage[data-focus="1"] .flow-col:nth-child(2) .flow-cap span,
.flow-stage[data-focus="2"] .flow-col:nth-child(3) .flow-cap span,
.flow-stage[data-focus="3"] .flow-col:nth-child(4) .flow-cap span { background: var(--red); border-color: var(--red); color: #fff; }
.fly { position: fixed; z-index: 100; margin: 0; pointer-events: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--a-danger), 0 12px 24px -8px rgb(180 35 24 / 50%) !important; filter: none !important; }
.fly::after { content: "✕"; background: var(--a-danger); }
.push { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 5; display: flex; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgb(255 255 255 / 86%); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: 0 10px 30px -10px rgb(20 28 40 / 40%), 0 0 0 1px rgb(20 28 40 / 6%); transform: translateY(-120%); opacity: 0; transition: transform .55s cubic-bezier(.2,1.2,.3,1), opacity .3s; }
.push.in { transform: none; opacity: 1; }
.push-app { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--p-ink); color: #fff; font: 700 1rem "Cabinet Grotesk", var(--a-font); }
.push > div { flex: 1; min-width: 0; }
.push p { display: flex; justify-content: space-between; color: var(--p-soft); font-size: .66rem; }
.push p b { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.push strong { display: block; color: var(--a-danger); font-size: .84rem; }
.push.ok strong { color: var(--st-ok); }
.push small { display: block; color: var(--p-ink); font-size: .74rem; }
.stat.bump b { animation: tick .45s var(--ease); }
@keyframes tick { 40% { transform: scale(1.18); color: var(--a-danger); } }

/* =========================================================================================
   Who it's for: role list on the left, one fixed stage on the right
   ======================================================================================= */
.roles-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s6); align-items: stretch; }
.roles-side .sub { margin-top: var(--s2); }
.rl-list { margin-top: var(--s5); border-top: 1px solid var(--hair); }
.rl { border-bottom: 1px solid var(--hair); }
.rl button { display: grid; gap: 4px; width: 100%; padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer; }
.rl-who { color: var(--ink-3); font-size: 14px; font-weight: 600; transition: color .25s var(--ease); }
.rl-h { color: var(--ink-3); font-family: var(--serif); font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; transition: color .25s var(--ease); }
.rl button:hover .rl-h { color: var(--ink-2); }
.rl.is-on .rl-who { color: var(--red); }
.rl.is-on .rl-h { color: var(--ink); font-size: 30px; }
.rl-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.rl-more > ul { min-height: 0; overflow: hidden; margin: 0; }
.rl.is-on .rl-more { grid-template-rows: 1fr; }
.rl-more .icon-list li { padding: 10px 0; font-size: 16px; }
.rl-more .icon-list li:first-child { border-top: 0; }
.rl-more .icon-list li:last-child { border-bottom: 0; padding-bottom: 20px; }
.roles-stage { position: relative; display: grid; min-height: 660px; border-radius: 24px; background: var(--paper-2); overflow: hidden; }
.roles-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 50% 40%, rgb(255 255 255 / 55%), transparent 70%); }
.roles-stage > .role-panel { grid-area: 1 / 1; position: relative; display: grid; place-items: center; padding: var(--s5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s linear .35s; }
.roles-stage > .role-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease) .05s, transform .45s var(--ease) .05s, visibility 0s; }
.roles-stage .pane { width: 100%; max-width: 560px; }
.roles { background: var(--paper); }
@media (max-width: 980px) {
  .roles-grid { grid-template-columns: 1fr; }
  .roles-stage { min-height: 0; }
}
@media (max-width: 640px) {
  .roles-stage > .role-panel { padding: var(--s3) 12px; }
  .rl.is-on .rl-h { font-size: 26px; }
  .rl-h { font-size: 20px; }
}
.roles-stage { grid-template-columns: minmax(0, 1fr); }
.roles-stage > .role-panel { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.roles-stage > .role-panel > .pane { width: 100%; max-width: 580px; }
@media (max-width: 640px) {
  .rl.is-on .rl-h, .rl-h { font-size: 20px; }
  .roles-stage #role-lead .p-label, .roles-stage #role-lead .rows { display: none; }
  .roles-stage #role-office .rows.fees li:nth-child(n+4) { display: none; }
}
@media (min-width: 641px) { .rl.is-on .rl-h { min-height: calc(2 * 1.15em); } }

/* =========================================================================================
   Who it's for: pinned, scroll steps through the four roles
   ======================================================================================= */
.roles { position: relative; height: calc(100svh * 3.2); padding: 0; }
.roles-pin { position: sticky; top: 64px; display: flex; align-items: center; height: calc(100svh - 64px); padding-block: var(--s4); overflow: hidden; }
.roles-pin > .wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.roles-grid { height: 100%; max-height: 720px; }
.roles-stage { min-height: 0; height: 100%; }
.roles-stage > .role-panel { padding: var(--s4); }
.roles-stage > .role-panel > * { transform-origin: center; }
.rl-bar { display: block; height: 2px; margin: -18px 0 16px; background: transparent; }
.rl-bar i { display: block; height: 100%; width: calc(var(--fill, 0) * 100%); background: var(--red); transition: width .12s linear; }
.rl button { position: relative; }
.rl-steps { display: none; }
@media (max-height: 760px) and (min-width: 981px) { .roles-side .sub { display: none; } .rl button { padding: 12px 0; } .rl-bar { margin: -12px 0 10px; } }
@media (max-width: 980px) {
  .roles { height: calc(100svh * 4); }
  .roles-pin { top: 56px; height: calc(100svh - 56px); padding-block: var(--s2); }
  .roles-grid { display: flex; flex-direction: column; gap: var(--s2); height: 100%; max-height: none; }
  .roles-side .sub { display: none; }
  .roles-side .h2 { font-size: 30px; }
  .roles-side .kicker { margin-bottom: 8px; }
  .rl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: var(--s2); }
  .rl-steps i { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red) calc(var(--fill, 0) * 100%), var(--hair) 0); }
  .rl-list { margin-top: 10px; border: 0; }
  .rl { display: none; border: 0; }
  .rl.is-on { display: block; }
  .rl button { padding: 4px 0; }
  .rl-bar, .rl-more { display: none; }
  .rl.is-on .rl-h, .rl-h { font-size: 20px; min-height: 0; }
  .roles-stage { flex: 1; min-height: 0; border-radius: 20px; }
  .roles-stage > .role-panel { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .roles-stage > .role-panel { transition: none; } }
/* fit the pinned view to the window */
.roles-stage { grid-template-rows: minmax(0, 1fr); }
.roles-stage > .role-panel { min-height: 0; overflow: hidden; }
.roles-side { display: flex; flex-direction: column; min-height: 0; }
.roles-side .h2 { font-size: clamp(32px, 3.4vw, 46px); }
.roles-side .sub { margin-top: 10px; font-size: 18px; }
.rl-list { margin-top: var(--s4); }
.rl button { padding: 14px 0; }
.rl-bar { margin: -14px 0 12px; }
.rl-h { font-size: 21px; }
.rl.is-on .rl-h { font-size: 26px; min-height: 0; }
.rl-more .icon-list li { padding: 7px 0; font-size: 15px; }
.rl-more .icon-list li:last-child { padding-bottom: 14px; }
.rl:not(.is-on) .rl-bar i { background: rgb(194 54 36 / 35%); }
@media (max-height: 820px) and (min-width: 981px) { .roles-side .sub { display: none; } .roles-side .h2 { font-size: 34px; } .rl-list { margin-top: var(--s3); } .rl button { padding: 10px 0; } .rl-bar { margin: -10px 0 8px; } .rl-h { font-size: 18px; } .rl.is-on .rl-h { font-size: 22px; } }
.roles { height: calc(100svh * 2.6); }
@media (max-width: 980px) { .roles { height: calc(100svh * 3.2); } }

/* =========================================================================================
   Three jobs on phones: pinned, scroll moves through them (desktop unchanged)
   ======================================================================================= */
.m-pin { display: contents; }
.m-progress { display: none; }
@media (max-width: 980px) {
  .jobs-grid { display: block; position: relative; height: calc(100svh * 2.6); }
  .m-pin { position: sticky; top: 56px; display: flex; flex-direction: column; gap: 12px; height: calc(100svh - 56px); padding-block: 8px 16px; }
  .m-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; flex: none; }
  .m-progress i { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--red) calc(var(--fill, 0) * 100%), var(--hair) 0); }
  .m-steps { flex: none; display: grid; }
  .m-steps .m-step { grid-area: 1 / 1; min-height: 0; padding: 0; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
  .m-steps .m-step.is-on { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
  .m-step button { padding: 0; border: 0; pointer-events: none; }
  .m-step h3 { font-size: 24px; }
  .m-step p { margin-top: 6px; font-size: 15px; }
  .m-num { display: none; }
  .m-stage { position: relative; top: 0; order: 0; flex: 1; min-height: 0; height: auto !important; overflow: hidden; }
  .m-screen { inset: 0; }
}
@media (max-width: 980px) { .m-stage { align-self: stretch; width: 100%; } .m-screen > .pane { width: 100%; } }
@media (max-width: 640px) { .t-acc { padding: var(--s3); } .t-acc > :last-child { margin: 0 !important; } .acc { flex-direction: column; align-items: stretch; gap: var(--s3); } }
@media (max-width: 980px) { .rl.is-on .rl-h { display: block; min-height: calc(2 * 1.25em); line-height: 1.25; } }
@media (max-width: 980px) {
  .roles-stage > .role-panel, .roles-stage > .role-panel.is-on { transform: none; transition: opacity .15s linear, visibility 0s linear .15s; }
  .roles-stage > .role-panel.is-on { transition: opacity .15s linear, visibility 0s; }
  .m-screen, .m-screen.is-on { transform: none; transition: opacity .15s linear; }
  .m-steps .m-step, .m-steps .m-step.is-on { transition: opacity .15s linear; }
}
@media (max-width: 640px) { .fnav { scrollbar-width: none; padding-inline: 2px; } .fnav::-webkit-scrollbar { display: none; } .fnav a { flex: none; } }
@media (max-width: 640px) { .fnav { flex-wrap: wrap; overflow: visible; gap: 6px; } .fnav a { padding: 7px 12px; font-size: 14px; } }
@media (max-width: 640px) { .fnav { position: static; } }

/* =========================================================================================
   Intro film
   ======================================================================================= */
.intro { background: var(--paper-2); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: var(--s6); }
.intro-copy .sub { margin-top: var(--s2); }
.intro-facts { display: flex; gap: var(--s5); margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--hair); }
.intro-facts b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 500; line-height: 1; }
.intro-facts span { color: var(--ink-3); font-size: 14px; }
.film { position: relative; margin: 0; aspect-ratio: 4 / 5; max-height: 76svh; justify-self: center; width: 100%; max-width: 520px; overflow: hidden; border-radius: 24px; background: #f2f2f0; box-shadow: var(--frame); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; outline: none; cursor: pointer; }
.film-play { position: absolute; left: 50%; bottom: 28px; display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border: 0; border-radius: 999px; background: rgb(20 28 40 / 82%); color: #fff; font-size: 15px; font-weight: 600; transform: translateX(-50%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 16px 30px -14px rgb(20 28 40 / 60%); transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s; }
.film-play:hover { background: rgb(20 28 40 / 92%); }
.film-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.film-btn svg { width: 18px; height: 18px; fill: var(--ink); transform: translateX(1px); }
.film-label em { margin-left: 4px; color: rgb(255 255 255 / 60%); font-style: normal; font-weight: 500; }
.film.playing .film-play { opacity: 0; transform: translate(-50%, 10px); pointer-events: none; }
.film-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px; border-radius: 3px; background: rgb(20 28 40 / 12%); opacity: 0; transition: opacity .3s; }
.film.started .film-bar { opacity: 1; }
.film-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 3px; background: var(--red); }
.film.started:not(.playing) .film-play { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
@media (max-width: 980px) { .intro-grid { grid-template-columns: 1fr; } .film { max-height: none; } }
@media (max-width: 640px) { .intro-facts { gap: var(--s4); } .film-play { bottom: 20px; font-size: 14px; } }
.ui-top .ui-av, .ui-top .ui-bell, .pane-tools .ui-av { display: grid; place-items: center; padding: 0; flex: none; }
.ui-av.sm { width: 28px; height: 28px; font-size: .62rem; line-height: 1; }

/* =========================================================================================
   ONE SECTION = ONE SCREEN
   Every section is exactly a screen tall (minus the top bar) with its content
   centred. If a product picture is still too tall, main.js zooms it down to fit.
   Two sections are pinned scroll stories instead (three jobs, who it's for).
   ======================================================================================= */
:root { --nav: 65px; }
@media (max-width: 980px) { :root { --nav: 57px; } }
main > section:not(.roles):not(.jobs) { min-height: calc(100svh - var(--nav)); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(20px, 4.5vh, 56px) !important; }
main > section .sec-head { margin-bottom: clamp(16px, 3.5vh, 40px); }
.hero { padding-block: clamp(24px, 6vh, 72px) !important; }
.ask-sec { background: var(--paper); }
.ask-sec .frame { margin-top: 0; }
.ask-sec .proof { margin-top: clamp(16px, 3vh, 32px); }
.ask-sec .credit { margin-top: 12px; }
[data-fit] > * { flex: none; }

/* three jobs: pinned on every screen size */
.jobs { position: relative; height: calc(100svh * 2.6); padding: 0 !important; }
.jobs-pin { position: sticky; top: var(--nav); display: flex; flex-direction: column; height: calc(100svh - var(--nav)); padding-block: clamp(16px, 3.5vh, 40px); }
.jobs-pin > .sec-head { flex: none; }
.jobs-grid { flex: 1; min-height: 0; height: auto; align-items: center; }
.m-steps { align-self: center; }
.m-step { min-height: 0; padding: clamp(10px, 2vh, 20px) 0; }
.m-step button { opacity: 1; }
.m-stage { position: relative; top: 0; height: 100%; max-height: 600px; align-self: center; width: 100%; }
.m-screen { inset: 0 0 auto; }
@media (max-width: 980px) {
  .jobs { height: calc(100svh * 2.6); }
  .jobs-pin { padding-block: 12px 16px; }
  .jobs-pin > .sec-head { margin-bottom: 10px; }
  .jobs-pin > .sec-head .h2 { font-size: 28px; }
  .jobs-grid { display: flex; height: auto; }
  .m-pin { position: static; height: 100%; width: 100%; padding: 0; }
}

/* phones: long sections become one screen with sideways swiping */
@media (max-width: 760px) {
  .flow-stage { display: flex; gap: 0; max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .flow-stage::-webkit-scrollbar { display: none; }
  .flow-col { flex: 0 0 100%; scroll-snap-align: center; padding-inline: 4px; }
  .flow-col + .flow-col::before { content: none; }
  .flow-stage[data-focus] .flow-col { opacity: 1 !important; filter: none !important; transform: none !important; }
  .flow-controls { margin-top: 12px; min-height: 0; }
  .flow .sec-head .sub { font-size: 16px; }
  .bento { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .bento::-webkit-scrollbar { display: none; }
  .bento .tile { flex: 0 0 86%; scroll-snap-align: start; }
  .swipe-hint { display: block; }
  .notices .sub, .notices .icon-list { display: none; }
  .security .vaults { grid-template-columns: 1fr 1fr; gap: 10px; }
  .security .vaults li { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .security .vaults h3 { font-size: 19px; }
  .demo .next { display: none; }
  .demo .letter { font-size: 20px; margin-top: 16px; }
  .demo .letter > p + p { margin-top: 8px; }
  .intro-copy .sub { font-size: 16px; }
  .intro-facts { margin-top: 16px; padding-top: 12px; }
  .intro-grid { gap: 20px; }
  .film { max-width: none; }
}
.swipe-hint { display: none; margin-top: 10px; color: var(--ink-3); font-size: 14px; }
/* lean surroundings so the pictures can stay large */
.hero .proof { margin-top: clamp(24px, 5vh, 56px); }
.hero .credit { margin-top: 14px; }
.flow .sec-head, .flow-head-row { margin-bottom: clamp(12px, 2.5vh, 28px); }
.flow .h2 { font-size: clamp(32px, 3.6vw, 52px); }
.replay { margin-left: 10px; min-height: 32px; padding: 0 12px; font-size: 14px; vertical-align: middle; }
.flow-col .flow-cap { margin: 0; }
.flow-col { gap: 10px; }
@media (min-width: 761px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
  .t-adm { grid-column: span 2 !important; } .t-pay, .t-acc, .t-lang, .t-group { grid-column: span 1 !important; } .t-cmd { grid-column: span 2 !important; }
  .t-acc { flex-direction: column; align-items: stretch; padding: var(--s4) var(--s4) 0; }
  .t-acc > :last-child { margin: auto calc(-1 * var(--s4)) 0 !important; border-radius: 16px 16px 0 0; padding: 16px 20px 20px; background: rgb(255 255 255 / 70%); }
  .acc { flex-direction: column; align-items: stretch; gap: 12px; }
  .acc-file { min-width: 0; padding: 12px 14px; box-shadow: none; }
  .acc-std { grid-template-columns: 1fr; gap: 6px; }
  .acc-std li { font-size: 14px; white-space: normal; }
  .tile { gap: var(--s2); }
  .tile header h3 { font-size: 24px; }
  .tile header p { font-size: 14px; }
  .bento-sec .sec-head { margin-bottom: 20px; }
}
@media (max-width: 760px) {
  .intro-copy .sub, .intro-facts, .flow .sec-head .sub { display: none; }
  .ask-sec .proof, .ask-sec .credit { display: none; }
  .flow .sec-head .sub .replay { display: none; }
}
/* one tap: heading and line side by side on desktop */
@media (min-width: 981px) {
  .flow-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: var(--s5); }
  .flow-head .kicker { grid-column: 1 / -1; }
  .flow-head .h2 { max-width: 13ch; }
  .flow-head .sub { margin: 0; max-width: 34rem; justify-self: end; }
}
/* tiles: less fixed height inside */
.kanban .col { min-height: 96px; }
.cmd-res { min-height: 0; }
.cmd-res li:nth-child(n+4) { display: none; }
.campus li { padding: 9px 12px; }
.lang-msg p { min-height: 0; }
/* hero on phones */
@media (max-width: 760px) {
  .hero .display { font-size: min(11.5vw, 46px); }
  .hero .lede { font-size: 16.5px; }
  .hero .hero-row { margin-top: 16px; gap: 14px; }
  .hero .actions { gap: 14px; }
  .hero .proof { margin-top: 22px; gap: 10px; padding-top: 14px; }
  .hero .proof li { font-size: 15px; }
  .hero .proof .ic { width: 20px; height: 20px; }
}
@media (min-width: 981px) {
  .flow-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .flow-head .h2 { max-width: none; font-size: clamp(30px, 3.1vw, 46px); }
  .bento-sec .h2 { max-width: none; font-size: clamp(30px, 3.1vw, 46px); }
}
@media (min-width: 761px) { .campus li { padding: 7px 12px; } .campus { gap: 6px; } .tile { padding-top: var(--s3); } .tile > :last-child { margin-top: auto; } }
@media (max-height: 700px) and (max-width: 760px) { main > section:not(.roles):not(.jobs) { padding-block: 12px !important; } }
@media (max-width: 760px) {
  .notices .feed-list { min-height: 0; }
  .notices .insight { height: auto; }
  .notices .insight:nth-child(n+3) { display: none; }
  .notices .insight .acts span:nth-child(2) { display: none; }
  .ask-sec .ui-answer { min-height: 0 !important; }
  .ask-sec .ui-chart .ui-bar:nth-child(n+7) { display: none; }
  .ask-sec .ui-source { display: none; }
}

/* the insights feed's explanation is a sentence, not a chip */
.insight .why { padding: 0; border-radius: 0; background: none; font-weight: 400; }
/* three jobs, desktop: compact steps so the pinned view always fits */
.jobs-pin { overflow: hidden; }
@media (min-width: 981px) {
  .m-step { padding: clamp(8px, 1.6vh, 16px) 0; }
  .m-step h3 { font-size: clamp(22px, 2.2vw, 30px); }
  .m-step p { display: grid; grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows .4s var(--ease), margin .4s var(--ease); }
  .m-step p > span { overflow: hidden; }
  .m-step.is-on p { grid-template-rows: 1fr; margin-top: 10px; }
  .jobs-pin > .sec-head { margin-bottom: clamp(12px, 3vh, 32px); }
  .jobs-pin .h2 { font-size: clamp(32px, 3.4vw, 48px); }
}
.film-play { white-space: nowrap; }
@media (max-width: 980px) {
  .roles-side .kicker { display: none; }
  .roles-side .h2 { font-size: 26px; }
  .rl-steps { margin-top: 10px; }
  .rl.is-on .rl-h { min-height: 0; font-size: 18px; }
  .roles-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, var(--paper-2)); pointer-events: none; z-index: 2; }
}

/* features page group labels: plain ink, not a coloured eyebrow */
.fgroup .kicker { color: var(--ink-2); font-weight: 600; }
.fgroup .kicker .ic { color: var(--ink-3); }
.fcount { background: var(--paper-2); color: var(--ink-3); }

/* three jobs: every screen the same height, so nothing jumps between steps */
.m-stage .m-screen { height: 100%; }
.m-stage .m-screen > .pane { height: 100%; display: flex; flex-direction: column; }
.m-stage .m-screen > .pane > .pane-body { flex: 1; min-height: 0; overflow: hidden; }
.m-step h3 { font-size: clamp(22px, 2.2vw, 30px); }

/* one tap, desktop and tablet: one layered picture, not three boxes in a row */
@media (min-width: 761px) {
  .flow-stage { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; align-items: start; justify-items: center; max-width: 1060px; margin-inline: auto; padding-top: 8px; }
  .flow-lines { display: none !important; }
  .flow-stage > .flow-col { grid-area: 1 / 1; }
  .flow-stage > .flow-col::before { content: none !important; }
  .flow-stage > .flow-col.wide { width: min(620px, 60%); z-index: 1; margin-top: 18px; }
  .flow-stage > div.flow-col:nth-of-type(1) { justify-self: start; z-index: 2; margin-top: 70px; }
  .flow-stage > div.flow-col:nth-of-type(3) { justify-self: end; z-index: 2; margin-top: 70px; }
  .flow-stage .flow-phone { width: 270px; }
  .flow-stage .flow-phone .phone-screen { min-height: 540px; }
  .flow-dash { box-shadow: 0 2px 4px rgb(20 28 40 / 5%), 0 30px 60px -30px rgb(20 28 40 / 35%); }
  .flow-dash .pane-body { padding: 26px 28px 32px; }
  .flow-cap { justify-self: center; }
  .flow-stage[data-focus="1"] .flow-col:not(:nth-of-type(1)),
  .flow-stage[data-focus="2"] .flow-col:not(.wide),
  .flow-stage[data-focus="3"] .flow-col:not(:nth-of-type(3)) { opacity: .45; filter: saturate(.4); transform: none; }
  .flow-controls { display: flex; justify-content: center; margin-top: 18px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .flow-stage .flow-phone { width: 230px; }
  .flow-stage > .flow-col.wide { width: 56%; margin-top: 0; }
}
@media (min-width: 761px) {
  .flow-stage { max-width: 1100px; }
  .flow-stage > .flow-col.wide { width: 62%; margin-top: 0; }
  .flow-stage > div.flow-col:nth-of-type(1), .flow-stage > div.flow-col:nth-of-type(3) { margin-top: 110px; }
  .flow-stage .flow-phone { width: 250px; }
  .flow-stage .flow-phone .phone-screen { min-height: 520px; }
  .flow-stage .flow-cap { display: none; }
  .flow-controls { align-items: center; gap: 28px; }
  .flow-legend { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: s; color: var(--ink-3); font-size: 14px; }
  .flow-legend li { display: flex; align-items: center; gap: 8px; counter-increment: s; transition: color .3s var(--ease); }
  .flow-legend li::before { content: counter(s); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hair); font-size: 12px; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
  .flow[data-focus="1"] .flow-legend li:nth-child(1), .flow[data-focus="2"] .flow-legend li:nth-child(2), .flow[data-focus="3"] .flow-legend li:nth-child(3) { color: var(--ink); }
  .flow[data-focus="1"] .flow-legend li:nth-child(1)::before, .flow[data-focus="2"] .flow-legend li:nth-child(2)::before, .flow[data-focus="3"] .flow-legend li:nth-child(3)::before { background: var(--ink); border-color: var(--ink); color: var(--paper); }
}
@media (min-width: 761px) and (max-width: 1100px) { .flow-stage .flow-phone { width: 220px; } .flow-stage > .flow-col.wide { width: 60%; } }
@media (max-width: 760px) { .flow-legend { display: none; } }
@media (min-width: 761px) { .flow-dash .pane-body { padding-inline: clamp(28px, 7%, 64px); } }
@media (min-width: 761px) and (max-height: 800px) { .flow-head .sub { display: none; } .flow-head { margin-bottom: 8px; } .flow-controls { margin-top: 10px; } }
@media (max-width: 760px) and (max-height: 700px) { .flow-controls { display: none; } }
@media (min-width: 761px) and (max-height: 800px) { .flow-stage > div.flow-col:nth-of-type(1), .flow-stage > div.flow-col:nth-of-type(3) { margin-top: 70px; } }

/* =========================================================================================
   One tap v3: three screens, same height, real size, side by side
   ======================================================================================= */
.rg-list { border-top: 1px solid var(--p-line); }
.rg-list li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--p-line); font-size: .86rem; }
.rg-list b { font-weight: 700; }
.rg-list em { color: var(--p-soft); font-style: normal; font-size: .8rem; font-weight: 600; text-align: right; min-width: 120px; }
.rg-bar { height: 6px; border-radius: 6px; background: #eeefea; overflow: hidden; }
.rg-bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: 6px; background: var(--st-ok); transition: width .8s var(--ease); }
.rg-9c { margin: 0 -10px; padding: 9px 10px !important; border-radius: 8px; background: #fdf6e7; transition: background .4s var(--ease); }
.rg-9c em { color: #8a5a00; }
.rg-9c.done { background: #f2f8f4; }
.rg-9c.done em { color: var(--st-ok); }
.rg-9c.bad { background: var(--a-danger-tint); }
.rg-9c.bad em { color: var(--a-danger); }
.rg-9c.bad .rg-bar i { background: var(--a-danger); }

@media (min-width: 761px) {
  .flow-head { display: block; }
  .flow-head .h2 { font-size: clamp(32px, 3.3vw, 46px); max-width: 24ch; }
  .flow-head .sub { margin-top: 10px; max-width: 40rem; justify-self: auto; }
  .flow-stage { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; gap: clamp(20px, 3vw, 44px); max-width: var(--wrap); height: clamp(480px, calc(100svh - var(--nav) - 250px), 640px); padding-top: 0; zoom: 1 !important; }
  .flow-stage > .flow-col, .flow-stage > .flow-col.wide, .flow-stage > div.flow-col:nth-of-type(1), .flow-stage > div.flow-col:nth-of-type(3) { grid-area: auto; justify-self: stretch; margin: 0; width: auto; display: flex; flex-direction: column; min-height: 0; }
  .flow-stage .flow-cap { display: flex; flex: none; justify-content: center; margin-bottom: 10px; }
  .flow-stage .flow-phone { flex: 1; min-height: 0; aspect-ratio: 9 / 19; width: auto; height: 100%; margin-inline: auto; }
  .flow-stage .flow-phone .phone-screen { height: 100%; min-height: 0; }
  .flow-stage .flow-dash { flex: 1; min-height: 0; display: flex; flex-direction: column; box-shadow: var(--frame); }
  .flow-stage .flow-dash .pane-body { flex: 1; min-height: 0; overflow: hidden; padding: 22px 26px; }
  .flow-stage[data-focus="1"] .flow-col:not(:nth-of-type(1)),
  .flow-stage[data-focus="2"] .flow-col:not(.wide),
  .flow-stage[data-focus="3"] .flow-col:not(:nth-of-type(3)) { opacity: .5; filter: none; transform: none; }
  .flow-legend { display: none; }
  .flow-controls { margin-top: 16px; }
}
@media (min-width: 761px) {
  .flow-head .h2 { max-width: none; font-size: clamp(30px, 2.9vw, 42px); }
  .flow-head .sub { font-size: 17px; margin-top: 8px; }
  .flow .sec-head.flow-head { margin-bottom: 14px; }
  .flow-stage { height: clamp(440px, calc(100svh - var(--nav) - 230px), 640px); }
  .flow-stage .phone-screen { container-type: size; padding: 9cqh 7% 4cqh; }
  .flow-stage .phone-screen > * { flex-shrink: 0; }
  .flow-stage .phone-screen::before { top: 2.2cqh; height: 4.2cqh; width: 32%; }
  .flow-stage .m-over { font-size: 2.1cqh; }
  .flow-stage .m-title { font-size: 5.6cqh; margin: .4cqh 0 2.4cqh; }
  .flow-stage .reg-grid { gap: 2cqh 4%; }
  .flow-stage .face { width: 7.6cqh; height: 7.6cqh; font-size: 1.9cqh; }
  .flow-stage .face::after { width: 2.9cqh; height: 2.9cqh; font-size: 1.6cqh; }
  .flow-stage .reg-grid button small { font-size: 1.7cqh; }
  .flow-stage .reg-foot { position: absolute; left: 7%; right: 7%; bottom: 3cqh; gap: 1cqh; font-size: 1.9cqh; }
  .flow-stage .reg-save { height: 6.6cqh; font-size: 2.2cqh; }
  .flow-stage .fam-today { min-height: 0 !important; padding: 1.8cqh 4%; gap: .2cqh; }
  .flow-stage .fam-today b { font-size: 2.6cqh; }
  .flow-stage .fam-today small, .flow-stage .fam-today span { font-size: 1.8cqh; }
  .flow-stage .fam-today::before { width: 6cqh; height: 6cqh; }
  .flow-stage .m-stats b { font-size: 3.2cqh; }
  .flow-stage .m-stats small { font-size: 1.6cqh; }
  .flow-stage .m-stats div { padding: 1.4cqh 0; }
  .flow-stage .m-label { margin: 2.4cqh 0 1cqh; font-size: 1.7cqh; }
  .flow-stage .m-day li { padding: 1.4cqh 0; }
  .flow-stage .m-day b { font-size: 2.1cqh; }
  .flow-stage .m-day time, .flow-stage .m-day small { font-size: 1.8cqh; }
  .flow-stage .m-tabs { padding: 1.2cqh 4% 2.4cqh; }
  .flow-stage .m-tabs .ic { width: 2.8cqh; height: 2.8cqh; }
  .flow-stage .m-tabs small { font-size: 1.4cqh; }
  .flow-stage .push { padding: 1.4cqh 4%; }
}
@media (min-width: 761px) {
  .flow-stage .m-over { font-size: 2.4cqh; }
  .flow-stage .m-title { font-size: 6.4cqh; }
  .flow-stage .reg-grid { gap: 2.6cqh 4%; margin-top: 1cqh; }
  .flow-stage .face { width: 8.8cqh; height: 8.8cqh; font-size: 2.2cqh; }
  .flow-stage .reg-grid button small { font-size: 2cqh; }
  .flow-stage .reg-foot { font-size: 2.2cqh; }
  .flow-stage .reg-save { height: 7.4cqh; font-size: 2.5cqh; }
  .flow-stage .fam-today b { font-size: 3cqh; }
  .flow-stage .fam-today small, .flow-stage .fam-today span { font-size: 2.1cqh; }
  .flow-stage .m-stats b { font-size: 3.8cqh; }
  .flow-stage .m-stats small { font-size: 1.9cqh; }
  .flow-stage .m-label { font-size: 2cqh; }
  .flow-stage .m-day li { padding: 1.9cqh 0; }
  .flow-stage .m-day b { font-size: 2.5cqh; }
  .flow-stage .m-day time, .flow-stage .m-day small { font-size: 2.1cqh; }
  .flow-stage .m-tabs small { font-size: 1.7cqh; }
  .flow-stage .push strong { font-size: 2.5cqh; }
  .flow-stage .push small, .flow-stage .push p { font-size: 1.9cqh; }
  .flow-stage .push-app { width: 5.6cqh; height: 5.6cqh; font-size: 2.6cqh; }
}
@media (min-width: 761px) {
  .flow-stage { height: clamp(440px, calc(100svh - var(--nav) - 240px), 640px); }
  .flow-dash .pane-body { display: flex; flex-direction: column; }
  .rg-list { flex: 1; min-height: 0; overflow: hidden; }
  .rg-list li:nth-child(5) { display: none; }
}
@media (min-width: 761px) and (max-height: 800px) { .rg-list li:nth-child(4) { display: none; } .flow-dash .d-when { margin-bottom: 0; } }
@media (min-width: 761px) and (max-height: 800px) {
  .flow-stage .face { width: 7.2cqh; height: 7.2cqh; font-size: 1.9cqh; }
  .flow-stage .reg-grid { gap: 1.6cqh 4%; }
  .flow-stage .reg-grid button small { font-size: 1.7cqh; }
  .flow-stage .m-title { font-size: 5.4cqh; margin-bottom: 1.6cqh; }
  .flow-dash .d-greet { font-size: 1.15rem; }
  .flow-dash .d-when { display: none; }
  .flow-dash .dash-alert-slot { margin-top: 10px; min-height: 0 !important; }
  .flow-dash .ui-alert, .flow-dash .dash-quiet { padding: 8px 12px; font-size: .8rem; height: auto; }
  .flow-dash .stats { margin-top: 10px; }
  .flow-dash .stat { padding-block: 8px; }
  .flow-dash .stat.big b { font-size: 2rem; }
  .flow-dash .p-label { margin-top: 10px; }
  .rg-list li:nth-child(n+3) { display: none; }
  .flow-stage .flow-dash .pane-body { padding: 16px 20px; }
}
/* centre the status mark and the save label */
.fam-today::before { display: grid; place-items: center; line-height: 1; padding: 0; text-align: center; }
.reg-save { display: grid; place-items: center; padding: 0 16px; line-height: 1; text-align: center; }
.flow-stage .reg-foot { justify-items: stretch; }
.flow-stage .reg-foot > span { text-align: center; }
.fam-today::before { content: "\00B7\00B7\00B7"; letter-spacing: 1px; }
.fam-today.absent::before { content: "✕"; letter-spacing: 0; }
.fam-today.present::before { content: "✓"; letter-spacing: 0; }
