/* ImoTracker presentation site. No third-party requests: fonts are self-hosted, no analytics, no cookies. */

@font-face { font-family: 'Lato'; src: url('fonts/lato-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/lato-bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('fonts/lato-black.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --brand: #1d5bd8;
  --brand-strong: #1747ab;
  --brand-soft: #eaf1fe;
  --ink: #0f1b2d;
  --ink-2: #44526a;
  --ink-3: #6b7890;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --card: #ffffff;
  --line: #e2e7f0;
  --red: #d33a2c;   --red-soft: #fdecea;
  --amber: #b86e00; --amber-soft: #fff4e0;
  --green: #1d8a4e; --green-soft: #e6f6ec;
  --shadow: 0 1px 2px rgb(15 27 45 / 0.06), 0 8px 24px rgb(15 27 45 / 0.08);
  --on-brand: #ffffff;            /* text on brand-coloured surfaces */
  --seat-bg: rgb(255 255 255 / 0.22);
  --seat-line: rgb(255 255 255 / 0.6);
  --btn-light-bg: #ffffff;
  --btn-light-hover: #eef3ff;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked light; or forced by the switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #6b9cff; --brand-strong: #8fb3ff; --brand-soft: #16233d;
    --ink: #e8edf6; --ink-2: #b4bfd2; --ink-3: #8a96ab;
    --bg: #0c1220; --bg-alt: #111a2c; --card: #152036; --line: #24314a;
    --red: #ff7b6e; --red-soft: #3a1d1d; --amber: #ffb547; --amber-soft: #37291a; --green: #5fd393; --green-soft: #15301f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
    --on-brand: #0c1220; --seat-bg: rgb(12 18 32 / 0.18); --seat-line: rgb(12 18 32 / 0.5);
    --btn-light-bg: #0c1220; --btn-light-hover: #16233d;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #6b9cff; --brand-strong: #8fb3ff; --brand-soft: #16233d;
  --ink: #e8edf6; --ink-2: #b4bfd2; --ink-3: #8a96ab;
  --bg: #0c1220; --bg-alt: #111a2c; --card: #152036; --line: #24314a;
  --red: #ff7b6e; --red-soft: #3a1d1d; --amber: #ffb547; --amber-soft: #37291a; --green: #5fd393; --green-soft: #15301f;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.35);
  --on-brand: #0c1220; --seat-bg: rgb(12 18 32 / 0.18); --seat-line: rgb(12 18 32 / 0.5);
  --btn-light-bg: #0c1220; --btn-light-hover: #16233d;
  color-scheme: dark;
}

/* Theme switch (header) */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 900; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 100; border-radius: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 1.2rem; }
.logo svg { width: 32px; height: 32px; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:hover { color: var(--brand); }
.site-header .btn { margin-left: auto; }
.site-header .theme-toggle { margin-left: 8px; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .site-header .btn { margin-left: 8px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 0.92rem; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 680px; }
.section-head { margin-bottom: 40px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.9rem; margin-bottom: 18px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; color: var(--ink-3); font-size: 0.95rem; }

/* Demo dashboard (hero visual) */
.demo {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 20px; font-size: 0.95rem;
}
.demo-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.demo-top strong { font-size: 1.05rem; }
.demo-top span { color: var(--ink-3); font-size: 0.82rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg-alt); border-radius: 10px; padding: 10px 12px; }
.kpi b { display: block; font-size: 1.35rem; font-weight: 900; line-height: 1.2; }
.kpi small { color: var(--ink-3); font-size: 0.78rem; line-height: 1.3; display: block; }
.rows { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); }
.row .tag { flex: none; font-size: 0.72rem; font-weight: 900; padding: 2px 8px; border-radius: 6px; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.row p { margin: 0; line-height: 1.4; }
.row small { color: var(--ink-3); }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.amber { background: var(--amber-soft); color: var(--amber); }
.tag.green { background: var(--green-soft); color: var(--green); }
.tag.blue { background: var(--brand-soft); color: var(--brand); }
.demo-foot { margin-top: 12px; color: var(--ink-3); font-size: 0.78rem; text-align: right; }

/* Problem cards */
.grid-3 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-2); margin: 0; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 24px; height: 24px; }
.ico.red { background: var(--red-soft); color: var(--red); }
.ico.amber { background: var(--amber-soft); color: var(--amber); }
.ico.blue { background: var(--brand-soft); color: var(--brand); }
.ico.green { background: var(--green-soft); color: var(--green); }

/* Ecosystem map */
.eco { display: grid; gap: 16px; align-items: center; }
@media (min-width: 900px) { .eco { grid-template-columns: 1fr auto 1.1fr auto 1fr; } }
.eco-col { display: grid; gap: 10px; }
.eco-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); margin: 0 0 4px; }
.node { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; }
.node small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.82rem; line-height: 1.3; }
.node .badge { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 0.8rem; }
.arrow { color: var(--ink-3); display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; }
.arrow::before { content: '↓'; }
@media (min-width: 900px) { .arrow::before { content: '→'; } }
.hub {
  background: linear-gradient(160deg, var(--brand), var(--brand-strong)); color: var(--on-brand); border-radius: 20px;
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow);
}
.hub svg { width: 48px; height: 48px; margin: 0 auto 10px; }
.hub strong { display: block; font-size: 1.4rem; font-weight: 900; }
.hub ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; font-size: 0.92rem; text-align: left; }
.hub li::before { content: '✓ '; font-weight: 900; }

