/* ===========================================================================
   Simons Digital Solutions — demo.css
   Shared styles for the three live demos (/demos/*). They load on their own
   page and inside the /dashboards/ iframes, so this file carries its own
   copy of the brand tokens instead of depending on main.css.

   Charts: one series colour (brand teal), with a gray "before" step for
   emphasis. Mint stays reserved for the outgoing text-message bubble.
=========================================================================== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --plane:        #f4f7f6;
  --surface:      #ffffff;
  --text:         #0d2137;
  --text-soft:    #3a4a60;
  --text-muted:   #5a7488;
  --border:       #dde5e2;
  --grid:         #e8eeec;
  --axis:         #c5d0cc;
  --accent:       #1b5c4e;
  --accent-hover: #134c41;
  --accent-soft:  #e8f5f0;
  --accent-tint:  #c8e6dc;
  --accent-bright:#4ecba5;
  --series:       #1b5c4e;
  --series-before:#a9b8c1;
  --good:         #146c43;
  --warn:         #a14a07;
  --warn-soft:    #fdf3e7;
  --navy:         #0d2137;

  --radius-sm: 6px;  --radius-md: 8px;  --radius-lg: 12px;  --radius-xl: 16px;
  --space-1: 4px;   --space-2: 8px;   --space-3: 12px;  --space-4: 16px;
  --space-5: 24px;  --space-6: 32px;  --space-7: 48px;  --space-8: 64px;

  --shadow-sm: 0 1px 2px rgba(13, 33, 55, 0.05);
  --shadow-md: 0 4px 12px rgba(13, 33, 55, 0.07);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--plane);
  -webkit-font-smoothing: antialiased;
}
ul, ol { list-style: none; }
button, select, input { font: inherit; color: inherit; }
a { color: var(--accent); }
svg { display: block; }
:where(a, button, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }

/* ── Top bar ─────────────────────────────────────────────────────────────── */
.demo-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.demo-back {
  font-weight: 800; letter-spacing: -0.035em; color: var(--navy);
  text-decoration: none; font-size: 0.95rem;
}
.demo-back::before { content: '\2190\00a0'; font-weight: 600; color: var(--text-muted); }
.demo-back span { color: var(--accent-bright); }
.demo-badge {
  padding: 2px 10px; border-radius: 999px;
  background: var(--warn-soft); color: var(--warn);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
}
.demo-bar-cta {
  margin-left: auto;
  font-weight: 600; font-size: 0.9rem;
  min-height: 44px; display: inline-flex; align-items: center;
}
/* Inside the site's own page the site header is already above us. */
.is-framed .demo-back { display: none; }
.is-framed .demo-bar { border: 1px solid var(--border); border-width: 0 0 1px; }

/* ── Page frame ──────────────────────────────────────────────────────────── */
.demo-main {
  max-width: 1120px; margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
@media (min-width: 720px) {
  .demo-main { padding: var(--space-5) var(--space-5) var(--space-7); gap: var(--space-5); }
}

.dh { display: flex; flex-direction: column; gap: var(--space-3); }
.dh-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.dh-eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.dh h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.85rem); line-height: 1.2; letter-spacing: -0.02em; }
.dh-lead { color: var(--text-soft); max-width: 62ch; }

/* Connection chips: where the numbers came from. */
.sync { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.sync li {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-soft);
}
.sync strong { color: var(--text); font-weight: 600; }
.sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px #dcefe5; flex: none; }

