/* AMOS interface standard: clear hierarchy, restrained surfaces, task-first navigation.
   Palette roles — keep them strict:
   blue    = actions and navigation (buttons, links, focus, selected)
   emerald = present, accounted for, sent, online
   amber   = needs attention: waiting, late, a warning, something not sent
   slate   = ordinary absence and quiet information
   red     = danger only: a teacher asking for help, a missing child, an emergency code. Nothing else is red,
             so staff never learn to ignore it.
   Surfaces are flat with 1px borders: no blur and no glow, so older school iPads and cheap phones stay smooth. */
:root {
  --bg: #090d16; --bg-2: #0d1320; --panel: #111827; --panel-2: #162033; --raise: #1d2940;
  --ink: #f8fafc; --muted: #94a3b8; --faint: #8392a8;
  --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.15); --field-edge: #475569;
  --accent: #2563eb; --accent-hi: #3b82f6; --accent-text: #60a5fa; --accent-deep: #1e3a8a;
  /* "gold" is the historic name of the accent; it now carries the blue so older rules follow the palette. */
  --gold: #60a5fa; --gold-hi: #93c5fd; --gold-soft: rgba(59, 130, 246, 0.14); --gold-glow: none;
  --ok: #10b981; --ok-soft: rgba(16, 185, 129, 0.14); --ok-glow: none;
  --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, 0.14);
  --calm: #94a3b8; --calm-soft: rgba(148, 163, 184, 0.12);
  --red: #ef4444; --red-hi: #f87171; --red-strong: #dc2626; --red-deep: #b91c1c; --red-soft: rgba(239, 68, 68, 0.16); --red-glow: none;
  --shadow: none; --shadow-lg: none; --radius: 16px; --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body { background: var(--bg); font-family: var(--font); line-height: 1.6; font-variant-numeric: tabular-nums; }
