/* ══════════════════════════════════════════════════════════════
   Mobilint Brochure System — Introduction / landing page
   Applied only when body.page-introduction is set by page-intro.js.
   Plain Markdown lists in doc/<lang>/introduction.md are enhanced into
   hero links, feature cards, a navy stat card, and a CTA.
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
/* Spec-sheet accent rule above the eyebrow — a calm technical-document
   device that frames the landing as a document header, not a marketing banner. */
.page-introduction .bd-article > section {
  position: relative;
}
.page-introduction .bd-article > section h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--mbl-ink-navy);
  margin-bottom: 1rem;
}
.page-introduction .bd-article > section h1::after {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 2px;
  background: var(--mbl-teal-blue);
}
.page-introduction .bd-article > section h1 {
  padding-top: 1.6rem;
}
/* Eyebrow above the hero title — "qb" stays lowercase per brand (SDK qb, not SDK QB),
   so the label is typed in the exact case we want rather than text-transform:uppercase. */
.page-introduction .bd-article > section h1::before {
  content: "MOBILINT SDK qb";
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mbl-teal-blue);
  margin-bottom: 0.85rem;
}
/* Lede — the first paragraph after the title */
.page-introduction .bd-article > section h1 + p {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--mbl-ink-soft);
  max-width: 42rem;
  margin-bottom: 1.6rem;
}