/* Segmented control. */
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px;
  background: var(--grid); border-radius: var(--radius-md);
}
.seg button {
  min-height: 36px; padding: 0 var(--space-3);
  border: 0; border-radius: var(--radius-sm); background: transparent;
  font-size: 0.85rem; font-weight: 600; color: var(--text-soft); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-label { font-size: 0.8rem; color: var(--text-muted); margin-right: var(--space-2); }

/* ── Cards and grids ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  min-width: 0;
}
@media (min-width: 720px) { .card { padding: var(--space-5); } }
.card > h2, .card-head h2 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.card-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-4); }
.card > h2 + .card-sub { margin-bottom: var(--space-4); }

.grid { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .grid { gap: var(--space-5); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-60 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .grid-40 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* ── Stat tiles ──────────────────────────────────────────────────────────── */
.kpis { display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
.kpi {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-3) var(--space-4);
  min-width: 0;
}
.kpi-label { font-size: 0.8rem; color: var(--text-muted); }
.kpi-value { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.kpi-note { font-size: 0.78rem; color: var(--text-soft); }
.kpi.is-hero { grid-column: 1 / -1; background: var(--navy); border-color: var(--navy); color: #fff; padding: var(--space-4) var(--space-5); }
.kpi.is-hero .kpi-label { color: #a8bccc; font-size: 0.85rem; }
.kpi.is-hero .kpi-value { font-size: clamp(2.4rem, 1.9rem + 2vw, 3.2rem); letter-spacing: -0.03em; }
.kpi.is-hero .kpi-note { color: #e6eef5; }
@media (min-width: 900px) {
  .kpis.has-hero { grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); }
  .kpi.is-hero { grid-column: span 1; grid-row: span 2; justify-content: center; }
}

.delta { font-weight: 600; }
.delta.is-up { color: var(--good); }
.delta.is-down { color: var(--warn); }
.is-hero .delta.is-up { color: var(--accent-bright); }
.is-hero .delta.is-down { color: #f6b26b; }

.flag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700; color: var(--warn);
  white-space: nowrap;
}
.flag::before {
  content: '!'; display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--warn); color: #fff; font-size: 0.68rem; font-weight: 800;
}
.flag.is-good { color: var(--good); }
.flag.is-good::before { content: '\2713'; background: var(--good); }

/* ── Bar list (one series, one highlighted) ──────────────────────────────── */
.bars { display: flex; flex-direction: column; gap: var(--space-3); }
.bars li { display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); font-size: 0.88rem; }
.bars .track { display: block; }
.bars .bar { display: block; height: 12px; border-radius: 0 4px 4px 0; background: var(--series-before); min-width: 2px; transition: width 0.4s ease; }
.bars li.is-key { font-weight: 700; }
.bars li.is-key .bar { background: var(--series); }
.bars .val { font-variant-numeric: tabular-nums; text-align: right; min-width: 3.5em; }

/* ── Charts ──────────────────────────────────────────────────────────────── */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--text-muted); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .mark-label { fill: var(--text); font-size: 11px; font-weight: 600; font-family: var(--font-body); }
.chart .note-line { stroke: var(--text-muted); stroke-width: 1; }
.chart .note-text { fill: var(--text-soft); font-size: 11px; font-weight: 600; font-family: var(--font-body); }
.chart .hit { fill: transparent; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--series); opacity: 0.08; }
.chart .dot { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.tip {
  position: absolute; z-index: 5; pointer-events: none;
  padding: 6px 10px; border-radius: var(--radius-md);
  background: var(--navy); color: #fff; font-size: 0.8rem; line-height: 1.35;
  white-space: nowrap; box-shadow: var(--shadow-md);
  transform: translate(-50%, calc(-100% - 10px));
}
.tip strong { font-weight: 700; }
.tip[hidden] { display: none; }

.legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); font-size: 0.8rem; color: var(--text-soft); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--series); }
.legend i.is-before { background: var(--series-before); }

.table-view { margin-top: var(--space-3); font-size: 0.85rem; }
.table-view summary { cursor: pointer; color: var(--text-muted); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }
.table-view table { margin-top: var(--space-2); }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin: 0 calc(var(--space-4) * -1); padding: 0 var(--space-4); }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.tbl th, .tbl td { padding: 9px var(--space-2); text-align: left; border-bottom: 1px solid var(--grid); vertical-align: middle; }
.tbl th { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .item { font-weight: 600; }
.tbl .cat { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }
@media (max-width: 560px) { .tbl .hide-sm { display: none; } }

/* ── Plain-English notes ─────────────────────────────────────────────────── */
.notes { display: flex; flex-direction: column; gap: var(--space-3); counter-reset: note; }
.notes li {
  position: relative; padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 30px);
  background: var(--accent-soft); border-radius: var(--radius-md);
  font-size: 0.92rem; color: var(--text);
}
.notes li::before {
  counter-increment: note; content: counter(note);
  position: absolute; left: var(--space-3); top: var(--space-3);
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
}
.notes li.is-warn { background: var(--warn-soft); }
.notes li.is-warn::before { background: var(--warn); }
.notes .src { display: block; margin-top: 2px; font-size: 0.75rem; color: var(--text-soft); }

