/* Misma ARM — commercial site.
   Dark, typographic, unhurried. The audience reads specifications for a living; the design
   gets out of the way of the argument. */

:root {
  --bg: #0a0e13;
  --bg-alt: #0d131a;
  --panel: #121a23;
  --panel-2: #16202b;
  --line: #1f2c3a;
  --line-soft: #182430;
  --text: #e7eef6;
  --dim: #8fa0b4;
  --dimmer: #6c7d92;
  --accent: #4da3ff;
  --accent-soft: #16324d;
  --ok: #3fb950;
  --warn: #d9a441;
  --bad: #f0674f;
  --max: 1120px;
}

* { box-sizing: border-box; }

/* A CSS display rule silently beats the hidden attribute — say it once, here. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 ui-sans-serif, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 650; }
h3 { font-size: 16px; font-weight: 650; }
p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { font-weight: 650; }

.kicker {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}
.lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--dim); max-width: 68ch; }
.lede strong { color: var(--text); }
.micro { font-size: 13px; color: var(--dimmer); }
.micro.center { text-align: center; }
.note { font-size: 14px; color: var(--dimmer); margin: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.02em;
         display: inline-flex; align-items: center; gap: 9px; }
.brand span { color: var(--accent); }
.brand img { display: block; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--dim); font-size: 14px; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
/* The nav link rule above outranks .btn on specificity, so the call-to-action was
   inheriting the DIM link colour on its own accent background — barely legible. Restate
   it here: dark ink on the accent, which is the pairing the rest of the page uses. */
.nav nav a.btn,
.nav nav a.btn:hover { color: #05101c; font-weight: 700; }
@media (max-width: 720px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #06111f;
  font: inherit; font-weight: 650; font-size: 15px;
  padding: 12px 22px; border: 0; border-radius: 10px; cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn.small { padding: 8px 15px; font-size: 13.5px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }

/* ---------- sections ---------- */
.hero { padding: 92px 0 76px; border-bottom: 1px solid var(--line-soft); }
.hero .lede { margin-bottom: 18px; }
.band { padding: 76px 0; border-bottom: 1px solid var(--line-soft); }
.band.alt { background: var(--bg-alt); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.contrast { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.contrast .row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14px;
}
.contrast .row:last-child { border-bottom: 0; }
.contrast .then, .contrast .now { padding: 13px 16px; }
.contrast .then { color: var(--dimmer); text-decoration: line-through; text-decoration-color: #3a4a5c; }
.contrast .now { color: var(--text); background: rgba(77, 163, 255, .045); border-left: 1px solid var(--line-soft); }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 18px; margin-top: 34px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: #2b3d51; transform: translateY(-2px); }
.card h3 { color: var(--text); }
.card p { font-size: 15px; color: var(--dim); }
.card p:last-child { margin-bottom: 0; }
.card em { color: var(--text); font-style: normal; }

/* ---------- flow diagram ---------- */
.flow { width: 100%; height: auto; margin: 26px 0 18px; }
.flow .n { fill: var(--panel); stroke: var(--line); }
.flow .n.gate { fill: #15222f; stroke: #305070; }
.flow .n.blocked { fill: #1d1517; stroke: #47262a; }
.flow .t { fill: var(--text); }
.flow .s { fill: var(--dimmer); font-size: 10.5px; }
.flow .t.b { fill: var(--bad); }
.flow .e { stroke: #3d5570; stroke-width: 1.4; fill: none; }
.flow .e.r { stroke: #6b3a3a; }
.flow .e.dash { stroke-dasharray: 4 4; }

/* ---------- learn ---------- */
.faq { margin: 30px 0 26px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 40px 18px 0; font-size: 17px; font-weight: 600; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 14px;
  font-size: 22px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq details > div { padding: 0 0 20px; }
.faq details p { color: var(--dim); font-size: 15.5px; margin: 0 0 14px; }
.faq details p:last-child { margin-bottom: 0; }
.faq details em { color: var(--text); font-style: italic; }

/* ---------- lead gate ---------- */
.gate-card, .chat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 30px;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.fields .full { grid-column: 1 / -1; }
label { display: block; font-size: 12.5px; color: var(--dim); font-weight: 600; }
input, textarea {
  width: 100%; margin-top: 6px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font: inherit; font-size: 15px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
.err { color: var(--bad); font-size: 14px; margin: 12px 0 0; }

/* ---------- chat ---------- */
.chat-card { padding: 0; overflow: hidden; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.chat-head .sub { display: block; font-size: 12.5px; color: var(--dimmer); margin-top: 2px; }
.badge {
  font-size: 11px; color: var(--warn); border: 1px solid #3b3524;
  background: #1e1a11; padding: 4px 10px; border-radius: 20px;
}
.log { padding: 22px; max-height: 62vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.log:empty { display: none; }
.msg { max-width: 92%; font-size: 15.5px; }
.msg.you { align-self: flex-end; background: #17222e; border: 1px solid var(--line);
           padding: 12px 16px; border-radius: 14px 14px 4px 14px; color: var(--text); }
.msg.agent { align-self: flex-start; color: var(--text); }
.msg.agent .who { font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
                  color: var(--accent); margin-bottom: 7px; font-weight: 600; }
.msg.agent p { margin: 0 0 12px; }
.msg.agent p:last-child { margin-bottom: 0; }
.cursor { display: inline-block; width: 7px; height: 17px; background: var(--accent);
          vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 4px; }
.suggest button {
  background: transparent; border: 1px solid var(--line); color: var(--dim);
  font: inherit; font-size: 13px; padding: 8px 13px; border-radius: 20px; cursor: pointer;
  text-align: left;
}
.suggest button:hover { border-color: var(--accent); color: var(--text); }

#ask-form { display: flex; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--line); align-items: flex-end; }
#ask-form textarea { margin: 0; }
#ask-form .btn { flex: none; }

.claim-bar { display: flex; align-items: center; justify-content: flex-end; gap: 12px;
             padding: 0 22px 20px; }

/* ---------- footer ---------- */
footer { padding: 34px 0 60px; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
        color: var(--dim); font-size: 14px; }
