/* Embiro BI addition - the marketing site's styles (superset/embiro/site.py). */
:root {
  /* Deep navy: sets off the orange Embiro bulb. */
  --primary: #0e1b30;
  --primary-dark: #1c3050;
  --primary-soft: #e8edf5;
  --accent: #f24b1e;
  --ink: #16212b;
  --muted: #55666f;
  --line: #e3eaee;
  --soft: #f4f6fa;
  --warm: #fff5f1;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
header.site .brand img { height: 32px; width: auto; display: block; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a.link { text-decoration: none; color: var(--muted); font-weight: 500; }
nav.main a.link:hover, nav.main a.link.current { color: var(--ink); }
nav.main .actions { display: flex; gap: 10px; margin-left: 10px; }
details.menu { display: none; }
details.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
details.menu summary::-webkit-details-marker { display: none; }
details.menu .panel { position: absolute; right: 16px; top: 62px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,35,43,.12); padding: 10px; display: flex; flex-direction: column; min-width: 220px; }
details.menu .panel a { padding: 10px 12px; text-decoration: none; border-radius: 8px; }
details.menu .panel a:hover { background: var(--soft); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--primary); white-space: nowrap; cursor: pointer;
  font-size: 15px; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { color: var(--primary); background: #fff; }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { padding: 14px 26px; font-size: 17px; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }

/* Hero */
.hero { padding: 76px 0 56px; background: linear-gradient(180deg, var(--soft), #fff); }
.hero.center { text-align: center; }
.hero.center .lead { margin-left: auto; margin-right: auto; }
.hero.center .cta { justify-content: center; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.1; margin: 12px 0 18px; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 20px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 38em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }

/* App screenshots */
.shot {
  display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(20, 35, 43, .14); background: #fff;
  /* The width/height attributes give the shape; never stretch it. */
  height: auto; aspect-ratio: 16 / 10;
}
.hero-shot { margin-top: 44px; }

/* Sections */
section { padding: 72px 0; }
section.tint { background: var(--soft); }
.section-lead { color: var(--muted); max-width: 42em; margin: 0 0 36px; font-size: 17px; }
.center-text { text-align: center; }
.center-text .section-lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: #fff; }
.card p { margin: 0; color: var(--muted); }
.card h3 { margin-top: 12px; }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--warm); display: flex; align-items: center; justify-content: center; color: var(--accent); }

/* Feature sections: the text first, then the screenshot at the full page width, so
   the app's screens are shown at (close to) their real size. */
/* Feature rows: text on the left, a screenshot on the right (full-resolution image
   shown smaller, so it stays sharp), separated by thin rules. */
.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px;
  align-items: center; padding: 44px 0; border-top: 1px solid var(--line);
}
.feature:first-child { border-top: 0; }
.feature-text { max-width: 520px; }
#live .feature-text { max-width: 780px; margin-bottom: 28px; }
.feature ul { padding-left: 20px; color: var(--muted); margin: 14px 0 0; }
.feature li { margin: 6px 0; }
.feature p { color: var(--muted); margin: 0; }
.feature h2 { font-size: 32px; line-height: 1.2; }
.feature .shot { max-width: 680px; justify-self: end; box-shadow: 0 14px 40px rgba(20, 35, 43, .12); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 10px; letter-spacing: .02em; }

/* Logos / stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stats b { display: block; font-size: 30px; color: var(--ink); }
.stats span { color: var(--muted); font-size: 14px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 22px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; align-items: center; justify-content: center;
}
.step h3 { margin: 12px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }

/* Solutions tabs (pure CSS anchors) */
.jump { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.jump a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; }
.jump a:hover { border-color: var(--primary); color: var(--primary); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; align-items: stretch; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--primary); box-shadow: 0 18px 46px rgba(14, 27, 48, .18); }
.plan .price { font-size: 32px; font-weight: 800; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .tagline { color: var(--muted); min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.plan li { padding: 6px 0 6px 26px; position: relative; color: var(--ink); }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 8px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
h2.h3 { font-size: 20px; line-height: 1.3; margin: 26px 0 8px; letter-spacing: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 18px; }
.ticks li { padding: 5px 0 5px 26px; position: relative; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 8px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.plan .btn { text-align: center; }
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.addon .tagline { min-height: 0; flex: 1; margin-bottom: 18px; }
.addon .price { font-size: 26px; }
.price small { white-space: nowrap; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* Forms */
form.contact { display: grid; gap: 14px; }
form.contact label { font-weight: 600; font-size: 14px; display: grid; gap: 6px; }
form.contact input, form.contact textarea, form.contact select {
  font: inherit; padding: 11px 12px; border: 1px solid #cfd9de; border-radius: 8px; width: 100%; background: #fff;
}
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--primary-dark); border-color: transparent; }
form.contact .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; }
.alert.ok { background: #eaf7f0; color: #1f6b45; }
.alert.err { background: #fdecee; color: #a2283a; }

/* Band and footer */
.band { background: var(--primary); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band p { color: #c3cddb; margin: 0 auto 28px; max-width: 36em; font-size: 17px; }
.band .btn-primary { background: var(--accent); border-color: var(--accent); }
.band .btn-primary:hover { background: #d9401a; border-color: #d9401a; }
footer.site { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr; gap: 24px; }
footer.site h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; }
footer.site a { display: block; text-decoration: none; padding: 3px 0; }
footer.site a:hover { color: var(--ink); }
footer.site .legal { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  nav.main { display: none; }
  details.menu { display: block; }
  .grid, .grid.two, .steps { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .feature .shot { justify-self: stretch; max-width: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  section { padding: 52px 0; }
  .hero { padding: 52px 0 40px; }
  form.contact .row2 { grid-template-columns: 1fr; }
}

/* Home hero video and the live dashboard on Solutions */
.hero-video { display: block; width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto;
  height: auto; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 12px;
  border: 1px solid var(--line); box-shadow: 0 22px 60px rgba(20, 35, 43, .14); background: #fff; }
.live-frame { width: 100%; height: 900px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: #fff; box-shadow: 0 22px 60px rgba(20, 35, 43, .14); }
.live-frame iframe { width: 100%; height: 100%; border: 0; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-lines { list-style: none; padding: 0; margin: 18px 0 0; color: var(--muted); }
.contact-lines li { padding: 4px 0; }
.contact-lines b { color: var(--ink); }
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .live-frame { height: 640px; }
}

/* Legal pages (#159) */
footer.site .legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site .legal-links a { color: var(--muted); text-decoration: none; }
footer.site .legal-links a:hover { color: var(--ink); }
.legal-doc { padding: 56px 0 80px; }
.legal-doc .wrap { max-width: 780px; }
.legal-doc h1 { font-size: clamp(30px, 4vw, 40px); margin: 0 0 6px; letter-spacing: -0.01em; }
.legal-doc .updated { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.legal-doc h2 { font-size: 21px; margin: 34px 0 10px; }
.legal-doc p, .legal-doc li { color: #2c3a44; line-height: 1.7; }
.legal-doc ul { padding-left: 22px; }
.legal-doc li { margin: 6px 0; }

/* Documentation (superset/embiro/site_docs.py) */
.docs-hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 48px 0 40px; }
.docs-hero h1 { margin: 0 0 8px; }
.docs-search { position: relative; max-width: 560px; }
.docs-search input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.docs-results { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(20,35,43,.12); padding: 6px; max-height: 420px; overflow: auto; }
.docs-results a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.docs-results a:hover { background: var(--soft); }
.docs-results strong { display: block; }
.docs-results span { display: block; color: var(--muted); font-size: 13px; }
.docs-noresult { margin: 8px 12px; color: var(--muted); }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.docs-card ul { list-style: none; padding: 0; margin: 10px 0 0; }
.docs-card li { padding: 4px 0; }
.docs-card a { color: var(--primary); text-decoration: none; }
.docs-card a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 200px; gap: 40px; padding-top: 32px; padding-bottom: 64px; align-items: start; }
.docs-nav, .docs-toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.docs-nav .docs-search { margin-bottom: 14px; }
.docs-nav .docs-search input { padding: 8px 10px; }
.docs-nav-toggle summary { display: none; }
.docs-nav-section { margin-bottom: 16px; }
.docs-nav h4, .docs-toc h4 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.docs-nav a, .docs-toc a { display: block; padding: 4px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.docs-nav a:hover, .docs-toc a:hover { background: var(--soft); }
.docs-nav a.current { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.docs-toc a { color: var(--muted); }
.docs-toc a.sub { padding-left: 18px; font-size: 13px; }
.docs-crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.docs-crumbs a { color: var(--muted); }
.docs-article h1 { margin: 0 0 10px; }
.docs-body { line-height: 1.7; }
.docs-body h2 { margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 24px; scroll-margin-top: 84px; }
.docs-body h3 { margin: 28px 0 8px; font-size: 19px; scroll-margin-top: 84px; }
.docs-body img, .docs-body video { display: block; max-width: 100%; height: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(20,35,43,.08); }
.docs-body figure { margin: 18px 0; }
.docs-body figcaption { color: var(--muted); font-size: 13px; margin-top: -8px; }
.docs-body code { background: var(--soft); padding: 1px 6px; border-radius: 5px; font-size: 0.92em; }
.docs-body pre { background: #0e1b30; color: #e8edf5; padding: 16px; border-radius: 10px; overflow: auto; }
.docs-body pre code { background: none; padding: 0; color: inherit; }
.docs-body table { border-collapse: collapse; width: 100%; margin: 18px 0; font-size: 15px; }
.docs-body th, .docs-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.docs-body th { background: var(--soft); }
.docs-body kbd { border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; font-size: 0.9em; }
.docs-body .admonition { border-left: 4px solid var(--primary); background: var(--primary-soft); padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 18px 0; }
.docs-body .admonition p { margin: 6px 0; }
.docs-body .admonition-title { font-weight: 700; margin-top: 0; }
.docs-body .admonition.tip { border-color: #1f9d55; background: #ecf8f1; }
.docs-body .admonition.warning { border-color: var(--accent); background: var(--warm); }
.docs-body .admonition.note { border-color: var(--primary); }
.docs-body ol li, .docs-body ul li { margin: 4px 0; }
.docs-pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.docs-pager a { flex: 1; max-width: 48%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; }
.docs-pager a:hover { border-color: var(--primary); }
.docs-pager a span { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.docs-pager a.next { text-align: right; margin-left: auto; }
@media (max-width: 1100px) {
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
}
@media (max-width: 760px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .docs-nav { position: static; max-height: none; }
  .docs-nav-toggle summary { display: block; cursor: pointer; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; margin-bottom: 10px; }
}
/* Docs: small interactive helpers inside a page (docs.js), e.g. the Google Sheets address builder. */
.docs-tool { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 18px 0 24px; background: #f7fafb; display: grid; gap: 8px; }
.docs-tool label { font-weight: 600; font-size: 14px; }
.docs-tool input { width: 100%; box-sizing: border-box; font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.docs-tool button { justify-self: start; padding: 8px 16px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; font-weight: 600; cursor: pointer; }
.docs-tool-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--muted); }

/* Open data (#194) */
.open-data-card { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.open-data-card:hover { border-color: var(--primary); box-shadow: 0 12px 30px rgba(20, 35, 43, .10); }
.open-data-more { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 600; }
.open-data-note { color: var(--muted); margin-top: 22px; }
.open-data-head { padding: 40px 0 20px; }
.open-data-head h1 { margin: 10px 0 8px; }
.open-data-back { color: var(--muted); text-decoration: none; }
.open-data-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); }
.open-data-share a { color: var(--primary); text-decoration: none; font-weight: 600; }
.open-data-link { flex: 1 1 260px; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--soft); }
.wrap.wide { max-width: 1400px; }
.open-data-frame { height: 1100px; }
@media (max-width: 900px) { .open-data-frame { height: 900px; } }

/* Open data dashboard page (#194): the whole window, a slim bar above the dashboard */
body.od-app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; margin: 0; background: #fff; }
.od-bar { position: relative; display: flex; align-items: center; gap: 16px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: #fff; flex: 0 0 auto; }
.od-brand img { display: block; height: 24px; width: auto; }
.od-title { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.od-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.od-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.od-link:hover { color: var(--ink); }
.od-btn { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.od-btn:hover { background: var(--soft); }
.od-cta { padding: 7px 14px; font-size: 14px; }
.od-share-menu { position: absolute; right: 16px; top: 100%; z-index: 10; display: flex; flex-direction: column; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(20, 35, 43, .14); }
.od-share-menu[hidden] { display: none; }
.od-share-menu a, .od-share-menu button { padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.od-share-menu a:hover, .od-share-menu button:hover { background: var(--soft); }
.od-main { flex: 1 1 auto; min-height: 0; }
.od-frame, .od-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .od-link, .od-cta { display: none; }
  .od-title { font-size: 14px; }
}