/* ── Form bits ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field + .field { margin-top: var(--space-4); }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--text-soft); }
.field select {
  min-height: 44px; padding: 0 var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
}
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }
.whatif-out {
  margin-top: var(--space-4); padding: var(--space-4);
  border-radius: var(--radius-md); background: var(--plane);
}
.whatif-big { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.whatif-out p { font-size: 0.88rem; color: var(--text-soft); margin-top: var(--space-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5);
  border-radius: var(--radius-sm); border: 1px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost { background: var(--surface); color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ── Phone and text messages ─────────────────────────────────────────────── */
.phone {
  width: 100%; max-width: 360px; margin: 0 auto;
  border: 1px solid var(--border); border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow-md);
  overflow: hidden; display: flex; flex-direction: column;
}
.phone-head {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--grid);
}
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem;
}
.phone-name { font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.phone-meta { font-size: 0.75rem; color: var(--text-muted); }
.thread {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-4);
  min-height: 360px;
}
.msg {
  max-width: 85%; padding: 8px 12px; border-radius: 16px;
  font-size: 0.88rem; line-height: 1.4; overflow-wrap: anywhere;
}
.msg-in { align-self: flex-start; background: var(--grid); color: var(--text); border-bottom-left-radius: 4px; }
.msg-out { align-self: flex-end; background: var(--accent-bright); color: #06231c; border-bottom-right-radius: 4px; }
.msg-owner { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg-who { display: block; font-size: 0.7rem; font-weight: 700; opacity: 0.75; margin-bottom: 2px; }
.msg-sys {
  align-self: center; text-align: center; max-width: 92%;
  font-size: 0.75rem; color: var(--text-muted);
}
.msg-sys strong { color: var(--text-soft); }
.msg-event {
  align-self: stretch; display: flex; gap: var(--space-2); align-items: flex-start;
  padding: 8px 10px; border-radius: var(--radius-md);
  background: var(--accent-soft); color: var(--text); font-size: 0.8rem; line-height: 1.4;
}
.msg-event::before { content: '\2713'; font-weight: 800; color: var(--accent); }
.msg-event.is-alert { background: var(--warn-soft); }
.msg-event.is-alert::before { content: '!'; color: var(--warn); }
.msg-empty { margin: auto; text-align: center; color: var(--text-muted); font-size: 0.88rem; max-width: 24ch; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--grid); }
.typing.is-out { align-self: flex-end; background: var(--accent-tint); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .msg, .msg-sys, .msg-event { animation: pop 0.25s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* ── Scenario steps ──────────────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: var(--space-2); }
.steps li {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: var(--space-3);
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-md);
  color: var(--text-muted); font-size: 0.88rem;
}
.steps li strong { display: block; color: inherit; font-size: 0.9rem; }
.steps .n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); font-size: 0.75rem; font-weight: 700; background: var(--surface);
}
.steps li.is-current { background: var(--accent-soft); color: var(--text); }
.steps li.is-current .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.is-done { color: var(--text-soft); }
.steps li.is-done .n { background: var(--accent-tint); border-color: var(--accent-tint); color: var(--accent); }

.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.tally div { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--plane); }
.tally span { display: block; font-size: 0.75rem; color: var(--text-muted); }
.tally strong { font-size: 1.2rem; }
.tally .bump { animation: bump 0.5s ease-out; }
@keyframes bump { 0% { color: var(--accent); transform: scale(1.15); } 100% { transform: none; } }

