/* localmem site v2, shared by every page: the font, the tokens, type, buttons, the nav and the footer (specs/018 R11).
   One typeface everywhere: Poppins, self-hosted (CSP default-src 'self'). No serif, no italics. */
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap }
@font-face { font-family: "Poppins"; src: url(fonts/poppins-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap }

:root {
  --cream: #EEEAE2; --cream-2: #E4DFD3; --paper: #FBF9F5;
  --navy: #0F1B3F; --navy-2: #1B2A5E; --navy-3: #25356F;
  --amber: #FFB71B; --amber-soft: #FFE3A3;
  --pink: #16A34A; --pink-ink: #13723A; --pink-soft: #CDEFD9;
  --indigo: #8E95E8; --indigo-ink: #4B53C2; --indigo-soft: #D7DAF8;
  --bg: var(--cream); --bg-2: var(--cream-2); --surface: var(--paper);
  --ink: var(--navy); --muted: #4A5272; --line: #CFC9BC; --accent-ink: var(--pink-ink);
  --veil: rgba(238, 234, 226, 0.82);
  --green: #16A34A; --on-amber: var(--navy);
  --display: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --body: var(--display);
  --mono: var(--display);
  --gut: max(16px, env(safe-area-inset-left, 0px), min(4vw, 120px));
  /* the type scale, one place for every page: each size follows the screen's width, is the same as today up
     to a 1500px laptop, and keeps growing to its cap on wider screens (about 2400px), so text holds its place
     beside the illustrations instead of shrinking in proportion */
  --fs-h1: clamp(2.4rem, 4.6vw, 7rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 4.5rem);
  --fs-h3: clamp(1.35rem, 1.7vw, 2.25rem);   /* the title of a point beside a picture */
  --fs-lead: clamp(1.125rem, 1.3vw, 1.75rem);
  --fs-eyebrow: clamp(0.875rem, 0.6vw, 1.0625rem);
  --fs-ui: clamp(1rem, 0.72vw, 1.25rem);       /* buttons */
  --fs-nav: clamp(0.9375rem, 0.66vw, 1.125rem); /* the menu */
  --copy-w: clamp(600px, 42vw, 1100px); /* a block of copy beside a picture: 600px on a laptop, wider beyond */
  --fs-read-h1: clamp(2.1rem, 4vw, 3.25rem);  /* headings in a reading column: stories, docs, legal */
  --fs-read-h2: clamp(1.45rem, 2.4vw, 1.875rem);
  --r-card: 22px;  /* every boxed card: plans, steps, points */
  --shadow-card: 0 1px 0 rgba(15, 27, 63, 0.04), 0 24px 48px -36px rgba(15, 27, 63, 0.35);
  --r-box: 18px;   /* a box inside a reading column: stats, notes, code */
  --code: ui-monospace, "SF Mono", Menlo, monospace;  /* code only; everything else is Poppins */
  color-scheme: light;
}
/* Light only (Vijay, 2026-11-16): one look for every reader, whatever their system setting. */
/* .dark: a navy block inside a light page (a home section, the plan to start on, a story's closing box). It redefines
   the colour tokens, so everything in it, buttons included, turns light on navy without its own rules. */
.dark { --ink: var(--cream); --bg: var(--navy); --surface: var(--navy); --muted: #AEB5D3; --line: #2A3A72; --accent-ink: #4ADE80; background: var(--navy); color: var(--ink) }

*, *::before, *::after { box-sizing: border-box }
html { font-size: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; overflow-x: clip }
img, video, svg { display: block; max-width: 100% }
a { color: inherit }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--navy); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none }
.skip:focus { top: 12px }
.mono { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.02em }

/* type: Poppins 500 for headings, 600 for small titles, sizes in rem (2026-11-16, from the Home B hero);
   only the logo and the footer wordmark stay heavy, as brand marks */
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.022em; line-height: 1.12 }
h1 { font-size: var(--fs-h1) }
h2 { font-size: var(--fs-h2) }
h1 em, h2 em { font-style: normal; color: var(--accent-ink) }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.005em; line-height: 1.35 }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--body); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: 0.04em; color: var(--ink) }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 22%, transparent) }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); max-width: 56ch; margin: 22px 0 0 }
.lead a { color: var(--accent-ink) }
.fine { font-size: 0.875rem; color: var(--muted); margin-top: 28px; max-width: 48ch }

