/* Shared marketing layer: the homepage's tokens, type, buttons, cards and full width bands.
   Loaded by the homepage and by the About, Pricing, Integrations and Institutions pages, which carry
   body.marketing on top of the publication shell. Jurisdiction pages never load this file. */

/* ---------- Tokens. The homepage reads them through its --product-* names. ---------- */
.home-page, .marketing {
  --mk-ink: #102740;
  --mk-muted: #526475;
  --mk-teal: #155766;
  --mk-teal-hover: #073740;
  --mk-line: #dbe6e7;
  --mk-card-line: #c5d7d8;
  --mk-tint: #eef5f4;
  --mk-shadow: 0 18px 45px -24px rgba(23, 70, 76, .31);
  --mk-shadow-hover: 0 24px 50px -24px rgba(23, 70, 76, .42);
  --mk-radius: 12px;
  --mk-heading: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mk-body: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Content is 1156px wide, the homepage's 1180px container less its 12px gutters. */
  --mk-gutter: max(52px, calc((100% - 1156px) / 2));
}
.home-page { --product-teal: var(--mk-teal); --product-ink: var(--mk-ink); --product-muted: var(--mk-muted); --product-line: var(--mk-line); }
.marketing {
  --publication-ink: var(--mk-ink);
  --publication-muted: var(--mk-muted);
  --publication-accent: var(--mk-teal);
  --publication-line: var(--mk-line);
  --publication-paper: #fff;
  background: #fff;
}
@media (max-width: 991px) { .home-page, .marketing { --mk-gutter: 40px; } }
@media (max-width: 575px) { .home-page, .marketing { --mk-gutter: 24px; } }

/* ---------- Type ---------- */
.marketing main, .marketing .publication-footer { font-family: var(--mk-body); }
.marketing main h1, .marketing main h2, .marketing main h3 { font-family: var(--mk-heading); font-weight: 700; color: var(--mk-ink); }
.marketing main h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.08; letter-spacing: -1.6px; margin: 0 0 24px; }
.marketing main .mk-band > h2, .marketing main .mk-intro h2, .marketing main .pricing-section > div > h2:first-child {
  margin: 0 0 18px; font-size: clamp(30px, 3vw, 40px); line-height: 1.15; letter-spacing: -1px;
}
.marketing main h3 { line-height: 1.3; }
/* The hero eyebrow keeps its case: it carries the lowercase brand. Section eyebrows match the homepage. */
.marketing main .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--mk-teal); margin: 0 0 18px; }
.marketing main .mk-eyebrow { margin: 0 0 14px; color: var(--mk-teal); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.marketing main .publication-deck { max-width: 720px; color: var(--mk-muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; }
.marketing main .mk-lead { color: var(--mk-muted); font-size: 16px; line-height: 1.8; margin: 0; }

/* ---------- Buttons and text links ---------- */
.marketing a.publication-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 22px; border: 1px solid var(--mk-teal); border-radius: 6px;
  background: var(--mk-teal); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.5; text-decoration: none;
}
.marketing a.publication-button:hover { background: var(--mk-teal-hover); border-color: var(--mk-teal-hover); color: #fff; }
.marketing .publication-button span { margin-left: 0; }
.marketing .publication-actions { gap: 16px 28px; margin-top: 30px; }
.marketing .publication-actions a:not(.publication-button), .marketing a.mk-link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--mk-teal); font-size: 14px; font-weight: 600; text-decoration: none;
}
.marketing .publication-actions a:not(.publication-button):hover, .marketing a.mk-link:hover { color: var(--mk-teal); text-decoration: underline; text-underline-offset: 4px; }
.marketing .checkout-button { border-radius: 6px; }

