/* Samvit Labs — shared site design. Palette from SamvitLabs/brand/designs/brand/brand-colours.html.
   Dark ground is the canonical presentation; purple is used sparingly. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --ink: #17111F;          /* dark ground */
  --ink-2: #1D1628;        /* raised surface */
  --ink-3: #251C33;        /* cards, code */
  --line: #2E2547;
  --text: #EDEBE6;
  --muted: #A89FC4;
  --lavender: #CEB6F1;
  --violet: #8B5CF6;       /* loop light — shared with the jaala app accent */
  --arc: #A855F7;
  --purple: #8000F5;       /* brand purple — primary buttons only */
  --arc-accent: #FB923C;   /* arc labels — warm accent against the purples */
  --radius: 10px;
  --maxw: 1120px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ink); color: var(--text); font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--lavender); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--purple); color: #fff; padding: 6px 12px; border-radius: 6px; z-index: 10; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 2px; border-radius: 4px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(23, 17, 31, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; height: 64px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-lockup { height: 26px; }
.brand-mark { height: 22px; }
.brand-name { font-weight: 650; font-size: 19px; letter-spacing: .2px; }
/* Product lockup: mark + name on one row, the tagline underneath spanning both and ending where the name ends. */
.site-jaala .brand-name, .site-thoga .brand-name { font-size: 23px; }
.site-jaala .brand-mark, .site-thoga .brand-mark { height: 27px; }
.brand-lock { display: inline-grid; grid-template-columns: max-content; line-height: 1; }
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-tagline { width: 0; min-width: 100%; text-align: right; white-space: nowrap; font: italic 10px/1 var(--font); color: var(--lavender); margin-top: 3px; letter-spacing: 0; }
.nav { margin-left: auto; display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); }
.endorse { color: var(--muted); font-size: 13px; white-space: nowrap; padding-left: 14px; margin-left: -10px; border-left: 1px solid var(--line); }
.endorse:hover { color: var(--text); }
@media (max-width: 720px) { .endorse { display: none; } }
/* Mobile menu: the inline nav hides below 720px and a menu button opens the full list. */
.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu .bars, .menu .bars::before, .menu .bars::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; content: ""; }
.menu .bars::before { position: absolute; top: -6px; } .menu .bars::after { position: absolute; top: 6px; }
.menu[open] .bars { background: transparent; } .menu[open] .bars::before { top: 0; transform: rotate(45deg); } .menu[open] .bars::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 48px; min-width: 220px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.menu-panel a { color: var(--text); padding: 10px 12px; border-radius: 6px; font-size: 16px; }
.menu-panel a:hover { background: var(--ink-3); }
.menu-panel .menu-endorse { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; border-radius: 0; }
@media (max-width: 720px) { .nav { display: none; } .menu { display: block; } }

/* Buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; padding: 12px 22px; border-radius: 8px; font-weight: 600; border: 0; }
.btn:hover { background: #8F1AFF; color: #fff; }
.btn-quiet { display: inline-block; color: var(--lavender); padding: 12px 16px; }
.btn[aria-disabled="true"] { background: var(--ink-3); color: var(--muted); cursor: default; }

/* Sections */
.hero { padding-top: 96px; padding-bottom: 56px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -1px; margin: 0 auto 18px; max-width: 900px; font-weight: 700; }
.hero .lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 680px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hero .fine { color: var(--muted); font-size: 14px; margin-top: 14px; }
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.5px; margin: 0 0 12px; }
.section .intro { color: var(--muted); max-width: 720px; margin: 0 0 36px; font-size: 18px; }
.eyebrow { font: 12px/1 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); margin: 0 0 14px; }
.eyebrow.tagline { font-size: 14px; letter-spacing: .5px; text-transform: none; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card .step { font: 13px var(--mono); color: var(--violet); margin-bottom: 10px; }
.callout { background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--violet); border-radius: var(--radius); padding: 22px 24px; }
.callout p { margin: 0 0 8px; } .callout p:last-child { margin: 0; }

