/* ==========================================================================
   Ask Neo · Axon OS — concept site stylesheet
   Everything on this site is a design concept shown with synthetic data.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #16233B;
  --paper: #FBF8F3;
  --card: #FFFFFF;
  --line: #E4DDD2;
  --teal: #0F766E;
  --teal-deep: #0B5C56;
  --teal-tint: #E7F1F0;      /* 8% teal tint for pupil bubbles and chips */
  --amber: #B45309;
  --amber-tint: #F7EDE2;
  --red: #B42318;
  --red-tint: #FBEDEB;

  --stage-reception: #E8A33D;
  --stage-ks1: #D97A4A;
  --stage-ks2: #4E9A51;
  --stage-ks3: #3B7EA1;
  --stage-ks4: #6C5CA8;
  --stage-post16: #2F6F8F;
  --stage-lifelong: #0F766E;

  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Segoe UI", system-ui, sans-serif;

  --radius-card: 14px;
  --radius-btn: 10px;
  --shadow-card: 0 1px 3px rgba(22, 35, 59, 0.06);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --max-width: 1120px;
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px body */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 { color: var(--ink); margin: 0 0 var(--s-4); }

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.75rem;         /* 44px */
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;            /* 32px */
  line-height: 1.2;
}

h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;          /* 24px */
  line-height: 1.3;
}

h4, h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1875rem;       /* 19px */
  line-height: 1.4;
}

p, ul, ol, dl { margin: 0 0 var(--s-4); }

p, li, dd { max-width: 68ch; }

a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* Visible focus everywhere, per WCAG commitment */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--s-4); top: -60px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-2) var(--s-4);
  border-radius: 0 0 8px 8px;
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 0; color: var(--paper); }

.noscript-note {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card);
  margin-top: var(--s-5);
}

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section { padding: var(--s-9) 0; }
.section-alt { background: #F5F0E8; }   /* card-tinted band, sparing use */

.prose p, .prose ul, .prose ol { max-width: 68ch; }

.lede { font-size: 1.125rem; max-width: 68ch; }

.section-cta { margin-top: var(--s-6); }

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}

