/* Origin Matters example apps — shared with leonard-platform / originmatters.ai */
:root {
  --ink: #102840;
  --ink-soft: #2a4660;
  --muted: #5a7388;
  --line: rgba(16, 40, 64, 0.12);
  --paper: #eef5fa;
  --paper-2: #e2eef6;
  --white: #f7fbfe;
  --accent: #0098c4;
  --accent-soft: rgba(0, 192, 240, 0.14);
  --ok: #0d7a5f;
  --danger: #b42318;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --radius: 14px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.om-example {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 192, 240, 0.12), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(16, 40, 64, 0.07), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--white) 40%, var(--paper-2) 100%);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.om-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

.om-nav-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.om-nav-brand span {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

.om-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.om-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: #e8f4fa;
  font-size: 0.85rem;
  font-weight: 600;
}

.om-nav-cta.leonard {
  background: var(--accent);
  color: var(--ink);
}

.om-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.om-hero {
  padding: 2.5rem 0 2rem;
  max-width: 40rem;
}

.om-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.65rem;
}

.om-hero h1 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.om-lede {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.om-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--ink);
  color: #e8f4fa;
}

.btn-accent {
  background: var(--accent);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--ink);
}

.btn-success {
  background: var(--ok);
  color: #fff;
}

.btn-reset {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.leonard-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 152, 196, 0.35);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.step-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(247, 251, 254, 0.92);
  backdrop-filter: blur(8px);
  z-index: 5;
}

.step-rail a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.step-rail a:hover,
.step-rail a.is-active {
  color: var(--ink);
  background: var(--accent-soft);
}

.story-panel {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.story-panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.story-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.governance-section {
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
}

.governance-section.highlight-section {
  border-color: rgba(0, 152, 196, 0.45);
  box-shadow: inset 0 0 0 1px var(--accent-soft);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  flex: 1;
}

.section-icon {
  display: none;
}

.section-description {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.overall-status-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.om-footer {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.om-footer a {
  color: var(--accent);
  font-weight: 600;
}

.login-card {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.login-card h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.login-card .om-lede {
  font-size: 0.95rem;
}

.login-card label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

.login-card input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
}

.status-display {
  margin-top: 0.75rem;
}

.status-success,
.status-error,
.status-loading {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
}

.status-success {
  border-color: rgba(13, 122, 95, 0.35);
}

.status-error {
  border-color: rgba(180, 35, 24, 0.35);
}

.leonard-callout {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(0, 152, 196, 0.3);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.leonard-callout strong {
  color: var(--ink);
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--ink);
  color: #e8f4fa;
}

.badge-demo {
  background: var(--accent);
  color: var(--ink);
}

.use-cases {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.use-case-card {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.use-case-card.primary {
  border-color: rgba(0, 152, 196, 0.45);
  background: rgba(255, 255, 255, 0.85);
}

.use-case-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.use-case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.use-case-card.is-unavailable {
  opacity: 0.85;
  cursor: default;
  background: rgba(255, 255, 255, 0.4);
}

.use-case-card .scenario-note {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.use-case-card .scenario-tag {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.model-gallery-container,
.details-panel,
.demo-results,
.timeline-container,
.reports-grid {
  margin-top: 1rem;
}

.reports-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 800px) {
  .reports-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.report-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.report-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.report-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}

.report-icon,
.spinner {
  /* keep functional; avoid emoji-heavy chrome */
}

.hash-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.back-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.user-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- Brand overrides for legacy dashboard.css (must load after it) ---- */
body.om-example .btn {
  border-radius: 999px;
  box-shadow: none;
  background-image: none;
}

body.om-example .btn-primary,
body.om-example .btn-success {
  background: var(--ink) !important;
  background-image: none !important;
  color: #e8f4fa !important;
}

body.om-example .btn-accent {
  background: var(--accent) !important;
  background-image: none !important;
  color: var(--ink) !important;
}

body.om-example .btn-secondary,
body.om-example .btn-ghost {
  background: var(--accent-soft) !important;
  background-image: none !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

body.om-example .btn-danger {
  background: var(--ink) !important;
  background-image: none !important;
  color: #e8f4fa !important;
  border: 1px solid rgba(16, 40, 64, 0.35);
}

body.om-example .btn-reset {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
}

/* Drop oversized emoji status icons; use a cyan mark instead */
body.om-example .status-success .status-icon,
body.om-example .status-error .status-icon {
  font-size: 0 !important;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 999px;
  flex-shrink: 0;
  line-height: 0;
}

body.om-example .status-success .status-icon {
  background: var(--accent);
}

body.om-example .status-error .status-icon {
  background: var(--ink);
  opacity: 0.55;
}

body.om-example .gate-icon {
  display: none !important;
}

body.om-example .gate-check {
  background: var(--accent-soft) !important;
}

body.om-example .check-icon {
  color: var(--accent) !important;
}

body.om-example .detection-success,
body.om-example .model-card.sealed,
body.om-example .status-badge.verified {
  border-color: rgba(0, 152, 196, 0.45) !important;
}

body.om-example .status-badge.verified,
body.om-example .blockchain-info {
  color: var(--ink-soft) !important;
}

body.om-example .model-card.sealed {
  border-left-color: var(--accent) !important;
}

body.om-example .overall-status-container .status-success,
body.om-example #overall-status {
  color: var(--ink);
}

body.om-example .spinner {
  border-top-color: var(--accent) !important;
}

body.om-example .model-card-action.seal-btn,
body.om-example .model-card-action.sealing-btn {
  background: var(--ink) !important;
  background-image: none !important;
  color: #e8f4fa !important;
}

body.om-example .model-card-action.seal-btn:hover {
  background: var(--ink-soft) !important;
}

body.om-example .model-card-action.sealed-btn {
  background: var(--accent) !important;
  color: var(--ink) !important;
}

body.om-example .details-panel li {
  list-style: disc;
  margin-left: 1.1rem;
}