/* buttons */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px }
.cta.center { justify-content: center }
.cta-note { margin: 12px 0 0; max-width: 46ch; font-size: 0.9375rem; color: var(--muted) } /* one line under a button row: what happens next */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 3.125em; padding: 0 1.5em; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 500; font-size: var(--fs-ui); text-decoration: none; transition: transform 0.2s ease, background 0.2s, color 0.2s }
.btn:hover { transform: translateY(-2px) }
/* one button for every page: .btn is the outline pill, .primary the solid one, .accent the green one, .big the
   larger size. Colours come from --ink and --bg, so a dark box that sets them gets light buttons by itself */
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--on-amber) }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg) }
.btn.primary:hover { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff }
.btn.accent { background: var(--pink-ink); border-color: var(--pink-ink); color: #fff } /* the dark green: white on it passes AA on light and navy */
.btn.accent:hover { background: var(--ink); border-color: var(--ink); color: var(--bg) }
.btn.big { min-height: 3.4em; padding: 0 1.75em; font-size: calc(var(--fs-ui) * 1.0625) }

/* nav: full width, a pill once you scroll */
.nav { position: sticky; top: 0; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding: 14px var(--gut) 0; pointer-events: none }
.nav-in { pointer-events: auto; width: 100%; max-width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 7px 7px 12px; border-radius: 999px; border: 1px solid transparent; transition: background 0.3s, border-color 0.3s }
.nav.pill .nav-in { max-width: 100%; background: var(--veil); border-color: var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px) }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1 }
.gd { display: inline-block; width: 0.26em; height: 0.26em; margin-left: 0.06em; border-radius: 50%; background: var(--green); vertical-align: baseline }
.logo img { width: 32px; height: 32px }
.nav-links { display: flex; align-items: center; gap: 2px }
.logo span, .nav-links a { white-space: nowrap }
.nav-links a { text-decoration: none; font-weight: 500; font-size: var(--fs-nav); padding: 10px 13px; border-radius: 999px }
.nav-links a:hover { background: color-mix(in srgb, var(--ink) 8%, transparent) }
.nav-links a.solid { background: var(--ink); color: var(--bg); margin-left: 6px }
.nav-links a.solid:hover { background: var(--pink-ink); color: #fff }
@media (max-width: 900px) { .nav-links a.hide-sm { display: none } }

.in { width: 100%; max-width: none; margin: 0 auto }
.nav-links a[aria-current] { background: color-mix(in srgb, var(--ink) 9%, transparent) }

/* app window: a real recording of the app in a browser frame (home Teams section, /teams). clips.js plays it
   only while it is on screen, gives it a pause button, and leaves it still under reduced motion */
.screen { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(15, 27, 63, 0.45) }
.screen .bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #F3F1EC; border-bottom: 1px solid #E2DED5; color: #6B6F80; font-family: var(--mono); font-size: 11px }
.screen .bar i { width: 10px; height: 10px; border-radius: 50%; background: #D8D3C8 }
.screen .bar i:first-child { background: var(--pink) } .screen .bar i:nth-child(2) { background: var(--amber) } .screen .bar i:nth-child(3) { background: var(--indigo) }
.screen .bar span { margin-left: 10px }
.pause:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--navy) } /* seen on any video frame */
.screen video, .screen img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #fff }
.pause { position: absolute; right: 12px; top: 46px; min-height: 32px; padding: 6px 14px; border-radius: 999px; border: 0; background: rgba(15, 27, 63, 0.82); color: #fff; font: 600 0.8125rem var(--body); cursor: pointer }

/* use-case cards: one per story, on the home rail and on /use-cases */
.uc a { display: flex; flex-direction: column; height: 100%; min-height: 440px; padding: 30px; border-radius: 28px; text-decoration: none; transition: transform 0.3s ease }
.uc a:hover { transform: translateY(-6px) rotate(-0.6deg) }
.uc .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase }
.uc h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.2; letter-spacing: -0.02em; margin-top: 22px }
.uc p { margin: 18px 0 0; font-size: 1.0625rem }
.uc .go { margin-top: auto; padding-top: 24px; font-weight: 600; display: inline-flex; gap: 8px; align-items: center }
.uc .go::after { content: "→"; transition: transform 0.25s }
.uc a:hover .go::after { transform: translateX(5px) }
.uc.amber a { background: var(--amber); color: var(--on-amber) }
.uc.indigo a { background: var(--indigo); color: var(--navy) }
.uc.pink a { background: var(--pink-ink); color: #FFF6F8 }
.uc.cream a { background: var(--paper); color: var(--navy); border: 1px solid #CFC9BC }
.uc.navy a { background: var(--navy); color: var(--cream) }

/* Pricing cards: <ul class="plans"> of <li class="plan">, name (.eyebrow), price (h3, period in <small>), one line,
   what is included (ul.incl), then an optional button pinned to the bottom. .pick is the one to start on (with a .badge and
   .dark, so its button turns light); .add is an extra (a pack) across the whole row. */
.plans { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 44px 0 0; padding: 14px 0 0; list-style: none }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr) } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(var(--plans, 4), 1fr) } } /* --plans: cards in a row */
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); transition: transform 0.25s ease, box-shadow 0.25s ease }
.plan:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(15, 27, 63, 0.04), 0 34px 60px -36px rgba(15, 27, 63, 0.45) }
.plan .eyebrow { margin: 0 0 14px; font-weight: 600 }
.plan h3 { margin: 0; font-size: var(--fs-h2); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05 }
.plan h3 small { margin-left: 4px; font-size: var(--fs-ui); font-weight: 400; letter-spacing: 0; color: var(--muted) }
.plans + * { margin-top: 40px }
.plan > p { margin: 14px 0 0; color: var(--muted); font-size: var(--fs-ui) }
.plan .incl { display: grid; gap: 10px; margin: 22px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: var(--fs-ui) }
.plan .incl li { position: relative; padding-left: 28px }
.plan .incl li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 12px; height: 7px; border: solid var(--accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) }
.plan .btn { margin-top: auto; align-self: stretch; justify-content: center }
.plan > :has(+ .btn) { margin-bottom: 28px }
.plan.pick { border-color: var(--navy) } /* with .dark */
.plan .badge { position: absolute; top: -13px; left: 28px; padding: 3px 12px; border-radius: 999px; background: var(--pink-ink); color: #fff; font-size: 0.8125rem; font-weight: 600 }
.plan.add { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(140px, auto) auto 1fr; align-items: center; gap: 8px 32px; padding: 22px 28px; box-shadow: none; background: transparent; border-style: dashed }
.plan.add:hover { transform: none; box-shadow: none }
.plan.add .eyebrow { margin: 0 }
.plan.add h3 { font-size: var(--fs-h3) }
.plan.add > p { margin: 0 }
@media (max-width: 720px) { .plan.add { grid-template-columns: 1fr } }
@media (prefers-reduced-motion: reduce) { .plan, .plan:hover { transition: none; transform: none } }

/* A voice agent's call: <figure class="call">, the agents (.cast .agent, each an illustrated .bot), the transcript
   (ol.lines, li[data-who] with the speaker in <b>), what memory kept (.kept), and a caption. call.js plays the lines
   in when the call is on screen; without it, or with reduced motion, the whole call shows at once. */
.call { margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-card) }
.call .cast { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line) }
.call .agent { display: flex; align-items: center; gap: 12px; transition: opacity 0.3s }
.call .agent p { margin: 0; display: grid; line-height: 1.3 }
.call .agent span { color: var(--muted); font-size: 0.875rem }
.call.playing .agent:not(.talking) { opacity: 0.55 }
.bot { width: clamp(56px, 4vw, 72px); height: clamp(56px, 4vw, 72px); flex: none; overflow: visible }
.bot .head { fill: var(--indigo) }
.bot.amber .head { fill: var(--amber) }
.bot .face { fill: var(--paper) }
.bot .eye, .bot .mouth { fill: var(--navy) }
.bot .ant, .bot .set { stroke: var(--navy); stroke-width: 3; stroke-linecap: round; fill: none }
.bot .tip { fill: var(--green) }
.bot .mouth { transform-box: fill-box; transform-origin: center }
.talking .bot .mouth { animation: bot-talk 0.32s ease-in-out infinite alternate }
.talking .bot .tip { animation: bot-glow 0.9s ease-in-out infinite alternate }
@keyframes bot-talk { to { transform: scaleY(2.6) } }
@keyframes bot-glow { to { fill: var(--amber) } }
.call .lines { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none }
.call .lines li { max-width: 88%; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: color-mix(in srgb, var(--indigo) 22%, var(--paper)); font-size: var(--fs-ui); line-height: 1.5; transition: opacity 0.4s ease, transform 0.4s ease }
.call .lines li[data-who="dana"] { justify-self: end; border-radius: 16px 16px 4px 16px; background: var(--bg) }
.call .lines b, .call .kept b { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted) }
.call .lines li.off, .call .kept.off { opacity: 0; transform: translateY(8px) }
.call .kept { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin-top: 18px; transition: opacity 0.4s ease, transform 0.4s ease }
.call .kept p { margin: 0; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 14px; font-size: 0.9375rem }
.call .kept p + p { border-color: var(--accent-ink) }
.call .kept p + p b { color: var(--accent-ink) }
.call figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 0.875rem }
.call .whole { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--ink); font: inherit; cursor: pointer }
@media (prefers-reduced-motion: reduce) { .talking .bot .mouth, .talking .bot .tip { animation: none } .call .lines li, .call .kept { transition: none } }