/* ---------- Badge (SYNTHETIC DEMO DATA) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;       /* 11px */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper);
  flex: none;
}
.badge-lg { font-size: 0.8125rem; padding: 6px 14px; margin-bottom: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.btn-primary { background: var(--teal); color: #FFFFFF; }
.btn-primary:hover { background: var(--teal-deep); color: #FFFFFF; }

.btn-secondary { background: var(--card); color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal-tint); color: var(--teal-deep); }

.btn-quiet { background: none; border: none; color: var(--teal); padding: 6px 8px; min-height: 44px; }
.btn-quiet:hover { text-decoration: underline; color: var(--teal-deep); }

.btn-approve { background: var(--amber); color: #FFFFFF; }
.btn-approve:hover { background: #96450B; color: #FFFFFF; }

.btn-danger { background: var(--red); color: #FFFFFF; }
.btn-danger:hover { background: #8F1C13; color: #FFFFFF; }

.btn-lg { font-size: 1.125rem; padding: 14px 30px; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 0.9375rem; }

.quiet-link { font-weight: 600; text-decoration: none; }
.quiet-link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 72px;
  flex-wrap: wrap;
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { flex: none; }
.logo-words { display: inline-flex; align-items: baseline; gap: var(--s-2); white-space: nowrap; }
.logo-neo {
  font-family: var(--font-display);
  font-size: 1.625rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-dot { color: var(--teal); font-weight: 600; }
.logo-axon { font-weight: 600; font-size: 1.0625rem; color: var(--ink); }

.header-badge { margin-right: auto; }

.site-nav { display: flex; align-items: center; gap: var(--s-4); }

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: inline-block;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
}
.nav-list a:hover { color: var(--teal-deep); background: var(--teal-tint); }
.nav-list a[aria-current="page"] {
  color: var(--teal);
  border-bottom-color: var(--teal);
  border-radius: 8px 8px 0 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: var(--s-8) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: var(--s-7);
  align-items: center;
}

.hero-sub { font-size: 1.1875rem; max-width: 58ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-5) 0 var(--s-3); }

.hero-micro { font-size: 0.875rem; color: var(--ink); opacity: 0.85; }

.hero-art { text-align: center; }
.hero-art svg { width: min(320px, 100%); }

/* Sole decorative animation: growth rings draw in once on load. */
.ring-draw {
  stroke-dashoffset: 0;
  animation: ring-draw 900ms ease-out;
}
@keyframes ring-draw {
  from { stroke-dashoffset: var(--ringlen, 300); }
  to   { stroke-dashoffset: 0; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--s-5);
}

.card h3 { font-size: 1.1875rem; font-family: var(--font-body); font-weight: 600; }

.accent-teal { border-top: 3px solid var(--teal); }
.accent-navy { border-top: 3px solid var(--ink); }

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.promise-card, .teaser-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}
.promise-card:hover, .teaser-card:hover {
  border-color: var(--teal);
  color: var(--ink);
}
.promise-card h3, .teaser-card h3 { color: var(--teal); }
.promise-card p, .teaser-card p { margin-bottom: 0; }
.teaser-card p { margin-bottom: var(--s-3); }

.tour-grid .card h3 { color: var(--ink); }

/* ---------- Stage strip (Home) ---------- */
.stage-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  list-style: none;
  padding: var(--s-5) 0 0;
  margin: 0;
}
.stage-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.stage-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--stage, var(--teal));
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
  flex: none;
}

/* ---------- Stage cards ---------- */
.cards-stage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
}
.stage-card { border-top: 3px solid var(--stage, var(--teal)); }
.stage-card h3 { font-family: var(--font-body); font-size: 1.1875rem; }
.stage-card p { margin-bottom: var(--s-2); }
.journey-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Journey timeline ---------- */
.timeline {
  display: flex;
  justify-content: space-between;
  list-style: none;
  margin: var(--s-7) 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 11px;
  height: 1.5px;
  background: var(--teal);
}
.tl-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  text-align: center;
  min-width: 72px;
}
.tl-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--stage, var(--teal));
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
  position: relative;
  z-index: 1;
  margin-top: 4px;
}
.tl-label { font-weight: 600; font-size: 0.9375rem; }
.tl-role { font-size: 0.8125rem; }

/* ---------- Ladder (consent) ---------- */
.ladder {
  list-style: none;
  margin: var(--s-5) 0;
  padding: 0;
  border-left: 3px solid var(--teal);
}
.ladder-rung {
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.ladder-rung:first-child { border-top-right-radius: var(--radius-card); }
.ladder-rung:last-child { border-bottom: none; border-bottom-right-radius: var(--radius-card); }

/* ---------- Lists, quotes, small print ---------- */
.tick-list { padding-left: 1.4em; }
.tick-list li { margin-bottom: var(--s-2); }

.promise-list { padding-left: 1.4em; }
.promise-list li { margin-bottom: var(--s-4); }

.small-print { font-size: 0.875rem; opacity: 0.9; }

.pull-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  margin: var(--s-6) 0 0;
  border-left: 3px solid var(--teal);
}

