/* megaronhq.com: brand blue + brass on warm off-white. No web fonts (system stack). */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --ink: #13233a;
  --muted: #5b6474;
  --line: #e6e1d6;
  --line-strong: #cfc7b6;
  --blue: #2f6a93; /* text and buttons (5.8:1 with white) */
  --blue-brand: #387dac; /* icons and large shapes */
  --blue-soft: #e8f1f8;
  --brass: #b58735; /* large text and decoration only */
  --brass-text: #8a6420; /* small brass text (5:1) */
  --brass-soft: #f6eedc;
  --navy: #0f1c2e;
  --navy-2: #172a42;
  --navy-line: #2a3f5c;
  --on-navy: #ffffff;
  --on-navy-muted: #a9b4c4;
  --on-navy-brass: #d9a74a;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 35, 58, 0.06), 0 6px 20px rgba(19, 35, 58, 0.05);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
/* Headings receive focus after a glide (for screen readers); they are not controls, so no ring. */
[tabindex="-1"]:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.ico { width: 20px; height: 20px; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-xs { width: 13px; height: 13px; }
.ico-flip { transform: scaleX(-1); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 150ms, border-color 150ms, color 150ms;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #255677; }
.btn-gold { background: var(--brass); color: var(--ink); }
.btn-gold:hover { background: #c79a4c; }
.btn-outline { background: var(--surface); color: var(--blue); border-color: #9dbbd3; }
.btn-outline:hover { background: var(--blue-soft); border-color: var(--blue); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--ink); background: #f0ece2; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.text-link { font-weight: 600; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 243, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; }
.brand img { width: 160px; height: auto; display: block; }
.site-nav { display: flex; gap: 22px; }
.site-nav a, .signin { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 2px; }
.site-nav a:hover, .signin:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.signin { margin-left: auto; font-weight: 600; }
@media (max-width: 640px) {
  .header-row { gap: 4px 16px; padding-top: 8px; padding-bottom: 6px; }
  .brand img { width: 136px; }
  .site-nav { order: 3; width: 100%; gap: 18px; }
  .site-nav a { font-size: 14px; padding: 4px 0; }
}

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfaf6, var(--bg)); }
/* Faint radar rings at the far right edge (decoration; wide screens only). */
@media (min-width: 1100px) { .hero { background:
  radial-gradient(circle at 104% 50%, transparent 0 90px, rgba(181, 135, 53, 0.14) 91px 92px, transparent 93px 150px, rgba(181, 135, 53, 0.1) 151px 152px, transparent 153px 210px, rgba(56, 125, 172, 0.08) 211px 212px, transparent 213px),
  linear-gradient(180deg, #fbfaf6, var(--bg)); } }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.35fr 1fr; gap: 56px; } }
/* Desktop: the landing fills the screen, so the next section starts below the fold. */
@media (min-width: 960px) { .hero { min-height: calc(100svh - 61px); display: flex; align-items: center; } .hero > .wrap { width: 100%; } }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-text); }
.hero h1 { margin-top: 14px; font-size: clamp(2rem, 4.6vw, 3.25rem); letter-spacing: -0.025em; font-weight: 800; color: var(--ink); }
.hero h1 span { display: block; color: var(--brass); }
.lede { margin-top: 16px; font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--muted); }
.hero-actions { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; }
.hero-actions .btn { min-height: 52px; padding: 12px 14px; font-size: 16px; font-weight: 600; text-align: center; line-height: 1.2; }
@media (max-width: 420px) { .hero-actions .btn { font-size: 15px; padding: 10px 6px; letter-spacing: -0.01em; } }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.hero-points li { position: relative; display: flex; gap: 16px; align-items: flex-start; }
/* The icon rail: a line joining each icon to the next. It is the divider between the headline and the points. */
.hero-points li:not(:last-child)::before { content: ""; position: absolute; left: 21.5px; top: 44px; bottom: -22px; width: 1px; background: var(--line-strong); }
.hero-points strong { display: block; font-size: 16px; margin-bottom: 2px; }
.hero-points li > span:last-child { color: var(--muted); font-size: 15px; }
.point-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-brand); flex: none; }
/* Give the radar rings room on wide screens: the points sit further left. */
@media (min-width: 1100px) { .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 48px; } .hero-points { margin-right: 96px; } }

