/* Oxi Group — site styles.
   Layout: ink header and bands alternate with a pale stone ground; one orange accent marks action. */
:root {
  --ink: #0F1724;
  --ink-2: #1A2536;
  --ink-line: #2A3547;
  --ground: #F5F6F4;
  --paper: #FFFFFF;
  --line: #E2E5E9;
  --text: #0F1724;
  --muted: #4B5563;
  --on-ink: #F5F6F4;
  --on-ink-muted: #C9CED6;
  --on-ink-quiet: #9AA3B2;
  --accent: #F97316;
  --accent-ink: #C2410C;
  --accent-ink-hover: #9A3412;
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 20px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent-ink); }
a:hover { color: var(--accent-ink-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.section { padding-block: 96px; }
@media (max-width: 720px) { .section { padding-block: 64px; } }

/* Type */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.h1 { font-weight: 700; font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.02em; }
.h1-sub { font-size: clamp(36px, 5vw, 60px); max-width: 900px; }
.h2 { font-weight: 700; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.015em; }
.h3 { font-weight: 600; font-size: 23px; line-height: 1.25; }
.h4 { font-weight: 600; font-size: 19px; line-height: 1.3; }
.narrow { max-width: 760px; }
.eyebrow { margin: 0 0 14px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow-dark { color: var(--accent); }
.lead { margin: 20px 0 0; font-size: 18px; color: var(--muted); max-width: 62ch; }
.lead-dark { margin: 24px 0 0; font-size: 19px; color: var(--on-ink-muted); max-width: 62ch; }
.link-dark { color: var(--accent); }
p { margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; border: 0; font-family: inherit; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: #FB8B3C; color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-outline { background: transparent; color: var(--on-ink); border: 1.5px solid #5B6576; }
.btn-outline:hover { background: var(--ink-2); color: var(--on-ink); }
.btn-block { width: 100%; }
.btn-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { background: var(--ink); color: var(--on-ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-ink); font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand:hover { color: var(--on-ink); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
.nav-links a:not(.btn) { color: #D6DAE0; text-decoration: none; padding-block: 10px; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { color: var(--on-ink); }
.nav-links a[aria-current="page"]:not(.btn) { color: var(--on-ink); border-bottom-color: var(--accent); }
@media (max-width: 640px) { .nav-links { gap: 4px 18px; width: 100%; } .nav-links .btn { margin-left: auto; } }

/* Hero */
.hero { padding-block: 72px 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-text { flex: 999 1 520px; min-width: 0; }
.hero-tiles { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--ink-2); border-radius: 16px; padding: 22px; color: var(--on-ink); text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: transform .15s ease, background .15s ease; }
.tile:hover { color: var(--on-ink); background: #223047; transform: translateY(-2px); }
.tile-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.tile-sub { font-size: 14px; color: var(--on-ink-quiet); }
.tile-accent { background: var(--accent); color: var(--ink); grid-column: span 2; }
.tile-accent:hover { background: #FB8B3C; color: var(--ink); }
.tile-accent .tile-name { font-weight: 700; }
.tile-accent .tile-sub { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

.subhero { padding-block: 64px 88px; }

/* Cards */
.cards { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.card p { color: var(--muted); }
.card-dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.card-dark p { color: var(--on-ink-muted); }
.card-foot { margin-top: auto; padding-top: 4px; }
.more { font-weight: 600; font-size: 15px; display: inline-block; padding-block: 10px; }
.more::after { content: " →"; }
.more-dark { color: var(--accent); }
.more-dark:hover { color: #FDBA74; }

/* Bands and splits */
.band-dark { background: var(--ink); color: var(--on-ink); }
.band-paper { background: var(--paper); border-block: 1px solid var(--line); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split-main { flex: 1 1 420px; min-width: 0; }
.split-side { flex: 1 1 420px; min-width: 0; }
.narrow-col { flex: 1 1 320px; }
.wide { flex: 2 1 560px; }

.chips-col { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.chips-label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-quiet); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid #5B6576; border-radius: 999px; padding: 9px 16px; font-size: 15px; font-weight: 500; }
.note-dark { color: var(--on-ink-muted); font-size: 15px; }

/* Steps */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 24px; }
.steps li { border-top: 3px solid var(--accent-ink); padding-top: 20px; }
.steps p { margin-top: 8px; color: var(--muted); }
.step-n { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.step-t { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-top: 6px; }
.steps-dark { margin-top: 48px; }
.steps-dark li { border-top-color: var(--accent); }
.steps-dark .step-n { color: var(--accent); }
.steps-dark p { color: var(--on-ink-muted); }

.gov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; }
.gov-grid p { margin-top: 8px; color: var(--muted); }

/* Businesses page */
.jump { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 28px 0; }
.jump a { text-decoration: none; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 14.5px; font-weight: 500; }
.jump a:hover { border-color: var(--accent-ink); color: var(--accent-ink); }
.biz { scroll-margin-top: 16px; }
.biz-alt { background: var(--paper); border-block: 1px solid var(--line); }
.biz-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.biz-head { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.biz-head .icon { margin-bottom: 16px; }
.biz-body { flex: 1 1 460px; min-width: 0; padding-top: 8px; }
.biz-products { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--ground); border-radius: 14px; padding: 12px 16px; }
.biz-alt .product { background: var(--ground); }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.product-domain { font-size: 14px; color: var(--muted); }
.feature-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.feature-list li { padding-block: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.feature-list li:first-child { padding-top: 0; }
.feature-list strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.biz-note { margin-top: 24px; font-size: 14.5px; color: var(--muted); background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.biz-alt .biz-note { background: var(--ground); }

/* Academy */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.compare-col { background: var(--ink-2); color: var(--on-ink-muted); border-radius: 16px; padding: 24px; }
.compare-head { font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-ink-quiet); }
.compare ul { margin: 14px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; }
.compare-accent { background: var(--accent); color: var(--ink); }
.compare-accent .compare-head { color: var(--ink); font-weight: 700; }

/* About */
.principles { display: flex; flex-direction: column; }
.principles > div { padding-block: 20px; border-bottom: 1px solid var(--line); }
.principles > div:first-child { padding-top: 0; }
.principles p { color: var(--muted); margin-top: 4px; }
.principle-k { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.org { margin-top: 48px; display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.org-top { align-self: center; width: min(420px, 100%); background: var(--ink); color: var(--on-ink); border-radius: 16px; padding: 20px 24px; text-align: center; display: flex; flex-direction: column; gap: 2px; position: relative; }
.org-top .org-sub { color: var(--on-ink-quiet); }
.org-top::after { content: ""; position: absolute; left: 50%; bottom: -32px; width: 2px; height: 32px; background: var(--line); }
.org-grid { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.org-unit { background: var(--ground); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.org-unit:hover { border-color: var(--accent-ink); color: var(--text); }
.org-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.org-sub { font-size: 14px; color: var(--muted); }

/* Contact */
.contact-list { margin: 32px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.contact-list li { padding-block: 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.contact-list strong { display: block; color: var(--text); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field select, .field textarea { font: inherit; color: var(--text); background: var(--ground); border: 1px solid #C9CED6; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent-ink); }
.field [aria-invalid="true"] { border-color: #B91C1C; }
.form-status { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form-status.is-error { color: #B91C1C; }
.form-status.is-ok { color: #166534; }

/* CTA */
.cta { background: var(--ink); color: var(--on-ink); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.cta-text { flex: 999 1 460px; min-width: 0; }
.cta .lead-dark { font-size: 18px; margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--ground); }
.footer-grid { padding-block: 56px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 32px; font-size: 14.5px; color: var(--muted); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--text); }
.footer-brand p { margin-top: 8px; max-width: 32ch; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-head { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-base { padding-block: 20px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* OXiAgro, powered by DeepLeaf (attribution required by the DeepLeaf agreement) */
.powered { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 18px 8px 8px; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 14px; max-width: 100%; }
.powered .oa-logo { display: block; height: 46px; width: auto; max-width: 100%; }
.powered-by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--on-ink-quiet); letter-spacing: 0.02em; border-left: 1px solid var(--ink-line); padding-left: 14px; }
.dl-logo { display: block; height: 30px; width: auto; }
.powered-sm { padding: 4px 14px 4px 4px; gap: 6px 10px; margin-bottom: 6px; }
.powered-sm .oa-logo { height: 32px; }
.powered-sm .powered-by { font-size: 12px; padding-left: 10px; gap: 6px; }
.powered-sm .dl-logo { height: 22px; }
.credit-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--on-ink-quiet); border-radius: 999px; padding: 6px 16px; font-size: 13px; }
.credit-chip .dl-logo { height: 22px; }
.card-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }

/* ScaleGate story */
.story-head { display: flex; flex-direction: column; gap: 4px; }
.sg-logo { display: block; width: min(320px, 70%); height: auto; margin-bottom: 36px; background: #000; padding: 14px 18px; border-radius: 14px; box-sizing: content-box; }
.story-roles { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.role { background: var(--ink-2); border-radius: 18px; padding: 28px; color: var(--on-ink-muted); }
.role p { margin-top: 10px; }
.role-k { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--on-ink); }
.role-accent { background: transparent; border: 1.5px solid var(--accent); }
.story-sub { margin-top: 64px; color: var(--on-ink); }
.story .steps-dark { margin-top: 28px; }
.story-note { margin-top: 40px; max-width: 78ch; font-size: 14.5px; color: var(--on-ink-quiet); border-top: 1px solid var(--ink-line); padding-top: 20px; }

/* OXiAgro page */
.btn-ink { background: var(--ink); color: var(--on-ink); }
.btn-ink:hover { background: var(--ink-2); color: var(--on-ink); }
.biz-products .btn { margin-top: 4px; }
.powered-hero { margin-bottom: 32px; }
.dl-tag { display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: 0.02em; color: #1E7742; background: #E8F4EC; border: 1px solid #CBE5D3; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.loop { margin-top: 48px; display: grid; grid-template-columns: 2fr 3fr; gap: 0 24px; }
.loop-owner { font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 3px solid; }
.loop-owner-dl { color: #1E7742; border-color: #2E9E5B; }
.loop-owner-oxi { color: var(--accent-ink); border-color: var(--accent-ink); }
.loop-steps { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.loop-steps li { padding-top: 20px; }
.loop-steps p { margin-top: 8px; color: var(--muted); }
.loop-dl .step-n { color: #1E7742; }
@media (max-width: 860px) {
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop-owner-oxi { display: none; }
  .loop-owner-dl { border-bottom: 0; padding-bottom: 0; }
  .loop-steps { grid-template-columns: 1fr; gap: 0; }
  .loop-steps li { border-top: 1px solid var(--line); padding-block: 18px; }
  .loop-steps li:first-child { border-top: 0; }
  .loop-dl { border-left: 3px solid #2E9E5B; padding-left: 16px; }
  .loop-oxi { border-left: 3px solid var(--accent-ink); padding-left: 16px; }
}
.caps { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.cap { background: var(--ground); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cap p { color: var(--muted); }
.caps-plain .cap { background: var(--paper); }
.caps-note { margin-top: 28px; max-width: 78ch; font-size: 14.5px; color: var(--muted); }
.audience { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 24px; }
.audience > div { border-top: 1px solid var(--ink-line); padding-top: 18px; }
.audience p { margin-top: 8px; color: var(--on-ink-muted); }
.agro-credit { padding-block: 0 48px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 13.5px; color: var(--muted); }
.agro-mark { display: block; height: 60px; width: auto; margin-bottom: 28px; }
.loop-5 { margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.agro-credit { padding-block: 0 40px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dl-logo-min { height: 16px; width: auto; background: var(--ink); border-radius: 4px; padding: 3px 6px; box-sizing: content-box; }

/* OxiAI / OxiAcademy streams */
.streams { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.stream { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px; transition: border-color .15s ease; }
.stream:hover { color: var(--text); border-color: var(--accent-ink); }
.stream-accent { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.stream-accent:hover { color: var(--on-ink); border-color: var(--accent); }
.stream-k { font-size: 13.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }
.stream-accent .stream-k { color: var(--accent); }
.stream-t { font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1.25; }
.stream-p { color: var(--muted); }
.stream-accent .stream-p { color: var(--on-ink-muted); }
.stream-intro { padding-bottom: 0; }
.gov-dark p { color: var(--on-ink-muted); }
.card-foot .more + .more { padding-top: 0; }
.deploy-steps { margin-top: 48px; }

/* AIS Framework / Matican strip */
.ais-strip { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; }
.ais-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.ais-logos img { display: block; height: 36px; width: auto; max-width: 100%; }
.ais-strip p { flex: 1 1 320px; min-width: 0; font-size: 14.5px; color: var(--muted); }
.biz-products .ais-strip { margin-top: 12px; flex-basis: 100%; }
.compare-light .compare-col:not(.compare-accent) { background: var(--ground); color: var(--muted); border: 1px solid var(--line); }
.compare-light .compare-col:not(.compare-accent) .compare-head { color: var(--text); }

/* OxiAi page — updated from the oxiai.africa landing page (Oct 2026) */
.accent-text { color: var(--accent); }
.stream-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
.stream-list li { position: relative; padding-left: 20px; }
.stream-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.stream-accent .stream-list { color: var(--on-ink-muted); }
.agent-tbl { margin-top: 40px; overflow-x: auto; border-radius: var(--radius); }
.agent-t { width: 100%; border-collapse: collapse; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.agent-t th, .agent-t td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.agent-t tr:last-child td { border-bottom: 0; }
.agent-t thead th { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--paper); }
.agent-t thead th.on { color: var(--accent-ink); }
.agent-t td:first-child { color: var(--muted); width: 34%; }
.agent-t td:last-child { color: var(--text); font-weight: 500; }
.scenes { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .scenes { grid-template-columns: 1fr; max-width: 560px; } }
.scene { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.scene-badge { background: var(--ink); color: var(--on-ink); padding: 18px 20px; display: grid; gap: 4px; }
.scene-tag { font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.scene-badge strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.scene-badge dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 13px; }
.scene-badge dt { color: var(--on-ink-quiet); }
.scene-badge dd { margin: 0; color: var(--on-ink-muted); }
.chat { padding: 18px 16px; display: grid; gap: 8px; align-content: start; background: #EEF0EC; }
.msg { margin: 0; max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-c { justify-self: end; background: var(--paper); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.msg-a { justify-self: start; background: var(--ink); color: var(--on-ink); border-bottom-left-radius: 4px; }
.msg-h { justify-self: center; max-width: 100%; color: var(--accent-ink); font-size: 12.5px; font-weight: 600; padding: 4px 0; text-align: center; }
.msg-who { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }
.scene-foot { margin: 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.scene-foot b { color: var(--text); font-weight: 600; }
.scene-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.ais-strip-top { margin-top: 0; }
.cta-gap { margin-top: 48px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 600px) { .agent-t { font-size: 14.5px; } .agent-t th, .agent-t td { padding: 12px 14px; } .agent-t td:first-child { width: 40%; } }