/* ---------- Data table ---------- */
.table-wrap { overflow-x: auto; margin-top: var(--s-6); }
.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}
.data-table th, .data-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--s-4);
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.data-table thead th {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody th { white-space: nowrap; }

/* ---------- Sample dialogue (Neo page) ---------- */
.chat-sample { position: relative; margin-top: var(--s-6); padding-top: var(--s-7); }
.panel-badge { position: absolute; top: var(--s-3); right: var(--s-3); }

.dialogue { margin: 0 0 var(--s-4); }
.d-line { margin-bottom: var(--s-3); display: flex; flex-direction: column; }
.d-line dt { font-size: 0.8125rem; font-weight: 600; margin-bottom: 2px; }
.d-line dd {
  margin: 0;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-card);
  max-width: 60ch;
}
.d-neo dd { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.d-pupil { align-items: flex-end; text-align: right; }
.d-pupil dd { background: var(--teal-tint); border-bottom-right-radius: 4px; }
.d-staff dd { background: #F5F0E8; border: 1px dashed var(--line); }

.caption { font-size: 0.875rem; margin-bottom: 0; }

/* ---------- Roadmap ---------- */
.phase-list { display: grid; gap: var(--s-5); margin-top: var(--s-6); }
.phase-card h3 { font-family: var(--font-body); font-size: 1.1875rem; }
.phase-card p { margin-bottom: var(--s-2); }
.phase-current { border-left: 4px solid var(--teal); }
.you-are-here {
  display: inline-block;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: var(--s-2);
}
.roadmap-footnote { margin-top: var(--s-6); font-style: italic; }

/* ---------- FAQ accordion ---------- */
.faq { border-top: 1px solid var(--line); margin-top: var(--s-6); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; }
.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 44px;
  padding: var(--s-4) var(--s-2);
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1875rem;
  color: var(--ink);
  line-height: 1.4;
}
.faq-toggle:hover { color: var(--teal-deep); }
.faq-toggle .chev { flex: none; transition: transform 250ms ease-out; }
.faq-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-panel { padding: 0 var(--s-2) var(--s-5); }
.faq-panel p { margin-bottom: 0; }

/* ---------- Contact form ---------- */
.form-wrap { max-width: 640px; margin-top: var(--s-6); }
.notice-card { border: 1px solid var(--amber); border-left-width: 4px; background: var(--amber-tint); margin-bottom: var(--s-5); }
.notice-card p { margin: 0; }

.contact-form .field { margin-bottom: var(--s-5); }
.contact-form label { display: block; font-weight: 600; margin-bottom: var(--s-1); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  min-height: 44px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.field-hint { font-size: 0.875rem; margin: var(--s-1) 0 0; }

.form-result {
  margin-top: var(--s-4);
  padding: var(--s-4);
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: var(--radius-card);
}
.form-result.is-success { background: var(--teal-tint); border-color: var(--teal); }
.form-result.is-error { background: #FBEAE8; border-color: #B42318; color: #7A1B12; }

/* Honeypot: kept off-screen for humans, visible to naive bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-email { font-weight: 600; }

/* ---------- Demo: shell and picker ---------- */
.demo-section { border-top: 1px solid var(--line); }
.demo-container { max-width: var(--max-width); }

.demo-shell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--s-5);
  margin-top: var(--s-6);
}

.picker-block { border-bottom: 1px solid var(--line); padding-bottom: var(--s-5); margin-bottom: var(--s-5); }
.picker-caption { font-size: 0.875rem; font-weight: 600; }

.persona-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  position: relative;
  padding: var(--s-3) 0;
}
.persona-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  min-width: 96px;
  min-height: 44px;
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
}
.persona-btn:hover { border-color: var(--teal); }
.persona-btn[aria-pressed="true"] {
  border-color: var(--stage, var(--teal));
  border-width: 2px;
  background: var(--card);
}
.persona-node {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--stage, var(--teal));
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
}
.persona-btn[aria-pressed="true"] .persona-node {
  width: 24px; height: 24px;
  box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px var(--stage, var(--teal));
}
.persona-name { font-weight: 600; }
.persona-stage { font-size: 0.8125rem; }

.stage-descriptor { font-size: 0.9375rem; margin: var(--s-2) 0 0; font-weight: 600; }

/* ---------- Demo: two columns ---------- */
.demo-columns {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-5);
  align-items: start;
}

.demo-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: var(--s-4);
  position: relative;
}
.neo-panel { position: sticky; top: 88px; }

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-3);
}
.panel-title { margin: 0; font-family: var(--font-body); font-size: 1.1875rem; }
.panel-sub { display: block; font-size: 0.8125rem; font-weight: 400; }
.panel-head .panel-badge { position: static; }

/* ---------- Demo: Neo chat ---------- */
.chat-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  margin-bottom: var(--s-3);
}
.stage-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--stage, var(--teal));
}
.pack-tab { font-size: 0.8125rem; }

.session-banner {
  font-size: 0.875rem;
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: var(--radius-btn);
  padding: var(--s-2) var(--s-3);
  margin-bottom: var(--s-3);
}