/* Landing entrance (plays once on load; skipped when the visitor turns motion off). */
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes hero-pop { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes hero-draw { from { transform: scaleY(0); } to { transform: none; } }
@keyframes radar-sweep { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes radar-ping { 0% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.35); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1); } }
.hero .eyebrow { animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both; }
.hero h1 { animation: hero-rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 180ms both; }
.hero h1 span { animation: hero-rise 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 380ms both; }
.hero-actions { animation: hero-rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 600ms both; }
.hero-points .point-ico { animation: hero-pop 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-points li > span:last-child { animation: hero-slide 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-points li:not(:last-child)::before { transform-origin: top; animation: hero-draw 420ms ease-out both; }
.hero-points li:nth-child(1) .point-ico { animation-delay: 520ms; } .hero-points li:nth-child(1) > span:last-child { animation-delay: 600ms; } .hero-points li:nth-child(1)::before { animation-delay: 760ms; }
.hero-points li:nth-child(2) .point-ico { animation-delay: 820ms; } .hero-points li:nth-child(2) > span:last-child { animation-delay: 900ms; } .hero-points li:nth-child(2)::before { animation-delay: 1060ms; }
.hero-points li:nth-child(3) .point-ico { animation-delay: 1120ms; } .hero-points li:nth-child(3) > span:last-child { animation-delay: 1200ms; } .hero-points li:nth-child(3)::before { animation-delay: 1360ms; }
.hero-points li:nth-child(4) .point-ico { animation-delay: 1420ms; } .hero-points li:nth-child(4) > span:last-child { animation-delay: 1500ms; }
/* The radar keeps a slow sweep (wide screens), and pings once as the page lands. */
.hero > .wrap { position: relative; z-index: 1; }
@media (min-width: 1100px) {
  .hero::before, .hero::after { content: ""; position: absolute; left: 104%; top: 50%; width: 424px; height: 424px; border-radius: 50%; pointer-events: none; }
  .hero::before { background: conic-gradient(from 0deg, transparent 0 290deg, rgba(181, 135, 53, 0.05) 320deg, rgba(181, 135, 53, 0.2) 360deg); transform: translate(-50%, -50%); animation: radar-sweep 10s linear infinite; }
  .hero::after { border: 2px solid rgba(181, 135, 53, 0.35); opacity: 0; transform: translate(-50%, -50%) scale(0.35); animation: radar-ping 1800ms ease-out 900ms 2 both; }
}

/* ---------------------------------------------------------------- sections */
.connects { padding: 48px 0 56px; }
.tools-section { padding: 56px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about { padding: 56px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); letter-spacing: -0.02em; font-weight: 800; }
.section-sub { margin-top: 6px; color: var(--muted); font-size: 1.1rem; }
.demo-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #e9f4ee; color: #1f5c3a; font-size: 14px; font-weight: 600; border: 1px solid #bfe0cc; }
.demo-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.demo-intro { margin-top: 14px; max-width: 72ch; color: var(--muted); }
.noscript { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---------------------------------------------------------------- demo */
.demo { margin-top: 22px; }
.biz { border: 0; padding: 0; margin: 0; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; }
.biz-opt { position: relative; }
.biz-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.biz-opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--ink); }
.biz-opt:hover span { background: var(--blue-soft); }
@media (max-width: 560px) {
  .biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .biz-opt span { justify-content: center; text-align: center; height: 100%; padding: 8px 6px; font-size: 14px; }
}
.biz-opt.is-selected span { background: var(--blue); color: #fff; }
.biz-opt input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.who { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.who .ico { margin-top: 2px; }
.notice { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--brass-soft); border: 1px solid #e7d3a8; font-size: 14px; }

.demo-grid { margin-top: 18px; display: grid; gap: 20px; }
@media (min-width: 1080px) { .demo-grid { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .glance { position: sticky; top: 76px; } }
.demo-main { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 768px) { .demo-main { padding: 22px; } }

/* the loop: vertical on phones, two-row loop (1 2 3 / 6 5 4) on wider screens */
.loop { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.loop-item { position: relative; }
.loop-item:not(:last-child)::after { content: "↓"; position: absolute; left: 30px; bottom: -15px; color: var(--line-strong); font-weight: 700; font-size: 14px; line-height: 1; }
@media (min-width: 760px) {
  .loop { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: 34px; row-gap: 30px; padding: 0 0 0 24px; }
  .loop-item[data-n="1"] { grid-area: 1 / 1; } .loop-item[data-n="2"] { grid-area: 1 / 2; } .loop-item[data-n="3"] { grid-area: 1 / 3; }
  .loop-item[data-n="4"] { grid-area: 2 / 3; } .loop-item[data-n="5"] { grid-area: 2 / 2; } .loop-item[data-n="6"] { grid-area: 2 / 1; }
  .loop-item::after { color: var(--muted) !important; font-size: 18px !important; }
  .loop-item[data-n="1"]::after, .loop-item[data-n="2"]::after { content: "→"; left: auto; right: -27px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .loop-item[data-n="3"]::after { content: "↓"; left: 50%; bottom: -26px; transform: translateX(-50%); }
  .loop-item[data-n="4"]::after, .loop-item[data-n="5"]::after { content: "←"; left: -27px; top: 50%; bottom: auto; transform: translateY(-50%); }
  .loop-item[data-n="6"]::after { content: "↑"; position: absolute; left: -24px; top: -24px; bottom: auto; }
}
.stage {
  width: 100%; height: 100%; text-align: left; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 12px;
  padding: 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color 150ms, background-color 150ms, box-shadow 150ms;
}
.stage:hover { border-color: var(--blue-brand); background: #f8fbfd; }
.stage-ico { grid-row: 1 / 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.stage-text { display: grid; gap: 2px; min-width: 0; }
.stage-name { font-weight: 700; font-size: 16px; }
.stage-title { font-size: 14px; color: var(--ink); }
.stage-tools { font-size: 12.5px; color: var(--muted); }
.stage-flags { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; align-self: start; gap: 6px; }
.stage-flags:empty { display: none; }
.flag { line-height: 1.4; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.flag-sel { background: var(--blue); color: #fff; }
.flag-upd { background: var(--brass-soft); color: var(--brass-text); border: 1px solid #e7d3a8; }
.stage.is-selected { border: 2px solid var(--blue); padding: 13px; background: #f1f7fc; box-shadow: 0 0 0 4px rgba(56, 125, 172, 0.14); }
.stage.is-selected .stage-ico { background: var(--blue); color: #fff; }
.stage.is-touched:not(.is-selected) { border-color: #d9b56b; }

/* detail panel */
.detail { margin-top: 24px; padding: 18px; border-radius: 14px; background: #f3f8fc; border: 1px solid #d3e4f1; }
.detail .eyebrow { letter-spacing: 0.16em; color: var(--blue); }
.detail h3 { margin-top: 6px; font-size: 1.35rem; }
.detail-activity { margin-top: 8px; }
.detail-outcome { margin-top: 6px; color: var(--muted); }
.detail-note { margin-top: 12px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--brass-soft); border: 1px solid #e7d3a8; font-size: 15px; }
.detail-note .ico { margin-top: 3px; color: var(--brass-text); }
.detail-grid { margin-top: 16px; display: grid; gap: 16px; }
@media (min-width: 760px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail h4, .scenario h4 { display: flex; align-items: center; gap: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.detail-grid p { font-size: 15px; }
.flow-list { margin: 0; padding-left: 18px; font-size: 15px; display: grid; gap: 4px; }
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tool { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; font-weight: 600; }
.tool .ico { color: var(--blue-brand); }
.status { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; letter-spacing: 0.01em; }
.status-early { color: #1f5c3a; background: #e9f4ee; border-color: #bfe0cc; }
.status-testing { color: #6b4a12; background: var(--brass-soft); border-color: #e7d3a8; }
.status-planned { color: #4a5262; background: #eef0f3; border-color: #cfd4dc; border-style: dashed; }
.next { margin-top: 16px; padding-top: 14px; border-top: 1px solid #d3e4f1; }
.next-result { margin-top: 10px; display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.next-result .ico { margin-top: 3px; color: var(--blue); }

/* scenario */
.scenario { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.scenario-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.scenario-row .btn-quiet { margin-left: auto; }
.scenario-label { font-weight: 700; }
.scenario-progress { font-size: 14px; color: var(--muted); }
.scenario-hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.scenario.is-running { background: #fffdf8; border: 1px solid #ecdcb8; border-radius: 14px; padding: 16px; }
.scenario-step { margin-top: 10px; font-size: 1.2rem; }
.scenario-summary { margin-top: 6px; }
.scenario-grid { margin-top: 14px; display: grid; gap: 14px; }
@media (min-width: 760px) { .scenario-grid { grid-template-columns: 1fr 1fr; } }
.changed, .records { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.changed li { display: flex; gap: 6px; align-items: flex-start; }
.changed .ico { color: var(--ok); margin-top: 3px; }
.records li { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rec-kind { display: inline-block; margin-right: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-text); }
.affected { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.pill { font: inherit; font-size: 14px; font-weight: 600; color: var(--blue); background: var(--surface); border: 1px solid #9dbbd3; border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 36px; }
.pill:hover { background: var(--blue-soft); }
.scenario-done { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--ok); }

/* overview panel */
.glance { background: var(--navy); color: var(--on-navy); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.glance-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.glance h3 { font-size: 1.3rem; }
.glance-sub { margin-top: 4px; font-size: 14px; color: var(--on-navy-muted); }
.radar { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(217, 167, 74, 0.22); }
.radar img { width: 46px; height: 46px; display: block; }
.metrics { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { display: grid; gap: 2px; padding: 12px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--navy-line); }
.metric.is-changed { border-color: var(--on-navy-brass); }
.metric-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--on-navy-muted); }
.metric-value { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
.metric-sub { font-size: 12.5px; color: var(--on-navy-muted); }
.chg { display: inline-flex; align-items: center; gap: 3px; color: var(--on-navy-brass); font-weight: 700; }
.alerts-h { margin-top: 18px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-navy-muted); }
.alerts { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.alert { padding: 12px; border-radius: 12px; background: #1d2a3b; border: 1px solid #5a4a2a; }
.alert-kind { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--on-navy-brass); }
.alert-title { margin-top: 4px; font-weight: 700; }
.alert dl { margin: 8px 0 0; display: grid; gap: 2px; font-size: 14px; }
.alert dt { color: var(--on-navy-muted); font-size: 12px; margin-top: 4px; }
.alert dd { margin: 0; }
.alert-go { margin-top: 10px; display: inline-flex; align-items: center; gap: 4px; font: inherit; font-size: 14px; font-weight: 700; color: var(--on-navy-brass); background: transparent; border: 1px solid rgba(217, 167, 74, 0.5); border-radius: 8px; padding: 6px 10px; cursor: pointer; min-height: 36px; }
.alert-go:hover { background: rgba(217, 167, 74, 0.12); }
.no-alerts { margin-top: 8px; display: flex; gap: 6px; align-items: center; font-size: 14px; color: #bfe0cc; }
.glance-fine { margin-top: 16px; display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; color: var(--on-navy-muted); }
.glance-fine .ico { margin-top: 2px; }
.glance :focus-visible { outline-color: var(--on-navy-brass); }

/* ---------------------------------------------------------------- tools */
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; gap: 8px; align-items: center; }
.tools-group { margin-top: 36px; font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-text); }
.tools-section h2 + .tools-group { margin-top: 24px; }
.modules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.module { position: relative; min-width: 0; }
@media (max-width: 420px) { .module-box { padding: 16px; } .module-head { gap: 8px; } .module-head h4 { font-size: 1rem; } .module-ico { width: 34px; height: 34px; } }
.module-box { height: 100%; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); transition: box-shadow 250ms, background-color 250ms; }
.module.is-planned .module-box { background: var(--surface); border-style: dashed; }
.module-head { display: flex; align-items: center; gap: 10px; }
.module-head h4 { font-size: 1.1rem; flex: 1; min-width: 0; }
.module-head .status { flex: none; }
.module-toggle { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer; }
.module-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brass-soft); color: var(--brass-text); flex: none; }
.module.is-planned .module-ico { background: #eef0f3; color: #4a5262; }
.module-chev { display: none; flex: none; color: var(--muted); transition: transform 250ms; }
.module-outcome { margin-top: 10px; font-size: 15.5px; color: var(--ink); }
.module-points { margin: 14px 0 0; padding-left: 18px; font-size: 15px; color: var(--muted); display: grid; gap: 6px; }
.module-shot { margin-top: 14px; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 10px; border: 1px dashed var(--line-strong); background: repeating-linear-gradient(135deg, #f6f3ec 0 12px, #f1ede4 12px 24px); color: var(--muted); font-size: 13px; font-weight: 600; }
.module-shot.is-img { position: relative; display: block; aspect-ratio: auto; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.module-shot.is-img img { display: block; width: 100%; height: auto; }
/* With tools.js: details collapse. Hover (desktop) floats the card over its neighbours; tap (phone) opens it in place. */
.modules.js .module-summary { cursor: pointer; }
.modules.js .module-chev { display: block; }
.modules.js .module.is-open .module-chev { transform: rotate(180deg); }
.modules.js .module-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.modules.js .module-more-inner { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s 320ms; }
.modules.js .module.is-open .module-more { grid-template-rows: 1fr; }
.modules.js .module.is-open .module-more-inner { visibility: visible; transition: none; }
/* Desktop with a mouse: cards never change size. Hovering opens a large panel (tools.js builds .tool-ov)
   that zooms out of the card, floats over the page, and zooms back into the card on close. */
.modules.float .module-box { transition: border-color 200ms, box-shadow 200ms; }
.modules.float .module:hover .module-box { border-color: var(--line-strong); box-shadow: var(--shadow); }
.modules.float .module-chev { transform: rotate(-90deg); }
.tool-ov { position: fixed; inset: 0; z-index: 40; }
.tool-ov[hidden] { display: none; }
.tool-scrim { position: absolute; inset: 0; background: rgba(15, 28, 46, 0.28); opacity: 0; transition: opacity 260ms ease; }
.tool-ov.is-open .tool-scrim { opacity: 1; }
.tool-pop { position: absolute; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(19, 35, 58, 0.28), 0 2px 8px rgba(19, 35, 58, 0.1); transform-origin: 0 0; transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.tool-pop-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 650px); gap: 32px; padding: 32px; align-items: start; opacity: 0; transition: opacity 110ms ease; }
.tool-pop.is-shown .tool-pop-body { opacity: 1; transition: opacity 220ms ease 150ms; }
.tool-pop-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.tool-pop-head h3 { font-size: 1.6rem; letter-spacing: -0.01em; }
.tool-pop-outcome { margin-top: 16px; font-size: 17px; color: var(--ink); }
.tool-pop .module-points { font-size: 16px; gap: 8px; margin-top: 18px; }
.tool-pop .module-shot { margin-top: 0; }
.tool-pop .module-shot:not(.is-img) { aspect-ratio: 650 / 500; }
.tool-close { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.tool-close:hover { color: var(--ink); border-color: var(--line-strong); }
.works-with { margin-top: 20px; color: var(--muted); }

/* ---------------------------------------------------------------- about & footer */
/* About: one centered column, big animated mark under the heading */
.about-inner { max-width: 760px; text-align: center; }
.about-mark { display: block; margin: 20px auto 8px; width: clamp(140px, 22vw, 200px); }
.about-mark img { display: block; width: 100%; height: auto; }
.about-block { margin-top: 32px; }
.about-block h3 { font-size: 1.25rem; color: var(--brass-text); }
.about-block p { margin: 12px auto 0; max-width: 64ch; color: var(--muted); font-size: 1.05rem; }
.about-login { margin-top: 36px; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; color: var(--muted); }
.footer-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.footer-row a { color: var(--muted); }

/* ---------------------------------------------------------------- legal pages */
.legal { padding: 40px 0 56px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
.legal h2 { margin-top: 36px; font-size: 1.35rem; }
.legal h3 { margin-top: 24px; font-size: 1.1rem; }
.legal p, .legal ul { margin: 12px 0 0; line-height: 1.6; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal-updated { color: var(--muted); font-size: 0.95rem; }

/* ---------------------------------------------------------------- connects reveal
   reveal.js adds .rv-ready (only when motion is allowed), .is-in when the section scrolls into view,
   and .rv-done once the entrance has played, so demo re-renders don't animate again. */
@keyframes rv-rise { from { opacity: 0; transform: translateY(32px) scale(0.985); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rv-slide { from { opacity: 0; transform: translateX(48px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.connects.rv-ready:not(.is-in) :is(.rv, .biz, .who, .notice, .demo-main, .loop-item, .glance) { opacity: 0; }
.connects.is-in:not(.rv-done) :is(.rv, .biz, .who, .notice, .demo-main, .loop-item) { animation: rv-rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.connects.is-in:not(.rv-done) .glance { animation: rv-slide 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) 760ms both; }
.connects.is-in:not(.rv-done) .section-sub { animation-delay: 120ms; }
.connects.is-in:not(.rv-done) .demo-badge { animation-delay: 200ms; }
.connects.is-in:not(.rv-done) .demo-intro { animation-delay: 260ms; }
.connects.is-in:not(.rv-done) .biz { animation-delay: 360ms; }
.connects.is-in:not(.rv-done) .who { animation-delay: 420ms; }
.connects.is-in:not(.rv-done) .notice { animation-delay: 460ms; }
.connects.is-in:not(.rv-done) .demo-main { animation-delay: 520ms; }
.connects.is-in:not(.rv-done) .loop-item:nth-child(1) { animation-delay: 700ms; }
.connects.is-in:not(.rv-done) .loop-item:nth-child(2) { animation-delay: 790ms; }
.connects.is-in:not(.rv-done) .loop-item:nth-child(3) { animation-delay: 880ms; }
.connects.is-in:not(.rv-done) .loop-item:nth-child(4) { animation-delay: 970ms; }
.connects.is-in:not(.rv-done) .loop-item:nth-child(5) { animation-delay: 1060ms; }
.connects.is-in:not(.rv-done) .loop-item:nth-child(6) { animation-delay: 1150ms; }

/* ---------------------------------------------------------------- dark mode
   Follows the visitor's device setting (no switch). Navy surfaces from the brand palette; buttons keep
   the light-mode blue so white text stays readable; brass gets brighter for contrast on dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1522;
    --surface: #121d2c;
    --ink: #e6ecf3;
    --muted: #a2adbd;
    --line: #223147;
    --line-strong: #344764;
    --blue: #74b2e2; /* text and links on dark */
    --blue-brand: #5fa2d8;
    --blue-soft: #18293e;
    --brass: #d9a74a;
    --brass-text: #e3bd6e;
    --brass-soft: #262013;
    --navy: #16243a;
    --navy-2: #1d2e48;
    --ok: #4fb680;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 6px 20px rgba(0, 0, 0, 0.3);
    color-scheme: dark;
  }
  .btn-primary, .biz-opt.is-selected span, .flag-sel, .stage.is-selected .stage-ico { background: #2f6a93; color: #fff; }
  .btn-primary:hover { background: #3a7cab; }
  .btn-gold { color: #13233a; }
  .btn-gold:hover { background: #e6b860; }
  .btn-outline, .pill { border-color: #3d5f80; }
  .btn-quiet:hover:not(:disabled) { background: #1b2a3e; }
  .site-header { background: rgba(12, 21, 34, 0.92); }
  .hero { background: linear-gradient(180deg, #0f1a2a, var(--bg)); }
  @media (min-width: 1100px) { .hero { background:
    radial-gradient(circle at 104% 50%, transparent 0 90px, rgba(217, 167, 74, 0.18) 91px 92px, transparent 93px 150px, rgba(217, 167, 74, 0.12) 151px 152px, transparent 153px 210px, rgba(95, 162, 216, 0.12) 211px 212px, transparent 213px),
    linear-gradient(180deg, #0f1a2a, var(--bg)); } }
  .demo-badge, .status-early { color: #9fd8b5; background: #14301f; border-color: #2a5a3c; }
  .status-testing { color: #e6c27a; background: #262013; border-color: #5a4a2a; }
  .status-planned, .module.is-planned .module-ico { color: #b4bccb; background: #19222f; border-color: #3a4658; }
  .notice, .detail-note, .flag-upd { border-color: #5a4a2a; }
  .stage:hover { background: #162536; }
  .stage.is-selected { background: #15263a; box-shadow: 0 0 0 4px rgba(95, 162, 216, 0.2); }
  .detail { background: #12223a; border-color: #26405c; }
  .next { border-top-color: #26405c; }
  .scenario.is-running { background: #171f2a; border-color: #4a4026; }
  .glance { border: 1px solid var(--navy-line); }
  .module-shot { background: repeating-linear-gradient(135deg, #152131 0 12px, #121d2b 12px 24px); }
  .module-shot.is-img { border-color: var(--line-strong); }
  .module-shot.is-img img { filter: brightness(0.92); }
  .tool-scrim { background: rgba(0, 0, 0, 0.5); }
  .hero::before { background: conic-gradient(from 0deg, transparent 0 290deg, rgba(217, 167, 74, 0.06) 320deg, rgba(217, 167, 74, 0.24) 360deg); }
  .hero::after { border-color: rgba(217, 167, 74, 0.4); }
  .tool-pop { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4); }
}
@media (prefers-reduced-motion: reduce) { .hero::before, .hero::after { display: none; } }

/* ---------------------------------------------------------------- quick question + tailoring */
/* Fills the screen so nothing below shows until the visitor answers. */
.kind { min-height: calc(100svh - 61px); display: flex; align-items: center; padding: 56px 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: center; }
.kind > .wrap { width: 100%; }
.kind[hidden] { display: none; }
.kind .section-sub { margin-left: auto; margin-right: auto; }
.kind h2 { margin-top: 10px; }
.kind-opts { margin: 32px auto 0; max-width: 980px; display: grid; gap: 16px; }
@media (min-width: 760px) { .kind-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kind-opt { display: grid; justify-items: center; align-content: start; gap: 8px; padding: 28px 20px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: border-color 200ms, box-shadow 200ms, transform 200ms, background-color 200ms; }
.kind-opt:hover { border-color: var(--blue-brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.kind-opt[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-brand) 30%, transparent); background: var(--blue-soft); }
.kind-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-brand); margin-bottom: 4px; }
.kind-opt[aria-pressed="true"] .kind-ico { background: var(--surface); }
.kind-opt strong { font-size: 1.15rem; }
.kind-opt span:last-child { color: var(--muted); font-size: 15px; }
.kind-skip { margin-top: 22px; padding: 8px; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
body[data-kind="products"] [data-for="services"], body[data-kind="services"] [data-for="products"] { display: none; }
.tailor-note { display: none; margin-top: 14px; width: fit-content; max-width: 100%; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 10px 14px; border-radius: 10px; background: var(--blue-soft); color: var(--ink); font-size: 15px; }
body[data-kind="products"] .tailor-note, body[data-kind="services"] .tailor-note { display: flex; }
.tailor-all { padding: 0; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Sections fade up as they scroll into view (reveal.js adds .rv-on only when motion is allowed). */
.rv-on .rv-item { transition: opacity 800ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 800ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv-on .rv-item:not(.is-in) { opacity: 0; transform: translateY(28px) scale(0.985); filter: blur(6px); }
@media (max-width: 759px) {
  .kind { padding: 48px 0; }
  .kind-opt { grid-template-columns: auto 1fr; justify-items: start; column-gap: 14px; row-gap: 2px; padding: 16px; text-align: left; }
  .kind-ico { grid-row: span 2; width: 44px; height: 44px; margin: 0; align-self: center; }
}

/* ---------------------------------------------------------------- the M mark: (M)INVENTORY, (M)SALES ...
   One color (Megaron blue; lighter in dark mode) on the cards; the gold chevron only at the bigger panel size. */
.mm-lock { display: inline-flex; align-items: baseline; gap: 0.12em; font-weight: 800; letter-spacing: 0.01em; }
.mm { position: relative; top: 0.04em; height: 0.82em; width: auto; flex: none; color: var(--blue); fill: currentColor; }
.tool-pop .mm-chev { fill: var(--brass); }