/* reading layout (scripts/lib/article.mjs): docs, stories, legal, What's new.
   Phones: one column, the menu as a row above the text. From 1000px the menu
   on the left; from 1280px "On this page" on the right; the two held to the
   page edges and the text centred between them at reading width. */
.reader { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; padding: 0 var(--gut) 100px }
.reader > .doc { width: 100%; max-width: 780px; margin-inline: auto; padding-top: 48px; min-width: 0 }
.reader-menu, .reader-toc { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px }
.reader-menu a, .reader-toc a { padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); text-decoration: none; line-height: 1.35 }
.reader-menu a:hover, .reader-toc a:hover { border-left-color: var(--ink); color: var(--ink) }
.reader-menu a[aria-current="page"] { border-left-color: var(--green); color: var(--ink); font-weight: 600 }
.reader-h { margin: 0 0 8px 14px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted) }
.reader-toc { display: none }
@media (max-width: 999px) {
  .reader-menu { flex-direction: row; flex-wrap: wrap; padding-top: 24px }
  .reader-menu a { border-left: 0; border-bottom: 2px solid var(--line) }
  .reader-menu a[aria-current="page"] { border-bottom-color: var(--green) }
  .reader-menu.wide-only { display: none }
}
@media (min-width: 1000px) {
  .reader { grid-template-columns: clamp(190px, 15vw, 300px) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 96px) }
  .reader-menu, .reader-toc { position: sticky; top: 96px; padding-top: 52px; max-height: calc(100svh - 110px); overflow-y: auto }
  .reader > .doc { grid-column: 2 }
}
@media (min-width: 1280px) {
  .reader { grid-template-columns: clamp(190px, 15vw, 300px) minmax(0, 1fr) clamp(180px, 14vw, 280px) }
  .reader-toc { display: flex; grid-column: 3; grid-row: 1 }
  .reader-toc a { font-size: 13.5px; padding-block: 5px }
}
@media (min-width: 1800px) { .reader > .doc { max-width: 900px; font-size: 17.5px } }
@media (min-width: 2200px) { .reader > .doc { max-width: 1040px; font-size: 19.5px } .reader-menu, .reader-toc { font-size: 16px } .reader-toc a { font-size: 15px } }

