/* Merqora landing page. Same layout language as the sibling OneSite page (sticky nav, rounded cards,
   pill buttons, blue gradient, light and dark themes); tones are darkened where text sits on them
   so every pair passes 4.5:1. */
:root {
  --blue-1: #29c0ff;
  --blue-2: #0290ff;
  --navy: #28327c;
  --violet: #8082ff;
  --grad: linear-gradient(135deg, var(--blue-1), var(--blue-2));      /* decoration only, no text on it */
  --grad-btn: linear-gradient(135deg, #1a6fdc, #0a56b8);               /* white text sits on this */
  --grad-band: linear-gradient(135deg, #0a56b8, #28327c);
  --grad-text: linear-gradient(135deg, #0b84e6, #5b5fe0);              /* large gradient headline words */

  --bg: #ffffff;
  --bg-alt: #f4f8ff;
  --surface: #ffffff;
  --text: #141a3d;
  --muted: #5a6282;
  --border: #e3e9f5;
  --heading: var(--navy);
  --accent-text: #0a63c9;
  --shadow: 0 20px 50px -20px rgba(2, 64, 160, 0.28);
  --radius: 18px;

  --good: #166534;
  --bad: #b3261e;
  --live-bg: rgba(34, 197, 94, 0.14);   --live-fg: #166534;
  --built-bg: rgba(2, 144, 255, 0.14);  --built-fg: #0b5cad;
  --plan-bg: rgba(128, 130, 255, 0.18); --plan-fg: #4c4fd0;
  --c1: #0290ff; --c2: #8082ff; --c3: #16a34a; --c4: #ea8a1a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1030; --bg-alt: #10173d; --surface: #151d4a; --text: #e8ecff; --muted: #a3abd1;
    --border: #243066; --heading: #ffffff; --accent-text: #5cc8ff;
    --grad-text: linear-gradient(135deg, #29c0ff, #a5a7ff);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --good: #4ade80; --bad: #ff8a80;
    --live-fg: #4ade80; --built-fg: #7cc4ff; --plan-fg: #a5a7ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1030; --bg-alt: #10173d; --surface: #151d4a; --text: #e8ecff; --muted: #a3abd1;
  --border: #243066; --heading: #ffffff; --accent-text: #5cc8ff;
  --grad-text: linear-gradient(135deg, #29c0ff, #a5a7ff);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --good: #4ade80; --bad: #ff8a80;
  --live-fg: #4ade80; --built-fg: #7cc4ff; --plan-fg: #a5a7ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-wrap: break-word;
}
h1, h2, h3 { color: var(--heading); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.narrow { max-width: 780px; }

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { color: var(--accent-text); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8em; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 38em; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 30; background: var(--heading); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 0.85em 1.5em; border-radius: 999px;
  font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
  border: 2px solid transparent; font-size: 1rem; white-space: nowrap; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 24px -8px rgba(10, 86, 184, .6); }
.btn-ghost { border-color: var(--border); color: var(--heading); background: var(--surface); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 0.55em 1.1em; font-size: 0.92rem; }
.theme-toggle {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--heading);
  transition: background .15s, transform .15s;
}
.theme-toggle:hover { background: var(--bg-alt); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
body, .nav, .feature, .compare-card, .steps li, details, .preview { transition: background-color .25s ease, border-color .25s ease; }
.link-quiet { text-decoration: none; font-weight: 600; color: var(--muted); white-space: nowrap; }
.link-quiet:hover { color: var(--heading); }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { font-weight: 800; font-size: 1.25rem; color: var(--heading); line-height: 1; display: flex; flex-direction: column; letter-spacing: -0.02em; }
.brand-text small { font-size: 0.66rem; font-weight: 500; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; white-space: nowrap; }
.nav-links { display: none; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--heading); }
.nav-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav-cta { margin-left: 12px; } }
.menu-toggle {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--heading);
}
.menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .menu-close { display: none; }
.nav.open .menu-toggle .menu-open { display: none; }
.nav.open .menu-toggle .menu-close { display: inline; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
@media (max-width: 1023px) {
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0; margin: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: 8px 16px 16px;
  }
  .nav.open .nav-links a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .nav-inner, .nav-cta { gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 1.1rem; }
  .brand-text small { display: none; }
  .theme-toggle, .menu-toggle { width: 36px; height: 36px; }
  .btn-sm { padding: 0.5em 0.9em; font-size: 0.85rem; }
}
@media (max-width: 380px) { .wrap { padding: 0 16px; } .nav-inner, .nav-cta { gap: 6px; } .btn-sm { padding: 0.5em 0.75em; font-size: 0.8rem; } }
@media (max-width: 340px) { .brand-text { display: none; } }

/* Hero */
.hero {
  position: relative; padding: 64px 0 80px;
  background:
    radial-gradient(800px 400px at 85% 10%, rgba(41, 192, 255, .18), transparent 60%),
    radial-gradient(600px 400px at 5% 90%, rgba(128, 130, 255, .14), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 96px 0 110px; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.hero-points li::before { content: "\2713"; color: var(--accent-text); font-weight: 800; margin-right: 7px; }
.hero-note { color: var(--muted); font-size: 0.92rem; margin: 22px 0 0; max-width: 44ch; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 10px 0 84px; }
.console {
  width: min(430px, 100%); background: var(--surface); border-radius: 26px; border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 0 8px color-mix(in srgb, var(--surface) 60%, transparent); transform: rotate(-2deg); overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.console-bar strong { margin-left: 10px; font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.sample { margin-left: auto; font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--plan-fg); background: var(--plan-bg); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.orgs { list-style: none; margin: 0; padding: 8px 8px 10px; }
.orgs li { display: grid; grid-template-columns: 12px minmax(0, 1fr) 70px auto; align-items: center; gap: 10px; padding: 11px 10px; border-radius: 12px; font-size: 0.86rem; }
.orgs li:nth-child(odd) { background: var(--bg-alt); }
.orgs i { width: 12px; height: 12px; border-radius: 4px; background: var(--c); }
.orgs b { color: var(--heading); display: block; line-height: 1.2; }
.orgs small { color: var(--muted); font-size: 0.74rem; }
.spark { width: 70px; height: 24px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.delta { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 3.4em; text-align: right; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.toast {
  position: absolute; bottom: 0; right: 50%; transform: translateX(calc(50% + 70px));
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border);
  padding: 12px 18px; border-radius: 16px; box-shadow: var(--shadow); font-size: 0.85rem; max-width: 320px;
}
.toast b { display: block; color: var(--heading); }
.toast small { color: var(--muted); }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, .2); flex: none; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: pop 0.6s 0.6s both cubic-bezier(.2, 1.4, .4, 1); } }
@media (max-width: 520px) {
  .hero-visual { flex-direction: column; align-items: center; gap: 18px; padding-bottom: 10px; }
  .toast { position: static; transform: none; max-width: 100%; animation: none; }
}
@keyframes pop { from { opacity: 0; margin-bottom: -16px; } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 18px; font-size: 0.92rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

.compare { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 800px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-card { border-radius: var(--radius); padding: 30px; border: 1px solid var(--border); background: var(--surface); }
.compare-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare-card li { padding-left: 32px; position: relative; }
.compare-card li::before { position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.before li { color: var(--muted); }
.before li::before { content: "\2715"; background: rgba(179, 38, 30, .12); color: var(--bad); }
.after { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.after li::before { content: "\2713"; background: var(--grad-btn); color: #fff; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.steps p { color: var(--muted); margin: 0 0 14px; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad-btn); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }

.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); transition: transform .2s, box-shadow .2s, background-color .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.f-icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--bg-alt); border-radius: 14px; margin-bottom: 16px; color: var(--accent-text); }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature.soon { border-style: dashed; }
.badge { display: inline-block; vertical-align: middle; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 99px; line-height: 1.3; white-space: nowrap; }
.badge.live { background: var(--live-bg); color: var(--live-fg); }
.badge.built { background: var(--built-bg); color: var(--built-fg); }
.badge.planned { background: var(--plan-bg); color: var(--plan-fg); }

/* Console tabs */
.console-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 900px) { .console-section { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chips button {
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 99px; padding: 8px 16px 8px 12px;
  display: inline-flex; align-items: center; gap: 8px; transition: border-color .15s, background .15s;
}
.chips button i { width: 12px; height: 12px; border-radius: 50%; background: var(--chip); }
.chips button:hover { border-color: var(--chip); }
.chips button[aria-selected="true"] { border-color: var(--chip); background: color-mix(in srgb, var(--chip) 12%, var(--surface)); }
.preview { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.preview-bar span:not(.sample) { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-body { padding: 24px; }
.pv-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.pv-title { font-size: 1.5rem; margin-bottom: 18px; }
.pv-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; padding: 13px 14px; border-radius: 12px; background: color-mix(in srgb, var(--pv) 10%, var(--bg-alt)); border-left: 4px solid var(--pv); }
.pv-rows b { color: var(--heading); }
.pv-rows .val { font-weight: 800; color: var(--heading); font-variant-numeric: tabular-nums; text-align: right; }
.pv-rows small { grid-column: 1 / -1; color: var(--muted); }

/* FAQ */
details { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--heading); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent-text); transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* CTA band with the early-access form */
.cta-band { background: var(--grad-band); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0, rgba(255,255,255,.18), transparent 60%), radial-gradient(500px 300px at 10% 100%, rgba(41,192,255,.25), transparent 60%); }
.cta-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.cta-band h2 { color: #fff; }
.cta-band p { font-size: 1.12rem; opacity: .95; margin-bottom: 0; max-width: 34em; }
.form { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--heading); }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 1px; border-color: var(--blue-2); }
.form .btn { width: 100%; }
.status { min-height: 1.5em; margin: 0; font-size: 0.92rem; color: var(--muted); }
.direct { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--muted); }
.direct strong { color: var(--heading); user-select: all; }
.copy { font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--heading); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.copy:hover { border-color: var(--blue-2); }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--heading); }

/* Scroll reveal: moves only, never hides, so the page is complete at rest. */
@media (prefers-reduced-motion: no-preference) {
  .reveal { transform: translateY(18px); transition: transform .6s ease; }
  .reveal.in { transform: none; }
}

.hero-grid > *, .compare > *, .steps > *, .features > *, .console-section > *, .cta-inner > * { min-width: 0; }
@media (max-width: 420px) {
  .section { padding: 64px 0; }
  .compare-card, .steps li, .feature { padding: 22px; }
  .preview-body { padding: 18px; }
  .pv-title { font-size: 1.25rem; }
  .cta-band { padding: 64px 0; }
  .form { padding: 20px; }
  .orgs li { grid-template-columns: 12px minmax(0, 1fr) auto; }
  .orgs .spark { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
