@charset "UTF-8";
/* Rafio public marketing site: editorial institutional design system
   Zero external dependencies. Works offline via file:/// or any static host. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --surface-tint: #f3f1ec;
  --navy: #0f1b2d;
  --navy-deep: #0b1524;
  --navy-soft: #1c2d45;
  --ink: #132033;
  --ink-muted: #4b5a6e;
  --ink-faint: #6f7f93;
  --teal: #0f6e6e;
  --teal-light: #e7f3f3;
  --teal-dark: #0a5252;
  --brass: #b07d3c;
  --brass-soft: #f7f1e6;
  --line: #e4e1d8;
  --line-dark: rgba(255, 255, 255, 0.14);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04), 0 4px 14px rgba(15, 27, 45, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 27, 45, 0.08);
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max-w: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

/* Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  text-decoration: none;
}
.nav-links a.active {
  box-shadow: inset 0 -2px 0 var(--teal);
  padding-bottom: 4px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: #c9c4b8; }
.btn-outline:hover { border-color: var(--navy); background: rgba(15, 27, 45, 0.04); }
.btn-outline-light { background: transparent; color: #f8fafc; border-color: rgba(255,255,255,0.32); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink-muted); padding: 9px 14px; }
.btn-ghost:hover { color: var(--navy); background: rgba(15, 27, 45, 0.04); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* Typography */
.eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.eyebrow-brass { color: var(--brass); }
.eyebrow-light { color: #7dd3c8; }

h1, h2, h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.15rem, 4.2vw, 3.35rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.25rem; font-family: var(--font-sans); font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--ink-muted); }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--ink-muted); line-height: 1.65; }

/* Sections */
.section { padding: 76px 0; }
.section-tight { padding: 52px 0; }
.section-white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tint { background: var(--surface-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark {
  background: var(--navy-deep);
  color: #e2e8f0;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #f8fafc; }
.section-dark p { color: #cbd5e1; }

/* Hero */
.hero {
  padding: 84px 0 72px;
  background: radial-gradient(circle at 85% 15%, rgba(15, 110, 110, 0.08), transparent 45%),
              radial-gradient(circle at 12% 85%, rgba(176, 125, 60, 0.07), transparent 45%),
              var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-footnote {
  margin-top: 22px;
  font-size: 0.86rem;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.hero-footnote span { display: inline-flex; align-items: center; gap: 6px; }

.page-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 680px; }

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card-flat {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.card-dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 26px;
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--teal-light);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.card-icon-brass { background: var(--brass-soft); color: var(--brass); }

/* Stylized Verification Receipt Artifact (Zero UI leak!) */
.receipt-card {
  background: var(--surface);
  border: 1px solid #d9d4c7;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #d4cfc2;
}
.receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-light);
  padding: 4px 10px;
  border-radius: 999px;
}
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #f1efe9;
}
.receipt-row:last-of-type { border-bottom: none; }
.receipt-k { color: var(--ink-faint); font-size: 0.8rem; }
.receipt-v { color: var(--navy); font-weight: 600; text-align: right; }
.receipt-hash {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f5f3ee;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
  word-break: break-all;
}

/* Comparison Table */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.compare-col {
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--line);
}
.compare-col.muted { background: var(--surface-tint); }
.compare-col.highlight {
  background: var(--surface);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 700;
}
.cross-list li::before { content: "\00D7"; color: #94a3b8; }

/* Charter Priority Ladder */
.ladder { display: grid; gap: 12px; margin-top: 20px; }
.ladder-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
}
.ladder-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(176, 125, 60, 0.22);
  border: 1px solid var(--brass);
  color: #f3d5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.ladder-step strong { color: #f8fafc; display: block; margin-bottom: 3px; }
.ladder-step span { color: #cbd5e1; font-size: 0.9rem; }

/* Charter Document Typography */
.charter-doc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 60px);
  box-shadow: var(--shadow-sm);
}
.charter-article {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
}
.charter-article h2 {
  font-size: 1.45rem;
  margin-bottom: 14px;
}
.charter-article p {
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink);
}
.charter-quote {
  border-left: 3px solid var(--brass);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--brass-soft);
  border-radius: 0 8px 8px 0;
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--navy);
}

/* Diagrams */
.diagram-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow-x: auto;
}
.diagram-box-dark {
  background: #0f1f36;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow-x: auto;
}