/* Features */
.features { display: grid; gap: 20px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* Auto-posting flow */
.flow { display: grid; gap: 14px; }
.dest { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
@media (min-width: 760px) { .dest { grid-template-columns: auto 1fr auto; align-items: center; } }
.dest p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.dest .status { grid-column: 2; justify-self: start; font-size: 0.78rem; font-weight: 900; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
@media (min-width: 760px) { .dest .status { grid-column: auto; justify-self: end; } }
.status.now { background: var(--green-soft); color: var(--green); }
.status.soon { background: var(--amber-soft); color: var(--amber); }
.source-card { display: flex; gap: 14px; align-items: center; background: var(--brand-soft); border-radius: 12px; padding: 16px 18px; font-weight: 700; }
.source-card p { margin: 0; }
.source-card small { display: block; font-weight: 400; color: var(--ink-2); }
.note { color: var(--ink-3); font-size: 0.92rem; margin-top: 18px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 900; margin-bottom: 12px; }
.steps p { color: var(--ink-2); margin: 0; font-size: 0.96rem; }

/* Trust */
.trust { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(2, 1fr); } }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust li svg { flex: none; width: 22px; height: 22px; color: var(--green); margin-top: 3px; }
.trust p { margin: 0; color: var(--ink-2); }
.trust strong { color: var(--ink); }

/* Pilot */
.pilot { background: linear-gradient(160deg, var(--brand), var(--brand-strong)); color: var(--on-brand); border-radius: 24px; padding: 40px 24px; }
@media (min-width: 760px) { .pilot { padding: 56px; } }
.pilot h2 { color: inherit; }
.pilot .lead { color: inherit; opacity: 0.92; }
.pilot-cols { display: grid; gap: 28px; margin: 32px 0; }
@media (min-width: 760px) { .pilot-cols { grid-template-columns: 1fr 1fr; } }
.pilot h3 { color: inherit; }
.pilot ul { margin: 0; padding-left: 1.2em; }
.pilot li { margin-bottom: 6px; }
.seats { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 0; }
.seats span { width: 26px; height: 26px; border-radius: 7px; background: var(--seat-bg); border: 2px solid var(--seat-line); }
.pilot .btn-light { background: var(--btn-light-bg); color: var(--brand-strong); }
.pilot .btn-light:hover { background: var(--btn-light-hover); }
.pilot .small { font-size: 0.92rem; opacity: 0.9; margin-top: 14px; }
.pilot a:not(.btn) { color: inherit; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 900; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-3); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.2fr 1fr; } }
.site-footer h3 { font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--ink-2); }

/* Ecosystem flow diagram (assets/eco-flow.js) */
.flow-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.flow-tabs button {
  font: inherit; font-weight: 700; font-size: 0.92rem; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
}
.flow-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.flow-tabs button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.flow-tabs button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.flow-stage { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
@media (min-width: 760px) { .flow-stage { padding: 20px 24px; } }
.eco-svg { width: 100%; height: auto; display: block; max-height: 640px; }
.eco-svg text { font-family: 'Lato', system-ui, sans-serif; }
.eco-svg .wire { fill: none; stroke: var(--line); stroke-width: 2.5; transition: stroke 0.3s; }
.eco-svg .wire.on { stroke: var(--brand); stroke-width: 3; stroke-dasharray: 6 8; animation: eco-dash 0.9s linear infinite; }
@keyframes eco-dash { to { stroke-dashoffset: -14; } }
.eco-svg .node { opacity: 0.4; transition: opacity 0.3s; }
.eco-svg .node.on { opacity: 1; }
.eco-svg .box { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1.5; transition: fill 0.3s, stroke 0.3s; }
.eco-svg .node.on .box { stroke: var(--brand); }
.eco-svg .node.done .box { fill: var(--green-soft); stroke: var(--green); }
.eco-svg .t1 { fill: var(--ink); font-weight: 700; font-size: 17px; }
.eco-svg .t1s { font-size: 12.5px; }
.eco-svg .t2 { fill: var(--ink-3); font-size: 13px; }
.eco-svg .node.done .t2 { fill: var(--green); font-weight: 700; }
.eco-svg .badge-t { fill: #fff; font-weight: 900; font-size: 12px; }
.eco-svg .hub-s1 { stop-color: var(--brand); }
.eco-svg .hub-s2 { stop-color: var(--brand-strong); }
.eco-svg .hub-icon { fill: var(--on-brand); }
.eco-svg .hub-t { fill: var(--on-brand); font-weight: 900; font-size: 23px; }
.eco-svg .hub-st { fill: var(--on-brand); font-size: 14px; opacity: 0.92; }
.eco-svg .hub-ring { fill: none; stroke: var(--brand); stroke-width: 4; opacity: 0; transform-box: fill-box; transform-origin: center; }
.eco-svg .hub-ring.pulse { animation: eco-ring 1s ease-out; }
@keyframes eco-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
.eco-svg .pk { stroke: var(--card); stroke-width: 3; fill: var(--brand); }
.eco-svg .pk.alert { fill: var(--red); }
.eco-svg .pk.warn { fill: var(--amber); }
.flow-steps { list-style: none; counter-reset: fs; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
@media (min-width: 860px) { .flow-steps { grid-template-columns: repeat(4, 1fr); } }
.flow-steps li {
  counter-increment: fs; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); font-size: 0.95rem; line-height: 1.45; transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.flow-steps li::before { content: counter(fs); display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 900; font-size: 0.85rem; }
.flow-steps li.now { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.flow-steps li.now::before { background: var(--brand); color: var(--on-brand); }
.flow-steps li.past { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .eco-svg .wire.on { animation: none; stroke-dasharray: none; }
  .eco-svg .hub-ring.pulse { animation: none; }
}