/* Media frame for the demo video / screenshots */
.frame { max-width: 1040px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink-2); box-shadow: 0 30px 90px rgba(139, 92, 246, .16); }
.frame video, .frame iframe, .frame img { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #0f0b15; }
.frame .placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; color: var(--muted); font: 14px var(--mono); }

/* Pricing */
.price-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.price { font-size: 36px; font-weight: 700; letter-spacing: -.5px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 400; }
.tag { display: inline-block; align-self: flex-start; font: 12px var(--mono); color: var(--lavender); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 12px; }

/* Downloads */
.dl { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.dl .card { text-align: center; }

/* Product cards on the company site */
.product { display: flex; flex-direction: column; gap: 10px; }
.product .name { font-size: 22px; font-weight: 650; }
.product .more { margin-top: auto; }
.product .arc { align-self: flex-start; font: 10px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--arc-accent); }
.product .arc:hover { color: #FDBA74; }

/* Long-form pages: legal, about, docs */
.prose-page { padding-top: 56px; padding-bottom: 80px; max-width: 760px; }
.prose-page h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -.5px; margin: 0 0 8px; }
.prose-page .meta { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.prose h2 { font-size: 22px; margin: 40px 0 10px; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: #D9D5E3; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); }
.prose code { background: var(--ink-3); padding: 2px 6px; border-radius: 5px; }
.prose pre { background: var(--ink-3); border: 1px solid var(--line); padding: 16px; border-radius: 8px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 16px 0; padding: 4px 18px; border-left: 3px solid var(--violet); color: var(--muted); }
.draft-banner { background: #2A1F10; border: 1px solid #5C4516; color: #F5D38A; padding: 10px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 24px; }

/* Docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs-nav { padding-top: 60px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 64px; align-self: start; }
.docs-nav a { color: var(--muted); font-size: 15px; }
.docs-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.docs-nav-title { font: 12px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--violet); margin-bottom: 6px; }
@media (max-width: 800px) { .docs { grid-template-columns: 1fr; gap: 0; } .docs-nav { position: static; padding-top: 32px; flex-direction: row; flex-wrap: wrap; gap: 14px; } }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 48px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.footer-title { font: 12px var(--mono); letter-spacing: 1.5px; text-transform: uppercase; color: var(--text); margin-bottom: 4px; }
.footer-tagline { color: var(--muted); font-size: 13px; margin: -8px 0 4px; }
.statutory { color: #8C84A6; font-size: 13px; border-top: 1px solid var(--line); padding-top: 20px; }
.statutory p { margin: 0 0 8px; }
.statutory strong { color: var(--muted); font-weight: 600; }
.statutory a { color: #8C84A6; }
.small-print { font-size: 13px; color: #8C84A6 !important; line-height: 1.6; }
.small-print a { color: #8C84A6; }
.jump { font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.prose h2.part { font-size: 26px; margin: 56px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--lavender); scroll-margin-top: 80px; }

/* Feature lists and FAQ inside cards (thoga) */
.card ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card li { margin: 4px 0; }
.card li strong { color: var(--text); font-weight: 600; }
.card .later { font: 12px var(--mono); color: var(--lavender); }
.faq .card h3 { margin-bottom: 4px; }
.faq .card h4 { margin: 18px 0 4px; font-size: 16px; color: var(--text); }
.rotating { color: var(--lavender); font-size: clamp(17px, 2vw, 20px); min-height: 1.65em; margin: 0 auto 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 800px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.dl-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.dl-5 .card { display: flex; flex-direction: column; align-items: center; } .dl-5 .card .btn { margin-top: auto; }

/* Demo clips (shared/assets/js/clips.js). Hidden until the script fills them. */
.clip { display: none; position: relative; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0f0b15; }
.clip.ready { display: block; }
.clip video, .clip img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.clip-play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(128, 0, 245, .85); cursor: pointer; }
.clip-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }

/* Examples: Builders · Home · Teams */
.examples .card h3 { font-size: 20px; margin-bottom: 14px; }
.examples .ex { margin: 0 0 16px; }
.examples .ex:last-child { margin-bottom: 0; }
.examples .ex strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.examples .ex p { font-size: 15px; }

/* Pricing notes under the cards */
.price-sub { color: var(--muted); font-size: 15px; margin: 2px 0 12px !important; }
.price-notes { margin-top: 24px; }
.price-notes p { margin: 0 0 6px; }
.price-notes .fine { color: var(--muted); font-size: 14px; margin-top: 12px; }
.dl-note { color: var(--muted); font-size: 14px; margin-top: 16px; }
.soon { color: var(--muted); font-size: 14px; }
.product .soon { margin-top: auto; }

/* Arcs diagram on the About page: the master SVG has a wide margin; the frame crops it to the drawing */
.prose h2[id] { scroll-margin-top: 80px; }
.arcs-figure { max-width: 720px; margin: 28px auto; }
.arcs-crop { overflow: hidden; aspect-ratio: 1260 / 860; border: 1px solid var(--line); border-radius: var(--radius); background: #191327; }
.arcs-crop img { display: block; width: 126.98%; height: auto; max-width: none; margin: -7.94% 0 0 -14.29%; }
@media (max-width: 560px) { .arcs-figure { margin: 24px -24px; } .arcs-crop { border-radius: 0; border-left: 0; border-right: 0; } }
.product .name { margin-bottom: -6px; }
.product .tagline { font-size: 14px; color: var(--lavender); font-style: italic; }
.product .points { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 6px; }
.product .points li { color: var(--text); font-size: 15px; padding-left: 18px; position: relative; }
.product .points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }

/* The loop line above the product cards: one SVG unit (text + infinity), so it scales as a
   whole at any zoom and the loop always sits on the centre line, over the gap between the cards.
   Very narrow screens get a stacked HTML version instead, so the text stays readable. */
.loopunit { display: block; width: min(100%, 640px); height: auto; margin: 0 auto 12px; overflow: visible; }
.loopunit .lt { font: italic 17px var(--font); fill: var(--lavender); }
.loopline.stacked { display: none; text-align: center; font-style: italic; color: var(--lavender); font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.loopline.stacked .inf { display: block; margin: 2px auto; width: 64px; height: 24px; }
.loopline.stacked span { display: block; }
.grid.products { grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .grid.products { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .loopunit { display: none; } .loopline.stacked { display: block; } }
.fine-note { color: var(--muted); font-size: 14px; text-align: center; margin: 18px 0 0; }
.arcs-grid .arc { display: inline-block; font: 10px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--arc-accent); margin-bottom: 12px; }
.arcs-grid { margin-top: 8px; }
#arcs .arcs-figure { margin: 8px auto 24px; }

/* The Samvit wordmark style: Trebuchet MS, SΛMVIT bold, ΛI LΛBS regular, A drawn as Λ (no crossbar). */
.wordmark { font-family: "Trebuchet MS", "Trebuchet", var(--font); letter-spacing: 4px; text-transform: none; color: #A855F7; font-size: 14px; }
.wordmark b { font-weight: 700; color: #C084FC; }

/* Mission quadrant: pinned while you scroll through the track; quadrant.js drives the reveal. */
.q-track { height: 300vh; position: relative; margin: 0 0 24px; }
.q-stage { position: sticky; top: 64px; height: calc(100vh - 64px); display: grid; grid-template-rows: auto 1fr; gap: 8px; padding: 20px 0 16px; }
.q-svg { width: min(100%, 780px); height: auto; max-height: calc(100vh - 170px); overflow: visible; }
.q-ring { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.q-axis { font: 600 15px var(--font); letter-spacing: 3px; fill: var(--text); }
.q-pill rect { fill: #1D1628; stroke-width: 1.2; }
.q-pill .n { font: 700 15px var(--font); fill: var(--lavender); }
.q-pill .s { font: 9.5px var(--font); fill: var(--muted); }
.q-hub .wm-b { font: 700 14px "Trebuchet MS", "Trebuchet", var(--font); letter-spacing: 2.5px; fill: #17111F; }
.q-hub .wm-r { font: 400 10.5px "Trebuchet MS", "Trebuchet", var(--font); letter-spacing: 2.5px; fill: #17111F; }
.q-cap { min-height: 3.2em; color: var(--muted); font-size: 17px; margin: 0; }
.q-cap strong { color: var(--text); }
@media (max-width: 720px) { .q-track { height: 240vh; } .q-cap { font-size: 15px; } }
.q-axis.narrow { display: none; }
@media (max-width: 720px) {
  /* On phones the diagram scales down to under half size, so its text is set larger and the side labels move above the ring ends. */
  .q-axis { font-size: 26px; letter-spacing: 3px; }
  .q-axis.wide { display: none; } .q-axis.narrow { display: inline; }
  .q-pill .n { font-size: 24px; } .q-pill .s { display: none; }
  .q-pill .n { transform: translateY(9px); }
  .q-hub .wm-b { font-size: 17px; } .q-hub .wm-r { font-size: 12px; }
  .q-svg { max-height: none; }
}

/* Mission section as a two-column scrollytelling stage on wide screens: text pinned left, diagram drawing itself on the right. */
.q-section { padding-top: 24px; }
.q-text h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 12px; }
.q-intro { color: var(--muted); margin: 0 0 18px; }
.q-intro strong { color: var(--text); font-weight: 600; }
.q-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 18px; display: none; }
.q-steps li { counter-increment: s; color: #6E6590; font-size: 15px; padding: 6px 0 6px 34px; position: relative; transition: color .2s; }
.q-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; font: 12px var(--mono); top: 9px; color: inherit; }
.q-steps li.done { color: var(--muted); }
.q-steps li.on { color: var(--text); font-weight: 600; }
.q-steps li.on::before { color: var(--arc-accent); }
.q-hint { color: #6E6590; font-size: 14px; white-space: nowrap; }
.q-figure { display: grid; place-items: center; min-height: 0; }
@media (max-width: 720px) {
  .q-text h2 { font-size: 22px; }
  .q-svg { width: 114%; max-width: none; margin-left: -7%; } .q-intro { font-size: 15px; margin-bottom: 8px; } .q-cap { font-size: 15px; min-height: 2.6em; }
}
@media (min-width: 980px) {
  .q-stage { grid-template-rows: none; grid-template-columns: minmax(300px, 400px) 1fr; align-items: center; gap: 48px; }
  .q-steps { display: block; }
  .q-svg { max-height: calc(100vh - 120px); }
}

/* Short windows (high zoom, landscape phones): tighter spacing, header not sticky. */
@media (max-height: 640px) {
  .topbar { position: static; }   /* a sticky header would take a third of a very short window */
  .hero { padding-top: 32px; padding-bottom: 28px; }
  .section { padding: 40px 0; }
  .q-stage { top: 0; height: 100vh; }
}

/* Mission heading: inside the pinned stage on wide screens (left column); above the track on
   narrower ones, so only the diagram and its caption are pinned and it fits on any upright phone. */
.q-head-narrow { display: none; }
@media (max-width: 979px) {
  .q-head-narrow { display: block; }
  .q-head-wide { display: none; }
  .q-head-narrow h2 { font-size: clamp(22px, 5vw, 30px); line-height: 1.15; letter-spacing: -.5px; margin: 0 0 10px; }
  .q-head-narrow .q-intro { margin-bottom: 4px; }
  .q-stage { grid-template-rows: 1fr auto; }
  .q-text { order: 2; }
  .q-figure { order: 1; }
  .q-cap { text-align: center; }
}

/* Too short to pin even the diagram: lay it out normally; quadrant.js shows the finished diagram. */
@media (max-width: 979px) and (max-height: 460px), (min-width: 980px) and (max-height: 600px) {
  .q-track { height: auto; }
  .q-stage { position: static; height: auto; display: block; padding: 8px 0 16px; }
  .q-steps { display: none !important; }
  .q-figure { margin-top: 16px; }
  .q-svg { max-height: none; }
}

/* jaala Sources: what is read today and what is next */
.sources { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.source { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.source h3 { margin: 10px 0 6px; font-size: 17px; }
.source p { margin: 0; color: var(--muted); font-size: 15px; }
.status { display: inline-block; font: 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.status.on { color: #17111F; background: var(--lavender); border-color: var(--lavender); }
.status.wip { color: var(--lavender); border-color: #5B4B8A; }
.status.next { color: var(--muted); }
.status.later { color: #6E6590; }

/* Before/after slider with up to three panes (shared/assets/js/slider3.js, shared/_includes/slider3.njk).
   Without the script the panes sit side by side at equal widths. Each image is shown from its
   left edge at the stage's full height, so a wider pane reveals more of it. */
.s3 { margin: 0; }
.s3-stage { position: relative; display: flex; width: 100%; aspect-ratio: 1600 / 1000; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #0f0b15; user-select: none; -webkit-user-select: none; }
.s3-pane { position: relative; flex: 1 1 0; min-width: 0; height: 100%; overflow: hidden; }
.s3-pane + .s3-pane { border-left: 1px solid var(--line); }
.s3.js .s3-pane { flex: none; }
.s3-pane img { position: absolute; left: 0; top: 0; display: block; height: 100%; width: auto; max-width: none; }
.s3-lbl { position: absolute; top: 8px; left: 8px; font: 11px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; color: var(--lavender); background: rgba(23, 17, 31, .88); padding: 5px 8px; border-radius: 5px; pointer-events: none; }
.s3-h { position: absolute; top: 0; bottom: 0; width: 28px; margin-left: -14px; z-index: 3; cursor: ew-resize; touch-action: none; }
.s3-h::before { content: ""; position: absolute; top: 0; bottom: 0; left: 12px; width: 4px; background: var(--arc-accent); }
.s3-h span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--arc-accent); color: var(--ink); font: 700 11px/1 var(--mono); padding: 7px 8px; border-radius: 12px; white-space: nowrap; }
.s3-h:focus-visible { outline: none; }
.s3-h:focus-visible span { outline: 2px solid var(--lavender); outline-offset: 2px; }
.s3-steps { display: none; gap: 6px; margin: 0 0 8px; }
.s3-steps button { flex: 1; min-width: 0; background: var(--ink-2); border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 8px 6px; font: 13px var(--font); cursor: pointer; }
.s3-steps button[aria-pressed="true"] { background: var(--lavender); border-color: var(--lavender); color: var(--ink); }
.s3 figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }
.s3-tag { display: inline-block; font: 11px/1 var(--mono); letter-spacing: .5px; color: var(--arc-accent); border: 1px solid #5C3A1E; border-radius: 999px; padding: 4px 9px; margin-left: 6px; vertical-align: 1px; }
@media (max-width: 720px) { .s3-h { display: none; } .s3.js .s3-steps { display: flex; } }

/* jaala: real sessions on the home page and /examples/ */
.real { display: grid; gap: 48px; }
.real .eyebrow { margin-bottom: 10px; }
.more-link { margin-top: 32px; font-size: 17px; }
.ex-group { padding-top: 40px; }
.ex-group > h2 { scroll-margin-top: 80px; }
.ex-group > .intro { margin-bottom: 20px !important; }
.ex-topic { margin: 0 0 48px; scroll-margin-top: 80px; }
.ex-topic h3 { margin: 0 0 10px; font-size: 19px; }
.ex-toc { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0 0; font-size: 15px; }
.examples .ex a { color: var(--text); }
.examples .ex a:hover { color: #fff; }
.examples .ex .go { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--lavender); }
/* jaala hero: place held for the demo video; a real-session still until it exists */
.demo-soon { position: relative; }
.demo-soon img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.demo-badge { position: absolute; left: 16px; bottom: 16px; font: 12px/1 var(--mono); letter-spacing: 1px; text-transform: uppercase; color: #17111F; background: var(--lavender); padding: 7px 10px; border-radius: 6px; }
.more-link { margin: 18px 0 0; }
.soon-note { font-size: 13px; color: var(--muted); white-space: nowrap; }