/* ---------- Bands: full width sections that alternate white and tint, content on one 1156px edge ---------- */
.marketing .publication-hero { max-width: none; margin: 0; padding: 72px var(--mk-gutter) 64px; border-bottom: 1px solid var(--mk-line); background: #fff; }
.marketing .mk-band { padding: 76px var(--mk-gutter); margin: 0; }
.marketing .mk-band-tint { background: var(--mk-tint); border-bottom: 1px solid var(--mk-line); }
.marketing .mk-band:not(.mk-band-tint) + .mk-band-tint { border-top: 1px solid var(--mk-line); }
.marketing .mk-container { padding-inline: var(--mk-gutter); }
/* The old single column wrappers give way to the bands inside them. */
.marketing .integrations-content, .marketing .enterprise-content, .marketing .editorial-content { display: block; max-width: none; margin: 0; padding: 0; }
.marketing .publication-footer { padding-inline: var(--mk-gutter); }
@media (max-width: 575px) {
  .marketing .publication-hero { padding-block: 48px 44px; }
  .marketing .mk-band { padding-block: 48px; }
}

/* ---------- Cards: one border, radius and shadow for every raised surface ---------- */
.marketing :is(.connect-grid a, .acc-group, .enterprise-shot, .enterprise-cta, .plan-grid, .plan-commercial, .mk-card) {
  border: 1px solid var(--mk-card-line); border-radius: var(--mk-radius); background: #fff; box-shadow: var(--mk-shadow);
}
.marketing .connect-grid { gap: 20px; }
.marketing .connect-grid a { padding: 24px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.marketing .connect-grid a:hover, .marketing .connect-grid a:focus-visible { transform: translateY(-3px); border-color: #7caaaf; box-shadow: var(--mk-shadow-hover); }
.marketing .connect-grid b { font-family: var(--mk-heading); font-size: 22px; font-weight: 700; }
.marketing .connect-use { font-weight: 700; letter-spacing: 1.2px; }
.marketing .integration-section .setup-steps li { border-color: var(--mk-card-line); }
.marketing .mk-band-tint .setup-steps li:not(:last-child)::after { background: var(--mk-tint); }
.marketing .integration-section .code-editor { border-radius: var(--mk-radius); }
.marketing .enterprise-shot { padding: 12px; }
.marketing .enterprise-shot img { border: 1px solid var(--mk-line); border-radius: 8px; }
.marketing .enterprise-cta { padding: 40px; }
.marketing .plan-grid { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .marketing .connect-grid a { transition: none; } .marketing .connect-grid a:hover { transform: none; } }

/* Section headings drop the document style rule the publication pages draw under them. */
.marketing .integration-section > h2 { border-bottom: 0; padding-bottom: 0; }
.marketing .integration-section h3 { font-size: 22px; }
.marketing .enterprise-copy h2 { font-size: 28px; letter-spacing: -.5px; }

/* ---------- About page ---------- */
.marketing .mk-hero-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.marketing .mk-hero-split .publication-deck { margin: 0; }
.marketing .mk-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin: 0; padding: 32px; border-radius: var(--mk-radius); background: var(--mk-tint); border: 1px solid var(--mk-line); }
.marketing .mk-stats div { display: grid; gap: 6px; align-content: start; }
.marketing .mk-stats dt { order: 2; color: var(--mk-muted); font-size: 14px; line-height: 1.45; }
.marketing .mk-stats dd { order: 1; margin: 0; color: var(--mk-ink); font-family: var(--mk-heading); font-size: clamp(30px, 3vw, 40px); font-weight: 700; line-height: 1; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.marketing .mk-intro { max-width: 780px; margin-bottom: 36px; }
.marketing .mk-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.marketing .mk-card { display: flex; flex-direction: column; overflow: hidden; }
.marketing .mk-card-media { display: block; height: 220px; padding: 20px 20px 0; overflow: hidden; background: #edf1f2; }
.marketing .mk-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left top; border: 1px solid #d0d9db; border-bottom: 0; border-radius: 6px 6px 0 0; }
.marketing .mk-card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 28px; }
.marketing .mk-kicker { margin: 0 0 8px; color: var(--mk-teal); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.marketing main .mk-card h3 { margin: 0 0 12px; font-size: 22px; }
.marketing .mk-card p:not(.mk-kicker) { margin: 0 0 14px; color: var(--mk-muted); font-size: 15px; line-height: 1.75; }
.marketing .mk-card-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: auto; padding-top: 10px; }
.marketing .mk-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.marketing .mk-point { padding-top: 18px; border-top: 2px solid var(--mk-teal); }
.marketing main .mk-point h3 { margin: 0 0 8px; font-size: 18px; }
.marketing .mk-point p { margin: 0; color: var(--mk-muted); font-size: 15px; line-height: 1.75; }
.marketing .mk-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; }
.marketing main .mk-columns h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.5px; }
.marketing .mk-columns p { margin: 0; color: var(--mk-muted); font-size: 15px; line-height: 1.75; }
@media (max-width: 991px) {
  .marketing .mk-hero-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .marketing .mk-card-grid { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
}
@media (max-width: 767px) {
  .marketing .mk-points, .marketing .mk-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 575px) {
  .marketing .mk-stats { padding: 24px; gap: 22px 16px; }
  .marketing .mk-card-media { height: 180px; padding: 16px 16px 0; }
  .marketing .mk-card-body { padding: 22px 20px 24px; }
  .marketing main .mk-card h3 { font-size: 20px; }
}

/* ---------- Logo band: where users work, then who cites the tracker. Two identical lists scroll by half the track for a seamless loop ---------- */
:is(.home-page, .marketing) .logo-band { padding: 40px 0 36px; background: #fff; border-bottom: 1px solid var(--mk-line); }
:is(.home-page, .marketing) .logo-band-lead { margin: 0 0 24px; color: var(--mk-muted); font-size: 15px; font-weight: 600; text-align: center; }
:is(.home-page, .marketing) .logo-band-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
:is(.home-page, .marketing) .logo-band-track { display: flex; width: max-content; animation: logo-band-scroll 60s linear infinite; }
:is(.home-page, .marketing) .logo-band-list { display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 56px 0 0; list-style: none; }
:is(.home-page, .marketing) .logo-band-item { display: flex; flex: none; align-items: center; }
:is(.home-page, .marketing) .logo-band-item img { display: block; width: auto; height: var(--h, 28px); filter: brightness(0); opacity: .5; }
:is(.home-page, .marketing) .logo-band-cites { max-width: 860px; margin: 26px auto 0; color: var(--mk-muted); font-size: 13.5px; line-height: 1.6; text-align: center; }
:is(.home-page, .marketing) .logo-band-cites a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
:is(.home-page, .marketing) .logo-band-cites a:hover { color: var(--mk-ink); }
@keyframes logo-band-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  :is(.home-page, .marketing) .logo-band-viewport { -webkit-mask-image: none; mask-image: none; }
  :is(.home-page, .marketing) .logo-band-track { width: auto; animation: none; }
  :is(.home-page, .marketing) .logo-band-list { flex-wrap: wrap; justify-content: center; gap: 28px 44px; padding: 0 24px; }
  :is(.home-page, .marketing) .logo-band-list[aria-hidden="true"] { display: none; }
}
@media (max-width: 575px) {
  :is(.home-page, .marketing) .logo-band { padding: 32px 0 28px; }
  :is(.home-page, .marketing) .logo-band-lead { margin-bottom: 20px; padding: 0 8px; font-size: 14px; }
  :is(.home-page, .marketing) .logo-band-list { gap: 40px; padding-right: 40px; }
  :is(.home-page, .marketing) .logo-band-item img { height: calc(var(--h, 28px) * .8); }
  :is(.home-page, .marketing) .logo-band-cites { margin-top: 22px; font-size: 12.5px; }
}

/* ---------- Dark panel with a JSON response: the API card on the homepage and the API choice on Integrations ----------
   The panel sizes its contents to the frame width with a container query, so nothing is cropped or rescaled. */
:is(.home-page, .marketing) .plugin-media { display: flex; align-items: center; justify-content: center; container-type: inline-size; padding: 18px; background: linear-gradient(160deg, #123540 0%, #0c2730 100%); }
:is(.home-page, .marketing) .plugin-panel { width: 100%; max-width: 460px; max-height: 100%; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .06); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); overflow: hidden; }
:is(.home-page, .marketing) .plugin-input { display: flex; align-items: center; gap: 2px; padding: 9px 14px; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 600 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: #fff; }
:is(.home-page, .marketing) .plugin-input i { display: inline-block; width: 2px; height: 16px; background: #7fd0dc; animation: plugin-caret 1.1s steps(1) infinite; }
@keyframes plugin-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { :is(.home-page, .marketing) .plugin-input i { animation: none; } }
:is(.home-page, .marketing) .json-panel { margin: 0; padding: 12px 14px 14px; background: none; border: 0; font: 12px/1.6 ui-monospace, "SF Mono", Menlo, monospace; color: rgba(255, 255, 255, .7); overflow: hidden; }
:is(.home-page, .marketing) .json-line { display: block; white-space: pre; overflow: hidden; text-overflow: ellipsis; }
:is(.home-page, .marketing) .json-key { color: #9fe3ec; }
:is(.home-page, .marketing) .json-str { color: #d9f2c4; }
:is(.home-page, .marketing) .json-more { color: rgba(255, 255, 255, .45); }
@container (min-width: 440px) { :is(.home-page, .marketing) .json-panel { font-size: 13px; } }

/* ---------- Hero: a compact dark band, the homepage hero without the montage ---------- */
.marketing .publication-hero {
  padding: 88px var(--mk-gutter) 84px; border-bottom: 0; color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(127, 208, 220, .16), transparent 42%),
    linear-gradient(120deg, #0a1a2c 0%, #102740 58%, #123540 100%);
}
.marketing main .publication-hero h1 { color: #fff; }
.marketing main .publication-hero .eyebrow { color: #7fd0dc; font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; }
.marketing main .publication-hero .publication-deck { color: rgba(255, 255, 255, .84); }
.marketing .publication-hero a.publication-button { background: #fff; border-color: #fff; color: #0b4852; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.marketing .publication-hero a.publication-button:hover { background: #e8f3f4; border-color: #e8f3f4; color: #073740; }
.marketing .publication-hero .publication-actions a:not(.publication-button), .marketing .publication-hero .publication-actions a:not(.publication-button):hover { color: #fff; }
.marketing .publication-hero a:focus-visible { outline: 3px solid #7fd0dc; outline-offset: 3px; }
.marketing .publication-hero .mk-stats { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.marketing .publication-hero .mk-stats dd { color: #fff; }
.marketing .publication-hero .mk-stats dt { color: rgba(255, 255, 255, .72); }
@media (max-width: 575px) { .marketing .publication-hero { padding-block: 56px 52px; } }

/* Integrations hero: the two fields of a custom connector, in the homepage's dark panel. */
.marketing .mk-hero-panel { justify-self: end; width: 100%; max-width: 460px; }
.marketing .mk-hero-panel .plugin-panel { max-width: none; }
.marketing .mk-connector { display: grid; gap: 16px; margin: 0; padding: 18px 16px 20px; }
.marketing .mk-connector dt { margin-bottom: 6px; color: rgba(255, 255, 255, .6); font-size: 12px; font-weight: 600; }
.marketing .mk-connector dd { display: flex; align-items: center; gap: 2px; margin: 0; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; background: rgba(10, 26, 44, .45); color: #fff; font: 13px/1.4 ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.marketing .mk-connector i { display: inline-block; flex: none; width: 2px; height: 16px; background: #7fd0dc; animation: plugin-caret 1.1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .marketing .mk-connector i { animation: none; } }

/* Pricing hero: every plan and its price, linking to the comparison. */
.marketing a.mk-ladder { justify-self: end; display: grid; width: 100%; max-width: 420px; padding: 8px 24px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--mk-radius); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; transition: background-color .2s ease, border-color .2s ease; }
.marketing a.mk-ladder:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); color: #fff; }
.marketing .mk-ladder-title { padding: 12px 0 10px; color: #7fd0dc; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.marketing .mk-ladder-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.marketing .mk-ladder-row b { font-family: var(--mk-heading); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.marketing .mk-ladder-row em { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: #7fd0dc; color: #0a1a2c; font-size: 11px; font-style: normal; font-weight: 700; vertical-align: 2px; }
.marketing .mk-ladder-pick b { color: #9fe3ec; }
@media (max-width: 991px) { .marketing .mk-hero-panel, .marketing a.mk-ladder { justify-self: stretch; max-width: 560px; } }

/* ---------- Integrations: the chooser cards lead with the homepage card media ---------- */
.marketing .connect-grid a { gap: 0; padding: 0; overflow: hidden; }
.marketing .connect-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #123540 0%, #0c2730 100%); }
.marketing .connect-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.marketing .connect-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 22px 24px 24px; }
/* TechieRay Brain reads as a raised card with a teal top rule, like the homepage's Brain points. */
.marketing .integration-section .brain-callout { max-width: 880px; margin: 24px 0 32px; padding: 28px 32px; border: 1px solid var(--mk-card-line); border-top: 3px solid var(--mk-teal); border-radius: var(--mk-radius); background: #fff; box-shadow: var(--mk-shadow); }
.marketing .integration-section .brain-callout-title { margin: 0 0 12px; color: var(--mk-ink); font-family: var(--mk-heading); font-size: 22px; }
.marketing .integration-section .brain-callout p:not(.brain-callout-title) { color: var(--mk-muted); font-size: 15px; line-height: 1.75; }
@media (max-width: 575px) { .marketing .integration-section .brain-callout { padding: 22px 20px; } }

/* ---------- Pricing: the recommended plan stands out, and the definitions close below the FAQ ---------- */
.marketing .plan-col-recommended .plan-cell { background: rgba(21, 87, 102, .04); }
.marketing .plan-col-recommended .plan-cell-head { background: rgba(21, 87, 102, .14); box-shadow: inset 0 4px 0 var(--mk-teal); }
.marketing .licence-definitions { margin-top: 16px; }
.marketing .plan-grid sup a, .marketing .plan-commercial sup a, .marketing .api-desc-p sup a { color: inherit; text-decoration: none; }
.marketing .plan-grid sup a:hover, .marketing .plan-commercial sup a:hover, .marketing .api-desc-p sup a:hover { color: var(--mk-teal); text-decoration: underline; }
/* On phones each plan is its own card, so the raised surface moves from the grid to the columns. */
@media screen and (max-width: 600px) {
  .marketing .pricing-section .plan-grid { overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .marketing .pricing-section .plan-col { margin-bottom: 16px; border-color: var(--mk-card-line); background: #fff; box-shadow: var(--mk-shadow); }
  .marketing .pricing-section .plan-col-recommended { border: 2px solid var(--mk-teal); }
}

/* ---------- Institutions: the four reasons as points, like the homepage's Brain points ---------- */
.marketing .enterprise-why > p { margin: 0 0 36px; color: var(--mk-muted); }
.marketing .mk-points-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 991px) { .marketing .mk-points-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .marketing .mk-points-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Scroll reveals (classes are added by assets/js/reveal.js) ----------
   Light components (text) rise 20px over 1.4s. Heavy components (cards, media) rise 44px from a slightly
   smaller scale over 1.9s. Both decelerate long and late, and enter 200ms apart (reveal.js).
   The selectors carry both classes so they outrank a component's own hover transition while it reveals;
   reveal.js removes the classes once the component settles, and the hover transition returns. */
:is(.home-page, .marketing) .reveal:is(.reveal-light, .reveal-heavy) {
  opacity: 0;
  transition-property: opacity, transform;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
:is(.home-page, .marketing) .reveal.reveal-light {
  transform: translate3d(0, 20px, 0);
  transition-duration: 1100ms, 1400ms;
  transition-timing-function: cubic-bezier(.3, .6, .3, 1), cubic-bezier(.19, 1, .22, 1);
}
:is(.home-page, .marketing) .reveal.reveal-heavy {
  transform: translate3d(0, 44px, 0) scale(.98);
  transform-origin: 50% 100%;
  transition-duration: 1400ms, 1900ms;
  transition-timing-function: cubic-bezier(.3, .6, .3, 1), cubic-bezier(.16, .84, .24, 1);
}
:is(.home-page, .marketing) .reveal.is-revealed:is(.reveal-light, .reveal-heavy) { opacity: 1; transform: none; }
.reveal-pending .marketing .mk-hero-split > * { opacity: 0; }