/* footer: bold */
.foot { background: var(--navy); color: var(--cream); padding: 90px var(--gut) 28px; overflow: hidden }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 32px }
.cols div { display: grid; gap: 2px; align-content: start; justify-items: start }
.fh { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); font-weight: 500; margin: 0 0 6px; line-height: 1.2 }
.cols a { display: inline-flex; align-items: center; min-height: 32px; color: #D6D9E8; text-decoration: none; font-size: 15px }
.cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px }
.word { margin: 60px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 14vw, 520px); line-height: 0.85; letter-spacing: -0.06em; white-space: nowrap; color: var(--amber); background: linear-gradient(180deg, var(--amber) 15%, color-mix(in srgb, var(--amber) 10%, var(--navy)) 95%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent }
/* the wordmark fades from amber into the footer; solid where colours are forced */
@media (forced-colors: active) { .word { background: none; -webkit-text-fill-color: CanvasText } }
.word .gd { width: 0.2em; height: 0.2em; margin-left: 0.04em }
.foot .fineprint { margin: 30px 0 0; font-size: 13px; color: #AEB5D3 }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
}
@media (max-width: 900px) { .cols { grid-template-columns: 1fr 1fr } }
/* big screens: the columns spread across the width, like the word below them */
@media (min-width: 1600px) { .cols { grid-template-columns: repeat(3, minmax(0, 1fr)) } }

/* phone menu: a disclosure with the sections, no script (shown where the links are hidden) */
.menu { position: relative; display: none }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 15px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line) }
.menu summary::-webkit-details-marker { display: none }
.menu[open] summary { background: color-mix(in srgb, var(--ink) 8%, transparent) }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); display: grid; min-width: 210px; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(15, 27, 63, 0.45) }
.menu-list a { padding: 12px 14px; border-radius: 12px; text-decoration: none; font-weight: 600 }
.menu-list a:hover, .menu-list a[aria-current] { background: color-mix(in srgb, var(--ink) 8%, transparent) }
@media (max-width: 900px) { .menu { display: block } .nav-links a.signin { display: none } }
@media (max-width: 420px) { .nav-links a.solid { display: none } }
