/* NewsMesh UI layer: colour accent, motion and focus, loaded after oatmeal.
   Values follow Exa's design system (@exa/design): blue is an accent for links,
   selection and the primary run action; buttons elsewhere stay black. */

:root {
  /* accent */
  --blue: #1840ed;
  --blue-solid: #2751f6;
  --blue-solid-hover: #1622ed;
  --blue-subtle: #f7f8fc;
  --blue-subtle-hover: #eef2fa;
  --blue-subtle-active: #dce5f7;
  --blue-border: #c4d1ed;
  --blue-border-hover: #96b0eb;
  --blue-fg: #1326d2;

  /* motion */
  --dur-fast: 100ms;
  --dur: 150ms;
  --dur-slow: 220ms;
  --dur-drawer: 300ms;
  --dur-reveal: 480ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --press-scale: 0.97;

  /* One type family across the site: headings use Inter like body text. */
  --font-display: "Inter", system-ui, sans-serif;
  --font-display--font-variation-settings: normal;

  --shadow-menu: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; --dur-drawer: 0ms; --dur-reveal: 0ms; --press-scale: 1; }
}

/* ---- interaction defaults ---------------------------------------------- */
a, button, input, select, textarea, summary {
  transition:
    color var(--dur) var(--ease-standard),
    background-color var(--dur) var(--ease-standard),
    border-color var(--dur) var(--ease-standard),
    box-shadow var(--dur) var(--ease-standard),
    opacity var(--dur) var(--ease-standard),
    transform var(--dur-fast) var(--ease-standard);
}
button:not(:disabled):active { transform: scale(var(--press-scale)); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

/* Links inside running text pick up the accent. Many carry the text-colour utility
   (.aust.auof), so match those too; buttons and cards keep their own look. */
:is(main, .feature-content, .docs-content, .lib-content, .blog-content) :is(p, li, td) > a:is(:not([class]), .aust.auof) {
  color: var(--blue) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklab, var(--blue) 35%, transparent);
}
:is(main, .feature-content, .docs-content, .lib-content, .blog-content) :is(p, li, td) > a:is(:not([class]), .aust.auof):hover {
  color: var(--blue-solid-hover) !important; text-decoration-color: currentColor;
}

/* Accent utilities for templates */
.link-accent { color: var(--blue) !important; }
.link-accent:hover { color: var(--blue-solid-hover) !important; }