.topbar { background: var(--bg-2); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--line); padding: 16px max(24px, calc((100vw - 1200px) / 2)); }
.brand img, .brand:hover img { box-shadow: none; transform: none; border-radius: 9px; }
.brand b { letter-spacing: .015em; font-weight: 750; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.topbar-actions { gap: 22px; }
.nav-link, .text-link { text-underline-offset: 5px; font-size: 14px; }
.nav-link { text-decoration: none; color: var(--muted); padding: 10px 0; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); }
.nav-link[aria-current="page"] { border-bottom: 2px solid var(--gold); }
.text-link { color: var(--gold); }
.btn, .btn:active { transform: none; font-weight: 650; box-shadow: none; border-radius: var(--radius-sm); }
.btn-primary, .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: none; text-shadow: none; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-ghost, .btn-ghost:hover { background: transparent; border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover:not(:disabled) { border-color: var(--accent-text); }
.btn-red, .btn-red:hover { background: var(--red-strong); border-color: var(--red-strong); box-shadow: none; }
.btn-red:hover:not(:disabled) { background: var(--red); }
.btn-warn, .btn-warn:hover { background: var(--warn); color: #111827; border: 1px solid var(--warn); box-shadow: none; text-shadow: none; }
.btn-ok, .btn-ok:hover { background: #047857; color: #fff; box-shadow: none; }
/* "Send to front counter" is a routing choice, not a danger: amber outline, never red. */
.btn-danger-ghost { color: var(--warn); border-color: rgba(245, 158, 11, 0.45); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--warn-soft); border-color: var(--warn); }
/* Pressing anything gives a small, immediate response. */
.btn:active:not(:disabled), .chip:active:not(:disabled), .help-choice:active:not(:disabled), .role-card:active, .help-trigger:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; }
.card, .item, .notice, .adult, .adult:hover, .quiet-need-card, .tag, .pill, .count, .count.live { box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.card, .item, .item:hover { background: var(--panel); border-color: var(--line); box-shadow: none; }
.card-quiet { background: var(--bg-2); }
.input { background: #0b1220; border: 1px solid var(--field-edge); border-radius: 8px; box-shadow: none; min-height: 46px; }
.input:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25); outline: none; }
:focus-visible { outline-color: var(--accent-text); }
.pill { background: transparent; letter-spacing: .03em; font-size: 12px; text-transform: none; }
.pill .dot, .signal { box-shadow: none; }
.count.live { background: var(--accent); color: #fff; }
.tag { font-weight: 600; letter-spacing: 0; text-transform: none; }
.tag.ok { color: var(--ok); border-color: rgba(16, 185, 129, 0.45); background: var(--ok-soft); }
.tag.warn { color: var(--warn); border-color: rgba(245, 158, 11, 0.45); background: var(--warn-soft); }
.tag.calm { color: var(--calm); border-color: rgba(148, 163, 184, 0.35); background: var(--calm-soft); }
.tag.red, .tag.critical { color: #fff; background: var(--red-strong); border-color: var(--red-strong); box-shadow: none; }
.notice { box-shadow: none; }
.notice.ok { background: #0b231c; border-color: rgba(16, 185, 129, 0.45); color: #d1fae5; }
.notice.warn { background: #241a08; border: 1px solid rgba(245, 158, 11, 0.5); color: #fde7b0; }
.notice.alert { background: #2a1215; border-color: rgba(239, 68, 68, 0.6); color: #fee2e2; }
.notice.test { background: #111b2e; border-color: rgba(148, 163, 184, 0.28); color: var(--muted); }
/* Flat surfaces everywhere: blur is costly on older tablets and adds nothing on a solid background. */
*, *::before, *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.steps li.now::before { animation: none; }
.eyebrow { letter-spacing: .1em; font-size: 11px; }
.display { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.14; letter-spacing: -.035em; }
.display em { font-style: normal; }
.title { letter-spacing: -.02em; }
.rise { animation: none; }
.mark { display: none; }
.gate .mark { display: block; }
.gate .mark-orb { width: 64px; height: 64px; box-shadow: none; background: transparent; }
.gate .mark-orb img { width: 44px; height: 44px; }
.gate { background: rgba(9, 13, 22, .97); }
.small, .hint, .fine { color: var(--muted); }
.structure-main { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.page-kicker { margin: 0 0 16px; color: var(--gold); font-size: 11px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.page-heading { margin: 0; font-size: clamp(38px, 5.4vw, 65px); font-weight: 650; letter-spacing: -.045em; line-height: 1.08; }
.overview-lead { color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 550px; margin: 24px 0 28px; }
.overview-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; padding: 78px 0 72px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.context-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 20px 0 0; }
.day-outline { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.outline-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.outline-heading .page-kicker { margin: 0; }
.outline-label { color: var(--muted); font-size: 11px; }
.day-outline h2 { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin: 22px 0; }
.workflow-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 23px; }
.workflow-list li { display: flex; gap: 17px; align-items: start; }
.workflow-number { color: var(--gold); font-size: 12px; letter-spacing: .05em; line-height: 1.9; }
.workflow-list b { font-size: 14px; font-weight: 600; }
.workflow-list p { color: var(--muted); font-size: 12px; margin: 4px 0 0; }
.overview-section { padding: 48px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 26px; }
.section-heading .page-kicker { margin-bottom: 10px; }
.section-heading h2, .contact-strip h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.03em; font-weight: 600; }
.role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role-card { display: flex; flex-direction: column; min-width: 0; padding: 25px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.role-card:hover { border-color: var(--gold); background: var(--panel-2); }
.role-index { color: var(--muted); font-size: 10px; letter-spacing: .12em; font-weight: 600; }
.role-card h3, .role-card h2 { font-size: 19px; margin: 22px 0 12px; font-weight: 600; letter-spacing: -.025em; }
.role-card p { font-size: 13px; color: var(--muted); margin: 0 0 28px; }
.role-action { color: var(--gold); font-size: 12px; font-weight: 650; margin-top: auto; }
.principles-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; padding: 48px 0; border-top: 1px solid var(--line); }
.principles-row h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.principles-row p:not(.page-kicker) { margin: 0; color: var(--muted); font-size: 14px; }
.contact-strip { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 36px; margin: 24px 0 64px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.contact-strip p:not(.page-kicker) { font-size: 14px; color: var(--muted); max-width: 600px; margin-bottom: 0; }
.contact-strip .btn { flex-shrink: 0; }
.structure-footer { width: min(1200px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 36px; border-top: 1px solid var(--line); display: flex; gap: 28px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.structure-footer p { margin: 0; }
.structure-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.structure-footer a { text-decoration: none; text-underline-offset: 4px; }
.structure-footer a:hover { text-decoration: underline; }
.page-introduction { padding: 60px 0 44px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.guide-card { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.guide-card h2, .guide-card h3 { margin: 0 0 16px; font-size: 23px; letter-spacing: -.02em; font-weight: 600; }
.guide-card p, .guide-card li { color: var(--muted); font-size: 14px; }
.plain-list { padding-left: 20px; display: grid; gap: 14px; margin: 0; }
.trial-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 0; list-style: none; }
.trial-steps h3 { font-size: 17px; font-weight: 600; }
.trial-steps p { font-size: 13px; color: var(--muted); }
.start-main { max-width: 980px; }
.start-main .page-heading { font-size: clamp(33px, 4.4vw, 49px); }
.start-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.start-roles .role-card { padding: 28px; }
.start-roles .role-card h2 { font-size: 25px; margin-top: 16px; }
.role-card-primary { border-color: rgba(59, 130, 246, 0.55); }
.setup-details { border-top: 1px solid var(--line); margin: 36px 0 48px; padding-top: 24px; font-size: 14px; }
.setup-details summary { cursor: pointer; color: var(--muted); min-height: 44px; }
.setup-details p { max-width: 650px; color: var(--muted); }
.nav-group { display: block; color: var(--faint); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 18px 12px 8px; }
.office { grid-template-columns: 210px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; }
.office-nav { border-color: var(--line); background: transparent; padding: 10px 16px; backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-btn { background: transparent; border-radius: 8px; padding: 12px; font-weight: 550; min-height: 46px; letter-spacing: 0; }
.nav-btn[aria-selected="true"] { background: var(--raise); box-shadow: inset 3px 0 0 var(--accent-hi); color: var(--ink); border-color: var(--line-2); }
.office-main { padding: 28px; min-width: 0; }
.office-head { margin-bottom: 24px; }
.office-head h1 { font-size: 31px; letter-spacing: -.03em; }
.panel-grid { grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); gap: 22px; }
.panel-grid .side { min-width: 0; }
.workspace-mode { padding: 9px 24px; border-bottom: 1px solid var(--line); background: var(--bg-2); display: flex; gap: 18px; align-items: center; font-size: 12px; color: var(--muted); }
.workspace-mode b { color: var(--gold); font-weight: 600; }
.staff-access { max-width: 1384px; margin: 24px auto; }
.staff-access[data-signed-in="true"] { padding: 16px 24px; }
.staff-access[data-signed-in="true"] .staff-access-intro { display: none; }
.staff-access[data-signed-in="true"] .staff-signed-in b { font-size: 18px; margin: 0; }
.staff-access[data-signed-in="true"] .staff-signed-in .eyebrow { display: none; }
.inbox-toolbar { gap: 16px; }
.inbox-toolbar .chips { gap: 7px; }
.office .steps li.done::before { background: var(--panel-2); border-color: var(--line-2); box-shadow: none; color: var(--muted); }
.office .nav-foot { font-size: 12px; color: var(--muted); }
.support-group-title { font-size: 15px; color: var(--muted); margin: 14px 0 0; font-weight: 550; }
.app-guide .content-grid { margin: 30px 0; }
.app-guide > main > .guide-card { margin: 24px 0; }
.office .item-head h3 { font-size: 18px; }
.checkin-main { max-width: 760px; }
.checkin-main .tabs { flex-wrap: wrap; }
.tab { font-size: 13px; font-weight: 600; }
@media (max-width: 1050px) {
  .overview-hero { gap: 32px; padding: 54px 0; }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-grid .side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .trial-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 18px; position: static; flex-wrap: wrap; }
  .topbar-actions { gap: 15px; }
  .structure-main, .structure-footer { width: calc(100% - 36px); }
  .overview-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .page-heading { font-size: clamp(37px, 8vw, 54px); }
  .overview-lead { font-size: 16px; margin-top: 20px; }
  .overview-section { padding: 32px 0; }
  .principles-row { grid-template-columns: 1fr; gap: 30px; padding: 34px 0; }
  .contact-strip { align-items: start; flex-direction: column; gap: 24px; padding: 25px; margin-bottom: 38px; }
  .structure-footer { align-items: start; flex-direction: column; }
  .office { display: block; }
  .office-nav { display: flex; flex-direction: row; flex-wrap: wrap; gap: 5px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: static; height: auto; }
  .office-nav .nav-group, .office-nav .nav-foot { display: none; }
  .nav-btn { width: auto; flex: 0 1 auto; font-size: 12px; padding: 10px 12px; gap: 10px; }
  .office-main { padding: 22px 18px; }
  .workspace-mode { padding: 10px 18px; flex-direction: column; gap: 3px; align-items: start; }
  .staff-access { width: calc(100% - 36px); }
  .panel-grid .side, .content-grid { grid-template-columns: 1fr; }
  .page-introduction { padding: 38px 0 28px; }
}
@media (max-width: 440px) {
  .role-grid { grid-template-columns: 1fr; }
  .role-card { padding: 22px; }
  .role-card h3 { margin-top: 16px; }
  .role-card p { margin-bottom: 20px; }
  .day-outline { padding: 22px; }
  .hero-actions { gap: 18px; }
  .trial-steps { grid-template-columns: 1fr; gap: 14px; }
  .amos-public .topbar .btn { padding: 8px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Hover, press and selected states keep the same dark palette: no white flash, no glow, no jump. */
.btn:hover:not(:disabled), .chip:hover, .drill:hover, .incident-card:hover, .quiet-need-card:hover, .door:hover { transform: none; box-shadow: none; }
.card:hover, .item:hover { box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.04); }
.btn-ok:hover:not(:disabled) { background: #059669; }
.btn-warn:hover:not(:disabled) { background: #fbbf24; border-color: #fbbf24; }
.chip:hover { border-color: var(--line-2); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { border-color: var(--accent-text); background: var(--gold-soft); color: #fff; box-shadow: none; }
.tab[aria-selected="true"] { background: var(--raise); box-shadow: inset 0 -2px 0 var(--accent-hi); }
.btn:active:not(:disabled), .chip:active:not(:disabled), .help-choice:active:not(:disabled), .role-card:active, .help-trigger:active { transform: scale(0.98); }
.roll-marks .chip[data-mark="away"][aria-pressed="true"] { border-color: var(--calm); background: var(--calm-soft); }
.chip.muster-toggle[aria-pressed="true"] { background: var(--ok); color: #04130c; border-color: var(--ok); }

/* ---------- Discreet 1-tap classroom desk alarm ---------- */
.desk-lifeline-card {
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  background: var(--panel);
}
.desk-lifeline-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.desk-lifeline-head .eyebrow { margin: 0; }
.desk-pad-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
@media (max-width: 640px) {
  .desk-pad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.desk-pad {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  text-align: left;
  cursor: pointer;
}
.desk-pad:hover:not(:disabled) { background: var(--raise); border-color: var(--accent-text); }
.desk-pad:active:not(:disabled) { transform: scale(0.98); }
.desk-pad:disabled { opacity: 0.45; cursor: not-allowed; }
.desk-pad b { font-size: 14px; font-weight: 700; color: var(--ink); }
.desk-pad span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.desk-pad[data-kind="senior"] { border-left: 3px solid var(--gold); }
.desk-pad[data-kind="safety"] { border-left: 3px solid var(--warn); }
.desk-pad[data-kind="codeblack"] { border-left: 3px solid var(--red); }
.desk-pad[data-kind="medical"] { border-left: 3px solid var(--ok); }
.desk-pad[data-active="true"] {
  background: var(--raise);
  border-color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent-text);
}

.desk-status-strip {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  gap: 8px;
}
.desk-status-strip[data-tone="ok"] { border-color: rgba(16, 185, 129, 0.45); }
.desk-status-strip[data-tone="warn"] { border-color: rgba(245, 158, 11, 0.45); }
.desk-status-strip[data-tone="alert"] { border-color: rgba(239, 68, 68, 0.55); }
.desk-status-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.desk-status-line b { font-size: 14px; color: var(--ink); }
.desk-status-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Teacher-side styled office alert banner ---------- */
.teacher-alert-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.teacher-alert-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  display: grid;
  gap: 8px;
}
.teacher-alert-card[data-urgency="critical"] { border-left: 4px solid var(--red); background: #221115; }
.teacher-alert-card[data-urgency="warn"] { border-left: 4px solid var(--warn); background: #1f190b; }
.teacher-alert-card[data-urgency="info"] { border-left: 4px solid var(--gold); }
.teacher-alert-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.teacher-alert-msg { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink); }
.teacher-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Office console quick chips ---------- */
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ---------- Keep active Get help trigger discreet on the teacher's desk ---------- */
.help-trigger.active {
  background: var(--raise);
  color: var(--ink);
  border-color: var(--line-2);
  box-shadow: none;
}
.help-trigger.active[data-tone="ok"] {
  color: var(--ok);
  border-color: rgba(16, 185, 129, 0.45);
}
.desk-escalate-btn {
  border-left: 3px solid var(--red) !important;
}

@media print {
  .skip, .topbar-actions, .tour-aurora, .tour-progress { display: none !important; }
  body { background: #fff !important; color: #111827 !important; }
  .guide-card, .contact-strip {
    background: #fff !important;
    color: #111827 !important;
    border-color: #d1d5db !important;
    break-inside: avoid;
  }
  .guide-card p, .guide-card li, .overview-lead, .page-kicker { color: #374151 !important; }
  h1, h2, h3, .guide-card b, .plain-list b { color: #111827 !important; }
  a { color: #1d4ed8 !important; }
}

/* ---------- Office leader KPI summary & workspace bar ---------- */
.workspace-mode { flex-wrap: wrap; }
.workspace-reset-btn { margin-left: auto; }
.leader-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.leader-kpi {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--bg-2);
  display: grid;
  gap: 4px;
}
.leader-kpi span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.leader-kpi b { font-size: 14px; color: var(--ink); font-weight: 650; }

/* How AMOS works together (/together) — mobile-first, 4 devices side by side on wide desktop */
.together-main {
  max-width: 1320px;
  font-size: clamp(16px, 1.35vw, 18px);
}
.together-lede {
  display: grid;
  gap: 14px;
  max-width: 78ch;
  margin-bottom: 24px;
}
.together-lede .overview-lead {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.55;
}
.together-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}
.together-cta-row .btn,
.device-card .btn {
  min-height: 50px;
  font-size: 16px;
  padding: 12px 18px;
}
.together-device-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
@media (min-width: 720px) {
  .together-device-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1120px) {
  .together-device-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.device-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.device-card-preferred {
  background: var(--panel-2);
  border-color: var(--accent-hi);
}
.device-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.device-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--muted);
}
.device-badge-preferred {
  border-color: var(--accent-hi);
  background: var(--accent);
  color: #fff;
}
.device-card h3 {
  margin: 0;
  font-size: clamp(20px, 1.8vw, 22px);
  line-height: 1.25;
  color: var(--ink);
}
.device-card p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
.device-card-action {
  margin-top: auto;
  padding-top: 4px;
}
.device-card-action .btn { width: 100%; }
.device-shot-figure {
  margin: 0;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.device-shot-frame {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--bg);
  overflow: hidden;
  min-width: 0;
}
.device-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.device-shot-caption {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.phone-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.phone-slot {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.phone-slot-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
}
.together-flow {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}
.together-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1;
  transform: rotate(90deg);
}
@media (min-width: 1020px) {
  .together-flow {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }
  .together-arrow {
    transform: none;
    padding: 0 2px;
  }
}
.together-flow-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 8px;
  height: 100%;
  min-width: 0;
}
.together-flow-step h3 {
  margin: 0;
  font-size: 19px;
  color: var(--ink);
}
.together-flow-step p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.together-alert-showcase {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 900px) {
  .together-alert-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  }
}
.together-alert-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.together-alert-copy h3 {
  margin: 0;
  font-size: 22px;
  color: var(--ink);
}
.together-alert-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
/* Muse-style calm Ask AMOS callouts: clear Why + Do this next */
.explainer-why,
.explainer-next {
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 10px 0;
  display: grid;
  gap: 4px;
}
.explainer-why {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
}
.explainer-next {
  background: var(--gold-soft);
  border: 1px solid rgba(96, 165, 250, 0.45);
}
.explainer-why-label,
.explainer-next-label {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.explainer-why-label { color: var(--muted); }
.explainer-next-label { color: var(--gold-hi); }
.explainer-why p,
.explainer-next p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); }

/* ---------- Demonstration ribbon (same words on every public screen) ---------- */
.demo-ribbon { position: relative; z-index: 5; margin: 0; padding: 7px 18px; text-align: center; font-size: 12.5px; line-height: 1.45; color: #fde68a; background: #1c1606; border-bottom: 1px solid rgba(245, 158, 11, 0.32); overflow-wrap: anywhere; }
.demo-ribbon b { color: #fef3c7; font-weight: 700; }
.demo-ribbon span { color: #e7d7a8; }

/* ---------- Footer: honest limits + legal line, identical on every page ---------- */
.structure-footer .footer-text { display: grid; gap: 8px; max-width: 760px; min-width: 0; }
.structure-footer .footer-limits { color: var(--ink); opacity: .82; line-height: 1.55; }
.structure-footer .footer-legal { line-height: 1.55; overflow-wrap: anywhere; }
.structure-footer nav { gap: 10px 22px; }
@media (max-width: 760px) {
  .structure-footer nav { gap: 10px 18px; }
  .demo-ribbon { text-align: left; padding: 7px 18px; }
}

/* ---------- Pilot application form ---------- */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-bottom: 56px; }
.apply-form fieldset { border: 0; margin: 0 0 18px; padding: 0; min-width: 0; }
.apply-form legend { padding: 0; margin-bottom: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.apply-form .field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.apply-form select.input { appearance: auto; }
.apply-options { display: grid; gap: 8px; }
.apply-option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2); font-size: 15px; line-height: 1.45; cursor: pointer; }
.apply-option input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent-hi); }
.apply-option:has(input:checked) { border-color: var(--accent-hi); background: var(--gold-soft); }
.apply-option:has(input:focus-visible) { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.apply-terms { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.apply-terms li + li { margin-top: 6px; }
.apply-error { margin: 0 0 14px; color: #fca5a5; font-size: 14px; font-weight: 600; }
.apply-result { margin-top: 22px; padding: 22px; border: 1px solid rgba(16, 185, 129, 0.4); border-radius: 14px; background: var(--ok-soft); }
.apply-result h2 { margin: 0 0 10px; font-size: 20px; }
.apply-result p { margin: 0 0 12px; font-size: 15px; }
.apply-preview { width: 100%; min-height: 220px; margin: 6px 0 14px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: 13px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; resize: vertical; }
@media (max-width: 900px) {
  .apply-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .apply-form .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Ask AMOS chat ---------- */
.ask-note { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 820px; }
.ask-label { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip.chip-safety { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.ask-thread { position: relative; display: flex; flex-direction: column; gap: 12px; max-height: 560px; overflow-y: auto; overscroll-behavior: contain; padding: 14px; margin: 6px 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); scroll-behavior: smooth; }
.ask-thread:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
.ask-msg { min-width: 0; overflow-wrap: anywhere; }
.ask-who { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ask-you { align-self: flex-end; max-width: min(520px, 88%); padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: var(--accent-deep); border: 1px solid rgba(96, 165, 250, 0.4); }
.ask-you .ask-who { color: #bfdbfe; }
.ask-you p { margin: 0; color: #fff; font-size: 15px; }
.ask-amos { align-self: stretch; padding: 16px 18px; border-radius: 4px 14px 14px 14px; background: var(--panel); border: 1px solid var(--line-2); }
.ask-amos h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.35; color: var(--ink); }
.ask-amos > p { margin: 0 0 4px; color: var(--ink); line-height: 1.55; font-size: 15px; }
.ask-amos[data-tone="unknown"], .ask-amos[data-tone="limit"] { border-color: rgba(245, 158, 11, 0.5); }
.ask-amos[data-tone="safety"] { border-color: rgba(239, 68, 68, 0.6); background: #1a0d10; }
.ask-amos[data-tone="safety"] .ask-who { color: #fca5a5; }
.ask-form { margin: 0; }
.ask-form .input { min-width: 0; }
.ask-tools { display: flex; justify-content: flex-end; margin-top: 8px; }
@media (max-width: 560px) {
  .ask-thread { max-height: 520px; padding: 10px; }
  .ask-amos { padding: 14px; }
  .ask-you { max-width: 94%; }
}
@media (prefers-reduced-motion: reduce) { .ask-thread { scroll-behavior: auto; } }

/* ---------- Full demonstration page ---------- */
.demo-hero { max-width: 900px; }
.demo-path { margin: 0 0 12px; }
.demo-path ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.demo-path a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--panel); color: var(--ink); font-weight: 650; font-size: 15px; text-decoration: none; }
.demo-path a:hover, .demo-path a:focus-visible { border-color: var(--accent-hi); background: var(--panel-2); }
.demo-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.demo-step-flip .demo-step-copy { order: 2; }
.demo-step-flip .demo-step-shot { order: 1; }
.demo-step-copy { min-width: 0; }
.demo-step-copy .page-kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demo-step-copy h2 { margin: 6px 0 18px; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.demo-facts { margin: 0 0 20px; display: grid; gap: 4px; }
.demo-facts dt { margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.demo-facts dd { margin: 0; color: var(--ink); opacity: .9; font-size: 15.5px; line-height: 1.6; }
.demo-honest { margin: 16px 0 0; color: var(--muted); }
.demo-step-shot { min-width: 0; }
#ask { scroll-margin-top: 16px; }
@media (max-width: 960px) {
  .demo-step { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 40px 0; }
  .demo-step-flip .demo-step-copy, .demo-step-flip .demo-step-shot { order: initial; }
  .demo-path ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 440px) {
  .demo-path ol { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Home: free for schools, support not punishment ---------- */
.pressure-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pressure-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); min-width: 0; }
.pressure-card h3 { margin: 6px 0 8px; font-size: 18px; font-weight: 650; }
.pressure-card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.real-life-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.real-life-list li { padding-left: 16px; border-left: 2px solid var(--accent-hi); font-size: 15px; line-height: 1.55; color: var(--ink); }
.real-life-list b { display: block; margin-bottom: 2px; }
@media (max-width: 960px) { .pressure-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pressure-grid, .real-life-list { grid-template-columns: minmax(0, 1fr); } }
.section-lead { max-width: 820px; margin: -8px 0 26px; color: var(--ink); opacity: .88; font-size: 17px; line-height: 1.65; }
.section-actions { margin-top: 28px; }
.pressure-card .role-index { font-size: 11px; }
.ask-roles { margin: 8px 0 14px; }
.ask-roles .chip[aria-pressed="true"] { border-color: var(--accent-hi); background: var(--accent); color: #fff; box-shadow: none; }
.ask-suggestions { margin: 8px 0 12px; gap: 8px; }
.ask-suggestions .chip { min-height: 38px; padding: 7px 14px; font-size: 13.5px; border-radius: var(--radius-sm); border-color: rgba(96, 165, 250, 0.35); background: var(--gold-soft); color: var(--ink); }
.ask-suggestions .chip:hover { border-color: var(--accent-hi); }
.ask-suggestions .chip.chip-safety { border-color: rgba(239, 68, 68, 0.55); background: var(--red-soft); color: #fee2e2; }
@media (max-width: 560px) {
  .ask-roles { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 6px; scrollbar-width: thin; }
  .ask-roles .chip { flex: 0 0 auto; }
  .ask-suggestions .chip { font-size: 13px; }
}

/* ---------- Audience pages: parents, teachers, students ---------- */
.audience-switch { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 28px; }
.audience-switch a { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.audience-switch a:hover { color: var(--ink); border-color: var(--accent-hi); }
.audience-switch a[aria-current="page"] { color: #fff; background: var(--accent); border-color: var(--accent-hi); }
.audience-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 44px 0 40px; }
.audience-shot { min-width: 0; }
.audience-shot-phone { max-width: 320px; justify-self: center; width: 100%; }
.safety-box { margin: 22px 0 0; padding: 18px 20px; border: 1px solid rgba(239, 68, 68, 0.55); border-radius: 14px; background: #1a0d10; }
.safety-box h2 { margin: 0 0 8px; font-size: 19px; color: #fecaca; }
.safety-box p { margin: 0 0 6px; color: var(--ink); font-size: 15px; line-height: 1.6; }
.safety-box p:last-child { margin-bottom: 0; }
.safety-box .text-link { color: #fecaca; font-weight: 650; }
@media (max-width: 900px) {
  .audience-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0; }
}

/* ---------- Home: trust bar, steps with pictures, FAQ ---------- */
.trust-bar { list-style: none; margin: 0 0 8px; padding: 16px 18px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); }
.trust-bar li { min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.trust-bar b { display: block; color: var(--ink); font-size: 14px; letter-spacing: .02em; }
.home-trust-line { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.home-lead-big { font-size: clamp(19px, 2vw, 23px); line-height: 1.5; color: var(--ink); max-width: 720px; margin: 22px 0 0; }
.step-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); text-decoration: none; min-width: 0; }
.step-card:hover, .step-card:focus-visible { border-color: var(--accent-hi); }
.step-card .device-shot-frame { aspect-ratio: 4 / 3; }
.step-card .device-shot-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.step-card h3 { margin: 4px 0 0; font-size: 17px; font-weight: 650; }
.step-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.step-card .role-action { margin-top: auto; }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 18px; }
.faq-list summary { cursor: pointer; padding: 16px 0; font-weight: 650; font-size: 16px; color: var(--ink); }
.faq-list details[open] summary { padding-bottom: 8px; }
.faq-list details p { margin: 0 0 16px; color: var(--ink); opacity: .88; line-height: 1.6; font-size: 15px; }
@media (max-width: 1100px) { .trust-bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .step-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .trust-bar, .step-cards { grid-template-columns: minmax(0, 1fr); } }