/* Forms & Contact Log */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 11px 13px;
  border: 1px solid #cfc9bc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(15, 110, 110, 0.25);
  border-color: var(--teal);
}
.alert-ok {
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--teal-light);
  border: 1px solid #9fd4d4;
  color: var(--teal-dark);
  margin-bottom: 20px;
}
.log-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.log-table th, .log-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.log-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  background: var(--bg);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #cbd5e1;
  padding: 56px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-col h4 {
  color: #f8fafc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94a3b8; font-size: 0.9rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
}
.brand-logo-footer {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.raftelis-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.raftelis-logo {
  height: 22px;
  width: auto;
  opacity: 0.85;
}
.raftelis-logo-light {
  height: 20px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

/* Representative Chat Output Card (Hero) */
.chat-card {
  background: var(--surface);
  border: 1px solid #d9d4c7;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  font-size: 0.86rem;
}
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #eeebe4;
}
.chat-thinking {
  background: #f6f4ef;
  border: 1px solid #e5e1d6;
  border-radius: 8px;
  padding: 9px 12px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}
.chat-thinking summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-thinking p {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.chat-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border: 1px solid #cde4e4;
}
.chat-body {
  color: var(--ink);
  font-size: 0.87rem;
  line-height: 1.58;
  margin-bottom: 12px;
}
.chat-body p {
  color: var(--ink);
  margin: 0 0 8px;
}
.cite-sup {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 0 5px;
  border-radius: 4px;
  margin-left: 2px;
  vertical-align: super;
}
.chat-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cite-chip {
  font-size: 0.73rem;
  color: var(--ink-muted);
  background: #f5f3ee;
  border: 1px solid #e4e0d5;
  border-radius: 6px;
  padding: 3px 8px;
}
.chat-deliverables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.deliv-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d9d4c7;
  background: #faf9f6;
}
.deliv-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.deliv-badge.word { background: #1e4b8f; }
.deliv-badge.excel { background: #1c6b42; }
.deliv-badge.ppt { background: #b44b2a; }
.deliv-meta { min-width: 0; }
.deliv-meta strong {
  display: block;
  font-size: 0.76rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.deliv-meta span { font-size: 0.7rem; color: var(--ink-faint); }
.chat-receipt {
  border-top: 1px dashed #d4cfc2;
  padding-top: 10px;
  font-size: 0.74rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}
.chat-receipt code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: #f3f1ec;
  padding: 1px 5px;
  border-radius: 4px;
}

/* Representative Capability Mockups (Abstracted HTML visuals) */
.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.mockup-frame {
  background: var(--surface);
  border: 1px solid #d9d4c7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #f4f2ec;
  border-bottom: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy);
}
.mockup-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
}
.mockup-body { padding: 18px; font-size: 0.84rem; flex: 1; }

/* Word Mockup */
.doc-page {
  background: #fff;
  border: 1px solid #e6e3da;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ink);
}
.doc-del { color: #b91c1c; text-decoration: line-through; background: #fee2e2; padding: 0 3px; border-radius: 3px; }
.doc-ins { color: #0f6e6e; text-decoration: underline; background: #e7f3f3; padding: 0 3px; border-radius: 3px; }
.doc-comment {
  margin-top: 10px;
  padding: 8px 10px;
  border-left: 3px solid var(--brass);
  background: var(--brass-soft);
  border-radius: 0 6px 6px 0;
  font-size: 0.74rem;
  color: #5c3f18;
}

/* Excel Mockup */
.xl-formula {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f5f3ee;
  border: 1px solid #dedad0;
  border-radius: 6px;
  padding: 5px 9px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  margin-bottom: 10px;
  color: var(--navy);
}
.xl-table { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.xl-table th, .xl-table td {
  border: 1px solid #e2dfd6;
  padding: 6px 8px;
  text-align: right;
}
.xl-table th:first-child, .xl-table td:first-child { text-align: left; }
.xl-table th { background: #f4f2ec; color: var(--ink-muted); font-weight: 600; }
.xl-table tr.xl-total td { font-weight: 700; background: #eef6f4; color: var(--navy); }

/* PowerPoint Slide Mockup */
.ppt-slide {
  background: linear-gradient(135deg, #0f1b2d 0%, #162b46 100%);
  color: #f8fafc;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 205px;
  justify-content: space-between;
}
.ppt-slide[hidden] { display: none !important; }
.ppt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ppt-kpi {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  padding: 9px 10px;
}
.ppt-kpi strong { display: block; font-size: 1.05rem; color: #7dd3c8; }
.ppt-kpi span { font-size: 0.68rem; color: #cbd5e1; }
.ppt-bars { display: flex; align-items: flex-end; gap: 10px; height: 64px; padding-top: 6px; }
.ppt-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ppt-bar { width: 100%; border-radius: 4px 4px 0 0; background: #0f6e6e; }
.ppt-bar.accent { background: #c99a5b; }
.ppt-bar-col span { font-size: 0.66rem; color: #cbd5e1; }

/* Space Mockup */
.space-box { display: grid; gap: 8px; }
.space-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  border-radius: 7px;
  background: #faf9f6;
  border: 1px solid #e6e3da;
  font-size: 0.78rem;
}
.space-pill {
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef1f5;
  color: var(--ink-muted);
}

/* Interactive Mockup Controls (PPT slides + Rafio Space dashboard) */
.ppt-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.mini-btn {
  background: #f4f2ec;
  border: 1px solid #d4cfc2;
  color: var(--navy);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}
.mini-btn:hover { background: #e8e4da; }
.mini-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.mini-tab {
  background: #f4f2ec;
  border: 1px solid #d9d4c7;
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
}
.mini-tab.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}
.dash-kpi {
  background: #faf9f6;
  border: 1px solid #e4e0d5;
  border-radius: 8px;
  padding: 7px 8px;
}
.dash-kpi strong { display: block; font-size: 0.92rem; color: var(--navy); }
.dash-kpi span { font-size: 0.65rem; color: var(--ink-faint); }
.dash-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f5f3ee;
  border: 1px solid #e4e0d5;
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 10px;
  font-size: 0.74rem;
}
.dash-slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--teal);
  cursor: pointer;
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.dash-status.ok { background: var(--teal-light); color: var(--teal-dark); }
.dash-status.warn { background: #fef3c7; color: #92400e; }
.dash-chart-wrap {
  background: #faf9f6;
  border: 1px solid #e4e0d5;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.dash-bars {
  display: grid;
  gap: 7px;
}
.dash-bar-row {
  display: grid;
  grid-template-columns: 82px 1fr 44px;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: var(--ink-muted);
}
.dash-track {
  height: 9px;
  background: #eeebe4;
  border-radius: 999px;
  overflow: hidden;
}
.dash-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 999px;
  transition: width 0.25s ease;
}
.xl-table tbody tr { cursor: pointer; }
.xl-table tbody tr.xl-active td { background: #e7f3f3; }

/* Charter Visual Accents */
.charter-head-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.charter-emblem {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-light);
  border: 1px solid #cde4e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.charter-emblem-brass {
  background: var(--brass-soft);
  border-color: #e6d3b3;
}
.charter-svg-band {
  margin: 24px 0 28px;
  padding: 20px;
  background: #faf9f6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

/* Prototype Banner */
.proto-bar {
  background: var(--brass-soft);
  border-bottom: 1px solid #e5d5b7;
  color: #6b4b1e;
  font-size: 0.8rem;
  text-align: center;
  padding: 7px 16px;
}

/* Mobile Responsive (down to 375px) */
@media (max-width: 900px) {
  .hero-grid, .compare-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-links, .nav-actions { display: none; }
  .nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    gap: 14px;
    box-shadow: var(--shadow-md);
  }
  .grid-2, .grid-3, .grid-4, .form-grid, .mockup-grid, .chat-deliverables { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
}

.alert-err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Form grid: let selects shrink to their column */
.form-grid > * { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }

/* RafioBench: full-width hero copy like the landing page */
.page-hero-wide h1, .page-hero-wide .lead { max-width: none; }

/* Charter: collapsed full text */
.charter-more { margin-top: 6px; }
.charter-more summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.charter-more summary::-webkit-details-marker { display: none; }
.charter-more summary::before { content: "\25B8"; transition: transform 0.15s; display: inline-block; }
.charter-more[open] summary::before { transform: rotate(90deg); }
.charter-more[open] summary { margin-bottom: 12px; }


/* Header Login: visible secondary button */
.nav-actions .btn-ghost {
  border: 1px solid #c9c4b8;
  color: var(--navy);
  font-weight: 600;
  background: var(--surface);
}
.nav-actions .btn-ghost:hover { border-color: var(--navy); background: #fff; }

/* PowerPoint tile: every slide fills the tile with head / body / foot */
.mockup-body:has(.ppt-slide) { display: flex; flex-direction: column; }
.mockup-body .ppt-slide { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; padding: 20px 22px 14px; min-height: 0; }
.ppt-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ppt-title { font-family: var(--font-serif); font-weight: 400; font-size: 1.02rem; }
.ppt-tagline { font-size: 0.66rem; color: #7dd3c8; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.ppt-slide .ppt-kpi strong { font-size: 1.2rem; }
.ppt-slide .ppt-kpi span { font-size: 0.7rem; }
.ppt-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ppt-chart-label { font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.ppt-bars { flex: 1; height: auto; min-height: 90px; max-height: 150px; align-items: stretch; }
.ppt-bar-col { height: 100%; justify-content: flex-end; }
.ppt-bar-col em { font-style: normal; font-size: 0.68rem; color: #e2e8f0; }
.ppt-foot { display: flex; justify-content: space-between; font-size: 0.64rem; color: #94a3b8; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 8px; }
.ppt-rows { gap: 10px; }
.ppt-row, .ppt-action {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.ppt-row.recommended { background: rgba(15,110,110,0.32); border-color: #7dd3c8; }
.ppt-row-top { display: flex; justify-content: space-between; font-size: 0.82rem; }
.ppt-row-top strong { color: #f3d5a5; }
.ppt-row.recommended .ppt-row-top strong { color: #7dd3c8; }
.ppt-meter { position: relative; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.12); }
.ppt-meter > div { height: 100%; border-radius: 999px; background: #0f6e6e; }
.ppt-row.recommended .ppt-meter > div { background: #7dd3c8; }
.ppt-meter i { position: absolute; top: -3px; width: 2px; height: 13px; background: #c99a5b; }
.ppt-row-meta { display: flex; gap: 12px; font-size: 0.7rem; color: #cbd5e1; }
.ppt-row-meta .ok { color: #7dd3c8; margin-left: auto; }
.ppt-row-meta .warn { color: #f3d5a5; margin-left: auto; }
.ppt-action { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.ppt-action b {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(176,125,60,0.25); border: 1px solid #c99a5b; color: #f3d5a5;
  font-family: var(--font-serif); font-weight: 400;
}
.ppt-action strong { display: block; font-size: 0.84rem; color: #f8fafc; }
.ppt-action span { font-size: 0.72rem; color: #cbd5e1; }

/* Procurement & Buyer FAQ blocks (AEO + accessible disclosure) */
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color 0.15s ease;
}
.faq-item[open] {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 500;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--teal-light);
}
.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.faq-answer p { margin: 0; }
@media (max-width: 599.98px) {
  .faq-item summary { padding: 15px 16px; font-size: 0.95rem; }
  .faq-answer { padding: 12px 16px 16px; font-size: 0.92rem; }
}

/* Comparison Tables (AEO side-by-side, horizontally scrollable on mobile) */
.compare-wrap {
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.compare-table th,
.compare-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
}
.compare-table thead th {
  background: var(--navy);
  color: #f8fafc;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}
.compare-table thead th.col-rafio {
  background: var(--teal);
  color: #ffffff;
}
.compare-table tbody td.col-rafio {
  background: #f4faf9;
  color: var(--ink);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td:first-child {
  width: 22%;
  color: var(--navy);
}

/* Pricing contrast (Copilot seat vs. Rafio usage) */
.cost-math {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.cost-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  background: var(--surface-tint);
  min-width: 0;
}
.cost-box.highlight {
  background: var(--surface);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.cost-box h3 { margin-bottom: 4px; }
.cost-figure {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 6vw, 2.5rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 10px 0 6px;
  overflow-wrap: anywhere;
}
.cost-box.highlight .cost-figure { color: var(--teal); }
.cost-unit { font-family: var(--font-sans); font-size: 0.95rem; color: var(--ink-muted); margin-left: 2px; }
.cost-formula { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); overflow-wrap: anywhere; }
.cost-note { font-size: 0.88rem; color: var(--ink-faint); margin-top: 16px; }

/* Moonshot callout (Charter + home) */
.charter-moonshot {
  margin: 28px 0 8px;
  padding: 24px 28px;
  border: 1px solid var(--teal);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--teal-light);
}
.charter-moonshot p {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--navy);
  margin: 6px 0 0;
}
.charter-moonshot .btn { margin-top: 14px; }

@media (max-width: 599.98px) {
  .cost-math { grid-template-columns: 1fr; gap: 16px; }
  .cost-box { padding: 20px; }
  .charter-moonshot { padding: 18px 18px; }
  .charter-moonshot p { font-size: 1.05rem; }
}