.chat-log {
  min-height: 220px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: var(--s-3);
}

.msg { display: flex; flex-direction: column; max-width: 90%; }
.msg-neo { align-self: flex-start; }
.msg-pupil { align-self: flex-end; align-items: flex-end; }

.msg-who {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.neo-avatar { flex: none; }

.msg-bubble {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-card);
  max-width: 60ch;
}
.msg-neo .msg-bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg-pupil .msg-bubble {
  background: var(--teal-tint);
  border-bottom-right-radius: 4px;
}
.msg-thinking .msg-bubble { font-style: italic; opacity: 0.8; }

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
  background: var(--teal-tint);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 3px 10px;
  max-width: 100%;
}
.source-chip svg { flex: none; }

.chips-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-3); }
.chip-btn {
  background: var(--card);
  color: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: left;
}
.chip-btn:hover { background: var(--teal-tint); color: var(--teal-deep); }
.chip-btn:disabled { opacity: 0.5; cursor: default; }

.chat-form { display: flex; gap: var(--s-2); margin-bottom: var(--s-2); }
.chat-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}

.chat-footrow { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.chat-note { font-size: 0.75rem; margin: 0; flex: 1; min-width: 160px; }

.chat-blocked {
  border: 2px solid var(--red);
  border-radius: var(--radius-card);
  background: var(--card);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}
.chat-blocked.blocked-band { border-color: var(--line); border-left: 4px solid var(--amber); }
.chat-blocked h4 { margin-bottom: var(--s-2); }
.chat-blocked p { margin-bottom: var(--s-2); }
.chat-blocked p:last-child { margin-bottom: 0; }
.blocked-fine { font-size: 0.8125rem; }

/* ---------- Demo: Axon OS blocks ---------- */
.axon-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--s-4);
  margin-bottom: var(--s-4);
}
.axon-block-title { margin-bottom: var(--s-2); display: flex; align-items: center; gap: var(--s-2); }
.axon-hint { font-size: 0.8125rem; margin-bottom: var(--s-3); }

/* Off-switch: the one deliberately heavy control */
.offswitch-card { border: 2px solid var(--red); }
.off-title { color: var(--red); }
.off-scope { border: none; margin: 0 0 var(--s-3); padding: 0; }
.radio-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-1) 0;
  font-size: 0.9375rem;
}
.radio-row input { width: 18px; height: 18px; accent-color: var(--red); }

.off-confirm {
  margin-top: var(--s-3);
  border: 1px solid var(--red);
  border-radius: var(--radius-btn);
  background: var(--red-tint);
  padding: var(--s-3);
}
.off-confirm p { font-size: 0.9375rem; margin-bottom: var(--s-3); }
.confirm-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.pause-banners { margin-bottom: var(--s-4); }
.pause-banner {
  border: 2px solid var(--red);
  border-radius: var(--radius-card);
  background: var(--card);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.pause-banner p { margin: 0; font-size: 0.9375rem; font-weight: 600; }
.pause-state {
  display: inline-block;
  color: var(--red);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 2px 8px;
  margin-right: var(--s-2);
}

/* Toggles: 40x22 track, always paired with a text state */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  background: none;
  border: none;
  padding: var(--s-1);
  min-height: 44px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
}
.toggle-track {
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--line);
  position: relative;
  flex: none;
  transition: background-color 150ms ease-out;
}
.toggle[aria-checked="true"] .toggle-track { background: var(--teal); }
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(22, 35, 59, 0.3);
  transition: transform 150ms ease-out;
}
.toggle[aria-checked="true"] .toggle-knob { transform: translateX(18px); }
.toggle:disabled { opacity: 0.55; cursor: default; }

.band-list, .pack-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.band-row, .pack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.band-row:last-child, .pack-row:last-child { border-bottom: none; }

.band-info, .pack-info { flex: 1; min-width: 200px; }
.band-name, .pack-name { display: flex; align-items: center; gap: var(--s-2); font-weight: 600; font-size: 0.9375rem; }
.band-cap, .pack-detail { font-size: 0.8125rem; display: block; }
.band-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--stage, var(--teal));
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 1px var(--line);
  flex: none;
}
.lock-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.lock-note svg { flex: none; }