/* ── Calendar ────────────────────────────────────────────────────────────── */
.cal { display: grid; grid-template-columns: 44px repeat(3, minmax(0, 1fr)); gap: 3px; font-size: 0.75rem; }
.cal-day { text-align: center; font-weight: 700; color: var(--text-soft); padding-bottom: var(--space-1); }
.cal-time { color: var(--text-muted); text-align: right; padding-right: 6px; font-variant-numeric: tabular-nums; line-height: 34px; }
.slot {
  min-height: 34px; border-radius: var(--radius-sm);
  padding: 3px 6px; line-height: 1.25;
  background: var(--plane); color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background 0.3s, color 0.3s;
}
.slot.is-booked { background: #dfe7ec; color: var(--text-soft); }
.slot.is-new { background: var(--accent); color: #fff; font-weight: 600; }
.slot.is-gap { background: var(--warn-soft); color: var(--warn); font-weight: 600; box-shadow: inset 0 0 0 1px #f0c9a0; }
.slot.is-flash { animation: flash 0.9s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(78, 203, 165, 0.8); } 100% { box-shadow: 0 0 0 10px rgba(78, 203, 165, 0); } }
.cal-key { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-3); font-size: 0.78rem; color: var(--text-soft); }
.cal-key span { display: inline-flex; align-items: center; gap: 6px; }
.cal-key i { width: 12px; height: 12px; border-radius: 3px; }
.cal-key .k-booked { background: #dfe7ec; }
.cal-key .k-new { background: var(--accent); }
.cal-key .k-gap { background: var(--warn-soft); box-shadow: inset 0 0 0 1px #f0c9a0; }
.cal-title { font-size: 0.92rem; font-weight: 700; margin: var(--space-5) 0 var(--space-2); }
.cal-title .card-sub { display: block; font-weight: 400; }
.play-controls { justify-content: center; margin-top: var(--space-4); }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.stars { color: #b7791f; letter-spacing: 1px; font-size: 0.95rem; }
.reviews { display: flex; flex-direction: column; gap: var(--space-3); }
.review { padding: var(--space-3) var(--space-4); border: 1px solid var(--grid); border-radius: var(--radius-md); }
.review-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); font-size: 0.82rem; }
.review-head strong { font-size: 0.88rem; }
.review p { font-size: 0.88rem; color: var(--text-soft); margin-top: var(--space-1); }
.review.is-new { border-color: var(--accent-tint); background: var(--accent-soft); }

/* Mobile: pick a response, then the phone right under it. Desktop: phone on
   the left, choices and tally beside it. */
.sim { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .sim {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "phone pick" "phone side";
    grid-template-rows: auto 1fr;
    gap: var(--space-4) var(--space-5);
  }
  .sim .phone { grid-area: phone; align-self: start; }
  .sim-pick { grid-area: pick; }
  .sim-side { grid-area: side; }
}
.sim-side { display: flex; flex-direction: column; gap: var(--space-4); }
.sim-side .tally { margin-top: 0; }
.sim-q { font-weight: 700; margin-bottom: var(--space-2); }
.review-head .card-sub { margin: 0; }

.pill-note {
  display: flex; gap: var(--space-3); align-items: flex-start;
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-md);
  background: var(--plane); font-size: 0.85rem; color: var(--text-soft);
}
.pill-note strong { color: var(--text); }

.setup { display: flex; flex-direction: column; gap: var(--space-3); }
.setup li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-3); font-size: 0.9rem; }
.setup li::before {
  content: ''; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-soft) center / 16px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b5c4e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.setup strong { display: block; }
.setup span { color: var(--text-soft); font-size: 0.85rem; }

/* ── Closing call to action ──────────────────────────────────────────────── */
.demo-cta {
  max-width: 1120px; margin: 0 auto var(--space-6);
  padding: 0 var(--space-3);
}
.demo-cta-inner {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-5);
  background: var(--navy); color: #e6eef5; border-radius: var(--radius-xl);
}
.demo-cta h2 { color: #fff; font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; max-width: 30ch; }
.demo-cta p { max-width: 58ch; }
.demo-cta .btn { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--navy); }
.demo-cta .btn:hover { background: #6fdcbb; border-color: #6fdcbb; }
.demo-fine { font-size: 0.8rem; color: #a8bccc; }
@media (min-width: 720px) {
  .demo-cta { padding: 0 var(--space-5); margin-bottom: var(--space-7); }
  .demo-cta-inner { padding: var(--space-6); }
}
.is-framed .demo-cta { margin-bottom: var(--space-4); }