/* ---- motion primitives -------------------------------------------------- */
@keyframes nm-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes nm-reveal { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
@keyframes nm-menu-in { from { opacity: 0; transform: translateY(4px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes nm-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.nm-skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #f1f1f2 25%, #f7f7f8 37%, #f1f1f2 63%);
  background-size: 400% 100%;
  animation: nm-shimmer 1.4s ease infinite;
}
@media (prefers-reduced-motion: reduce) { .nm-skeleton { animation: none; } }

/* Usage bar on the dashboard fills with the accent and animates to its value. */
#usageProgressBar { background: var(--blue-solid) !important; transition: width 600ms var(--ease-out) !important; }

/* ---- blue surfaces for content pages ------------------------------------ */
/* Signup buttons at the end of content pages. */
.nm-cta { box-shadow: 0 1px 2px rgba(19, 38, 210, 0.2); }
.nm-cta:hover { background: var(--blue-solid-hover) !important; }

/* Call-to-action panel: blue wash with a dot grid fading from the top. Also the dashboard's empty state. */
.nm-cta-panel { position: relative; overflow: hidden; border: 1px solid var(--blue-subtle-active);
  background: radial-gradient(120% 90% at 50% 0%, var(--blue-subtle-hover) 0%, #fff 70%) !important; }
.nm-cta-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background-image: radial-gradient(var(--blue-border) 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(60% 70% at 50% 0%, #000 0%, transparent 75%); }
.nm-cta-panel > * { position: relative; }

/* Small label above a page title ("USE CASE"). */
.nm-eyebrow { background: var(--blue-subtle-hover) !important; color: var(--blue-fg); box-shadow: inset 0 0 0 1px var(--blue-subtle-active); }

/* ---- marketing type system (homepage, pricing) -------------------------- */
/* One weight (400), two tones, small tracked labels: one weight (400), two tones, small tracked labels. */
.hm { --ink: #0a0a0a; --ink-2: rgba(10, 10, 10, 0.5); --ink-3: rgba(10, 10, 10, 0.35); --rule: rgba(10, 10, 10, 0.1); --fill: rgba(8, 9, 12, 0.04); }
.hm-wrap { max-width: 78rem; margin: 0 auto; padding: 0 1.5rem; }
.hm-label { font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.hm-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.hm-h { margin: 0; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.hm-h span { display: block; color: var(--ink-2); }
.hm-p { margin: 0; font-size: 1.125rem; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.hm-btn { display: inline-flex; align-items: center; gap: 0.375rem; height: 2.5rem; padding: 0 1.125rem; border-radius: 9990px;
  font-size: 0.875rem; font-weight: 400; text-decoration: none; transition: background-color var(--dur) var(--ease-standard); }
.hm-btn.primary { background: var(--ink); color: #fff; }
.hm-btn.primary:hover { background: #2a2a2e; }
.hm-btn.quiet { background: var(--fill); color: var(--ink); }
.hm-btn.quiet:hover { background: rgba(8, 9, 12, 0.08); }
.hm-section { padding: 8rem 0 0; }
@media (max-width: 720px) { .hm-section { padding-top: 5rem; } .ax-grid, .ft-grid, .pr-grid { margin-top: 2.5rem !important; } }
.hm-intro { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .hm-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; } }
.hm-intro .hm-h { font-size: clamp(1.75rem, 2.6vw, 2rem); line-height: 1.12; }

/* ---- feature pages (.fx) ------------------------------------------------ */
.fx { padding: 6rem 0 8rem; }
.fx-head { display: grid; gap: 1.25rem; padding-bottom: 3.5rem; }
.fx-head .hm-h { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.025em; }
.fx-head .hm-p { max-width: 40rem; }
.fx-stats { display: grid; margin-bottom: 1rem; border-top: 1px solid var(--rule); }
@media (min-width: 640px) { .fx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-stats > div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; } }
.fx-stats > div { display: grid; gap: 0.25rem; padding: 1.5rem 1.5rem 1.5rem 0; }
.fx-stats b { font-size: 2.25rem; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.fx-stats span { font-size: 0.875rem; color: var(--ink-2); }
.fx .feature-content section { display: grid; gap: 1rem 4rem; padding: 2.5rem 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) {
  .fx .feature-content section { grid-template-columns: 15rem minmax(0, 1fr); }
  .fx .feature-content section > * { grid-column: 2; }
  .fx .feature-content section > h2 { grid-column: 1; grid-row: 1; }
}
.fx .feature-content h2 { margin: 0; font-size: 1.125rem; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.fx .feature-content h3 { margin: 0.5rem 0 0; font-size: 1rem; font-weight: 400; color: var(--ink); }
.fx .feature-content p, .fx .feature-content li { font-size: 0.9375rem; line-height: 1.6; color: var(--ink-2); }
.fx .feature-content p { margin: 0; }
.fx .feature-content ul, .fx .feature-content ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.375rem; }
.fx .feature-content strong { font-weight: 500; color: var(--ink); }
.fx .feature-content code { font-family: var(--font-mono); }
.fx .feature-content .inline-code { padding: 0.125rem 0.375rem; border-radius: 0.375rem; background: var(--fill); font-size: 0.8125rem; color: var(--ink); }
.fx .feature-content pre { margin: 0; padding: 1rem 1.25rem; overflow-x: auto; border-radius: 0.75rem; background: var(--fill);
  font: 0.8125rem/1.65 var(--font-mono); color: rgba(10, 10, 10, 0.8); }
.fx .feature-content pre code { background: none; color: inherit; }
.fx .json-key, .fx .url-param-key { color: var(--blue-fg); }
.fx .json-string, .fx .url-param-value { color: #1f6b40; }
.fx .json-bracket, .fx .url-base { color: var(--ink); }
.fx .json-line { display: inline; }
.fx .url-separator, .fx .terminal-prompt { color: var(--ink-3); }
.fx .terminal-prompt { margin-right: 0.5rem; }
.fx .feature-content table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.fx .feature-content th { padding: 0.625rem 0.75rem 0.625rem 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; color: var(--ink-2); }
.fx .feature-content td { padding: 0.75rem 0.75rem 0.75rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.fx .check-icon { color: var(--ink); }
.fx .dash-icon { color: var(--ink-3); }
.fx .table-scroll { overflow-x: auto; }
.fx .feature-content .fx-cta { display: block; padding: 3.5rem 0 0; border-top: 0; }

/* ---- smooth scrolling (Lenis, marketing pages) ----------------------------- */
html { scroll-padding-top: 5rem; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- auth pages (.au): form on the left, blue sky on the right ------------ */
.au { display: grid; min-height: 100svh; }
@media (min-width: 960px) { .au { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.au-form { display: flex; flex-direction: column; padding: 1.5rem 2rem 1.5rem; }
.au-logo { align-self: flex-start; font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.au-form .au-inner { margin: auto; padding: 2.5rem 0; }
.au-foot { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.75rem; color: var(--ink-3); }
.au-foot a { color: var(--ink-3); text-decoration: none; }
.au-foot a:hover { color: var(--ink); }
.au-inner { width: 100%; max-width: 22rem; display: grid; gap: 2rem; }
.au-title { font-size: 1.875rem; line-height: 1.12; }
.au-fields { display: grid; gap: 1.125rem; }
.au-field { display: grid; gap: 0.375rem; }
.au-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.au label { font-size: 0.8125rem; color: var(--ink); }
.au-row a, .au-fine a, .au-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--rule); }
.au-row a { font-size: 0.8125rem; color: var(--ink-2); }
.au-row a:hover, .au-fine a:hover, .au-alt a:hover { text-decoration-color: currentColor; }
.au-input { width: 100%; height: 2.75rem; padding: 0 0.875rem; border: 1px solid rgba(10, 10, 10, 0.14) !important; border-radius: 0.625rem;
  background: #fff !important; font: inherit; font-size: 0.9375rem; color: var(--ink); outline: none;
  transition: border-color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard); }
.au-input::placeholder { color: var(--ink-3); }
.au-input:hover { border-color: rgba(10, 10, 10, 0.24) !important; }
.au-input:focus { border-color: var(--blue-solid) !important; box-shadow: 0 0 0 3px rgba(39, 81, 246, 0.15); }
.au-input[aria-invalid="true"] { border-color: #dc2626 !important; }
.au-err { min-height: 0; font-size: 0.8125rem; color: #dc2626; }
.au-err:empty { display: none; }
.au-submit { width: 100%; height: 2.75rem !important; justify-content: center; margin-top: 0.375rem; border: 0; cursor: pointer; font: inherit; font-size: 0.9375rem; }
.au-submit:disabled { opacity: 0.6; cursor: default; }
.au-fine { margin: 0; font-size: 0.75rem; line-height: 1.5; color: var(--ink-2); }
.au-alt { margin: 0; font-size: 0.875rem; color: var(--ink-2); }
.au-side { display: none; position: relative; isolation: isolate; overflow: hidden; margin: 0.75rem; min-height: calc(100svh - 1.5rem); border-radius: 1.5rem;
  background: linear-gradient(160deg, #1530d8 0%, #2f55ee 60%, #5b82f7 100%); }
@media (min-width: 960px) { .au-side { display: flex; } }
.au-side-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; width: 100%; padding: 3rem; }
.au-pitch { margin: 0; max-width: 26rem; font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; color: #fff; text-wrap: balance; }
.au-pitch span { display: block; color: rgba(255, 255, 255, 0.72); }
.au-card { max-width: 30rem; border-radius: 0.875rem; background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 32px -12px rgba(10, 20, 80, 0.45); overflow: hidden; }
.au-card-head { display: flex; justify-content: space-between; padding: 0.625rem 0.875rem; border-bottom: 1px solid var(--rule);
  font: 0.6875rem/1 var(--font-mono); color: var(--ink-3); }
.au-card pre { margin: 0; padding: 0.875rem; font: 0.75rem/1.7 var(--font-mono); color: rgba(10, 10, 10, 0.8); white-space: pre-wrap; }
.au-card .k { color: var(--blue-fg); } .au-card .s { color: #1f6b40; }

/* ---- shared dashboard/account dialog (#modal) ------------------------------ */
#modal { background: rgba(9, 9, 11, 0.45) !important; }
#modalContainer { background: #fff !important; border-radius: 0.875rem !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.25) !important; animation: nm-menu-in var(--dur-slow) var(--ease-out); }
#modalTitle { font-size: 1.125rem !important; font-weight: 400 !important; letter-spacing: -0.01em; color: #0a0a0a !important; }
#modalMessage { font-size: 0.9375rem; line-height: 1.55; color: rgba(10, 10, 10, 0.5) !important; }
#modalContent input:not([type="checkbox"]):not([type="radio"]) { height: 2.75rem !important; padding: 0 0.875rem !important; border: 1px solid rgba(10, 10, 10, 0.14) !important;
  border-radius: 0.625rem !important; background: #fff !important; font-size: 0.9375rem !important; color: #0a0a0a; outline: none;
  transition: border-color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard); }
#modalContent input:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--blue-solid) !important; box-shadow: 0 0 0 3px rgba(39, 81, 246, 0.15); }
#generateNameBtn { align-self: flex-start !important; color: var(--blue-solid) !important; text-decoration: none !important; }
#generateNameBtn:hover { color: var(--blue-solid-hover) !important; }
#modalCancel, #modalConfirm { height: 2.5rem; padding: 0 1.125rem !important; border-radius: 9990px !important; font-size: 0.875rem !important; font-weight: 400 !important; }
#modalCancel { background: #f0f0f2 !important; color: #0a0a0a !important; }

/* Dashboard page titles (Overview, API keys, Plans, Billing, Settings) share the site heading style. */
body:has(#app-sidebar) main h1.aunh { font-size: clamp(1.75rem, 2.6vw, 2rem) !important; font-weight: 400 !important; letter-spacing: -0.02em !important; }

/* Pretty-printed API JSON (partials/_viz.html json_body). */
.vz-json { margin: 0; padding: 1.25rem; overflow-x: auto; font: 0.8125rem/1.75 var(--font-mono); color: rgba(10, 10, 10, 0.75); }
.vz-json .k { color: var(--blue-fg); } .vz-json .s { color: #1f6b40; }

/* ---- Use-case and feature pages (templates/_story.html), from the Verdius components ---- */
.st { --st-ink: #0a0a0a; --st-body: rgba(10, 10, 10, 0.62); --st-muted: #8c8c8c; --st-plate: #f4f4f3; --st-dark: #0d0d0d;
  --st-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); background: #fff; color: var(--st-ink); }
.st-wrap { width: min(100% - 2.5rem, 80rem); margin: 0 auto; padding: 6.5rem 0 5.5rem; }
.st-eyebrow { margin: 0 0 1rem; font-size: 0.875rem; line-height: 1.26; color: var(--st-muted); }
.st-h1 { margin: 0; font-weight: 400; font-size: 1.875rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--st-ink); }
.st-h2 { margin: 0; font-weight: 400; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; color: var(--st-ink); }
.st-h1 span, .st-h2 span { display: block; }
.st-h1 .muted, .st-h2 .muted { color: var(--st-muted); }
.st-lede { margin: 0; font-size: 1.125rem; line-height: 1.5; color: var(--st-body); }

/* Hero: headline and actions on the left, a live "try it" card on the right. */
.st-hero { display: grid; gap: 3rem; align-items: center; margin-bottom: 5rem; }
.st-hero .st-h1 { font-size: clamp(2.25rem, 4.2vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; }
.st-hero-r { max-width: 30rem; margin: 1.5rem 0 0; font-size: 1.125rem; line-height: 1.45; color: var(--st-body); }
.st-hero-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.st .submit.dark { background: var(--st-ink); color: #fff; }
.st .submit.plain { background: rgba(0, 0, 0, 0.05); color: var(--st-ink); }
.st .submit.plain:hover { background: rgba(0, 0, 0, 0.08); }
.try { display: grid; gap: 0.75rem; padding: 0.75rem; border-radius: 1.75rem; background: rgba(0, 0, 0, 0.035); }
.try-q { display: flex; align-items: center; gap: 0.625rem; padding: 0.875rem 1rem; border-radius: 1.125rem; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 6px 20px -12px rgba(0, 0, 0, 0.25); font: 0.9375rem var(--font-mono); color: var(--st-ink); }
.try-q svg { flex: none; width: 1rem; height: 1rem; color: var(--st-muted); }
.try-q span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.try-chips { display: flex; flex-wrap: wrap; gap: 0.375rem; padding: 0 0.25rem; }
.try-chip { padding: 0.4375rem 0.875rem; border: 0; border-radius: 100px; background: rgba(0, 0, 0, 0.05); cursor: pointer; font: inherit; font-size: 0.8125rem;
  color: var(--st-body); transition: background-color 0.2s ease, color 0.2s ease, transform 0.14s cubic-bezier(0.23, 1, 0.32, 1); }
.try-chip:hover { background: rgba(0, 0, 0, 0.08); color: var(--st-ink); }
.try-chip:active { transform: scale(0.97); }
.try-chip.on { background: var(--st-ink); color: #fff; }
.try-sets { display: grid; padding: 0.375rem 1rem; border-radius: 1.125rem; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04); }
.try-set { grid-area: 1 / 1; margin: 0; padding: 0; list-style: none; visibility: hidden; }
.try-set.on { visibility: visible; }
.try-set li { padding: 0.8125rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); opacity: 0; transform: translateY(6px); }
.try-set li:last-child { border-bottom: 0; }
.try-set.on li { opacity: 1; transform: none; transition: opacity 0.4s var(--st-ease) calc(var(--i) * 60ms), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i) * 60ms); }
.try-set b { display: block; font-weight: 400; font-size: 0.9375rem; line-height: 1.35; color: var(--st-ink); }
.try-set span { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; margin-top: 0.375rem; font-size: 0.75rem; color: var(--st-muted); }
.try-set i { padding: 0.0625rem 0.5rem; border-radius: 100px; background: rgba(0, 0, 0, 0.05); font-style: normal; color: var(--st-body); }
.try-foot { display: flex; justify-content: space-between; padding: 0 0.5rem 0.25rem; font: 0.75rem var(--font-mono); color: var(--st-muted); }
.try-foot span:last-child { color: #1f6b40; }
@media (prefers-reduced-motion: reduce) { .try-set li, .try-set.on li { transition: none; } }
.try-q { padding-right: 0.375rem; }
.try-q span { flex: 1; }
.try-run { display: inline-flex; flex: none; align-items: center; gap: 0.375rem; padding: 0.5rem 0.875rem; border: 0; border-radius: 0.75rem; background: var(--st-ink);
  cursor: pointer; font: inherit; font-size: 0.8125rem; color: #fff; transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease; }
.try-run svg { width: 0.875rem; height: 0.875rem; }
.try-run:hover { background: #2a2a2a; }
.try-run:active { transform: scale(0.96); }
.try-load { grid-area: 1 / 1; align-self: center; display: grid; justify-items: center; gap: 0.75rem; visibility: hidden; opacity: 0;
  font-size: 0.8125rem; color: var(--st-muted); transition: opacity 0.2s ease; }
.try-load i { width: 10rem; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, var(--blue-solid) 50%, rgba(0, 0, 0, 0.06) 100%) 0 0 / 200% 100%;
  animation: tryScan 1s linear infinite; }
@keyframes tryScan { to { background-position: -200% 0; } }
.try.busy .try-load { visibility: visible; opacity: 1; }
.try.busy .try-foot span:last-child { color: var(--st-muted); }
.try.busy .try-set.on { visibility: hidden; }
.try.busy .try-set.on li { opacity: 0; transform: translateY(6px); transition: none; }

/* Request pane: language tabs, copy, line numbers. */
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 0.75rem; }
.code-langs { display: flex; gap: 0.25rem; }
.code-lang, .code-copy { padding: 0.375rem 0.75rem; border: 0; border-radius: 0.625rem; background: transparent; cursor: pointer; font: inherit; font-size: 0.8125rem;
  color: var(--st-muted); transition: background-color 0.2s ease, color 0.2s ease; }
.code-lang:hover, .code-copy:hover { color: var(--st-ink); }
.code-lang.on { background: rgba(0, 0, 0, 0.05); color: var(--st-ink); }
.code-copy { background: rgba(0, 0, 0, 0.05); color: var(--st-ink); }
.code-sets { display: grid; }
.code-set { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 0.25s var(--st-ease); counter-reset: ln; }
.code-set.on { visibility: visible; opacity: 1; }
.code-set span { display: block; min-height: 1lh; }
.code-set span::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 1.75rem; margin-right: 0.75rem; text-align: right; color: rgba(255, 255, 255, 0.28); }

/* Related cards: a small query card in place of a picture. */
.mini { position: absolute; top: 50%; left: 12%; right: 12%; translate: 0 -50%; display: flex; flex-direction: column; gap: 0.625rem; padding: 0.875rem; border-radius: 0.875rem; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 12px 28px -18px rgba(0, 0, 0, 0.35); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.mini-q { overflow: hidden; padding: 0.5rem 0.625rem; border-radius: 0.5rem; background: var(--st-plate); white-space: nowrap; text-overflow: ellipsis;
  font: 0.75rem var(--font-mono); color: var(--st-ink); }
.mini i { display: block; height: 0.5rem; border-radius: 0.25rem; background: rgba(0, 0, 0, 0.07); transition: background-color 0.4s ease, width 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.mini i:nth-of-type(1) { width: 82%; } .mini i:nth-of-type(2) { width: 64%; } .mini i:nth-of-type(3) { width: 73%; }
.st-card:hover .mini { transform: translateY(-4px); }
.st-card:hover .mini i:nth-of-type(1) { background: var(--blue-solid); width: 90%; }

/* Split: copy on the left follows the dark stage's toggle. */
.st-split { display: grid; gap: 2rem; align-items: start; margin-bottom: 5rem; }
.st-copy { position: relative; }
.copy-state { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.42s var(--st-ease); }
.copy-state.active { position: relative; opacity: 1; visibility: visible; }
.st-copy h2 { margin: 0 0 0.75rem; font-weight: 400; font-size: 1.125rem; line-height: 1.2; color: var(--st-ink); }
.st-copy p { margin: 0; max-width: 42ch; font-size: 1.125rem; line-height: 1.3; color: var(--st-body); }

.bento { position: relative; display: flex; align-items: center; justify-content: center; height: min(28.75rem, 62svh); padding-bottom: 3.75rem;
  overflow: hidden; border-radius: 2rem; background: var(--st-dark); }
.bento-bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: blur(4px); transform: scale(1.03); pointer-events: none; }
.bento-content { position: relative; z-index: 1; width: 100%; height: 100%; }
.st .state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.25rem; opacity: 0; z-index: 0;
  pointer-events: none; transition: opacity 0.42s var(--st-ease); }
.st .state.active { opacity: 1; z-index: 1; pointer-events: auto; }
.bento-controls { position: absolute; left: 0; right: 0; bottom: 1.25rem; z-index: 2; display: flex; justify-content: center; pointer-events: none; }
.bento-controls > * { pointer-events: auto; }
.state-toggle { position: relative; display: inline-flex; align-items: center; padding: 4px; border-radius: 100px; background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.state-toggle .pill { position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 100px; background: rgba(255, 255, 255, 0.2); pointer-events: none;
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), width 0.22s cubic-bezier(0.32, 0.72, 0, 1); }
.t-item { position: relative; display: flex; align-items: center; justify-content: center; min-height: 2rem; padding: 0.75rem 1.25rem; border: 0;
  border-radius: 100px; background: transparent; cursor: pointer; font: inherit; font-size: 0.75rem; line-height: 1.3; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.5); transition: transform 0.14s cubic-bezier(0.23, 1, 0.32, 1), color 0.18s ease; }
.t-item.active, .t-item:hover { color: #fff; }
.t-item:active { transform: scale(0.97); }
.state-toggle.light { background: rgba(0, 0, 0, 0.05); }
.state-toggle.light .pill { background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.state-toggle.light .t-item { color: var(--st-muted); }
.state-toggle.light .t-item.active, .state-toggle.light .t-item:hover { color: var(--st-ink); }

.st .module { width: min(30rem, 100%); overflow: hidden; border-radius: 2rem; background: rgba(0, 0, 0, 0.18); }
.s-head { display: flex; align-items: flex-start; gap: 0.625rem; padding: 1.5rem 1.25rem; }
.s-head p { margin: 0; font-size: 0.875rem; line-height: 1.26; color: #fff; }
.s-head strong { font-weight: 400; font-size: 0.875rem; line-height: 1.26; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; white-space: nowrap; }
.obj-list { display: flex; flex-direction: column; gap: 0.5rem; margin: 0; padding: 0 0.75rem 0.75rem; list-style: none; }
.obj-item { overflow: hidden; padding: 1rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.06); font-size: 0.875rem; line-height: 1.26; color: #fff; }
.obj-title { display: block; min-height: 1lh; }
.obj-title i { display: inline-block; width: 1px; height: 1em; margin-left: 2px; transform: translateY(0.15em); background: currentColor; animation: stBlink 0.9s steps(2, jump-none) infinite; }
.obj-body { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.52s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.obj-body .inner { display: block; min-height: 0; overflow: hidden; font-size: 0.75rem; line-height: 1.3; color: rgba(255, 255, 255, 0.6); transition: margin-top 0.52s cubic-bezier(0.4, 0, 0.2, 1); }
.obj-item.revealed .obj-body { grid-template-rows: 1fr; opacity: 1; }
.obj-item.revealed .obj-body .inner { margin-top: 0.375rem; }
@keyframes stBlink { 50% { opacity: 0; } }

.aud-list { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 0.5rem; width: min(25rem, 100%); margin: 0; padding: 0; list-style: none; }
.aud-item { --aud-ease: cubic-bezier(0.2, 1.2, 0.3, 1); position: relative; display: grid; align-content: start; height: 3rem; overflow: hidden; border-radius: 1.5rem;
  transition: height 0.52s cubic-bezier(0.4, 0, 0.2, 1), border-radius 0.52s cubic-bezier(0.4, 0, 0.2, 1); }
.aud-item .backdrop { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: rgba(0, 0, 0, 0.18);
  transition: background 0.52s cubic-bezier(0.4, 0, 0.2, 1), transform 0.52s var(--aud-ease); }
.aud-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.5rem 0.5rem 0.5rem 1rem; border: 0;
  background: transparent; cursor: pointer; font: inherit; font-size: 0.875rem; line-height: 1.26; color: #fff; text-align: left; }
.aud-head .icon { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1); color: #fff; transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1); }
.aud-head .icon svg { width: 10px; height: 10px; }
.aud-body { position: relative; min-height: 0; overflow: hidden; padding: 0.25rem 1rem 1rem; }
.aud-body p { margin: 0; font-size: 0.875rem; line-height: 1.3; color: rgba(255, 255, 255, 0.6); opacity: 0; transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.aud-item.expanded { border-radius: 1rem; }
.aud-item.expanded .backdrop { transform: scale(1.015); background: rgba(255, 255, 255, 0.1); }
.aud-item.expanded .icon { opacity: 0; }
.aud-item.expanded .aud-body p { opacity: 1; }

.rec-card { margin: 0 0.75rem 0.75rem; padding: 0.25rem 1rem; border-radius: 1.25rem; background: rgba(255, 255, 255, 0.06); }
.rec-rows { margin: 0; }
.rec-rows div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 0.625rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8125rem; line-height: 1.35; }
.rec-rows div:last-child { border-bottom: 0; }
.rec-rows dt { color: rgba(255, 255, 255, 0.5); }
.rec-rows dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }

/* Example: a toggle above a faintly filled card; the task on the left, the output on a white plate on the right. */
.st-sc { margin-bottom: 5rem; }
.st-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; margin: 0 0 3rem; }
.st-tog-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.fcard { display: flex; flex-direction: column; gap: 2.5rem; padding: 2rem; border-radius: 2rem; background: rgba(0, 0, 0, 0.03); }
.f-task { display: flex; flex-direction: column; align-items: flex-start; flex: 1; max-width: 28.75rem; min-width: 0; }
.f-task .st-eyebrow { margin-bottom: 0.75rem; }
.f-task h3 { margin: 0 0 0.625rem; font-weight: 400; font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--st-ink); }
.f-lede { margin: 0 0 2rem; font-size: 0.875rem; line-height: 1.45; color: var(--st-body); }
.glance { width: 100%; }
.glance > p { margin: 0 0 0.75rem; font-size: 0.875rem; color: var(--st-ink); }
.glance dl { margin: 0; padding: 0.25rem 1rem; border-radius: 1rem; background: rgba(0, 0, 0, 0.04); }
.glance dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); font-size: 0.8125rem; }
.glance dl div:last-child { border-bottom: 0; }
.glance dt { color: var(--st-muted); }
.glance dd { margin: 0; color: var(--st-ink); }
.f-panes { display: grid; flex: 1.2; min-width: 0; padding: 1.25rem; border-radius: 1.5rem; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04); }
.f-pane { grid-area: 1 / 1; min-width: 0; visibility: hidden; opacity: 0; transition: opacity 0.3s var(--st-ease), visibility 0s 0.3s; }
.f-pane.on { visibility: visible; opacity: 1; transition-delay: 0s; }
.res-list { display: flex; flex-direction: column; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.res-list li { display: flex; gap: 0.75rem; padding: 0.875rem 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.res-list li:last-child { border-bottom: 0; }
.res-list i { flex: none; width: 0.625rem; height: 0.625rem; margin-top: 0.3rem; border-radius: 2px; background: var(--st-ink); }
.res-list li:first-child i { background: var(--blue-solid); }
.res-list b { display: block; font-weight: 400; font-size: 0.9375rem; line-height: 1.35; color: var(--st-ink); }
.res-list span { display: block; margin-top: 0.25rem; font-size: 0.8125rem; color: var(--st-muted); }
.st-code { margin: 0; padding: 1.25rem; overflow-x: auto; border-radius: 1rem; background: var(--st-dark); font: 0.8125rem/1.75 var(--font-mono); color: #e8e8e8; }
.f-pane .vz-json { padding: 0.5rem; }

/* Close: the dark panel over a blurred photo. */
.st-close { margin-bottom: 5rem; }
.st-cta { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 20rem; padding: 4rem 1.25rem;
  overflow: hidden; border-radius: 2rem; background: var(--st-dark); color: #fff; text-align: center; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; filter: blur(10px); transform: scale(1.06); pointer-events: none; }
.cta-say { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2.5rem; }
.st-cta .st-h2 { font-size: 1.875rem; color: #fff; }
.st-cta .st-h2 .muted { color: rgba(255, 255, 255, 0.5); }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.st .submit { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 1rem 2rem; border-radius: 100px;
  font-size: 0.875rem; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease; }
.st .submit:hover { transform: scale(1.025); }
.st .submit:active { transform: scale(0.975); }
.st .submit.light { background: #fff; color: var(--st-ink); }
.st .submit.ghost { background: rgba(255, 255, 255, 0.1); color: #fff; }
.st .submit.ghost:hover { background: rgba(255, 255, 255, 0.16); }

/* More: object plates, a title, a muted line and a round arrow that fills on hover. */
.more-head { margin-bottom: 3rem; }
.st-rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.st-rail::-webkit-scrollbar { display: none; }
.st-card { flex: 0 0 72vw; width: 72vw; scroll-snap-align: start; color: inherit; text-decoration: none; }
.st-card article { display: flex; flex-direction: column; gap: 1.5rem; height: 100%; transition: transform 0.2s var(--st-ease), opacity 0.2s var(--st-ease); }
.st-card:active article { transform: scale(0.985); opacity: 0.8; }
.card-img { position: relative; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; border-radius: 1rem; background: var(--st-plate); }
.card-txt { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 1.25rem; }
.card-txt .txt { display: flex; flex-direction: column; gap: 0.625rem; }
.card-txt h3 { margin: 0; font-weight: 400; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--st-ink); }
.card-txt p { margin: 0; font-size: 0.875rem; line-height: 1.35; color: var(--st-body); }
.card-btn { display: inline-flex; align-self: flex-end; width: 2.625rem; height: 2.625rem; margin-top: auto; border-radius: 50%; color: var(--st-ink); }
.card-btn .inner { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: inherit; background: #ebebea;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.22s ease, color 0.22s ease; }
.card-btn svg { width: 18px; height: 18px; }
.st-card:hover .card-btn .inner { transform: scale(1.05); background: var(--st-ink); color: #fff; }

@media (min-width: 1024px) {
  .st-wrap { padding: 8.75rem 0 7.5rem; }
  .st-hero, .st-split, .st-sc, .st-close { margin-bottom: 8.75rem; }
  .st-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 5rem; min-height: min(40rem, calc(100svh - 12rem)); }
  .st-h2 { font-size: 1.75rem; }
  .st-split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .bento { height: min(35rem, 70svh); padding-bottom: 5rem; }
  .bento-controls { bottom: 2.5rem; }
  .st .state { padding: 2.5rem; }
  .st-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .st-head .st-lede { max-width: 26rem; }
  .fcard { flex-direction: row; gap: 3rem; padding: 2.5rem; }
  .st-cta .st-h2 { font-size: 2.25rem; }
  .more-head { margin-bottom: 4rem; }
  .st-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; overflow: visible; }
  .st-card { width: auto; }
}