.awaiting-chip {
  display: inline-block;
  background: var(--amber);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Approval-gate cards */
.gate-card {
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-btn);
  background: var(--card);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
}
.gate-chip {
  display: inline-block;
  background: var(--amber);
  color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: var(--s-2);
}
.gate-chip-decided { background: var(--ink); }
.gate-type { font-size: 0.8125rem; font-weight: 600; margin-bottom: var(--s-1); }
.gate-title { font-weight: 600; margin-bottom: var(--s-2); font-size: 0.9375rem; }
.gate-detail, .gate-req { font-size: 0.8125rem; margin-bottom: var(--s-2); }
.gate-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.gate-outcome { font-size: 0.875rem; font-weight: 600; margin: var(--s-2) 0 0; }

.reject-reason { margin-top: var(--s-3); }
.reject-reason label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: var(--s-1); }
.reject-reason input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--card);
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.reason-error { color: var(--red); font-size: 0.8125rem; margin: 0 0 var(--s-2); }

.decided-title { margin: var(--s-4) 0 var(--s-2); }

/* Activity tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  padding: var(--s-3);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.tile-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tile-value { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.2; }
.tile-text { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; }
.tile-note { font-size: 0.75rem; }

/* Audit trail */
.audit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 300px;
  overflow-y: auto;
}
.audit-row {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  flex-wrap: wrap;
}
.audit-row:last-child { border-bottom: none; }
.audit-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  flex: none;
  min-width: 100px;
}
.audit-text { flex: 1; min-width: 200px; max-width: none; }
.audit-scope {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
  align-self: center;
}

/* ---------- Demo page extras ---------- */
.real-card { border-left: 4px solid var(--teal); }
.real-card h2 { font-size: 1.5rem; }
.real-card p { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-8);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s-7);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
}

.footer-tag { font-size: 0.9375rem; margin-top: var(--s-3); }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
}
.footer-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--s-2); }
.footer-col a { text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-contact { font-size: 0.9375rem; font-weight: 600; }
.footer-fine { font-size: 0.8125rem; font-weight: 400; }

.compliance {
  font-size: 0.9375rem;
  font-weight: 600;
  max-width: none;
  margin-bottom: var(--s-3);
}
.footer-meta { font-size: 0.875rem; margin-bottom: 0; max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .demo-columns { grid-template-columns: 1fr; }
  .neo-panel { position: static; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-6); }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-badge { margin-right: 0; order: 3; }
  .header-inner { justify-content: space-between; }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    padding: var(--s-3) 0 var(--s-4);
    border-top: 1px solid var(--line);
    margin-top: var(--s-2);
  }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 12px 8px; border-bottom: none; }
  .nav-list a[aria-current="page"] {
    border-left: 3px solid var(--teal);
    border-bottom: none;
    border-radius: 0 8px 8px 0;
    background: var(--teal-tint);
  }
  .nav-cta { margin-top: var(--s-3); width: 100%; }
}

@media (max-width: 640px) {
  html { font-size: 15px; }
  .container { padding: 0 var(--s-4); }
  .section { padding: 56px 0; }
  .hero { padding: var(--s-7) 0; }
  h1 { font-size: 2.125rem; }
  h2 { font-size: 1.625rem; }

  .hero-inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-art { order: -1; }
  .hero-art svg { width: min(220px, 70%); }

  .cards-2, .promise-grid, .cards-stage, .journey-cards, .tiles {
    grid-template-columns: 1fr;
  }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Journey timeline turns vertical: line on the left, labels right */
  .timeline { flex-direction: column; gap: var(--s-4); }
  .timeline::before {
    left: 11px; right: auto; top: 8px; bottom: 8px;
    width: 1.5px; height: auto;
  }
  .tl-node { flex-direction: row; align-items: baseline; gap: var(--s-3); text-align: left; min-width: 0; }
  .tl-dot { margin-top: 0; align-self: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ring-draw { animation: none; }
  .skip-link { transition: none; }
  .chat-log { scroll-behavior: auto; }
}