/* ── Hero action links ── */
.mbl-plain-hero-actions {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2.5rem;
}
.mbl-plain-hero-actions li { margin: 0 !important; }
.mbl-plain-hero-actions a {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.3rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  color: var(--mbl-deep-navy) !important;
  transition: background 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
              color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mbl-plain-hero-actions a:hover { text-decoration: none; }
.mbl-plain-hero-actions li:first-child a {
  background: var(--mbl-teal-blue);
  color: #ffffff !important;
}
.mbl-plain-hero-actions li:first-child a:hover {
  background: var(--mbl-deep-navy);
  color: #ffffff !important;
}
.mbl-plain-hero-actions li:first-child a::after {
  content: "→";
  margin-left: 0.45rem;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mbl-plain-hero-actions li:first-child a:hover::after { transform: translateX(3px); }
.mbl-plain-hero-actions li:not(:first-child) a {
  background: #ffffff;
  border-color: var(--mbl-rule);
}
.mbl-plain-hero-actions li:not(:first-child) a:hover {
  background: var(--mbl-canvas-tint);
  border-color: var(--mbl-teal-blue);
}

/* ── Release tip → slim inline banner (no title row) ── */
.page-introduction .bd-article .admonition.tip {
  background: #F2F9FD;
  border: 1px solid #CFE4F0;
  border-left: 1px solid #CFE4F0;
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  margin: 1.4rem 0 2.5rem;
  box-shadow: none;
}
.page-introduction .bd-article .admonition.tip > .admonition-title { display: none; }
.page-introduction .bd-article .admonition.tip p { margin: 0; font-size: 0.9rem; color: #1A4055; }
.page-introduction .bd-article .admonition.tip p a { color: var(--mbl-teal-blue); font-weight: 600; }

/* ── Technical Overview diagrams → framed figures ── */
.page-introduction .bd-article #technical-overview img {
  display: block;
  width: 100%;
  max-width: 640px;
  margin: 1rem auto;
  border: 1px solid var(--mbl-rule-soft);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.5rem;
}

/* ── Model Zoo stat → navy card (brand's dark-card-on-light rhythm) ── */
.mbl-plain-stat {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.mbl-plain-stat > li {
  background: var(--mbl-deep-navy);
  border: 1px solid var(--mbl-deep-navy);
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  transition: border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mbl-plain-stat > li:hover { border-color: var(--mbl-accent-cyan); }
.mbl-plain-stat > li > p { margin: 0; }
.mbl-stat-content {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.mbl-plain-stat a {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #ffffff !important;
  text-decoration: none;
}
.mbl-plain-stat a:hover { color: #ffffff !important; text-decoration: none; }
.mbl-stat-value {
  font-size: clamp(2.5rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums;
}
.mbl-stat-plus { color: var(--mbl-accent-cyan); }
.mbl-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mbl-light-blue);
}
.mbl-stat-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  max-width: 36rem;
}
/* Model domains expressed as the brand's signature light-blue pills,
   with a quiet caption for the runtime format. */
.mbl-stat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mbl-stat-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.78rem;
  border-radius: 999px;
  background: rgba(174, 207, 232, 0.10);
  border: 1px solid rgba(174, 207, 232, 0.30);
  color: var(--mbl-light-blue);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.mbl-stat-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.58);
}
/* Inline “Browse the Model Zoo →” action — higher specificity than the
   value-link rule above so it stays inline + light-blue (not a white block). */
.mbl-plain-stat a.mbl-stat-cta {
  display: inline;
  color: var(--mbl-light-blue) !important;
  font-weight: 600;
  white-space: nowrap;
  transition: color 160ms ease;
}
.mbl-plain-stat a.mbl-stat-cta:hover {
  color: #ffffff !important;
  text-decoration: none;
}
/* !important defeats the global inline-code rule (light gray box), which
   out-specifies this and would otherwise render .mxq as a pale box on navy. */
.mbl-plain-stat code {
  background: rgba(255, 255, 255, 0.12) !important;
  border: none !important;
  color: var(--mbl-light-blue) !important;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  font-family: var(--mbl-font-mono);
  font-size: 0.85em;
}

/* ── Get Started CTA ── */
.mbl-plain-cta {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.mbl-plain-cta > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid var(--mbl-rule-soft);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  transition: border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mbl-plain-cta > li:hover { border-color: var(--mbl-teal-blue); }
.mbl-plain-cta > li > p { margin: 0; flex: 1; }
.mbl-plain-cta a {
  color: var(--mbl-deep-navy) !important;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.mbl-plain-cta a::before {
  content: attr(data-label);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mbl-teal-blue);
  margin-bottom: 0.15rem;
}
.mbl-plain-cta a::after {
  content: "→";
  float: right;
  color: var(--mbl-teal-blue);
  font-size: 1.4rem;
  line-height: 1;
  margin-left: 1rem;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mbl-plain-cta > li:hover a::after { transform: translateX(4px); }

@media (max-width: 768px) {
  .mbl-stat-content { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

/* ══════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════ */
html[data-theme="dark"] .page-introduction .bd-article > section h1 { color: #EAF2F9; }
html[data-theme="dark"] .page-introduction .bd-article > section h1::before { color: var(--mbl-accent-cyan); }
html[data-theme="dark"] .page-introduction .bd-article > section h1 + p { color: #A8B8C8; }

html[data-theme="dark"] .mbl-plain-hero-actions li:first-child a { background: var(--mbl-teal-blue); color: #ffffff !important; }
html[data-theme="dark"] .mbl-plain-hero-actions li:first-child a:hover { background: var(--mbl-accent-cyan); color: var(--mbl-ink-navy) !important; }
html[data-theme="dark"] .mbl-plain-hero-actions li:not(:first-child) a { background: #122236; color: #CFE0EE !important; border-color: #2E445C; }
html[data-theme="dark"] .mbl-plain-hero-actions li:not(:first-child) a:hover { background: #18293E; border-color: var(--mbl-accent-cyan); color: #EAF2F9 !important; }

html[data-theme="dark"] .page-introduction .bd-article .admonition.tip { background: #0C2433; border-color: #1E3147; }
html[data-theme="dark"] .page-introduction .bd-article .admonition.tip p { color: #A8C4D6; }
html[data-theme="dark"] .page-introduction .bd-article .admonition.tip p a { color: #6FBCE6; }

html[data-theme="dark"] .page-introduction .bd-article #technical-overview img { background: #0E2032; border-color: #1E3147; }

html[data-theme="dark"] .mbl-plain-stat > li { background: #0E2032; border-color: #1E3147; }
html[data-theme="dark"] .mbl-plain-stat > li:hover { border-color: var(--mbl-accent-cyan); }

html[data-theme="dark"] .mbl-plain-cta > li { background: #0E2032; border-color: #1E3147; }
html[data-theme="dark"] .mbl-plain-cta > li:hover { border-color: var(--mbl-accent-cyan); }
html[data-theme="dark"] .mbl-plain-cta a { color: #CFE0EE !important; }
html[data-theme="dark"] .mbl-plain-cta a::before,
html[data-theme="dark"] .mbl-plain-cta a::after { color: var(--mbl-accent-cyan); }
