/* The public site's foundation: Olilo's Living Glass language (design/tokens.css), set for a marketing page. Values
   are the product's own; the site adds a display scale for headlines and nothing else. Light only: the product's
   dark mode is off, and the site follows it. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/site/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/site/fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/site/fonts/quicksand-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/site/fonts/quicksand-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f2f5ef;
  --bg-deep: #e9efe5;
  --ink: #16221a;
  --ink-soft: #2a3a30;
  --muted: #4e5c53;
  --faint: #5f6d65;
  --hair: #e2e7dc;
  --hair-soft: rgba(226, 231, 220, 0.7);
  --primary: #4c8259;
  --primary-deep: #346443;
  --primary-ink: #2d5a3b;
  --primary-grad: linear-gradient(135deg, #4a825b, #3e7850);
  --primary-soft: rgba(94, 168, 116, 0.18);
  --primary-wash: rgba(94, 168, 116, 0.1);
  --on-primary: #ffffff;
  --glow: rgba(74, 150, 100, 0.34);
  --glow-strong: rgba(74, 150, 100, 0.42);
  --blue: #3e6fb0; --blue-soft: rgba(62, 111, 176, 0.12); --blue-ink: #2d5a94;
  --amber: #d98a2b; --amber-soft: rgba(217, 138, 43, 0.14); --amber-ink: #8a5212;
  --rose: #c4584a; --rose-soft: rgba(196, 88, 74, 0.12); --rose-ink: #9c3b2f;
  --green: #2e7d55; --green-soft: rgba(46, 125, 85, 0.12);
  --violet: #8b6bb0; --violet-soft: rgba(139, 107, 176, 0.14); --violet-ink: #6a4b8f;
  --hero-grad: linear-gradient(135deg, #4f9064, #3e6fb0);
  --user-bubble: linear-gradient(135deg, rgba(86, 151, 106, 0.2), rgba(62, 120, 80, 0.14));
  --next-step-wash: linear-gradient(135deg, rgba(86, 151, 106, 0.16), rgba(62, 111, 176, 0.1));
  --risk-track: linear-gradient(90deg, #8fc7a0, #e8c46a, #d98a6a);

  --glass-rail: rgba(255, 255, 255, 0.62);
  --glass-card: rgba(255, 255, 255, 0.66);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-chat: rgba(255, 255, 255, 0.5);
  --glass-composer: rgba(255, 255, 255, 0.82);
  --glass-overlay: rgba(255, 255, 255, 0.92);
  --glass-chip: rgba(255, 255, 255, 0.6);
  --glass-edge: 1px solid rgba(255, 255, 255, 0.9);
  --tray: rgba(242, 245, 239, 0.8);
  --paper: #ffffff;
  --paper-edge: #e6e9e1;

  --elev-1: 0 1px 3px rgba(34, 48, 38, 0.08), 0 4px 14px rgba(34, 48, 38, 0.06);
  --elev-2: 0 1px 3px rgba(34, 48, 38, 0.05), 0 10px 30px rgba(34, 48, 38, 0.08);
  --elev-3: 0 2px 6px rgba(34, 48, 38, 0.05), 0 20px 48px rgba(34, 48, 38, 0.14);
  --elev-4: 0 2px 6px rgba(34, 48, 38, 0.06), 0 20px 48px rgba(34, 48, 38, 0.18);
  --elev-5: 0 4px 12px rgba(34, 48, 38, 0.08), 0 30px 70px rgba(34, 48, 38, 0.22);
  --shadow-btn: 0 6px 16px rgba(74, 150, 100, 0.34);
  --shadow-paper: 0 1px 2px rgba(34, 48, 38, 0.06), 0 12px 32px rgba(34, 48, 38, 0.1);

  --r-shell: 22px; --r-composer: 24px; --r-tray: 18px; --r-card: 20px; --r-row: 14px;
  --r-btn: 13px; --r-btn-sm: 12px; --r-tab: 10px; --r-pill: 999px; --r-xl: 30px;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease-spring-soft: cubic-bezier(0.34, 1.3, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: "Quicksand", ui-rounded, "Avenir Next", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Avenir Next", system-ui, sans-serif;

  --fs-meta: 13px; --fs-small: 15px; --fs-body: 17px; --fs-lead: 20px; --fs-title: 24px;
  --fs-h3: clamp(24px, 2.2vw, 28px);
  --fs-h2: clamp(32px, 4.2vw, 50px);
  --fs-h1: clamp(42px, 6.4vw, 82px);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --max-wide: 1320px;
  --header-h: 76px;
  --focus: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 0 0 5px rgba(62, 120, 80, 0.75);
  --focus-ring: rgba(62, 120, 80, 0.85);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-ink); }
/* An outline rather than a box-shadow: buttons, cards and pills set their own box-shadow later in the cascade, which
   used to replace the ring, so a keyboard user could not see where they were. */
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.band-ink :focus-visible { outline-color: var(--on-primary); }
::selection { background: rgba(94, 168, 116, 0.28); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p, li { margin: 0; text-wrap: pretty; }
/* An icon in a row keeps its size however long the text beside it runs. */
.ic { flex-shrink: 0; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; text-decoration: none; transition: top 0.2s var(--ease-out-expo); }
.skip:focus { top: 12px; color: #fff; }

/* ---------- the ambient mesh: slow life behind still content ---------- */
.mesh { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.mesh i { position: absolute; border-radius: 50%; will-change: transform; }
.mesh .m1 { top: -18vh; left: -10vw; width: 62vw; height: 62vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgba(64, 200, 140, 0.34), rgba(64, 200, 140, 0) 66%); animation: meshA 26s ease-in-out infinite; }
.mesh .m2 { bottom: -26vh; right: -12vw; width: 64vw; height: 64vw; max-width: 820px; max-height: 820px; background: radial-gradient(circle, rgba(104, 168, 236, 0.26), rgba(104, 168, 236, 0) 66%); animation: meshB 32s ease-in-out infinite; }
.mesh .m3 { top: 18vh; right: 18vw; width: 44vw; height: 44vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle, rgba(188, 148, 238, 0.2), rgba(188, 148, 238, 0) 68%); animation: meshC 36s ease-in-out infinite; }
.mesh .m4 { bottom: 4vh; left: 14vw; width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; background: radial-gradient(circle, rgba(238, 196, 116, 0.18), rgba(238, 196, 116, 0) 68%); animation: meshA 30s ease-in-out infinite reverse; }
@keyframes meshA { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 33% { transform: translate3d(9vw, -6vh, 0) scale(1.18); } 66% { transform: translate3d(-5vw, 5vh, 0) scale(0.9); } }
@keyframes meshB { 0%, 100% { transform: translate3d(0, 0, 0) scale(1.08); } 33% { transform: translate3d(-9vw, 5vh, 0) scale(0.92); } 66% { transform: translate3d(5vw, 9vh, 0) scale(1.16); } }
@keyframes meshC { 0%, 100% { transform: translate3d(0, 0, 0) scale(0.94); } 40% { transform: translate3d(7vw, 7vh, 0) scale(1.2); } 70% { transform: translate3d(-6vw, -4vh, 0) scale(1.04); } }

.page { position: relative; z-index: 1; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: calc(var(--max-wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(760px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(44px, 5.5vw, 84px) 0; position: relative; }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-head { max-width: 780px; margin-bottom: clamp(26px, 3.2vw, 42px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 800; color: var(--primary-deep); letter-spacing: 0.01em; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: 0.6; }
.center .eyebrow { justify-content: center; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.035em; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); line-height: 1.18; letter-spacing: -0.02em; }
.h4 { font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.grad { background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); font-weight: 500; max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 20px; }
p.center, .center > p { text-align: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: var(--fs-small); }
.meta { font-size: var(--fs-meta); color: var(--faint); font-weight: 600; }
strong, b { font-weight: 800; color: var(--ink); }
.prose { max-width: 700px; }
.prose p + p { margin-top: 16px; }
.prose h2 { font-size: 30px; margin: 48px 0 16px; }
.prose h3 { font-size: 22px; margin: 32px 0 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 8px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 15px; border: 0; font-family: var(--font-body); font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform 0.18s var(--ease-spring), box-shadow 0.25s var(--ease-out), background 0.2s var(--ease-out), color 0.2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--primary-grad); color: var(--on-primary); box-shadow: var(--shadow-btn), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn-primary:hover { color: var(--on-primary); box-shadow: 0 10px 26px rgba(74, 150, 100, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.96); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: var(--elev-1); }
.btn-ink:hover { color: #fff; background: #223328; transform: translateY(-1px); }
.btn-glass { background: var(--glass-strong); color: var(--ink); border: var(--glass-edge); box-shadow: var(--elev-1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.btn-glass:hover { color: var(--ink); background: rgba(255, 255, 255, 0.92); transform: translateY(-1px); box-shadow: var(--elev-2); }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 12px; font-size: 15px; }
.btn .arrow { transition: transform 0.25s var(--ease-spring); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; gap: 6px; font-weight: 800; text-decoration: none; color: var(--primary-deep); }
.link-arrow svg { transition: transform 0.25s var(--ease-spring); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- surfaces ---------- */
.glass { background: var(--glass-card); border: var(--glass-edge); box-shadow: var(--elev-2); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); border-radius: var(--r-shell); }
.glass-strong { background: var(--glass-strong); border: var(--glass-edge); box-shadow: var(--elev-3); backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1); border-radius: var(--r-shell); }
.paper { background: var(--paper); border: 1px solid var(--paper-edge); border-radius: 6px; box-shadow: var(--shadow-paper); }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: var(--r-pill); background: var(--glass-chip); border: var(--glass-edge); font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 800; white-space: nowrap; }
.tag-green { background: var(--green-soft); color: var(--green); }
.tag-amber { background: var(--amber-soft); color: var(--amber-ink); }
.tag-rose { background: var(--rose-soft); color: var(--rose-ink); }
.tag-blue { background: var(--blue-soft); color: var(--blue); }
.tag-violet { background: var(--violet-soft); color: var(--violet-ink); }
.tag-ink { background: var(--ink); color: #fff; }

/* ---------- reveal on scroll (only with script, never hides content without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 18px, 0); filter: blur(4px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js [data-reveal="fade"] { transform: none; filter: none; }
.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
.js [data-reveal="scale"] { transform: translate3d(0, 28px, 0) scale(0.97); }

/* ---------- Oli's loops (src/app/globals.css) ---------- */
.oli { display: inline-flex; flex: none; line-height: 0; }
.oli-svg { width: 100%; height: auto; overflow: visible; }
[data-oli-click] { cursor: pointer; transition: transform 0.2s var(--ease-spring); }
[data-oli-click]:hover { transform: scale(1.06); }
@keyframes oliBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes oliBobSlow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes oliBlink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes oliArmL { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(7deg); } 75% { transform: rotate(-9deg); } }
@keyframes oliArmR { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 75% { transform: rotate(9deg); } }
@keyframes oliWave { 0%, 100% { transform: rotate(0); } 12% { transform: rotate(-42deg); } 28% { transform: rotate(-18deg); } 44% { transform: rotate(-42deg); } 60% { transform: rotate(-18deg); } 76% { transform: rotate(-40deg); } }
@keyframes oliCheerL { 0%, 100% { transform: rotate(0); } 28% { transform: rotate(60deg); } 72% { transform: rotate(54deg); } }
@keyframes oliCheerR { 0%, 100% { transform: rotate(0); } 28% { transform: rotate(-60deg); } 72% { transform: rotate(-54deg); } }
@keyframes oliPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes oliTwinkle { 0%, 100% { opacity: 0; transform: scale(0.2) rotate(0); } 50% { opacity: 0.9; transform: scale(1) rotate(45deg); } }
@keyframes oliZzz { 0% { opacity: 0; transform: translateY(2px) scale(0.7); } 30% { opacity: 0.85; } 100% { opacity: 0; transform: translateY(-15px) scale(1.1); } }
@keyframes oliHalo { 0%, 100% { opacity: 0.32; transform: scale(0.94); } 50% { opacity: 0.6; transform: scale(1.08); } }
@keyframes oliScribble { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(-3px, 1px) rotate(-4deg); } 50% { transform: translate(2px, 2px) rotate(2deg); } 75% { transform: translate(-1px, -1px) rotate(-2deg); } }

/* ---------- the product's own small motions, for the recreations ---------- */
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drawerIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes caret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes ringPulse { 0% { box-shadow: 0 0 0 0 rgba(76, 130, 89, 0.45); } 70% { box-shadow: 0 0 0 12px rgba(76, 130, 89, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 130, 89, 0); } }
@keyframes dotPulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .mesh i { animation: none; }
}

/* The header, its menus, the phone sheet and the footer. */

.hdr { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; transition: padding 0.4s var(--ease-out-expo); }
.hdr-in { max-width: var(--max-wide); margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 10px 0 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.58); border: var(--glass-edge); box-shadow: 0 1px 2px rgba(34, 48, 38, 0.04), 0 8px 26px rgba(34, 48, 38, 0.06); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2); transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out); }
.hdr.is-scrolled .hdr-in { background: rgba(255, 255, 255, 0.8); box-shadow: 0 1px 3px rgba(34, 48, 38, 0.06), 0 14px 34px rgba(34, 48, 38, 0.1); }
.hdr-brand { display: flex; align-items: center; flex: none; min-height: 44px; margin-right: 18px; border-radius: 8px; }
.wordmark { height: 26px; width: auto; }
.wordmark.sm { height: 24px; }
.hdr-nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 13px; border-radius: 12px; background: none; border: 0; color: var(--ink-soft); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background 0.2s var(--ease-out), color 0.2s; }
.nav-link:hover { background: rgba(255, 255, 255, 0.75); color: var(--ink); }
.nav-link.is-on { color: var(--primary-deep); }
.nav-link.is-on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--primary); opacity: 0.55; }
.nav-link .chev { transition: transform 0.3s var(--ease-spring); opacity: 0.7; }
.has-menu.is-open .nav-link .chev { transform: rotate(180deg); }
.hdr-end { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.hdr-cta { height: 42px; }
.hdr-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); align-items: center; justify-content: center; }
.hdr-burger:hover { background: rgba(255, 255, 255, 0.8); }

.nav-item { position: relative; }
.menu { position: absolute; top: calc(100% + 12px); left: -14px; width: 640px; padding: 10px; border-radius: 22px; background: var(--glass-overlay); border: var(--glass-edge); box-shadow: var(--elev-4); backdrop-filter: blur(24px) saturate(1.2); -webkit-backdrop-filter: blur(24px) saturate(1.2); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.985); transform-origin: 30% 0; transition: opacity 0.22s var(--ease-out), transform 0.3s var(--ease-out-expo), visibility 0s linear 0.3s; }
.has-menu.is-open .menu { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s var(--ease-out), transform 0.4s var(--ease-out-expo), visibility 0s; }
.menu::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.menu-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 15px; text-decoration: none; color: var(--ink); transition: background 0.18s var(--ease-out); }
.menu-row:hover { background: var(--primary-wash); color: var(--ink); }
.menu-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--primary-deep); box-shadow: var(--elev-1); transition: transform 0.3s var(--ease-spring); }
.menu-row:hover .menu-ic { transform: scale(1.06) rotate(-3deg); }
.menu-t { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.menu-b { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.menu-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding: 13px 16px; border-radius: 14px; background: var(--tray); color: var(--primary-deep); font-weight: 800; font-size: 14px; text-decoration: none; }
.menu-foot:hover { background: rgba(232, 238, 228, 0.95); }

.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(18, 28, 20, 0.24); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s var(--ease-out); }
.sheet.is-open { opacity: 1; }
.sheet-in { position: absolute; top: 10px; left: 10px; right: 10px; max-height: calc(100dvh - 20px); overflow: auto; padding: 16px 16px 20px; border-radius: 26px; background: rgba(250, 252, 249, 0.97); border: var(--glass-edge); box-shadow: var(--elev-5); transform: translateY(-14px) scale(0.98); transition: transform 0.45s var(--ease-out-expo); }
.sheet.is-open .sheet-in { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 10px 8px; }
.sheet-x { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--tray); display: grid; place-items: center; }
.sheet-nav { display: flex; flex-direction: column; }
.sheet-label { font-size: 13px; font-weight: 800; color: var(--faint); margin: 14px 8px 4px; }
.sheet-link { display: flex; align-items: center; min-height: 46px; padding: 0 10px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.sheet-link:hover, .sheet-link.is-on { background: var(--primary-wash); color: var(--primary-deep); }
.sheet-cta { width: 100%; margin-top: 18px; }

.ftr { position: relative; margin-top: clamp(24px, 3vw, 48px); padding: 56px 0 36px; border-top: 1px solid rgba(255, 255, 255, 0.8); background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.6)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.ftr-top { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; }
.ftr-tag { margin-top: 16px; color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 280px; }
.ftr-oli { margin-top: 18px; width: 56px; }
.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ftr-h { font-weight: 800; font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.ftr-col ul { list-style: none; }
.ftr-col li + li { margin-top: 2px; }
.ftr-col a { display: inline-block; padding: 7px 0; line-height: 1.35; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; transition: color 0.15s; }
.ftr-col a:hover { color: var(--primary-deep); }
.ftr-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; font-size: 13px; color: var(--faint); font-weight: 600; }
.ftr-bottom p { max-width: 640px; }

@media (max-width: 1080px) {
  .hdr-nav .nav-link:not([data-menu-btn]) { padding: 0 9px; }
  .menu { width: 560px; }
}
@media (max-width: 940px) {
  .hdr-nav, .hide-sm { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-in { padding: 0 6px 0 18px; }
  .ftr-top { grid-template-columns: 1fr; gap: 36px; }
  .ftr-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .ftr-col a { padding: 10px 0; }
}
@media (max-width: 520px) {
  .hdr { padding: 10px 10px 0; }
  .hdr-in { height: 58px; border-radius: 18px; padding-left: 16px; }
  .hdr-cta { height: 40px; padding: 0 14px; font-size: 14px; }
  .wordmark { height: 23px; }
}
@media (max-width: 380px) {
  .hdr-cta { display: none; }
}

/* Marketing components: heroes, cards, feature rows, facts, the comparison, FAQs, the founders band, sources. */

/* ---------- heroes ---------- */
.hero { position: relative; padding: clamp(44px, 6vw, 88px) 0 clamp(24px, 3vw, 44px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { margin-top: 24px; }
.hero-cta { margin-top: 34px; }
.hero-proof { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ic { color: var(--primary); }
.hero-oli { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-oli .chip { height: 32px; }
.page-hero { padding: clamp(44px, 6vw, 84px) 0 clamp(16px, 2.5vw, 32px); }
.page-hero .lead { margin-top: 22px; }
.page-hero.center { text-align: center; }
.page-hero.center .lead { margin-left: auto; margin-right: auto; }
.page-hero .btn-row { margin-top: 30px; }
.page-hero.center .btn-row { justify-content: center; }

/* ---------- grids and cards ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { position: relative; padding: 26px; border-radius: var(--r-shell); background: var(--glass-card); border: var(--glass-edge); box-shadow: var(--elev-2); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); transition: transform 0.45s var(--ease-spring-soft), box-shadow 0.45s var(--ease-out); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--elev-3); color: inherit; }
.card h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.card .ic-tile { margin-bottom: 18px; }
.card .more { margin-top: 18px; }
.ic-tile { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--primary-deep); box-shadow: var(--elev-1); flex: none; }
.ic-tile.rose { color: var(--rose); }
.ic-tile.amber { color: var(--amber); }
.ic-tile.blue { color: var(--blue); }
.ic-tile.violet { color: var(--violet); }
.card-visual { margin: -6px -6px 22px; border-radius: 16px; overflow: hidden; background: var(--tray); border: 1px solid rgba(255, 255, 255, 0.8); min-height: 170px; position: relative; }

/* ---------- feature rows ---------- */
.feature { scroll-margin-top: 120px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(52px, 6vw, 88px); }
.feature.flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy .h2 { font-size: clamp(30px, 3.6vw, 44px); }
.feature-copy .lead { margin-top: 18px; font-size: 18.5px; }
.ticks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); font-size: 16.5px; line-height: 1.55; }
.ticks li .ic { margin-top: 2px; color: var(--primary); }
.ticks li b { color: var(--ink); }
.feature-visual { position: relative; }

/* ---------- section intros on a band ---------- */
.band { position: relative; border-radius: var(--r-xl); padding: clamp(32px, 5vw, 64px); background: rgba(255, 255, 255, 0.5); border: var(--glass-edge); box-shadow: var(--elev-2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: hidden; }
.band-ink { background: var(--ink); color: #e8efe9; border-color: rgba(255, 255, 255, 0.08); }
.band-ink h2, .band-ink h3, .band-ink strong { color: #fff; }
.band-ink .lead, .band-ink p { color: #b9c8bd; }

/* ---------- facts (trust) ---------- */
.fact { padding: 26px; border-radius: var(--r-shell); background: var(--glass-card); border: var(--glass-edge); box-shadow: var(--elev-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.fact h3 { font-size: 19px; margin-top: 18px; }
.fact p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.fact .fact-k { font-family: var(--font-display); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; color: var(--primary-deep); margin-top: 16px; line-height: 1.1; }

/* ---------- the problem: three honest risks ---------- */
.risk { position: relative; padding: 28px; border-radius: var(--r-shell); background: rgba(255, 255, 255, 0.72); border: var(--glass-edge); box-shadow: var(--elev-2); }
.risk .risk-n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--rose-ink); display: inline-flex; align-items: center; gap: 8px; }
.risk h3 { margin-top: 14px; font-size: 22px; line-height: 1.22; }
.risk p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.risk .src { margin-top: 16px; }

/* ---------- sources ---------- */
.src { font-size: 13px; color: var(--faint); font-weight: 600; line-height: 1.5; }
.src a { color: var(--faint); }
.src a:hover { color: var(--primary-deep); }
sup.fn { font-size: 12px; font-weight: 800; margin-left: 1px; line-height: 0; }
/* The padding makes a 40px tall target and the margin takes it back, so the number sits on its word. */
sup.fn a { text-decoration: none; color: var(--primary-deep); padding: 12px 5px; margin: 0 -5px; }
sup.fn-more::before { content: ","; color: var(--faint); margin-right: 1px; }
.sources { margin-top: 22px; }
.sources summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--faint); padding: 6px 12px 6px 0; border-radius: 10px; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary:hover { color: var(--primary-deep); }
.sources summary .ic { transition: transform 0.3s var(--ease-spring); }
.sources[open] summary .ic { transform: rotate(180deg); }
.sources ol { margin-top: 10px; padding-left: 20px; display: grid; gap: 2px; font-size: 13px; color: var(--faint); font-weight: 600; }
.sources a { display: inline-block; padding: 6px 0; color: var(--muted); word-break: break-word; }
.sources li:target { background: var(--primary-wash); border-radius: 6px; }

/* ---------- the comparison ---------- */
.compare-wrap { border-radius: var(--r-xl); background: rgba(255, 255, 255, 0.66); border: var(--glass-edge); box-shadow: var(--elev-3); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: hidden; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* The rounded box round the scroller clips its ring and its rows paint over one drawn inside, so the box draws it
   where the browser can tell the scroller has focus. */
@supports selector(:has(*)) {
  .compare-scroll:focus-visible { outline-color: transparent; }
  .compare-wrap:has(> .compare-scroll:focus-visible) { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
}
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 860px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair-soft); font-size: 15px; line-height: 1.5; }
.compare thead th { position: sticky; top: 0; background: rgba(250, 252, 249, 0.96); font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ink); vertical-align: bottom; }
.compare thead th .sub { display: block; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--faint); margin-top: 3px; }
.compare tbody th { font-family: var(--font-display); font-weight: 700; color: var(--ink); width: 22%; font-size: 16.5px; line-height: 1.3; }
.compare td { color: var(--muted); width: 26%; transition: background 0.25s var(--ease-out); }
.compare tbody tr:hover td:not(.us), .compare tbody tr:hover th { background: rgba(255, 255, 255, 0.55); }
/* Olilo's column reads as one raised card running down the table. */
.compare .us { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 16%, var(--paper)), color-mix(in srgb, var(--primary) 9%, var(--paper))); color: var(--ink); border-bottom-color: color-mix(in srgb, var(--primary) 18%, transparent); box-shadow: inset 2px 0 0 color-mix(in srgb, var(--primary) 45%, transparent), inset -2px 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
.compare thead .us { background: var(--primary-grad); color: var(--on-primary); box-shadow: none; }
.compare thead .us .sub { color: rgba(255, 255, 255, 0.82); }
.compare tr:last-child .us { box-shadow: inset 2px 0 0 color-mix(in srgb, var(--primary) 45%, transparent), inset -2px 0 0 color-mix(in srgb, var(--primary) 45%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--primary) 45%, transparent); }
.us-h { display: flex; align-items: center; gap: 10px; }
.us-h .oli { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.92); }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.mark { display: inline-flex; align-items: flex-start; gap: 9px; font-weight: 800; }
.mark > i { flex: none; width: 26px; height: 26px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; }
.mark.yes { color: var(--primary-deep); }
.mark.yes > i { background: var(--primary-grad); color: var(--on-primary); box-shadow: 0 4px 10px color-mix(in srgb, var(--primary) 35%, transparent); }
.mark.no { color: var(--rose-ink); }
.mark.no > i { background: var(--rose-soft); color: var(--rose-ink); }
.mark.part { color: var(--amber-ink); }
.mark.part > i { background: var(--amber-soft); color: var(--amber-ink); }
.compare .us .mark { font-size: 15.5px; }
.compare td .note { display: block; margin: 5px 0 0 35px; font-weight: 600; font-size: 13px; line-height: 1.45; color: var(--faint); }
.compare .us .note { color: var(--ink-soft); }
.compare sup.fn { font-size: 11.5px; font-weight: 700; }
.compare sup.fn a { color: var(--faint); }
.compare sup.fn a:hover { color: var(--primary-deep); }
.compare-wrap .sources { margin-top: 4px; }
.compare-foot { padding: 16px 20px 4px; font-size: 13px; color: var(--faint); font-weight: 600; border-top: 1px solid var(--hair-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: rgba(255, 255, 255, 0.66); border: var(--glass-edge); box-shadow: var(--elev-1); transition: background 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out); }
.faq details[open] { background: rgba(255, 255, 255, 0.86); box-shadow: var(--elev-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-family: var(--font-display); font-weight: 700; font-size: 18px; line-height: 1.35; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tray); color: var(--primary-deep); transition: transform 0.35s var(--ease-spring), background 0.2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--primary-soft); }
.faq .ans { padding: 0 22px 22px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 760px; }
.faq .ans p + p { margin-top: 10px; }
.js .faq .ans { overflow: hidden; }

/* ---------- the founders band ---------- */
.founders-band { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founders-band .h2 { color: #fff; }
.perk-list { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.perk-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: #c9d7cc; font-size: 16.5px; }
.perk-list li .ic { color: #8fd1a4; margin-top: 2px; }
.perk-list li b { color: #fff; }
.band-ink .btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.band-ink .btn-glass:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.band-glow { position: absolute; inset: auto -10% -60% auto; width: 70%; height: 140%; background: radial-gradient(circle at 60% 40%, rgba(94, 168, 116, 0.35), transparent 60%); pointer-events: none; }
.band-glow.b { inset: -70% auto auto -20%; background: radial-gradient(circle at 40% 60%, rgba(62, 111, 176, 0.28), transparent 62%); }

/* ---------- steps ---------- */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.6); border: var(--glass-edge); }
.step .n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-grad); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 18px; box-shadow: var(--shadow-btn); }
.step h3 { font-size: 18px; }
.step p { margin-top: 4px; color: var(--muted); font-size: 15.5px; }

/* ---------- pull quote / statement ---------- */
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); max-width: 980px; text-wrap: balance; }
.statement .soft { color: var(--faint); }

/* ---------- chips that link (use cases, hubs) ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.7); border: var(--glass-edge); box-shadow: var(--elev-1); font-weight: 700; font-size: 15px; color: var(--ink-soft); text-decoration: none; transition: transform 0.25s var(--ease-spring), background 0.2s; }
a.pill:hover { transform: translateY(-2px); background: #fff; color: var(--ink); }
.pill .ic { color: var(--primary); }

/* ---------- small print ---------- */
.fineprint { font-size: 13.5px; color: var(--faint); font-weight: 600; line-height: 1.55; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  /* minmax(0, 1fr): a window title that does not wrap must not widen the column past the screen. */
  .hero-grid, .feature, .feature.flip, .founders-band { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 18px 18px 8px; border-bottom: 1px solid var(--hair-soft); }
  .compare tbody th { width: 100%; padding: 0 0 10px; border: 0; font-size: 16px; font-family: var(--font-display); }
  .compare td { padding: 10px 12px; margin-bottom: 8px; border: 0; border-radius: 14px; background: rgba(242, 245, 239, 0.7); }
  .compare td::before { content: attr(data-col); display: block; font-size: 12px; font-weight: 800; color: var(--faint); margin-bottom: 4px; }
  .compare td.us, .compare tr:last-child .us { background: color-mix(in srgb, var(--primary) 12%, var(--paper)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--primary) 40%, transparent); }
  .compare td.us::before { color: var(--primary-deep); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card, .fact, .risk { padding: 22px; }
  .band { border-radius: 24px; padding: 28px 22px; }
  /* The glows are square on a phone and fade out inside their own box, so the tall band shows no seam. */
  .band-glow { inset: auto -35% -10% auto; width: 115%; height: auto; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(94, 168, 116, 0.32), transparent); }
  .band-glow.b { inset: -10% auto auto -35%; background: radial-gradient(closest-side, rgba(62, 111, 176, 0.26), transparent); }
  .faq summary { font-size: 16.5px; padding: 18px; }
  .faq .ans { padding: 0 18px 18px; }
  .hero-proof { font-size: 14px; }
}

/* The product, recreated: the app's own shell, home, chat, document editor, matter page and board, drawn at the
   app's own 1280 by 800 desktop size and scaled to fit (marketing-site/site/js/demo.mjs sets --s). Under 720 px the
   recreation becomes the app's phone layout instead of a shrunken desktop. Values are the product's (design/tokens.css). */

.stage { position: relative; width: 100%; aspect-ratio: 1280 / 800; border-radius: 26px; padding: 0; }
.stage-frame { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; background: #eef3ec; border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: 0 2px 6px rgba(34, 48, 38, 0.06), 0 30px 80px rgba(34, 48, 38, 0.18), 0 0 0 8px rgba(255, 255, 255, 0.35); }
.app { --s: 1; position: absolute; top: 0; left: 0; width: 1280px; height: 800px; transform: scale(var(--s)); transform-origin: 0 0; display: flex; gap: 12px; padding: 12px; font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow: hidden; contain: layout paint; user-select: none; -webkit-user-select: none; }
@media (max-width: 1400px) { .app { --s: 0.9; } }
@media (max-width: 1200px) { .app { --s: 0.72; } }
@media (max-width: 1000px) { .app { --s: 0.62; } }
.app-mesh { position: absolute; inset: 0; pointer-events: none; }
.app-mesh i { position: absolute; border-radius: 50%; }
.app-mesh .a { top: -180px; left: 40px; width: 620px; height: 620px; background: radial-gradient(circle, rgba(64, 200, 140, 0.28), transparent 66%); }
.app-mesh .b { bottom: -260px; right: -80px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(104, 168, 236, 0.24), transparent 66%); }
.app-mesh .c { top: 120px; left: 520px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(188, 148, 238, 0.2), transparent 68%); }
.app-mesh .d { bottom: -120px; left: 260px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(238, 196, 116, 0.16), transparent 68%); }

/* rail */
.a-rail { position: relative; z-index: 2; flex: none; width: 76px; border-radius: 22px; background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.92); box-shadow: var(--elev-2); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 6px; }
.a-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--primary-grad); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 17px; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(74, 150, 100, 0.4); margin-bottom: 12px; }
.a-hub { position: relative; width: 60px; padding: 8px 0 7px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 700; transition: background 0.3s var(--ease-out), color 0.3s; }
.a-hub .ic { width: 18px; height: 18px; }
.a-hub.on { background: linear-gradient(135deg, rgba(86, 151, 106, 0.24), rgba(62, 120, 80, 0.14)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9); color: var(--primary-deep); }
.a-badge { position: absolute; top: 3px; right: 13px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--amber); color: var(--ink); font-size: 9.5px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.a-rail-end { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.a-round { width: 36px; height: 36px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--muted); box-shadow: var(--elev-1); }
.a-avatar { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #5f9a6e, #3e7850); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }

/* panes */
.a-main { position: relative; z-index: 1; flex: 1; min-width: 0; border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; }
.a-main.glass-pane { background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--elev-2); }
.a-view { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease-out), visibility 0s linear 0.35s; }
.a-view.on { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease-out), visibility 0s; }
.a-head { flex: none; height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid rgba(226, 231, 220, 0.6); }
.a-iconbtn { width: 30px; height: 30px; border-radius: 10px; background: #fff; display: grid; place-items: center; color: var(--muted); box-shadow: var(--elev-1); flex: none; }
.a-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-head-end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.a-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: rgba(255, 255, 255, 0.8); font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.a-pill.green { background: var(--green-soft); color: var(--green); }
.a-pill .ic { width: 13px; height: 13px; }

/* home */
.a-home { display: grid; grid-template-columns: 1fr 300px; gap: 12px; height: 100%; }
.a-home-main { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 64px 40px 72px; }
.a-hello { display: flex; align-items: center; gap: 12px; color: var(--primary-deep); font-size: 12.5px; font-weight: 700; }
.a-h1 { font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; margin-top: 16px; }
.a-h1 .grad { display: block; }
.a-composer { margin-top: 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.84); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--elev-3); padding: 6px; }
.a-input { min-height: 74px; padding: 16px 18px 6px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.a-input .ph { color: var(--faint); }
.a-input .typed { white-space: pre-wrap; }
.a-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -0.15em; background: var(--primary); animation: caret 1s steps(1) infinite; }
.a-tray { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 10px; border-radius: 18px; background: rgba(242, 245, 239, 0.8); }
.a-tool { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.a-tool .ic { width: 15px; height: 15px; }
.a-tool.policy { color: var(--primary-deep); }
.a-tool.policy::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-right: 1px; }
.a-send { margin-left: auto; width: 40px; height: 40px; border-radius: 13px; background: var(--primary-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(74, 150, 100, 0.42); transition: transform 0.18s var(--ease-spring), opacity 0.2s; }
.a-send.idle { opacity: 0.55; box-shadow: none; }
.a-send.press { transform: scale(0.9); }
.a-mic { width: 30px; height: 30px; display: grid; place-items: center; color: var(--faint); }
.a-disclaim { margin-top: 8px; text-align: center; font-size: 11px; color: var(--faint); font-weight: 600; }
.a-sugg-h { margin-top: 22px; font-size: 11.5px; font-weight: 700; color: var(--faint); }
.a-sugg { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.a-sugg span { height: 32px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 99px; background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.92); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.a-side { display: flex; flex-direction: column; gap: 12px; }
.a-card { border-radius: 20px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.92); box-shadow: var(--elev-2); padding: 16px; }
.a-card-h { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; }
.a-card-h a, .a-card-h span.link { color: var(--primary-deep); font-size: 12px; text-decoration: none; }
.a-need { margin-top: 10px; display: grid; gap: 4px; }
.a-need-row { position: relative; display: grid; grid-template-columns: 8px 1fr; gap: 9px; padding: 10px; border-radius: 14px; transition: background 0.4s var(--ease-out); }
.a-need-row.hot { background: var(--amber-soft); }
.a-need-row.new { animation: popIn 0.6s var(--ease-spring-soft) both; background: var(--primary-wash); }
.a-need-row .dt { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: var(--rose); }
.a-need-row .dt.amber { background: var(--amber); }
.a-need-row .dt.blue { background: var(--blue); }
.a-need-row .dt.green { background: var(--green); }
.a-need-t { font-weight: 800; font-size: 12.5px; line-height: 1.35; }
.a-need-s { font-size: 11.5px; color: var(--faint); font-weight: 600; margin-top: 2px; }
.a-progress { height: 6px; border-radius: 99px; background: rgba(226, 231, 220, 0.9); overflow: hidden; margin-top: 10px; }
.a-progress i { display: block; height: 100%; border-radius: 99px; background: var(--primary-grad); transition: width 0.8s var(--ease-out-expo); }

/* chat */
.a-chat { position: relative; display: flex; gap: 12px; height: 100%; }
.a-thread-pane { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 22px; background: rgba(255, 255, 255, 0.5); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: var(--elev-2); overflow: hidden; transition: flex 0.7s var(--ease-out-expo); }
.a-thread { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 22px 26px 18px; display: flex; flex-direction: column; gap: 16px; }
.a-thread::-webkit-scrollbar { display: none; }
.a-msg-u { align-self: flex-end; max-width: 78%; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--user-bubble); font-size: 13.5px; line-height: 1.55; animation: msgIn 0.45s var(--ease-out-expo) both; }
.a-msg-o { display: grid; grid-template-columns: 30px 1fr; gap: 10px; animation: msgIn 0.45s var(--ease-out-expo) both; }
.a-msg-o .oli { width: 30px; margin-top: -2px; }
.a-status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); height: 30px; }
.a-dots { display: inline-flex; gap: 3px; }
.a-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); animation: dotPulse 1.2s ease-in-out infinite both; }
.a-dots i:nth-child(2) { animation-delay: 0.15s; }
.a-dots i:nth-child(3) { animation-delay: 0.3s; }
.a-status-t { transition: opacity 0.25s var(--ease-out); }
.a-answer { font-size: 13.5px; line-height: 1.62; color: var(--ink); }
.a-answer p + p { margin-top: 9px; }
.a-sources { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.a-source { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: #fff; box-shadow: var(--elev-1); font-size: 11.5px; font-weight: 800; color: var(--primary-deep); animation: popIn 0.45s var(--ease-spring-soft) both; }
.a-source .ic { width: 13px; height: 13px; }
.a-doccard { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--elev-1); width: 360px; animation: popIn 0.5s var(--ease-spring-soft) both; }
.a-doccard .thumb { width: 34px; height: 42px; border-radius: 5px; border: 1px solid var(--hair); background: repeating-linear-gradient(180deg, transparent 0 6px, rgba(201, 190, 159, 0.5) 6px 7px) 6px 8px / 22px 26px no-repeat, #fff; flex: none; }
.a-doccard .t { font-weight: 800; font-size: 13px; }
.a-doccard .s { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.a-doccard .s em { font-style: normal; color: var(--amber-ink); }
.a-doccard .go { margin-left: auto; color: var(--primary-deep); font-weight: 800; font-size: 12px; }
.a-actions { margin-top: 10px; display: flex; gap: 14px; font-size: 11.5px; font-weight: 700; color: var(--faint); align-items: center; }
.a-actions span { display: inline-flex; align-items: center; gap: 5px; }
.a-actions .ic { width: 13px; height: 13px; }
.a-model { margin-top: 10px; font-size: 11px; color: var(--faint); font-weight: 600; }
.a-thread-pane .a-composer { margin: 0 16px 10px; box-shadow: var(--elev-2); }
.a-thread-pane .a-input { min-height: 44px; padding: 12px 14px 4px; font-size: 13.5px; }

/* document panel */
.a-docpane { position: relative; flex: none; width: 0; opacity: 0; border-radius: 22px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--elev-3); display: flex; flex-direction: column; overflow: hidden; transition: width 0.7s var(--ease-out-expo), opacity 0.4s var(--ease-out); }
.a-docpane.open { width: 560px; opacity: 1; }
.a-dochead { flex: none; padding: 14px 18px 10px; display: flex; align-items: flex-start; gap: 10px; min-width: 560px; }
.a-dochead .kind { display: inline-flex; height: 20px; padding: 0 8px; border-radius: 6px; font-size: 10.5px; font-weight: 800; align-items: center; background: var(--amber-soft); color: var(--amber-ink); }
.a-dochead .dt { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-top: 4px; }
.a-dochead .ds { font-size: 11px; color: var(--faint); font-weight: 600; }
.a-dochead .btns { margin-left: auto; display: flex; gap: 6px; }
.a-btn { height: 30px; padding: 0 11px; border-radius: 10px; background: #fff; border: 1px solid var(--hair); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); transition: transform 0.18s var(--ease-spring), background 0.2s; }
.a-btn.press { transform: scale(0.92); background: var(--primary-wash); }
.a-btn.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.a-writing { flex: none; margin: 0 18px; padding: 8px 12px; border-radius: 10px; background: rgba(242, 245, 239, 0.9); font-size: 11.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; min-width: 524px; transition: opacity 0.3s; }
.a-writing .stop { margin-left: auto; padding: 3px 9px; border-radius: 7px; background: var(--rose-soft); color: var(--rose-ink); font-size: 11px; font-weight: 800; }
.a-toolbar { flex: none; margin: 8px 18px 0; height: 36px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); display: flex; align-items: center; gap: 12px; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 700; min-width: 524px; }
.a-toolbar b { font-weight: 900; color: var(--ink-soft); }
.a-toolbar .sep { width: 1px; height: 16px; background: var(--hair); }
.a-paperwrap { flex: 1; overflow: hidden; padding: 14px 18px 0; min-width: 560px; }
.a-paper { background: #fff; border-radius: 6px; box-shadow: var(--shadow-paper); padding: 26px 34px 30px; font-size: 12.5px; line-height: 1.62; color: #222b25; min-height: 100%; }
.a-lh { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 10px; border-bottom: 1.5px solid var(--hair); margin-bottom: 16px; }
.a-lh .org { font-family: var(--font-display); font-weight: 700; color: var(--primary-deep); font-size: 13px; display: flex; align-items: center; gap: 7px; }
.a-lh .org i { width: 16px; height: 16px; border-radius: 5px; background: var(--primary-grad); display: inline-block; }
.a-lh .conf { font-size: 9.5px; font-weight: 800; color: var(--faint); letter-spacing: 0.04em; }
.a-paper p { margin: 0 0 9px; }
.a-paper .re { font-weight: 800; }
.a-line { opacity: 0; transform: translateY(4px); transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out-expo); }
.a-line.on { opacity: 1; transform: none; }
.del { color: var(--rose); text-decoration: line-through; text-decoration-thickness: 1.5px; background: var(--rose-soft); border-radius: 3px; padding: 0 2px; transition: opacity 0.3s, max-width 0.4s; }
.ins { background: var(--green-soft); color: var(--green); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1.5px 0 rgba(46, 125, 85, 0.5); transition: background 0.5s, color 0.5s, box-shadow 0.5s; }
.ins.kept { background: transparent; color: inherit; box-shadow: none; padding: 0; }
.a-suggest { display: flex; align-items: center; gap: 8px; margin: -2px 0 12px; animation: popIn 0.45s var(--ease-spring-soft) both; }
.a-suggest .acc, .a-suggest .rej { height: 24px; padding: 0 10px; border-radius: 7px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; transition: transform 0.18s var(--ease-spring); }
.a-suggest .acc { background: var(--green-soft); color: var(--green); }
.a-suggest .acc.press { transform: scale(0.9); background: rgba(46, 125, 85, 0.24); }
.a-suggest .rej { background: var(--rose-soft); color: var(--rose-ink); }
.a-suggest .why { font-size: 11px; color: var(--faint); font-weight: 700; }
.a-docfoot { flex: none; min-width: 560px; padding: 10px 18px 12px; }
.a-docmeta { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); font-weight: 600; padding: 0 2px 8px; }
.a-docmeta .saved::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; transition: background 0.3s; }
.a-docmeta .saved.saving::before { background: var(--amber); }
.a-docask { display: flex; gap: 8px; align-items: center; }
.a-docask .qc { height: 36px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid var(--hair); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.a-docask .in { flex: 1; height: 36px; border-radius: 11px; background: #fff; border: 1px solid var(--hair); font-size: 12px; color: var(--faint); display: flex; align-items: center; padding: 0 12px; }

/* matter */
.a-matter { height: 100%; overflow: hidden; padding: 20px 26px; display: flex; flex-direction: column; gap: 12px; }
.a-back { font-size: 12px; color: var(--muted); font-weight: 700; }
.a-mtop { display: flex; align-items: flex-end; justify-content: space-between; }
.a-mname { font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.a-mref { font-size: 12px; color: var(--faint); font-weight: 600; margin-top: 4px; }
.a-stages { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.92); box-shadow: var(--elev-2); }
.a-stage { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--faint); white-space: nowrap; }
.a-stage .n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--hair); font-size: 11px; color: var(--muted); transition: all 0.4s var(--ease-spring-soft); }
.a-stage.done { color: var(--ink); }
.a-stage.done .n { background: var(--primary-grad); border-color: transparent; color: #fff; }
.a-stage.now { color: var(--ink); }
.a-stage.now .n { border-color: var(--primary); color: var(--primary-deep); box-shadow: 0 0 0 4px var(--primary-soft); }
.a-stage-line { flex: 1; height: 2px; border-radius: 2px; background: var(--hair); position: relative; overflow: hidden; }
.a-stage-line i { position: absolute; inset: 0; width: 0; background: var(--primary); transition: width 0.8s var(--ease-out-expo); }
.a-stage-line.done i { width: 100%; }
.a-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.6); align-self: flex-start; }
.a-tabs span { height: 30px; padding: 0 13px; display: inline-flex; align-items: center; border-radius: 10px; font-size: 12px; font-weight: 800; color: var(--muted); }
.a-tabs span.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.a-mgrid { display: grid; grid-template-columns: 1fr 280px; gap: 12px; min-height: 0; flex: 1; }
.a-mcol { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.a-next { padding: 16px 18px; border-radius: 18px; background: var(--next-step-wash); border: 1px solid rgba(255, 255, 255, 0.9); }
.a-next .k { font-size: 11.5px; font-weight: 800; color: var(--primary-deep); }
.a-next .t { margin-top: 4px; font-weight: 800; font-size: 14px; line-height: 1.45; }
.a-box { padding: 16px 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.74); border: 1px solid rgba(255, 255, 255, 0.92); box-shadow: var(--elev-2); }
.a-box-h { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 13px; }
.a-box-h .count { font-size: 12px; color: var(--amber-ink); font-weight: 800; }
.a-check { margin-top: 10px; display: grid; gap: 2px; }
.a-check-row { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; border-radius: 10px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.a-tick { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--hair); background: #fff; display: grid; place-items: center; color: #fff; transition: all 0.35s var(--ease-spring); }
.a-tick .ic { width: 12px; height: 12px; opacity: 0; transform: scale(0.4); transition: all 0.35s var(--ease-spring); }
.a-check-row.done .a-tick { background: var(--primary); border-color: var(--primary); }
.a-check-row.done .a-tick .ic { opacity: 1; transform: none; }
.a-check-row .when { font-size: 11px; color: var(--faint); font-weight: 700; }
.a-check-row.flash { background: var(--primary-wash); }
.a-plan { margin-top: 8px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.a-plan b { font-weight: 800; }
.a-plan .gen { margin-top: 8px; font-size: 10.5px; color: var(--faint); font-weight: 600; }
.a-window-big { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-top: 4px; }
.a-ticks { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 10px; }
.a-ticks i { height: 5px; border-radius: 3px; background: var(--hair); transition: background 0.4s; }
.a-ticks i.on { background: var(--amber); }
.a-meter { position: relative; height: 8px; border-radius: 99px; background: var(--risk-track); margin-top: 12px; }
.a-meter i { position: absolute; top: 50%; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink-soft); transform: translate(-50%, -50%); transition: left 1s var(--ease-out-expo); }
.a-small { font-size: 11.5px; color: var(--faint); font-weight: 600; margin-top: 8px; line-height: 1.5; }

/* board */
.a-board { height: 100%; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.a-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; min-height: 0; }
.a-col { border-radius: 16px; background: rgba(255, 255, 255, 0.5); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.a-col-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; padding: 2px 4px; }
.a-col-h span { color: var(--faint); }
.a-task { padding: 11px 12px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); font-size: 12px; font-weight: 700; line-height: 1.4; }
.a-task .m { margin-top: 7px; display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; color: var(--faint); font-weight: 700; }
.a-task .who { width: 20px; height: 20px; border-radius: 50%; background: #dfe9e0; color: var(--primary-deep); display: grid; place-items: center; font-size: 9px; font-weight: 900; }

/* the fake pointer */
.a-cursor { position: absolute; z-index: 20; top: 0; left: 0; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform 0.9s var(--ease-out-expo), opacity 0.3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.a-cursor.on { opacity: 1; }
.a-cursor.click::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(76, 130, 89, 0.7); animation: clickRing 0.5s var(--ease-out) both; }
@keyframes clickRing { from { transform: scale(0.3); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* a toast inside the app */
.a-toast { position: absolute; z-index: 15; left: 50%; bottom: 22px; transform: translate(-50%, 16px); opacity: 0; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: var(--elev-4); transition: transform 0.5s var(--ease-spring-soft), opacity 0.3s; white-space: nowrap; }
.a-toast.on { opacity: 1; transform: translate(-50%, 0); }
.a-toast .ic { color: #8fd1a4; width: 16px; height: 16px; }

/* phone layout: the app's own phone shell, not a shrunken desktop */
.stage.is-phone { aspect-ratio: auto; height: 640px; }
.stage.is-phone .app { --s: 1; width: 100%; height: 100%; padding: 0; gap: 0; flex-direction: column; transform: none; }
.stage.is-phone .a-rail { order: 2; flex-direction: row; width: auto; height: 64px; margin: 0 10px 10px; padding: 0 12px; justify-content: space-around; border-radius: 20px; }
.stage.is-phone .a-logo, .stage.is-phone .a-rail-end { display: none; }
.stage.is-phone .a-hub { width: auto; padding: 8px 14px; }
.stage.is-phone .a-main { margin: 10px 10px 10px; }
.stage.is-phone .a-home { grid-template-columns: 1fr; }
.stage.is-phone .a-side { display: none; }
.stage.is-phone .a-home-main { padding: 0 18px 10px; justify-content: center; }
.stage.is-phone .a-hello-sep { display: none; }
.stage.is-phone .a-hello-t [data-hello-date] { display: block; }
/* The next morning on a phone: the list of what needs her takes the composer's place. */
.stage.is-phone .a-home.later { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.stage.is-phone .a-home.later .a-home-main { flex: none; padding-bottom: 0; }
.stage.is-phone .a-home.later .a-composer, .stage.is-phone .a-home.later .a-disclaim { display: none; }
.stage.is-phone .a-home.later .a-side { display: flex; padding: 0 14px; }
.stage.is-phone .a-side .a-card:first-child { display: none; }
.stage.is-phone .a-h1 { font-size: 27px; }
.stage.is-phone .a-sugg, .stage.is-phone .a-sugg-h { display: none; }
.stage.is-phone .a-tool:not(.policy) span, .stage.is-phone .a-tool.tools { display: none; }
.stage.is-phone .a-thread { padding: 16px 14px 0; gap: 12px; }
.stage.is-phone .a-doccard { width: 100%; }
.stage.is-phone .a-msg-u { max-width: 88%; }
/* On a phone the letter opens full screen over the chat, as the app's own editor does, and slides away again. */
.stage.is-phone .a-docpane { position: absolute; z-index: 10; inset: 0; width: auto; height: auto; transform: translateY(104%); opacity: 1; border-radius: 22px; transition: transform 0.6s var(--ease-out-expo); }
.stage.is-phone .a-docpane.open { width: auto; transform: none; }
.stage.is-phone .a-dochead, .stage.is-phone .a-paperwrap, .stage.is-phone .a-docfoot, .stage.is-phone .a-writing, .stage.is-phone .a-toolbar { min-width: 0; }
.stage.is-phone .a-toolbar { display: none; }
.stage.is-phone .a-dochead .btns .a-btn:not(.keep) { display: none; }
.stage.is-phone .a-paper { padding: 18px 18px 22px; font-size: 12px; }
.stage.is-phone .a-mgrid { grid-template-columns: 1fr; }
.stage.is-phone .a-mgrid .a-mcol + .a-mcol { display: none; }
.stage.is-phone .a-stage span.lbl { display: none; }
.stage.is-phone .a-stage.now span.lbl { display: inline; }
.stage.is-phone .a-matter { padding: 16px 14px; }
.stage.is-phone .a-mname { font-size: 23px; }
.stage.is-phone .a-tabs { display: none; }
.stage.is-phone .a-cols { grid-template-columns: repeat(2, 1fr); }
.stage.is-phone .a-head { padding: 0 12px; }
.stage.is-phone .a-head-end .a-pill:not(.green) { display: none; }
.stage.is-phone .a-chat { gap: 0; }

/* the bracket blank, the review bar and the edit box */
.blank { background: var(--amber-soft); color: var(--amber-ink); border-radius: 3px; padding: 0 3px; font-weight: 700; }
.a-review { flex: none; margin: 8px 18px 0; min-width: 524px; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; border-radius: 12px; background: var(--primary-wash); font-size: 12px; font-weight: 800; color: var(--primary-deep); animation: popIn 0.4s var(--ease-spring-soft) both; }
.a-review span:first-child { margin-right: auto; }
.a-btn.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.a-send.sm { width: 36px; height: 36px; border-radius: 11px; margin-left: 0; flex: none; }
.a-docask .in.typing { color: var(--ink); }
.a-next .a-btn { margin-top: 12px; }
.a-next.given { background: linear-gradient(135deg, rgba(86, 151, 106, 0.2), rgba(62, 120, 80, 0.12)); }

/* the email Oli drafts */
.a-email { margin-top: 2px; width: 440px; border-radius: 16px; background: #fff; box-shadow: var(--elev-1); padding: 12px 14px; animation: popIn 0.45s var(--ease-spring-soft) both; }
.a-email-h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--violet-ink); }
.a-email-h span { display: inline-flex; gap: 5px; align-items: center; }
.a-email-row { display: grid; grid-template-columns: 56px 1fr; gap: 6px; font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--hair-soft); color: var(--ink-soft); }
.a-email-row b { color: var(--faint); font-weight: 700; }
.a-email-body { padding-top: 8px; font-size: 12.5px; line-height: 1.55; min-height: 20px; }
.a-email-body p + p { margin-top: 6px; }
.a-email-act { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a-chipbtn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--tray); font-size: 11.5px; font-weight: 800; color: var(--muted); transition: transform 0.18s var(--ease-spring), background 0.2s; }
.a-chipbtn.press { transform: scale(0.92); background: var(--primary-wash); color: var(--primary-deep); }
.a-email-note { font-size: 11px; color: var(--faint); font-weight: 700; }
.a-remind { transition: color 0.2s; }
.a-remind.press { color: var(--primary-deep); }
.a-remcount { color: var(--primary-deep); animation: popIn 0.45s var(--ease-spring-soft) both; }

/* the reminder dialog */
.a-dialog-wrap { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(18, 28, 20, 0.18); animation: fadeIn 0.25s var(--ease-out) both; }
.a-dialog { width: 380px; border-radius: 20px; background: rgba(255, 255, 255, 0.97); box-shadow: var(--elev-5); padding: 20px; animation: popIn 0.4s var(--ease-spring-soft) both; }
.a-dialog-t { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.a-dialog-l { margin-top: 14px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.a-seg { margin-top: 6px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 4px; border-radius: 12px; background: var(--tray); }
.a-seg span { height: 30px; display: grid; place-items: center; border-radius: 9px; font-size: 11.5px; font-weight: 800; color: var(--muted); transition: all 0.25s var(--ease-spring); }
.a-seg span.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.a-field { margin-top: 6px; min-height: 36px; border-radius: 11px; border: 1px solid var(--hair); background: #fff; padding: 8px 11px; font-size: 12.5px; }
.a-dialog-x { margin-top: 12px; font-size: 11px; color: var(--faint); font-weight: 600; line-height: 1.5; }
.a-dialog-b { margin-top: 14px; display: flex; justify-content: flex-end; gap: 6px; }
.stage.is-phone .a-email { width: 100%; }
.stage.is-phone .a-review { min-width: 0; }
.stage.is-phone .a-dialog { width: calc(100% - 28px); }
.a-check-row .when { opacity: 0; transition: opacity 0.3s; }
.a-check-row.done .when { opacity: 1; }
.stage.is-phone .a-docpane { background: #f8faf6; box-shadow: 0 -10px 40px rgba(34, 48, 38, 0.18); }
.stage.is-phone .a-dochead { padding: 14px 14px 8px; }
.stage.is-phone .a-dochead .dt { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.stage.is-phone .a-dochead .ds { display: none; }
.stage.is-phone .a-writing, .stage.is-phone .a-review { margin: 0 14px; }
.stage.is-phone .a-paperwrap { padding: 10px 14px 0; -webkit-mask-image: linear-gradient(#000 calc(100% - 28px), transparent); mask-image: linear-gradient(#000 calc(100% - 28px), transparent); }
.stage.is-phone .a-paper { margin-bottom: 28px; }
/* The matter on a phone: the fairness steps she ticks off sit where she can see them. */
.stage.is-phone .a-box[data-plan] { display: none; }
/* What runs past the edge of a phone screen fades rather than stopping on a cut line. */
.stage.is-phone .a-matter { -webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent); mask-image: linear-gradient(#000 calc(100% - 36px), transparent); }
.stage.is-phone .a-thread { -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); }
/* No pointer on a phone, so each tap shows as a ring on the control. */
.stage.is-phone .press { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 32%, transparent); }
.stage.is-phone .a-lh .conf { display: none; }
.stage.is-phone .a-docfoot { padding: 8px 14px 12px; }
.stage.is-phone .a-docask .qc { display: none; }
.stage.is-phone .a-docask .in { white-space: nowrap; overflow: hidden; }
.stage.is-phone .a-toast { white-space: normal; width: calc(100% - 28px); bottom: 14px; }

/* Page-level sections: the home hero and demo, the stats band, the layer stack, a day with Oli, the journey, the
   feature drawings, the founders band's Oli, and the founders list page. */

.nowrap { white-space: nowrap; }
/* The hero's chatbot name, typed out and typed over (js/site.mjs). */
/* "into" and the name have a line of their own, so the words above break in the same places whichever name is
   showing. The box holds its width while a name is deleted, then glides to the next name's width, so the line
   re-centres once per name instead of with every letter. */
.hero-line { display: block; white-space: nowrap; }
.hero-swap { display: inline-block; white-space: nowrap; text-align: left; vertical-align: bottom; transition: width 0.45s var(--ease-out-expo); }
.swap-word { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--rose) 24%, transparent) 62%, color-mix(in srgb, var(--rose) 24%, transparent) 90%, transparent 90%); }
.hero-swap.typing .swap-word::after { content: ""; display: inline-block; width: 0.07em; height: 0.8em; margin-left: 0.05em; vertical-align: -0.04em; border-radius: 2px; background: var(--rose); animation: caret 0.9s steps(1) infinite; }
.home-hero { padding-top: clamp(40px, 5.5vw, 76px); }
.home-hero .center { text-align: center; }
.home-hero .h1 { max-width: 1020px; margin: 0 auto; }
.home-hero .lead { margin-top: 24px; max-width: 720px; }
.home-hero .hero-oli { justify-content: center; }
.home-hero .hero-cta, .home-hero .hero-proof { justify-content: center; }
.home-demo { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- the demo ---------- */
.demo { position: relative; }
.demo-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(242, 245, 239, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-out); }

/* ---------- regulator line and stats ---------- */
.regulator { margin-top: 18px; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--r-shell); background: var(--next-step-wash); border: var(--glass-edge); }
.regulator-ic { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; color: var(--primary-deep); box-shadow: var(--elev-1); }
.regulator p { font-size: 16.5px; color: var(--ink-soft); line-height: 1.6; }
.stats { padding: clamp(28px, 4vw, 48px); }
.stats-h { max-width: 640px; }
.stats-grid { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat-k { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.03em; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 6px; }
.stat-b { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 320px; }
.stats .sources { margin-top: 28px; }

/* ---------- the layer stack: thick glass slabs that open out on scroll (js/layers.mjs sets --spread and .on) ---------- */
.layers { --spread: 0.15; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.layers-visual { position: sticky; top: 96px; height: min(600px, calc(100vh - 120px)); perspective: 1700px; perspective-origin: 50% 20%; }
.lscene { position: absolute; left: 50%; top: 60%; width: 330px; height: 330px; margin: -165px 0 0 -165px; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(calc(-44deg + var(--spread) * 8deg)); transition: transform 0.2s linear; }
.lstack { position: absolute; inset: 0; transform-style: preserve-3d; }
.lslab { --lift: 0px; --gap: calc(22px + var(--spread) * 60px); position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap) + var(--lift))); transition: transform 0.6s var(--ease-out-expo); }
.ltop, .ledge, .lshadow { position: absolute; inset: 0; border-radius: 30px; }
.ledge { transform: translateZ(calc(var(--k) * -3.4px)); background: var(--edge, rgba(120, 150, 128, 0.42)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); transition: opacity 0.4s var(--ease-out); }
.ledge[style="--k:1"] { background: var(--edge-hi, rgba(255, 255, 255, 0.55)); }
.lshadow { transform: translateZ(-46px) scale(1.04); background: radial-gradient(closest-side, rgba(34, 48, 38, 0.22), rgba(34, 48, 38, 0)); filter: blur(10px); opacity: calc(0.25 + var(--spread) * 0.5); }
.ltop { overflow: hidden; display: flex; align-items: flex-end; padding: 24px 26px; background: linear-gradient(140deg, rgba(255, 255, 255, 0.86), var(--glass, rgba(255, 255, 255, 0.5)) 62%, rgba(255, 255, 255, 0.62)); border: 1.5px solid rgba(255, 255, 255, 0.96); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -18px 40px rgba(255, 255, 255, 0.25), 0 18px 40px rgba(34, 48, 38, 0.1); transition: box-shadow 0.4s var(--ease-out), background 0.4s, opacity 0.4s var(--ease-out); }
.lsheen { position: absolute; inset: -40% -10% auto -10%; height: 70%; background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0) 64%); transform: translateX(calc(-30% + var(--spread) * 60%)); transition: transform 0.6s var(--ease-out-expo); pointer-events: none; }
.lslab-name { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); opacity: calc(0.35 + var(--spread) * 0.65); }
.lslab.t-violet { --glass: rgba(196, 178, 222, 0.55); --edge: rgba(139, 107, 176, 0.42); }
.lslab.t-sage { --glass: rgba(236, 242, 233, 0.62); --edge: rgba(120, 150, 128, 0.36); }
.lslab.t-green { --glass: rgba(150, 196, 162, 0.6); --edge: rgba(62, 120, 80, 0.5); }
.lslab.t-blue { --glass: rgba(178, 202, 232, 0.58); --edge: rgba(62, 111, 176, 0.42); }
.lslab.t-ink { --glass: rgba(40, 56, 46, 0.86); --edge: rgba(22, 34, 26, 0.7); --edge-hi: rgba(120, 140, 126, 0.6); }
.lslab.t-ink .ltop { background: linear-gradient(140deg, rgba(70, 92, 78, 0.95), rgba(22, 34, 26, 0.92)); border-color: rgba(255, 255, 255, 0.35); }
.lslab.t-ink .lslab-name { color: #fff; }
.lslab.on { --lift: 22px; }
.lslab.on .ltop { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 3px rgba(94, 168, 116, 0.6), 0 26px 50px rgba(34, 48, 38, 0.18); }
/* Dim the faces, never the slab: opacity or filter on a preserve-3d element flattens it, and its edges vanish. */
.layers.has-focus .lslab:not(.on) :is(.ltop, .ledge) { opacity: 0.6; }
.layers-list { list-style: none; display: grid; gap: 10px; padding: 6vh 0; }
.lrow { padding: 18px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.5); border: var(--glass-edge); cursor: default; transition: background 0.35s var(--ease-out), box-shadow 0.35s, transform 0.45s var(--ease-spring-soft), opacity 0.35s; }
.layers.has-focus .lrow:not(.on) { opacity: 0.62; }
.lrow.on, .lrow:focus-visible { background: rgba(255, 255, 255, 0.92); box-shadow: var(--elev-2); transform: translateX(6px); opacity: 1; }
@media (max-width: 1080px) {
  /* One reading column: the open card stays in line with the rest, and the others stay readable. */
  .lrow.on, .lrow:focus-visible { transform: none; }
  /* Every card shows its points and keeps its height, so nothing moves under a thumb while scrolling. */
  .layers.has-focus .lrow:not(.on) { opacity: 1; }
}
.lrow-tag { display: inline-flex; height: 22px; padding: 0 9px; border-radius: 99px; align-items: center; font-size: 11.5px; font-weight: 800; }
.t-ink.lrow-tag { background: var(--ink); color: #fff; }
.t-blue.lrow-tag { background: var(--blue-soft); color: var(--blue-ink); }
.t-green.lrow-tag { background: var(--green-soft); color: var(--primary-deep); }
.t-sage.lrow-tag { background: var(--tray); color: var(--muted); }
.t-violet.lrow-tag { background: var(--violet-soft); color: var(--violet-ink); }
.lrow-name { font-size: 20px; margin-top: 8px; }
.lrow-body { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.lrow-points { list-style: none; display: grid; gap: 6px; margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s var(--ease-out-expo), opacity 0.35s, margin-top 0.35s; }
.lrow.on .lrow-points, .lrow:focus-visible .lrow-points { max-height: 120px; opacity: 1; margin-top: 12px; }
.lrow-points li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.lrow-points .ic { color: var(--primary); flex: none; margin-top: 2px; }
@media (max-width: 1080px) {
  .lrow-points, .lrow.on .lrow-points, .lrow:focus-visible .lrow-points { max-height: none; opacity: 1; margin-top: 12px; }
}

/* ---------- a day with Oli ---------- */
.day { border-radius: var(--r-xl); padding: clamp(24px, 4vw, 48px); background: rgba(255, 255, 255, 0.52); border: var(--glass-edge); box-shadow: var(--elev-2); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.day-stage { display: grid; grid-template-columns: 240px 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; min-height: 240px; }
.day-oli { width: 190px; justify-self: center; }
.day-time { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--primary-deep); }
.day-title { font-size: clamp(28px, 3.2vw, 40px); margin-top: 8px; }
.day-body { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 560px; line-height: 1.6; }
.day-card.swap > * { animation: msgIn 0.5s var(--ease-out-expo) both; }
.day-card.swap > *:nth-child(2) { animation-delay: 0.05s; }
.day-card.swap > *:nth-child(3) { animation-delay: 0.1s; }
.day-track { list-style: none; margin-top: 30px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; position: relative; }
.day-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 2px; border-radius: 2px; background: var(--hair); }
.day-dot { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 4px; border: 0; background: none; border-radius: 14px; color: var(--faint); transition: color 0.2s; }
.day-dot::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--hair); position: relative; z-index: 1; transition: all 0.35s var(--ease-spring); }
.day-dot .t { font-weight: 800; font-size: 13px; }
.day-dot .l { font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.3; }
.day-dot:hover { color: var(--ink); }
.day-dot.on { color: var(--ink); }
.day-dot.on::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); transform: scale(1.15); }
.day-dot.past::before { background: var(--primary-soft); border-color: rgba(94, 168, 116, 0.5); }

/* ---------- the journey ---------- */
.journey { display: grid; gap: 26px; }
.jlabel { font-weight: 800; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.jtrack { display: flex; align-items: center; gap: 0; }
.jn { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: var(--elev-1); color: var(--primary-deep); }
.jn b { display: block; font-size: 14.5px; color: var(--ink); }
.jn small { display: block; font-size: 12.5px; color: var(--faint); font-weight: 700; }
.jn.far { color: var(--rose); background: rgba(255, 255, 255, 0.7); }
.jline { position: relative; flex: 1; min-width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 12px); opacity: 0.55; }
.jline i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); opacity: 0; }
.journey.is-visible .jline i { animation: packet 2.4s var(--ease-out) infinite; }
.jtrack.off .jline { background: repeating-linear-gradient(90deg, var(--rose) 0 6px, transparent 6px 12px); opacity: 0.45; }
.jtrack.off .jline i { background: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
@keyframes packet { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
.jzone { flex: 3; display: flex; align-items: center; position: relative; padding: 30px 16px 16px; border-radius: 22px; border: 1.5px dashed rgba(76, 130, 89, 0.45); background: rgba(94, 168, 116, 0.06); }
.jzone-label { position: absolute; top: 8px; left: 16px; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 800; color: var(--primary-deep); }
.jbadges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.jbadges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--green-soft); color: var(--primary-deep); font-size: 13px; font-weight: 800; }
/* The consumer map: one question fans out to everywhere it can go. */
.jmap { position: relative; height: 470px; margin-top: 4px; border-radius: 22px; border: 1.5px dashed color-mix(in srgb, var(--rose) 40%, transparent); background: radial-gradient(60% 80% at 75% 50%, var(--rose-soft), transparent 70%), radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--rose) 22%, transparent) 1px, transparent 1.6px) 0 0 / 18px 18px; overflow: hidden; }
.jmap-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.jmap-lines path { fill: none; stroke: var(--rose); stroke-width: 2; stroke-dasharray: 6 8; opacity: 0.6; }
.jmap-lines .jm-in { stroke: var(--primary); }
.journey.is-visible .jmap-lines path { animation: jmFlow 1.6s linear infinite; }
@keyframes jmFlow { to { stroke-dashoffset: -28; } }
.jm-you, .jm-hub { position: absolute; top: 50%; transform: translateY(-50%); }
.jm-you { left: 16px; }
.jm-hub { left: 33%; transform: translate(-50%, -50%); }
.jn.hub { color: var(--rose-ink); box-shadow: var(--elev-2), 0 0 0 4px var(--rose-soft); }
.jm-dests { list-style: none; position: absolute; inset: 0; }
.jm-dests li { position: absolute; left: 65%; right: 16px; top: var(--y); transform: translateY(-50%); }
.jm-dests .jn { width: 100%; padding: 9px 12px; }
.jm-dests .jn b { font-size: 14px; }
.jm-dests .jn small { font-size: 12px; }
.jm-dests sup.fn:not(.fn-more) { margin-left: 3px; }

/* ---------- feature drawings ---------- */
.fv { position: absolute; inset: 0; padding: 18px; font-size: 12px; }
.fv-chat { display: flex; flex-direction: column; gap: 10px; }
.fv-u { align-self: flex-end; max-width: 82%; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: var(--user-bubble); font-weight: 700; color: var(--ink-soft); line-height: 1.4; }
.fv-o { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
/* Rows in the drawings are <p>, and .card p (components.css) would give them body-copy margins and size. */
.fv p { margin: 0; font-size: inherit; line-height: 1.4; }
.fv-lines { display: grid; gap: 6px; padding-top: 6px; }
.fv-lines i { display: block; height: 6px; border-radius: 4px; background: rgba(78, 92, 83, 0.16); }
.fv-src { margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; background: #fff; box-shadow: var(--elev-1); font-weight: 800; font-size: 11px; color: var(--primary-deep); }
.fv-paper { display: grid; place-items: center; }
.fv-sheet { width: 84%; height: 128%; margin-top: 18%; background: #fff; border-radius: 6px; box-shadow: var(--shadow-paper); padding: 14px 16px; transition: transform 0.6s var(--ease-out-expo); }
a.card:hover .fv-sheet { transform: translateY(-10px) rotate(-1deg); }
.fv-lh { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; color: var(--primary-deep); font-size: 11px; padding-bottom: 8px; border-bottom: 1px solid var(--hair); margin-bottom: 8px; }
.fv-lh i { width: 12px; height: 12px; border-radius: 4px; background: var(--primary-grad); }
.fv-sug { margin: 8px 0; font-weight: 700; font-size: 11.5px; }
.fv-sug s { color: var(--rose); background: var(--rose-soft); border-radius: 3px; padding: 0 3px; }
.fv-sug u { text-decoration: none; color: var(--green); background: var(--green-soft); border-radius: 3px; padding: 0 3px; }
.fv-acc { margin-top: 8px; display: flex; gap: 6px; }
.fv-acc b, .fv-acc span { font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 6px; }
.fv-acc b { background: var(--green-soft); color: var(--green); }
.fv-acc span { background: var(--rose-soft); color: var(--rose-ink); }
.fv-matter { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 22px; }
.fv-track { display: flex; align-items: center; gap: 6px; }
.fv-track span { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid var(--hair); display: grid; place-items: center; font-weight: 800; color: var(--faint); font-size: 11px; flex: none; }
.fv-track span.d { background: var(--primary-grad); color: #fff; border: 0; }
.fv-track span.n { border-color: var(--primary); color: var(--primary-deep); box-shadow: 0 0 0 4px var(--primary-soft); }
.fv-track i { flex: 1; height: 2px; background: var(--hair); border-radius: 2px; }
.fv-track i.d { background: var(--primary); }
.fv-checks { display: grid; gap: 7px; }
.fv-checks p { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--faint); }
.fv-checks p .ic { width: 18px; height: 18px; padding: 3px; border-radius: 6px; background: #fff; border: 1.5px solid var(--hair); }
.fv-checks p.d { color: var(--ink-soft); }
.fv-checks p.d .ic { background: var(--primary); border-color: var(--primary); color: #fff; }
.fv-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px; }
.fv-col { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); }
.fv-col b { font-size: 11px; font-weight: 800; color: var(--muted); padding: 0 2px 2px; }
.fv-col span { padding: 8px; border-radius: 9px; background: #fff; box-shadow: var(--elev-1); font-weight: 700; font-size: 11px; line-height: 1.35; color: var(--ink-soft); }
.fv-col span.hot { box-shadow: var(--elev-1), inset 3px 0 0 var(--amber); }
.fv-col span.done { color: var(--faint); text-decoration: line-through; }
.fv-people { display: grid; align-content: center; gap: 8px; padding: 16px 18px; }
.fv-people p { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); }
.fv-people .av { width: 30px; height: 30px; border-radius: 10px; background: #e3ece4; color: var(--primary-deep); display: grid; place-items: center; font-weight: 900; font-size: 10.5px; }
.fv-people b { display: block; font-size: 12px; }
.fv-people small { display: block; font-size: 11px; color: var(--faint); font-weight: 700; }
.fv-people em { font-style: normal; font-weight: 800; font-size: 11px; color: var(--muted); }
.fv-people em.amber { color: var(--amber-ink); }
.fv-people em.green { color: var(--green); }
.fv-lib { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 18px; align-content: center; }
.fv-lib span { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); font-weight: 800; font-size: 11.5px; color: var(--ink-soft); transition: transform 0.4s var(--ease-spring-soft); }
a.card:hover .fv-lib span:nth-child(2) { transform: translateY(-4px); }
a.card:hover .fv-lib span:nth-child(3) { transform: translateY(-2px); }
.fv-lib i { width: 26px; height: 32px; border-radius: 4px; border: 1px solid var(--hair); background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(201, 190, 159, 0.5) 5px 6px) 5px 7px / 16px 18px no-repeat, #fff; position: relative; }
.fv-lib i::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; }
.fv-lib i.v::after { background: var(--violet); }
.fv-lib i.b::after { background: var(--blue); }
.fv-lib i.g::after { background: var(--green); }
.fv-lib i.a::after { background: var(--amber); }
.feature-card .card-visual { height: 190px; }

/* ---------- the founders band ---------- */
.founders-oli { position: relative; display: grid; place-items: center; }
.founders-oli .oli { width: 210px; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25)); }
.band-note { color: #9fb3a5; font-size: 14px; font-weight: 700; }
.uses { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .layers { grid-template-columns: 1fr; }
  .layers-visual { position: relative; top: 0; height: 440px; }
  .layers-list { padding: 0; }
}
@media (max-width: 940px) {
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .day-stage { grid-template-columns: 1fr; text-align: center; }
  .day-body { margin-left: auto; margin-right: auto; }
  .day-oli { width: 150px; }
  .founders-oli { display: none; }
}
@media (max-width: 720px) {
  .lslab-name { opacity: 1; }
  .layers-visual { height: 440px; }
  .lscene { top: 68%; width: 230px; height: 230px; margin: -115px 0 0 -115px; }
  .lslab { --gap: calc(16px + var(--spread) * 38px); }
  .ltop, .ledge, .lshadow { border-radius: 22px; }
  .ltop { padding: 14px 16px; }
  .lslab-name { font-size: 14px; }
  /* Seven dots across the width, nothing to scroll: the time of the open one heads the card above. */
  .day-track { gap: 0; }
  .day-dot { min-height: 44px; padding: 10px 0; }
  .day-dot .l, .day-dot .t { display: none; }
  .jtrack { flex-direction: column; align-items: stretch; }
  .jline { width: 2px; min-width: 0; min-height: 22px; height: 22px; flex: none; margin-left: 22px; background: repeating-linear-gradient(180deg, var(--primary) 0 6px, transparent 6px 12px); }
  .jtrack.off .jline { background: repeating-linear-gradient(180deg, var(--rose) 0 6px, transparent 6px 12px); }
  .jline i { display: none; }
  .jzone { flex-direction: column; align-items: stretch; padding: 34px 14px 14px; }
  .jmap { height: auto; display: grid; gap: 10px; padding: 14px; }
  .jmap-lines { display: none; }
  .jm-you, .jm-hub, .jm-dests, .jm-dests li { position: static; transform: none; }
  .jm-you .jn, .jm-hub .jn { display: flex; }
  .jm-dests { display: grid; gap: 8px; padding-left: 18px; border-left: 2px dashed color-mix(in srgb, var(--rose) 45%, transparent); }
  .regulator { grid-template-columns: 1fr; }
}

/* ---------- mini windows (product pages) ---------- */
.mini { position: relative; border-radius: 22px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--elev-3); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); overflow: hidden; font-size: 14px; }
.mini-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hair-soft); background: rgba(255, 255, 255, 0.5); }
.mini-dots { display: inline-flex; gap: 6px; }
.mini-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); }
.mini-title { font-weight: 800; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.m-u { align-self: flex-end; max-width: 86%; padding: 11px 14px; border-radius: 16px 16px 5px 16px; background: var(--user-bubble); font-weight: 600; font-size: 14px; line-height: 1.5; }
.m-o { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.6; }
.m-o .oli { width: 28px; }
.m-cite { display: inline-grid; place-items: center; width: 18px; height: 18px; margin: 0 1px 0 3px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-deep); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.m-pop { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-2); display: grid; gap: 4px; font-size: 13px; border-left: 3px solid var(--primary); }
.m-pop-k { font-size: 11.5px; font-weight: 800; color: var(--primary-deep); }
.m-pop span:last-child { color: var(--muted); font-style: italic; }
.m-calc-h { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.m-calc-grid { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13.5px; color: var(--muted); padding: 12px 14px; border-radius: 14px; background: var(--tray); }
.m-calc-grid b { color: var(--ink); text-align: right; }
.m-calc-r { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--next-step-wash); }
.m-calc-r b { font-family: var(--font-display); font-size: 28px; color: var(--primary-deep); }
.m-work { padding-left: 20px; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.m-note { font-size: 12.5px; color: var(--faint); font-weight: 600; line-height: 1.5; }
.m-link { color: var(--primary-deep); font-weight: 800; white-space: nowrap; }
.m-review { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: var(--primary-wash); font-size: 12.5px; font-weight: 800; color: var(--primary-deep); }
.m-review span { margin-right: auto; }
.m-review b, .m-review em, .m-acc b, .m-acc em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; }
.m-review b, .m-acc b { background: var(--green-soft); color: var(--green); }
.m-review em, .m-acc em { background: var(--rose-soft); color: var(--rose-ink); }
.m-acc { display: flex; gap: 6px; margin: -4px 0 6px; }
.m-paper { background: #fff; border-radius: 6px; box-shadow: var(--shadow-paper); padding: 18px 22px; font-size: 13.5px; line-height: 1.65; }
.m-paper p + p { margin-top: 8px; }
.m-paper s { color: var(--rose); background: var(--rose-soft); text-decoration-thickness: 1.5px; border-radius: 3px; padding: 0 2px; }
.m-paper u { text-decoration: none; color: var(--green); background: var(--green-soft); border-radius: 3px; padding: 0 2px; box-shadow: inset 0 -1.5px 0 rgba(46, 125, 85, 0.5); }
.m-lh { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; color: var(--primary-deep); font-size: 13px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1.5px solid var(--hair); }
.m-lh i { width: 14px; height: 14px; border-radius: 5px; background: var(--primary-grad); }
.m-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m-chips span { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 99px; background: #fff; box-shadow: var(--elev-1); font-size: 12px; font-weight: 800; color: var(--muted); }
.m-chips span.on { background: var(--primary-grad); color: #fff; }
.m-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.m-filter span { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--tray); font-size: 12px; font-weight: 800; color: var(--muted); }
.m-filter span.on { background: var(--ink); color: #fff; }
.m-tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-t { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); transition: transform 0.4s var(--ease-spring-soft); }
.m-t:hover { transform: translateY(-3px); }
.m-t i { width: 26px; height: 32px; border-radius: 4px; border: 1px solid var(--hair); background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(201, 190, 159, 0.5) 5px 6px) 5px 7px / 16px 18px no-repeat, #fff; position: relative; margin-bottom: 6px; }
.m-t i::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.m-t i.b::after { background: var(--blue); } .m-t i.g::after { background: var(--green); } .m-t i.a::after { background: var(--amber); }
.m-t b { font-size: 12.5px; line-height: 1.3; }
.m-t span { font-size: 11px; color: var(--faint); font-weight: 700; }
.m-t em { margin-top: auto; padding-top: 6px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--primary-deep); }
.m-mh b { display: block; font-family: var(--font-display); font-size: 20px; }
.m-mh span { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.m-track { display: flex; align-items: center; gap: 6px; }
.m-track span { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1.5px solid var(--hair); display: grid; place-items: center; font-weight: 800; color: var(--faint); font-size: 11px; flex: none; }
.m-track span.d { background: var(--primary-grad); color: #fff; border: 0; }
.m-track span.n { border-color: var(--primary); color: var(--primary-deep); box-shadow: 0 0 0 4px var(--primary-soft); }
.m-track i { flex: 1; height: 2px; background: var(--hair); }
.m-track i.d { background: var(--primary); }
/* Each label sits under its dot: the inner dots are at a third of the track plus 4px and two thirds minus 4px. */
.m-track-l { position: relative; height: 16px; font-size: 11.5px; font-weight: 800; color: var(--faint); margin-top: -4px; }
.m-track-l span { position: absolute; top: 0; white-space: nowrap; }
.m-track-l span:nth-child(1) { left: 0; }
.m-track-l span:nth-child(2) { left: calc(100% / 3 + 4px); transform: translateX(-50%); }
.m-track-l span:nth-child(3) { left: calc(200% / 3 - 4px); transform: translateX(-50%); }
.m-track-l span:nth-child(4) { right: 0; }
.m-checks { display: grid; gap: 4px; padding: 10px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); }
.m-checks p { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: center; padding: 5px 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.m-checks .tk { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--hair); display: grid; place-items: center; color: transparent; }
.m-checks p.d { color: var(--ink-soft); }
.m-checks p.d .tk { background: var(--primary); border-color: var(--primary); color: #fff; }
.m-gate { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12.5px; font-weight: 800; }
.m-risk-h { display: flex; justify-content: space-between; align-items: baseline; }
.m-risk-h b { padding: 4px 10px; border-radius: 99px; background: var(--amber-soft); color: var(--amber-ink); font-size: 13px; }
.m-risk-h span { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.m-meter { position: relative; height: 10px; border-radius: 99px; background: var(--risk-track); }
.m-meter i { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ink-soft); transform: translate(-50%, -50%); }
.m-risk-s { font-size: 13px; color: var(--muted); font-weight: 600; }
.m-fac { display: grid; gap: 6px; }
.m-fac p { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; color: var(--ink-soft); padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: var(--elev-1); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.amber { background: var(--amber); } .dot.green { background: var(--green); } .dot.rose { background: var(--rose); }
.m-views { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--tray); align-self: flex-start; }
.m-views span { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--muted); }
.m-views span.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-cols > div { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: rgba(242, 245, 239, 0.8); }
.m-cols b { display: flex; justify-content: space-between; font-size: 12px; }
.m-cols b em { font-style: normal; color: var(--faint); }
.m-cols p { padding: 10px; border-radius: 11px; background: #fff; box-shadow: var(--elev-1); font-size: 12.5px; font-weight: 700; display: grid; gap: 4px; }
.m-cols p span { font-size: 11px; color: var(--faint); }
.m-cols p.hot { box-shadow: var(--elev-1), inset 3px 0 0 var(--amber); }
.m-cols p.done { color: var(--faint); text-decoration: line-through; }
.m-auto { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-size: 13.5px; }
.m-auto .k { font-size: 11.5px; font-weight: 800; color: var(--violet-ink); background: var(--violet-soft); padding: 2px 8px; border-radius: 6px; }
.m-auto .m-sub { flex-basis: 100%; font-size: 12px; color: var(--faint); font-weight: 600; }
.m-arrow { display: grid; place-items: center; color: var(--faint); margin: -6px 0; }
.m-try { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--primary-wash); color: var(--primary-deep); font-size: 12.5px; font-weight: 800; }
.m-stat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-stat p { padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); font-size: 12px; color: var(--faint); font-weight: 700; display: grid; }
.m-stat b { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.m-req { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "c c st" "t t st" "w w st"; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); }
.m-req .c { grid-area: c; font-size: 11px; font-weight: 800; color: var(--violet-ink); }
.m-req b { grid-area: t; font-size: 13.5px; }
.m-req .who { grid-area: w; font-size: 12px; color: var(--faint); font-weight: 600; }
.m-req .st { grid-area: st; align-self: center; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; }
.st.blue { background: var(--blue-soft); color: var(--blue); } .st.amber { background: var(--amber-soft); color: var(--amber-ink); } .st.green { background: var(--green-soft); color: var(--green); }
.m-ptabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--tray); align-self: flex-start; }
.m-ptabs span { height: 28px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--muted); }
.m-ptabs span.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.m-person { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); }
.m-person .av { width: 36px; height: 36px; border-radius: 12px; background: #e3ece4; color: var(--primary-deep); display: grid; place-items: center; font-weight: 900; font-size: 12px; }
.m-person b { display: block; font-size: 13.5px; }
.m-person small { display: block; font-size: 12px; color: var(--faint); font-weight: 600; }
.m-person .lic { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.m-person em { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--green-soft); color: var(--green); }
.m-mem { padding: 14px; border-radius: 16px; background: #fff; box-shadow: var(--elev-2); display: grid; gap: 8px; border: 1px solid rgba(94, 168, 116, 0.25); }
.m-mem b { font-size: 13px; color: var(--primary-deep); }
.m-mem p { font-size: 14px; font-weight: 700; }
.m-mem-scope { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: var(--tray); justify-self: start; }
.m-mem-scope span { height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: var(--muted); }
.m-mem-scope span.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.m-mem-b { display: flex; gap: 6px; }
.m-mem-b span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 10px; font-size: 12px; font-weight: 800; background: var(--tray); color: var(--muted); }
.m-mem-b span.save { background: var(--primary-grad); color: #fff; }
.m-chain { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-weight: 800; font-size: 13px; }
.m-log { display: grid; grid-template-columns: 62px 1fr auto; grid-template-areas: "w a p" "w d d"; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); font-size: 12.5px; }
.m-log span:first-child { grid-area: w; color: var(--faint); font-weight: 700; }
.m-log b { grid-area: a; }
.m-log span:nth-of-type(2) { grid-area: p; color: var(--muted); font-weight: 600; }
.m-log small { grid-area: d; color: var(--faint); font-weight: 600; font-size: 12px; }
.m-drop { display: grid; justify-items: center; gap: 4px; padding: 18px; border-radius: 16px; border: 1.5px dashed rgba(76, 130, 89, 0.4); background: var(--primary-wash); color: var(--primary-deep); font-weight: 800; font-size: 13.5px; text-align: center; }
.m-drop small { color: var(--faint); font-weight: 600; font-size: 12px; }
.m-kn { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: var(--elev-1); color: var(--violet); font-size: 13px; }
.m-kn b { color: var(--ink); }
.m-kn span { color: var(--faint); font-size: 12px; font-weight: 600; }
.m-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.m-steps span { height: 28px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--tray); font-size: 11.5px; font-weight: 800; color: var(--faint); }
.m-steps span.d { background: var(--primary-soft); color: var(--primary-deep); }
.m-steps span.n { background: var(--primary-grad); color: #fff; }
.m-clock { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12.5px; font-weight: 700; }
.m-clock b { margin-left: auto; white-space: nowrap; }
.phone { width: 300px; margin: 0 auto; padding: 12px; border-radius: 42px; background: #1d2a22; box-shadow: var(--elev-4); }
.phone-in { border-radius: 32px; background: var(--bg); padding: 30px 18px 22px; display: grid; gap: 10px; min-height: 560px; align-content: start; background-image: radial-gradient(circle at 20% 0%, rgba(64, 200, 140, 0.22), transparent 55%), radial-gradient(circle at 90% 90%, rgba(104, 168, 236, 0.2), transparent 50%); }
.ph-hi { font-family: var(--font-display); font-weight: 700; font-size: 26px; }
.ph-s { font-size: 13px; color: var(--muted); margin-top: -6px; }
.ph-ask { display: flex; align-items: center; gap: 8px; padding: 13px 14px; border-radius: 16px; background: #fff; box-shadow: var(--elev-2); font-weight: 800; font-size: 13.5px; color: var(--ink-soft); }
.ph-ans { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); font-size: 13px; line-height: 1.5; display: grid; gap: 6px; }
.ph-k { font-size: 11px; font-weight: 800; color: var(--primary-deep); }
.ph-raise { justify-self: start; font-size: 12px; font-weight: 800; color: var(--primary-deep); padding: 5px 10px; border-radius: 9px; background: var(--primary-wash); }
.ph-h { font-weight: 800; font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.ph-card { display: flex; gap: 8px; align-items: center; padding: 11px 13px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-weight: 700; font-size: 13px; color: var(--violet); }
.ph-card { color: var(--ink-soft); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* An odd last tile spans both columns, so three tiles leave no hole. */
.ph-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.ph-grid span { padding: 12px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-weight: 800; font-size: 12.5px; }

/* ---------- product, why, trust ---------- */
.crumb { display: flex; width: fit-content; min-height: 40px; align-items: center; gap: 4px; margin-bottom: 10px; font-weight: 800; font-size: 14px; text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--primary-deep); }
.flip-x { transform: scaleX(-1); }
.product-hero .lead { max-width: 760px; }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: 36px; }
.split-head .lead { margin: 0; }
.qlist { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.qlist li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.62); border: var(--glass-edge); box-shadow: var(--elev-1); }
.qn { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.qlist h3 { font-size: 18px; line-height: 1.3; }
.qlist p { margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.ctrl-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ctrl { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.62); border: var(--glass-edge); }
.ctrl b { font-size: 15.5px; }
.ctrl p { margin-top: 4px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.wont { padding: clamp(24px, 4vw, 40px); }
.wont-list { list-style: none; margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.wont-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.wont-list .ic { color: var(--primary); margin-top: 2px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.more-card { display: grid; grid-template-columns: 38px 1fr 16px; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.6); border: var(--glass-edge); box-shadow: var(--elev-1); text-decoration: none; color: var(--ink); transition: transform 0.35s var(--ease-spring-soft), box-shadow 0.3s, background 0.2s; }
.more-card:hover { transform: translateY(-2px); box-shadow: var(--elev-2); background: #fff; color: var(--ink); }
.more-card b { display: block; font-size: 15px; }
.more-card small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.more-card > .ic { color: var(--faint); }
.numbers { padding: clamp(28px, 4vw, 48px); }
.num-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.num-k { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; }
.num-t { margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.sub-h { margin-bottom: 18px; }
.int-card h3 { font-size: 18px; }
.int-card p { font-size: 14.5px; }
.next-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.sys-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sys-cloud > * { height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.8); border: var(--glass-edge); box-shadow: var(--elev-1); font-weight: 800; font-size: 14.5px; color: var(--ink-soft); }
.js .sys-cloud > * { animation: popIn 0.6s var(--ease-spring-soft) both; animation-delay: calc(var(--i) * 45ms); }
.sys-cloud .you { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- Meet Oli ---------- */
.oli-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.oli-big { display: grid; justify-items: center; gap: 14px; }
.oli-big .oli { width: min(300px, 70vw); filter: drop-shadow(0 30px 40px rgba(34, 48, 38, 0.18)); }
.oli-hint { font-size: 13px; font-weight: 700; color: var(--faint); }
.oli-fact .meta { font-weight: 800; color: var(--primary-deep); }
.oli-fact-v { margin-top: 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.3; color: var(--ink); }
.pose-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.pose { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; line-height: 1.25; padding: 18px 8px 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.6); font-weight: 800; font-size: 14px; color: var(--muted); }
.pose .oli { width: 92px; }

/* ---------- use cases ---------- */
.cases { display: grid; gap: 16px; }
.case { scroll-margin-top: 110px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-shell); background: rgba(255, 255, 255, 0.62); border: var(--glass-edge); box-shadow: var(--elev-2); }
.case:target { box-shadow: var(--elev-3), 0 0 0 3px rgba(94, 168, 116, 0.45); }
.case-h { display: flex; gap: 16px; align-items: center; }
.case-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px; }
.case-before { padding: 18px; border-radius: 16px; background: rgba(242, 245, 239, 0.8); color: var(--muted); font-size: 15.5px; }
.case-before p:last-child { margin-top: 6px; }
.case-with .ticks { margin-top: 10px; }
.case-with .meta, .case-before .meta { font-weight: 800; }
.case-with .meta { color: var(--primary-deep); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border-radius: 26px; background: rgba(255, 255, 255, 0.66); border: var(--glass-edge); box-shadow: var(--elev-2); }
.plan.hot { background: rgba(255, 255, 255, 0.86); box-shadow: var(--elev-3), inset 0 0 0 2px rgba(94, 168, 116, 0.35); }
/* A plain button on a near-white card needs an edge to read as one. */
.plan .btn-glass { border: 1.5px solid var(--hair); }
.plan-tag { position: absolute; top: 22px; right: 22px; }
.plan .muted { margin-top: 6px; font-size: 15px; }
.plan-price { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: 46px; letter-spacing: -0.03em; line-height: 1; }
.plan-price span { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--faint); letter-spacing: 0; margin-left: 8px; }
.plan-seats { margin-top: 8px; font-weight: 800; color: var(--primary-deep); font-size: 15px; }
.plan .ticks { margin: 22px 0 26px; }
.plan-btn { margin-top: auto; width: 100%; }

/* ---------- about ---------- */
.beliefs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.belief { padding: 28px; border-radius: var(--r-shell); background: rgba(255, 255, 255, 0.62); border: var(--glass-edge); box-shadow: var(--elev-2); }
.belief-n { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-grad); color: #fff; font-family: var(--font-display); font-weight: 700; box-shadow: var(--shadow-btn); }
.belief h3 { margin-top: 18px; font-size: 22px; }
.belief p { margin-top: 8px; color: var(--muted); }
.about-note { margin-top: 16px; padding: 22px 26px; font-weight: 700; color: var(--ink-soft); }

/* ---------- founders list page ---------- */
.founders-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.founders-copy .lead { margin-top: 22px; }
.desk { margin-top: 30px; border-radius: 26px; background: rgba(255, 255, 255, 0.55); border: var(--glass-edge); box-shadow: var(--elev-2); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }
.desk-svg { width: 100%; height: auto; }
.next-steps { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.next-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.next-steps .n { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: #fff; box-shadow: var(--elev-1); font-weight: 900; color: var(--primary-deep); }
.next-steps b { font-size: 16px; }
.next-steps p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.founders-card { padding: clamp(22px, 3vw, 32px); border-radius: 28px; }
.ff-sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.ff-field { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.ff-label { display: flex; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 14.5px; color: var(--ink); margin-bottom: 9px; padding: 0; }
.ff-label span { flex: none; white-space: nowrap; font-weight: 700; color: var(--faint); font-size: 13px; }
.ff-input { width: 100%; height: 52px; padding: 0 16px; border-radius: 15px; border: 1.5px solid rgba(226, 231, 220, 0.95); background: rgba(255, 255, 255, 0.92); font-size: 16px; font-weight: 600; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.ff-input::placeholder { color: #8a968e; font-weight: 500; }
.ff-input:hover { border-color: #cfd8cc; }
.ff-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.ff-input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 4px var(--rose-soft); }
.ff-text { height: auto; min-height: 92px; padding: 13px 16px; resize: vertical; line-height: 1.5; font-size: 15px; }
.ff-hint { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--faint); font-weight: 600; }
.ff-error { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--rose-ink); }
/* Shown only at /founders#not-sent, where src/proxy.ts sends a form that went before its script ran. CSS, so it shows with scripts off too.
   The scroll margin clears the header after the card's reveal lifts it about 43px past where the jump left it. */
.ff-unsent { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--rose-ink); scroll-margin-top: 48px; }
.ff-unsent:not(:target) { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chipin { position: relative; cursor: pointer; }
.chipin input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chipin span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); border: 1.5px solid rgba(226, 231, 220, 0.95); font-size: 14px; font-weight: 700; color: var(--ink-soft); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--ease-spring); line-height: 1.3; }
.chipin:hover span { border-color: #c9d6c8; }
.chipin input:checked + span { background: var(--primary-grad); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(74, 150, 100, 0.3); }
.chipin input:active + span { transform: scale(0.95); }
.chipin input:focus-visible + span { box-shadow: var(--focus); }
.ff-submit { width: 100%; margin-top: 24px; height: 56px; font-size: 17px; }
.ff-submit:disabled { opacity: 0.75; cursor: progress; }
.ff-note { margin-top: 14px; font-size: 13px; color: var(--faint); font-weight: 600; line-height: 1.5; }
.ff-done { display: grid; justify-items: start; gap: 12px; padding: 8px 0; outline: none; }
.ff-done-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--primary-grad); color: #fff; box-shadow: var(--shadow-btn); animation: popIn 0.6s var(--ease-spring) both; }
.ff-done p { color: var(--ink-soft); font-size: 16px; }
@keyframes fdSway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes fdSteam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes fdDing { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-9deg); } 70% { transform: rotate(9deg); } }
@keyframes fdRing { 0% { opacity: 0; transform: scale(0.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes fdDrop { from { opacity: 0; transform: translateY(-26px) rotate(-8deg); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .num-grid { grid-template-columns: repeat(3, 1fr); }
  .pose-row { grid-template-columns: repeat(3, 1fr); }
  .more-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .split-head, .next-band, .oli-hero-grid, .founders-grid, .case-grid { grid-template-columns: 1fr; }
  .qlist, .ctrl-grid, .wont-list, .beliefs { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .founders-card { position: static; }
  .m-tgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .more-grid { grid-template-columns: 1fr; }
  .num-grid { grid-template-columns: 1fr 1fr; }
  .mini-body { padding: 16px; }
  .m-cols { grid-template-columns: 1fr 1fr; }
  .m-cols > div:last-child { display: none; }
  .page-hero { padding-bottom: 36px; }
  /* One inner padding for cards on a phone, so text edges line up from card to card. */
  .regulator, .biz, .belief, .plan { padding: 22px; }
  .plan-tag { top: 18px; right: 18px; }
  .grid > .regulator { margin-top: 0; }
  .jbadges { flex-direction: column; align-items: flex-start; }
  .qlist li { grid-template-columns: 36px 1fr; gap: 12px; }
  .qn { width: 36px; height: 36px; border-radius: 12px; }
  .oli-big .oli { width: 220px; }
  .day-stage { min-height: 0; }
  .day-oli { width: 120px; }
  .sys-cloud > * { height: 36px; box-shadow: none; }
  .grad.blk { display: block; }
  .pose-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .pose .oli { width: 68px; }
  .pose .oli svg { width: 100%; height: auto; }
  .phone { width: 100%; max-width: 300px; }
}
@media (max-width: 520px) {
  .home-hero .hero-oli { flex-wrap: wrap; gap: 10px; }
  .lscene { width: 214px; height: 214px; margin: -107px 0 0 -107px; }
  .case-h { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ff-label { display: block; }
  .ff-label span { display: block; margin-top: 2px; }
  .m-log { grid-template-columns: 62px 1fr; grid-template-areas: "w a" "w d" "w p"; }
  .sys-cloud { justify-content: flex-start; }
  /* Stacked buttons share one width. */
  .btn-row > .btn { flex: 1 1 100%; }
  .fv-board { grid-template-columns: 1fr 1fr; }
  .fv-board .fv-col:last-child { display: none; }
  .m-person { grid-template-columns: 36px 1fr; }
  .m-person .lic { grid-column: 2; justify-content: flex-start; }
  .home-hero .hero-oli .chip { white-space: normal; height: auto; min-height: 32px; padding: 6px 12px; text-align: left; line-height: 1.35; }
  .h1 { letter-spacing: -0.03em; }
}

@media (max-width: 380px) {
  /* The smallest phones: the stack, spread open, stays inside the screen. */
  .lscene { width: 196px; height: 196px; margin: -98px 0 0 -98px; }
}

.biz { margin-top: 16px; padding: 24px 28px; }
.biz p { margin-top: 8px; color: var(--muted); font-size: 16.5px; max-width: 820px; }

/* The demo pauses when pressed or scrolled away; this says so while it waits. */
.stage { position: relative; cursor: pointer; }
.demo-paused { position: absolute; top: 14px; right: 14px; z-index: 5; padding: 6px 12px; border-radius: 99px; background: rgba(22, 34, 26, 0.78); color: var(--on-primary); font-size: 12.5px; font-weight: 800; opacity: 0; transform: translateY(-4px); transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out); pointer-events: none; }
.demo.is-paused .demo-paused { opacity: 1; transform: none; }

/* A touch screen gets no resize grip, which drew a stray dot at the corner of the note. */
@media (pointer: coarse) {
  .ff-text { resize: none; }
}

/* The feature explorer on the home page (lib/explorer.mjs, js/explorer.mjs). */

/* Each group has a colour: the tile, its feature pills, the intro band and the try buttons take it. */
.tone-green { --tone: var(--primary); --tone-ink: var(--primary-deep); --tone-soft: var(--green-soft); }
.tone-blue { --tone: var(--blue); --tone-ink: var(--blue-ink); --tone-soft: var(--blue-soft); }
.tone-violet { --tone: var(--violet); --tone-ink: var(--violet-ink); --tone-soft: var(--violet-soft); }
.tone-amber { --tone: var(--amber); --tone-ink: var(--amber-ink); --tone-soft: var(--amber-soft); }
.tone-rose { --tone: var(--rose); --tone-ink: var(--rose-ink); --tone-soft: var(--rose-soft); }
.tone-ink { --tone: var(--ink-soft); --tone-ink: var(--ink); --tone-soft: rgba(42, 58, 48, 0.1); }

.xp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; scroll-margin-top: 88px; }

/* The six groups. */
.xp-nav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.xp-g { position: relative; display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 12px 14px 12px 12px; border: var(--glass-edge); border-radius: 20px; background: rgba(255, 255, 255, 0.62); box-shadow: var(--elev-1); text-align: left; color: var(--ink); cursor: pointer; overflow: hidden; transition: transform 0.35s var(--ease-spring-soft), box-shadow 0.25s var(--ease-out), background 0.25s; }
.xp-g::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 0% 0%, var(--tone-soft), transparent 70%); opacity: 0; transition: opacity 0.3s var(--ease-out); }
.xp-g > * { position: relative; }
.xp-g:hover { transform: translateY(-3px); box-shadow: var(--elev-2); }
.xp-g:hover::before { opacity: 0.7; }
.xp-g.on { background: var(--paper); box-shadow: var(--elev-2), inset 0 0 0 2px var(--tone); }
.xp-g.on::before { opacity: 1; }
.xp-g-ic { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone-ink); transition: background 0.3s, color 0.3s, transform 0.45s var(--ease-spring); }
.xp-g.on .xp-g-ic, .xp-g:hover .xp-g-ic { background: var(--tone-ink); color: var(--on-primary); }
.xp-g.on .xp-g-ic { transform: rotate(-6deg) scale(1.06); }
.xp-g-t { min-width: 0; }
.xp-g-t b { display: block; font-family: var(--font-display); font-size: 16.5px; line-height: 1.2; }
.xp-g-t small { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; font-weight: 700; color: var(--muted); }
.xp-g em { position: absolute; top: 8px; right: 10px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; background: var(--tone-soft); color: var(--tone-ink); }

/* The stage: feature pills, controls, Oli and the open feature. */
.xp-stage { position: relative; padding: 14px; border-radius: 30px; background: rgba(255, 255, 255, 0.5); border: var(--glass-edge); box-shadow: var(--elev-3); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.xp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 2px 12px; }
.xp-pills { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.xp-tab { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 6px; border: 0; border-radius: 99px; background: var(--paper); box-shadow: var(--elev-1); font-size: 14px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; cursor: pointer; overflow: hidden; transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.3s var(--ease-spring-soft); animation: popIn 0.4s var(--ease-spring-soft) both; }
.xp-tab:hover { transform: translateY(-1px); box-shadow: var(--elev-2); }
.xp-tab .xp-ic { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--tone-soft); color: var(--tone-ink); transition: background 0.25s, color 0.25s; }
.xp-tab.on { background: var(--tone-ink); color: var(--on-primary); box-shadow: var(--elev-2); }
.xp-tab.on .xp-ic { background: rgba(255, 255, 255, 0.2); color: var(--on-primary); }
.xp-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: rgba(255, 255, 255, 0.8); border-radius: 0 3px 3px 0; }
.xp.touring .xp-tab.on .xp-prog { animation: xpProg var(--dwell, 7s) linear forwards; }
@keyframes xpProg { to { width: 100%; } }
.xp-ctl { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.xp-arrow { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: var(--elev-1); color: var(--ink); cursor: pointer; transition: transform 0.3s var(--ease-spring), box-shadow 0.2s; }
.xp-arrow:hover { transform: scale(1.08); box-shadow: var(--elev-2); }
.xp-arrow:active { transform: scale(0.94); }
.xp-count { min-width: 64px; text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.xp-tour { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px 0 13px; border: 0; border-radius: 99px; background: var(--ink); color: var(--on-primary); font-size: 13.5px; font-weight: 800; cursor: pointer; transition: transform 0.3s var(--ease-spring), background 0.2s; }
.xp-tour:hover { transform: translateY(-1px); }
.xp-tour .on-pause, .xp-tour[aria-pressed="true"] .on-play { display: none; }
.xp-tour[aria-pressed="true"] .on-pause { display: inline-flex; }
.xp-tour span { display: inline-flex; }

.xp-show { position: relative; min-height: 680px; }
.xp-oli { position: absolute; top: -8px; right: 6px; z-index: 3; width: 150px; height: 150px; pointer-events: auto; filter: drop-shadow(0 10px 18px rgba(34, 48, 38, 0.18)); }
.xp-oli.bump { animation: xpBump 0.6s var(--ease-spring); }
@keyframes xpBump { 0% { transform: translateY(0) scale(1); } 35% { transform: translateY(-10px) scale(1.06) rotate(-4deg); } 100% { transform: none; } }

.xp-panel { border-radius: 24px; background: rgba(255, 255, 255, 0.84); border: 1px solid rgba(255, 255, 255, 0.95); box-shadow: var(--elev-2); overflow: hidden; font-size: 14px; }
.xp-panel.in { animation: popIn 0.45s var(--ease-out-expo) both; }
.xp-intro { position: relative; padding: 24px 170px 22px 26px; background: radial-gradient(70% 180% at 100% 0%, color-mix(in srgb, var(--tone) 24%, transparent), transparent 70%), linear-gradient(100deg, color-mix(in srgb, var(--tone) 14%, var(--paper)), color-mix(in srgb, var(--tone) 4%, var(--paper)) 75%); border-bottom: 1px solid color-mix(in srgb, var(--tone) 18%, transparent); }
.xp-intro::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--tone); }
.xp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: var(--tone-ink); }
.xp-h { margin-top: 4px; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; }
.xp-lead { margin-top: 6px; max-width: 660px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.xp-window .xp-dots i:nth-child(1) { background: var(--rose); }
.xp-window .xp-dots i:nth-child(2) { background: var(--amber); }
.xp-window .xp-dots i:nth-child(3) { background: var(--primary); }
.xp-flash { animation: xpFlash 1s var(--ease-out); }
@keyframes xpFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 55%, transparent); } 100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

.xp-bar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 12px 6px 16px; border-bottom: 1px solid var(--hair-soft); background: rgba(255, 255, 255, 0.55); }
.xp-dots { display: inline-flex; gap: 6px; flex: none; }
.xp-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--hair); }
.xp-crumb { font-size: 13px; color: var(--faint); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-crumb b { color: var(--ink); font-weight: 800; margin-left: 6px; }
.xp-btns { margin-left: auto; display: flex; gap: 6px; flex: none; }
.xp-search { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 11px; background: #fff; border: 1px solid var(--hair); color: var(--faint); flex: none; }
.xp-search input { border: 0; outline: 0; background: transparent; width: 150px; font-size: 13px; color: var(--ink); }
/* The field has no border of its own, so its box draws the ring. */
.xp-search:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.xp-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.xp-chat .m-o p { line-height: 1.65; }
.xp-chat button.m-cite { position: relative; border: 0; cursor: pointer; transition: transform 0.2s var(--ease-spring), background 0.2s; }
/* A larger invisible target round the small number, so a thumb finds it. */
.xp-chat button.m-cite::after { content: ""; position: absolute; inset: -10px -8px; }
.xp-chat button.m-cite:hover, .xp-chat button.m-cite[aria-expanded="true"] { background: var(--primary); color: #fff; transform: scale(1.1); }
.xp-chat .m-pop { animation: popIn 0.35s var(--ease-spring-soft) both; }
.xp-hint { margin-top: 12px; font-size: 12px; color: var(--faint); font-weight: 600; }
.xp-k { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.xp-empty { font-size: 13.5px; color: var(--faint); font-weight: 700; padding: 10px 4px; }

.xp-seg, .m-views { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--tray); align-self: flex-start; flex-wrap: wrap; }
.xp-seg button, .m-views button { height: 32px; padding: 0 13px; border: 0; border-radius: 10px; background: transparent; font-size: 13px; font-weight: 800; color: var(--muted); transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.xp-seg button.on, .m-views button.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.xp-calc { display: grid; gap: 12px; max-width: 560px; }
.xp-field { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-weight: 700; font-size: 14px; }
.xp-field b { min-width: 120px; text-align: right; color: var(--primary-deep); }
.xp-field input[type="range"] { width: 180px; accent-color: var(--primary); }
.xp-field input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--primary); }
.m-mem button, .m-mem-scope button { border: 0; cursor: pointer; }
.m-mem-scope button { height: 26px; padding: 0 10px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: var(--muted); background: transparent; }
.m-mem-scope button.on { background: #fff; color: var(--ink); box-shadow: var(--elev-1); }
.m-mem-b button { height: 32px; padding: 0 13px; border-radius: 10px; font-size: 12.5px; font-weight: 800; background: var(--tray); color: var(--muted); transition: transform 0.18s var(--ease-spring); }
.m-mem-b button:active { transform: scale(0.95); }
.m-mem-b button.save { background: var(--primary-grad); color: #fff; }
.m-mem-done { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--green-soft); color: var(--green); font-size: 13.5px; font-weight: 700; animation: popIn 0.4s var(--ease-spring-soft) both; }

.xp-editor .m-paper { font-size: 14px; }
.m-review button { border: 0; cursor: pointer; font-size: 11.5px; font-weight: 800; padding: 5px 10px; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.m-review button.rej { background: var(--rose-soft); color: var(--rose-ink); }
.m-review.done { background: var(--green-soft); color: var(--green); }
.m-review.done button { display: none; }
.chg { position: relative; }
.chg-b { display: inline-flex; gap: 4px; margin-left: 4px; vertical-align: 1px; }
.chg-b button { border: 0; cursor: pointer; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--green-soft); color: var(--green); transition: transform 0.18s var(--ease-spring); }
.chg-b button.rej { background: var(--rose-soft); color: var(--rose-ink); }
.chg-b button:active { transform: scale(0.92); }
.chg.decided u { text-decoration: none; color: inherit; background: transparent; box-shadow: none; padding: 0; transition: all 0.4s; }
.chg.decided s { text-decoration: none; color: inherit; background: transparent; padding: 0; }

.xp-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-cats button { height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--tray); font-size: 12.5px; font-weight: 800; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s, color 0.2s; }
.xp-cats button em { font-style: normal; color: var(--faint); font-weight: 700; }
.xp-cats button.on { background: var(--ink); color: #fff; }
.xp-cats button.on em { color: rgba(255, 255, 255, 0.7); }
.xp-cat-pick { display: none; width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--paper); font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); }
.xp-tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }

.xp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.xp-stats p { padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-size: 12px; color: var(--faint); font-weight: 700; display: grid; gap: 2px; }
.xp-stats b { font-family: var(--font-display); font-size: 24px; color: var(--ink); }
.xp-table { display: grid; gap: 4px; }
.xp-tr { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: center; width: 100%; padding: 11px 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); text-align: left; font-size: 13px; color: var(--ink-soft); transition: transform 0.25s var(--ease-spring-soft), box-shadow 0.25s; }
button.xp-tr { cursor: pointer; }
button.xp-tr:hover { transform: translateY(-1px); box-shadow: var(--elev-2); }
.xp-tr b { display: block; font-size: 13.5px; color: var(--ink); }
.xp-tr small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 600; }
.xp-th { background: transparent; box-shadow: none; padding: 2px 14px; font-size: 11.5px; font-weight: 800; color: var(--faint); }
.xp-table.compact .xp-tr { grid-template-columns: minmax(0, 1.6fr) 0.7fr 1fr 0.9fr; padding: 9px 14px; }
.xp-seg-bar { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.xp-seg-bar i { width: 16px; height: 6px; border-radius: 3px; background: var(--hair); }
.xp-seg-bar i.d { background: var(--primary); }
.xp-seg-bar i.n { background: var(--amber); }
.xp-seg-bar small { flex-basis: 100%; margin-top: 4px; }
.xp-tr .dot { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.faint { color: var(--faint); }
.xp-matter { display: grid; gap: 12px; animation: popIn 0.4s var(--ease-out-expo) both; }
.xp-back { justify-self: start; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 4px 0; cursor: pointer; }
.xp-back:hover { color: var(--primary-deep); }
.xp-stages { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); }
.xp-stages span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--faint); }
.xp-stages i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; border: 1.5px solid var(--hair); background: #fff; }
.xp-stages .d { color: var(--ink); }
.xp-stages .d i { background: var(--primary-grad); border-color: transparent; color: #fff; }
.xp-stages .n { color: var(--ink); }
.xp-stages .n i { border-color: var(--primary); color: var(--primary-deep); box-shadow: 0 0 0 4px var(--primary-soft); }
.xp-matter .a-next { padding: 14px 16px; border-radius: 16px; background: var(--next-step-wash); }
.xp-matter .a-next .k { font-size: 11.5px; font-weight: 800; color: var(--primary-deep); }
.xp-matter .a-next .t { font-weight: 800; font-size: 14px; margin-top: 3px; }
.xp-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.m-risk-h b.amber { background: var(--amber-soft); color: var(--amber-ink); }
.m-risk-h b.green { background: var(--green-soft); color: var(--green); }

.xp-board, .m-cols p span .xp-av { margin-left: auto; }
.m-cols p span { display: flex; align-items: center; gap: 6px; }
.xp-av { width: 20px; height: 20px; border-radius: 50%; background: #dfe9e0; color: var(--primary-deep); display: inline-grid; place-items: center; font-size: 8.5px; font-weight: 900; margin-left: auto; flex: none; }
.xp-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.xp-cal-h { font-size: 11.5px; font-weight: 800; color: var(--faint); padding: 0 4px 2px; }
.xp-day { min-height: 74px; padding: 6px; border-radius: 10px; background: #fff; box-shadow: var(--elev-1); font-size: 11px; display: flex; flex-direction: column; gap: 3px; }
.xp-day > span { font-weight: 800; color: var(--muted); }
.xp-day.today { box-shadow: var(--elev-1), inset 0 0 0 2px var(--primary); }
.xp-day i { font-style: normal; font-weight: 700; padding: 3px 5px; border-radius: 6px; background: var(--primary-wash); color: var(--primary-deep); line-height: 1.25; }
.xp-tl { --lab: 180px; position: relative; display: grid; gap: 6px; padding-top: 18px; }
.xp-tl-row { display: grid; grid-template-columns: 170px 1fr; gap: 10px; align-items: center; font-size: 12.5px; font-weight: 700; }
.xp-tl-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xp-tl-track { position: relative; height: 16px; border-radius: 8px; background: rgba(226, 231, 220, 0.6); }
.xp-tl-track i { position: absolute; top: 2px; height: 12px; border-radius: 6px; background: var(--primary-grad); }
.xp-tl-track i.done { background: rgba(94, 168, 116, 0.35); }
.xp-tl-track i.blocked { background: var(--amber); }
.xp-tl-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rose); }
.xp-tl-today span { position: absolute; top: -2px; left: 4px; font-size: 10.5px; font-weight: 800; color: var(--rose-ink); }
.xp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xp-tiles p { padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-size: 12px; color: var(--faint); font-weight: 700; display: grid; }
.xp-tiles b { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.xp-bars { display: grid; gap: 6px; }
.xp-bars div { display: grid; grid-template-columns: 70px 1fr 20px; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; }
.xp-bars i { height: 10px; border-radius: 5px; background: var(--primary-grad); max-width: 100%; }

.xp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; align-items: start; }
.xp-split.wide { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.xp-list { display: grid; gap: 6px; max-height: 470px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
/* Rows sit flush in a scrolling box, which clips their sides, so their ring is drawn inside them. */
.xp-list > :focus-visible, .xp-tgrid > :focus-visible { outline-offset: -3px; }
.xp-filters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.xp-filters button { height: 28px; padding: 0 10px; border: 0; border-radius: 99px; background: var(--tray); font-size: 12px; font-weight: 800; color: var(--muted); }
.xp-filters button.on { background: var(--ink); color: #fff; }
.xp-req { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "c st" "t st" "w st"; gap: 2px 10px; padding: 11px 13px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); text-align: left; cursor: pointer; transition: box-shadow 0.2s, transform 0.25s var(--ease-spring-soft); }
.xp-req:hover { transform: translateY(-1px); }
.xp-req.on { box-shadow: var(--elev-2), inset 3px 0 0 var(--primary); }
.xp-req .c { grid-area: c; font-size: 11px; font-weight: 800; color: var(--violet-ink); }
.xp-req b { grid-area: t; font-size: 13.5px; color: var(--ink); }
.xp-req .who { grid-area: w; font-size: 12px; color: var(--faint); font-weight: 600; }
.xp-req .st { grid-area: st; align-self: center; }
.st { font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.st.violet { background: var(--violet-soft); color: var(--violet-ink); }
.xp-detail { display: grid; gap: 10px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: var(--elev-1); animation: popIn 0.35s var(--ease-out-expo) both; }
.xp-dh { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.xp-dh b { font-size: 15.5px; }
.xp-dh small { display: block; color: var(--faint); font-size: 12.5px; font-weight: 600; }
.xp-meta { font-size: 12px; color: var(--faint); font-weight: 700; }
.xp-msg, .xp-note { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.xp-msg { background: var(--tray); }
.xp-note { background: var(--amber-soft); }
.xp-msg span, .xp-note span { display: block; font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.xp-note span { color: var(--amber-ink); }
.xp-reply { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--hair); color: var(--faint); font-size: 13px; }
.xp-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.xp-person { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 9px 11px; border: 0; border-radius: 13px; background: #fff; box-shadow: var(--elev-1); text-align: left; cursor: pointer; transition: box-shadow 0.2s; }
.xp-person.on { box-shadow: var(--elev-2), inset 3px 0 0 var(--primary); }
.xp-person b { display: block; font-size: 13.5px; color: var(--ink); }
.xp-person small { display: block; font-size: 12px; color: var(--faint); font-weight: 600; }
.av { width: 34px; height: 34px; border-radius: 11px; background: #e3ece4; color: var(--primary-deep); display: grid; place-items: center; font-weight: 900; font-size: 12px; flex: none; }
.av.lg { width: 46px; height: 46px; border-radius: 14px; font-size: 15px; }
.xp-detail .xp-dh { justify-content: flex-start; }
.xp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hair); }
.xp-tabs button { padding: 7px 11px; border: 0; background: none; font-size: 12.5px; font-weight: 800; color: var(--faint); cursor: pointer; border-radius: 8px 8px 0 0; transition: color 0.2s, background 0.2s; }
.xp-tabs button:hover { color: var(--ink); background: var(--tray); }
.xp-tabs button.on { color: var(--ink); box-shadow: inset 0 -2px 0 var(--primary); }
.xp-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.xp-dl dt { color: var(--faint); font-weight: 700; }
.xp-dl dd { margin: 0; font-weight: 700; }
.xp-lic { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-lic span { display: grid; padding: 8px 11px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 700; }
.xp-lic span b { color: var(--ink); font-size: 12.5px; }
.xp-lic span.bad { background: var(--rose-soft); color: var(--rose-ink); }

.xp-auto-h { display: flex; align-items: center; justify-content: space-between; }
.xp-auto-h b { font-family: var(--font-display); font-size: 18px; }
.xp-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--faint); cursor: not-allowed; }
.xp-toggle i { position: relative; width: 38px; height: 22px; border-radius: 99px; background: var(--hair); transition: background 0.25s; }
.xp-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--elev-1); transition: transform 0.3s var(--ease-spring); }
.xp-toggle.ready { cursor: pointer; color: var(--muted); }
.xp-toggle.on i { background: var(--primary); }
.xp-toggle.on i::after { transform: translateX(16px); }
.xp-toggle.on { color: var(--primary-deep); }
.xp-try { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--primary-wash); font-size: 13px; font-weight: 700; color: var(--primary-deep); }
.xp-chain { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--tray); font-size: 13px; font-weight: 700; color: var(--muted); transition: background 0.3s; }
.xp-chain.ok { background: var(--green-soft); color: var(--green); }
.xp-panel .a-btn { cursor: pointer; border: 1px solid var(--hair); }
.xp-panel button.a-btn { font-family: var(--font-body); }
.xp-panel button.a-btn:disabled { opacity: 0.6; cursor: progress; }

.xp-phone-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px 4px; }
.xp-phone-copy p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 360px; }
.ph-chips { display: grid; gap: 6px; }
.ph-chips button { text-align: left; padding: 10px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--elev-1); font-size: 13px; font-weight: 800; color: var(--ink-soft); cursor: pointer; transition: box-shadow 0.2s; }
.ph-chips button.on { box-shadow: var(--elev-1), inset 0 0 0 2px var(--primary); }
.ph-ans { animation: popIn 0.35s var(--ease-spring-soft) both; }

.ws-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 26px; }
.ws-vs > div { padding: 18px 20px; border-radius: 20px; border: var(--glass-edge); }
.ws-vs .a { background: rgba(255, 255, 255, 0.45); color: var(--muted); }
.ws-vs .b { background: linear-gradient(135deg, rgba(86, 151, 106, 0.18), rgba(62, 111, 176, 0.1)); box-shadow: var(--elev-1); }
.ws-vs b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.ws-vs p { font-size: 15px; line-height: 1.55; }

@media (max-width: 1180px) {
  .xp-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 940px) {
  /* Every group and every feature stays in view: nothing scrolls sideways or is cut short. */
  .xp-pills { flex-basis: 100%; }
  .xp-tab { flex: none; }
  .xp-ctl { margin-left: 0; width: 100%; }
  .xp-tour { margin-left: auto; }
  .xp-show { min-height: 0; }
  .xp-oli { width: 84px; height: 84px; top: 0; right: 4px; }
  .xp-intro { padding-right: 92px; }
  .xp-split, .xp-split.wide, .xp-cols, .ws-vs, .xp-phone-wrap { grid-template-columns: 1fr; }
  .xp-list { max-height: 300px; }
  .xp-phone-wrap { justify-items: center; text-align: center; }
}
@media (max-width: 640px) {
  .xp-stage { padding: 10px; border-radius: 24px; }
  .xp-intro { padding: 18px 76px 16px 18px; }
  .xp-nav { gap: 8px; }
  .xp-g { flex-direction: column; justify-content: center; gap: 6px; min-height: 0; padding: 12px 4px 10px; border-radius: 18px; text-align: center; }
  .xp-g-ic { width: 36px; height: 36px; border-radius: 12px; }
  .xp-g-t b { font-size: 14px; }
  .xp-g-t small { display: none; }
  .xp-g em { top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; }
  .xp-top { gap: 8px; }
  .xp-pills { gap: 6px; }
  .xp-tab { height: 38px; padding-right: 14px; font-size: 13.5px; }
  .xp-tab .xp-ic { width: 28px; height: 28px; }
  .xp-body { padding: 14px; }
  /* Long lists scroll inside the panel; the fade sits over padding, so the last row is clear once scrolled to. */
  .xp-list, .xp-tgrid { max-height: 440px; overflow-y: auto; padding-bottom: 32px; -webkit-mask-image: linear-gradient(#000 calc(100% - 32px), transparent); mask-image: linear-gradient(#000 calc(100% - 32px), transparent); }
  .xp-tgrid { grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
  .xp-cats { display: none; }
  .xp-cat-pick { display: block; }
  .xp-seg, .m-views { display: flex; width: 100%; }
  .xp-seg button, .m-views button, .m-views span { flex: 1 1 30%; justify-content: center; padding: 0 8px; min-height: 40px; }
  .m-review { flex-wrap: wrap; row-gap: 8px; }
  .m-review span { flex-basis: 100%; }
  .m-review button, .m-review b, .m-review em { white-space: nowrap; }
  .ph-grid span, .ph-grid button { display: grid; place-items: center; min-height: 52px; text-align: center; }
  .xp-stats, .xp-tiles { grid-template-columns: 1fr 1fr; }
  .xp-tr { grid-template-columns: 1fr 1fr; }
  .xp-tr > span:nth-child(3), .xp-tr > span:nth-child(4) { display: none; }
  .xp-table.compact .xp-tr { grid-template-columns: 1.6fr 1fr; }
  .xp-cal { gap: 2px; }
  .xp-day { min-height: 56px; padding: 4px; font-size: 9.5px; }
  .xp-day i { padding: 2px 3px; }
  .xp-tl { --lab: 120px; }
  .xp-tl-row { grid-template-columns: 110px 1fr; }
  .xp-field { grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; }
  .xp-field b { min-width: 0; }
  .xp-field input[type="range"] { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .xp-search { flex: 1; min-width: 0; }
  .xp-search input { width: 100%; min-width: 0; }
  .xp-crumb { display: none; }
}

/* The calculator's table beside it, and the memories Oli keeps. */
.xp-calc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 16px; align-items: start; }
.xp-scale { display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--elev-1); }
.xp-sh { font-size: 12.5px; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.xp-sh small { font-weight: 700; color: var(--faint); }
.xp-sr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) 48px; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 10px; font-size: 12.5px; font-weight: 700; color: var(--muted); transition: background 0.3s var(--ease-out), color 0.3s; }
.xp-sr i { height: 8px; border-radius: 4px; background: var(--tray); overflow: hidden; }
.xp-sr i b { display: block; height: 100%; border-radius: 4px; background: color-mix(in srgb, var(--primary) 35%, transparent); transition: width 0.5s var(--ease-out-expo), background 0.3s; }
.xp-sr em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.xp-sr.on { background: var(--green-soft); color: var(--ink); }
.xp-sr.on i b { background: var(--primary-grad); }
.xp-sr.on em { color: var(--primary-deep); font-weight: 800; }
.xp-sn { font-size: 12px; font-weight: 700; color: var(--rose-ink); margin-top: 4px; }
.xp-mems { margin-top: 6px; padding: 14px 16px; border-radius: 18px; background: var(--paper); box-shadow: var(--elev-1); }
.xp-mems .xp-k { display: flex; align-items: center; gap: 6px; }
.xp-mem { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; gap: 10px; align-items: center; padding: 9px 4px; border-top: 1px solid var(--hair-soft); font-size: 13.5px; transition: opacity 0.3s, transform 0.3s var(--ease-out-expo); }
.xp-mem:first-child { border-top: 0; }
.xp-mem em { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: var(--tray); color: var(--muted); white-space: nowrap; }
.xp-mem-x { width: 26px; height: 26px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--faint); cursor: pointer; }
.xp-mem-x:hover { background: var(--rose-soft); color: var(--rose-ink); }
.xp-mem.fresh { animation: popIn 0.45s var(--ease-spring-soft) both; }
.xp-mem.fresh em { background: var(--green-soft); color: var(--green); }
.xp-mem.gone { opacity: 0; transform: translateX(16px); }
@media (max-width: 940px) {
  .xp-calc-wrap { grid-template-columns: 1fr; }
}

/* ---- every control in the explorer does something ---- */
.xp-show button { font-family: var(--font-body); }
.xp-filters button em { font-style: normal; opacity: 0.7; margin-left: 2px; }
.xp-person .st { justify-self: end; }
.xp-person { grid-template-columns: 34px 1fr auto; }
.xp-hist { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--hair); margin-left: 6px; padding-left: 14px; }
.xp-hist li { position: relative; padding: 6px 0; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.xp-hist li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--primary); }
.xp-hist li span { display: block; font-size: 11.5px; font-weight: 800; color: var(--faint); }

/* Toolbar and the page you can edit. */
.xp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px; border-radius: 12px; background: var(--paper); box-shadow: var(--elev-1); }
.xp-tools button { width: 32px; height: 30px; border: 0; border-radius: 8px; display: grid; place-items: center; background: transparent; color: var(--ink-soft); font-size: 14px; cursor: pointer; transition: background 0.15s; }
.xp-tools button:hover { background: var(--tray); }
.xp-tools button.on { background: var(--primary-wash); color: var(--primary-deep); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent); }
.xp-tools select { height: 30px; padding: 0 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--paper); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.xp-tools > i { width: 1px; height: 18px; margin: 0 4px; background: var(--hair); }
.m-paper-body { min-height: 260px; }
.m-paper-body:focus-visible { border-radius: 4px; }
.m-paper-body h2 { font-size: 17px; margin: 8px 0 4px; }
.m-paper-body h3 { font-size: 15px; margin: 6px 0 2px; }
.m-paper-body ul, .m-paper-body ol { padding-left: 22px; margin-top: 8px; }
.m-paper-body a { color: var(--blue-ink); }
.m-tbl { border-collapse: collapse; margin-top: 8px; width: 100%; font-size: 12.5px; }
.m-tbl th, .m-tbl td { border: 1px solid var(--hair); padding: 5px 8px; text-align: left; }
.m-tbl th { background: var(--tray); }
.chg:not(.decided) u { margin-left: 0.3em; }
.m-chips button { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border: 0; border-radius: 99px; background: var(--paper); box-shadow: var(--elev-1); font-size: 12px; font-weight: 800; color: var(--muted); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s var(--ease-spring); }
.m-chips button:hover { transform: translateY(-1px); color: var(--ink); }
.m-chips button.on { background: var(--primary-grad); color: var(--on-primary); }
.xp-panel button.a-btn { gap: 6px; }

/* Boards: cards you can drag, and tasks that open. */
.xp-card { cursor: grab; touch-action: none; user-select: none; transition: transform 0.2s var(--ease-out), box-shadow 0.2s, opacity 0.2s; }
.xp-card:hover { transform: translateY(-1px); box-shadow: var(--elev-2); }
.xp-card.dragging { opacity: 0.35; }
.m-cols > div { transition: background 0.2s, box-shadow 0.2s; min-height: 120px; }
.m-cols > div.over { background: var(--primary-wash); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--primary) 45%, transparent); }
.xp-ghost { position: fixed; left: 0; top: 0; z-index: 1000; display: grid; gap: 4px; padding: 10px; border-radius: 11px; background: var(--paper); box-shadow: var(--elev-4); font-size: 12.5px; font-weight: 700; color: var(--ink); pointer-events: none; }
.xp-ghost span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--faint); }
.xp-cal-i { display: block; width: 100%; text-align: left; border: 0; font-weight: 700; padding: 3px 5px; border-radius: 6px; background: var(--primary-wash); color: var(--primary-deep); line-height: 1.25; font-size: inherit; cursor: pointer; }
.xp-cal-i:hover { background: var(--primary-soft); }
.xp-tl-row { width: 100%; border: 0; background: transparent; text-align: left; padding: 2px 4px; border-radius: 8px; cursor: pointer; color: inherit; }
.xp-tl-row:hover { background: rgba(255, 255, 255, 0.7); }
.xp-tiles button { padding: 12px 14px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: var(--elev-1); font-size: 12px; color: var(--faint); font-weight: 700; display: grid; text-align: left; cursor: pointer; transition: transform 0.2s var(--ease-spring), box-shadow 0.2s; }
.xp-tiles button:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }
.xp-tiles button b { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.xp-bars button { display: grid; grid-template-columns: 70px 1fr 20px; gap: 8px; align-items: center; width: 100%; padding: 3px 4px; border: 0; border-radius: 8px; background: transparent; font-size: 12.5px; font-weight: 700; color: inherit; text-align: left; cursor: pointer; }
.xp-bars button:hover { background: rgba(255, 255, 255, 0.7); }
.xp-filter-note { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-ink); font-size: 12.5px; font-weight: 800; }
.xp-filter-note button { margin-left: auto; border: 0; background: var(--paper); border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 800; color: var(--ink); cursor: pointer; }
.xp-tr[hidden] { display: none; }

/* Matters, requests, Ask HR and the log. */
.m-checks .m-check { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: center; width: 100%; padding: 5px 4px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: background 0.15s; }
.m-checks .m-check:hover { background: var(--tray); }
.m-checks .m-check.d { color: var(--ink-soft); }
.m-checks .m-check.d .tk { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.m-gate span { flex: 1; }
.m-gate.open { background: var(--green-soft); color: var(--green); }
.xp-tr.fresh, .xp-req.fresh, .xp-msg.fresh { animation: popIn 0.45s var(--ease-spring-soft) both; }
.xp-thread { display: grid; gap: 8px; }
.xp-msg.me { background: var(--primary-wash); margin-left: 24px; }
.xp-reply { display: flex; gap: 8px; align-items: flex-end; padding: 0; border: 0; }
.xp-reply textarea { flex: 1; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--hair); background: var(--paper); font: inherit; font-size: 13px; resize: vertical; }
.xp-reply textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.xp-actions button:disabled, .a-btn:disabled { opacity: 0.65; cursor: default; }
.ph-raise { border: 0; cursor: pointer; }
.ph-raised { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--green); }
.ph-grid button { border: 0; cursor: pointer; font: inherit; }
.ph-grid button.on { box-shadow: var(--elev-1), inset 0 0 0 2px var(--primary); }
.ph-sheet { display: grid; gap: 4px; margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--paper); box-shadow: var(--elev-1); font-size: 12.5px; animation: popIn 0.3s var(--ease-spring-soft) both; }
.ph-sheet span { padding: 6px 0; border-top: 1px solid var(--hair-soft); color: var(--ink-soft); font-weight: 600; }
button.m-log { width: 100%; border: 0; text-align: left; font: inherit; cursor: pointer; transition: box-shadow 0.2s; }
button.m-log:hover { box-shadow: var(--elev-2); }
.m-log-x { grid-column: 1 / -1; margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--tray); font-size: 11.5px; font-weight: 700; color: var(--muted); }
button.m-t { border: 0; text-align: left; font: inherit; cursor: pointer; }

/* The dialog and the notice. */
.xp-toast { position: absolute; left: 50%; bottom: 18px; z-index: 6; max-width: min(520px, calc(100% - 32px)); padding: 11px 16px; border-radius: 14px; background: var(--ink); color: var(--on-primary); font-size: 13.5px; font-weight: 700; box-shadow: var(--elev-4); opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out-expo); pointer-events: none; }
.xp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.xp-modal { position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; padding: 20px; border-radius: 24px; background: rgba(22, 34, 26, 0.28); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn 0.2s var(--ease-out) both; }
.xp-modal-card { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 22px; border-radius: 20px; background: var(--paper); box-shadow: var(--elev-5); animation: popIn 0.35s var(--ease-spring-soft) both; }
.xp-modal-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 10px; display: grid; place-items: center; background: var(--tray); color: var(--muted); cursor: pointer; }
.xp-modal-k { font-size: 12px; font-weight: 800; color: var(--primary-deep); }
.xp-modal-card h4 { margin: 4px 36px 12px 0; font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.xp-modal-s { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.xp-modal-b { display: flex; gap: 8px; margin-top: 16px; }
.xp-modal-b .a-btn { height: 36px; padding: 0 14px; font-size: 13px; }
.xp-pbar { height: 8px; border-radius: 4px; background: var(--tray); overflow: hidden; }
.xp-pbar i { display: block; width: 0; height: 100%; border-radius: 4px; background: var(--primary-grad); transition: width 1.2s var(--ease-out); }
.xp-form { display: grid; gap: 10px; }
.xp-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.xp-form input, .xp-form select, .xp-form textarea { padding: 9px 11px; border-radius: 10px; border: 1px solid var(--hair); background: var(--paper); font: inherit; font-size: 13.5px; color: var(--ink); }
.xp-form input:focus, .xp-form select:focus, .xp-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.xp-tpl-prev { display: grid; gap: 6px; padding: 14px 16px; border-radius: 8px; background: var(--paper); box-shadow: var(--shadow-paper); }
.xp-tpl-prev .l { height: 7px; border-radius: 4px; background: var(--tray); }
.xp-tpl-prev .w40 { width: 40%; } .xp-tpl-prev .w60 { width: 60%; } .xp-tpl-prev .w80 { width: 80%; }

/* Phone rules for the parts defined above this point in the file, so they win over the base rules. */
@media (max-width: 640px) {
  .xp-tools > i { display: none; }
  .xp-tools { gap: 4px; }
  .xp-tools button { width: 34px; height: 34px; }
  .xp-tools select { height: 34px; }
  .xp-mem { grid-template-columns: minmax(0, 1fr) 26px; row-gap: 6px; }
  .xp-mem em { grid-column: 1; grid-row: 2; justify-self: start; }
  .xp-mem-x { grid-column: 2; grid-row: 1 / span 2; }
  .xp-reply { flex-direction: column; align-items: stretch; }
  .xp-reply button { align-self: flex-end; }
  .m-chips button, .xp-filters button { height: 40px; }
}

/* The insights index and article pages. Articles are long reading, so they sit on paper with no scroll effects. */

.ins-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.ins-cats a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--glass-chip); border: var(--glass-edge); box-shadow: var(--elev-1); color: var(--ink-soft); font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.2s var(--ease-out), color 0.2s; }
.ins-cats a:hover { background: var(--paper); color: var(--primary-deep); }
.ins-group { scroll-margin-top: calc(var(--header-h) + 16px); }
.ins-group-h { margin-bottom: 18px; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.ins-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; border-radius: var(--r-card); background: var(--glass-card); border: var(--glass-edge); box-shadow: var(--elev-1); color: var(--ink); text-decoration: none; transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out), background 0.2s; }
.ins-card:hover { transform: translateY(-3px); box-shadow: var(--elev-3); background: var(--glass-strong); color: var(--ink); }
.ins-card h3 { font-size: 20px; line-height: 1.25; }
.ins-card p { color: var(--muted); font-size: 15px; line-height: 1.55; flex: 1; }
.ins-cat { font-size: 12.5px; font-weight: 800; color: var(--primary-deep); }
.ins-meta { display: inline-flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--faint); }
.ins-card:hover .arrow { transform: translateX(3px); }
.ins-meta .arrow { transition: transform 0.3s var(--ease-spring); color: var(--primary-deep); }

.ins-hero { padding-bottom: 8px; }
.ins-hero .ins-h1, .ins-hero .lead { max-width: 900px; }
/* The guide and its rail: a wide reading column, with the contents and the product beside it. */
.ins-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 4vw, 64px); align-items: start; }
.ins-layout .ins-body { max-width: 860px; }
.ins-toc-inline { display: none; }
.ins-rail { align-self: stretch; }
.ins-rail-in { position: sticky; top: 96px; display: grid; gap: 16px; padding-top: 18px; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.ins-rail .ins-toc ol { max-height: 32vh; }
.ins-rail .ins-toc ol { max-height: 40vh; overflow-y: auto; scrollbar-width: thin; }
.ins-prod { padding: 18px; border-radius: var(--r-card); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 14%, var(--paper)), var(--paper) 70%); border: var(--glass-edge); box-shadow: var(--elev-2); }
.ins-prod-k { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 10px; }
.ins-prod ul { list-style: none; display: grid; gap: 4px; margin: 0 -8px; }
.ins-prod li a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding: 9px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background 0.2s; }
.ins-prod li a:hover { background: rgba(255, 255, 255, 0.8); }
.ins-prod-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-grad); color: var(--on-primary); }
.ins-prod b { display: block; font-size: 14.5px; line-height: 1.3; }
.ins-prod small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.ins-prod-demo { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 6px 0 0; font-size: 13.5px; font-weight: 800; color: var(--primary-deep); text-decoration: none; }
.ins-prod-demo:hover { text-decoration: underline; text-underline-offset: 3px; }
.ins-prod-cta { width: 100%; margin-top: 14px; justify-content: center; }
/* The "how Olilo helps" note set into the guide. */
.ins-help { display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin: 30px 0 6px; padding: 18px 20px; border-radius: var(--r-card); background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, var(--paper)), var(--paper) 80%); border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); box-shadow: var(--elev-1); }
.ins-help-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-grad); color: var(--on-primary); }
.ins-help p { margin: 0; }
.ins-help-k { font-size: 12.5px; font-weight: 800; color: var(--primary-deep); }
.ins-help-t { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin-top: 2px !important; }
.ins-help-t + p { margin-top: 4px !important; font-size: 15.5px; color: var(--ink-soft); }
.ins-help-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 10px !important; }
.ins-help-links a { display: inline-flex; align-items: center; min-height: 40px; gap: 5px; font-size: 14.5px; font-weight: 800; color: var(--primary-deep); text-decoration: none; }
.ins-help-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ins-h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; }
.ins-hero .lead { font-size: 19px; }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 14px; font-weight: 700; color: var(--faint); }
.crumbs a { display: inline-block; padding: 10px 0; color: var(--primary-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.ins-byline time, .ins-rt { white-space: nowrap; }
.ins-byline { margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--faint); }

.ins-body { padding-top: 18px; padding-bottom: clamp(36px, 5vw, 64px); font-size: 18px; line-height: 1.72; color: var(--ink-soft); }
.ins-body > * + * { margin-top: 18px; }
.ins-body > .ins-help { margin-top: 30px; }
.ins-body h2 { margin-top: 44px; font-size: clamp(26px, 2.8vw, 32px); line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 16px); }
.ins-body h3 { margin-top: 30px; font-size: 21px; line-height: 1.3; scroll-margin-top: calc(var(--header-h) + 16px); }
.ins-body h2 + *, .ins-body h3 + * { margin-top: 12px; }
.ins-body ul, .ins-body ol { padding-left: 22px; display: grid; gap: 6px; }
.ins-body li::marker { color: var(--primary); font-weight: 800; }
.ins-body p a, .ins-body li a, .ins-body td a { color: var(--primary-deep); font-weight: 700; text-underline-offset: 3px; }
.ins-body strong { color: var(--ink); }
.ins-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-row); background: var(--tray); border: 1px solid var(--hair); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.ins-note .ic { flex: none; margin-top: 2px; color: var(--primary-deep); }
.ins-toc { padding: 16px 20px; border-radius: var(--r-row); background: var(--glass-card); border: var(--glass-edge); box-shadow: var(--elev-1); }
.ins-toc p { font-size: 13px; font-weight: 800; color: var(--faint); margin-bottom: 8px; }
.ins-toc ol { gap: 0; font-size: 15.5px; line-height: 1.45; }
.ins-toc a { display: block; padding: 5px 0; color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.ins-toc a:hover { color: var(--primary-deep); text-decoration: underline; }
.callout { padding: 16px 20px; border-radius: var(--r-row); background: var(--primary-wash); border-left: 3px solid var(--primary); color: var(--ink); }
.table-wrap { overflow-x: auto; border-radius: var(--r-row); border: 1px solid var(--hair); background: var(--paper); box-shadow: var(--elev-1); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
.table-wrap th, .table-wrap td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.table-wrap thead th { background: var(--tray); font-size: 13.5px; font-weight: 800; color: var(--faint); }
.table-wrap tbody th { font-weight: 700; color: var(--ink); }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }
.ins-body .sources { margin-top: 30px; }
.ins-cta { margin-top: 36px; padding: 26px; border-radius: var(--r-card); background: var(--glass-strong); border: var(--glass-edge); box-shadow: var(--elev-2); }
.ins-cta-h { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.ins-cta p + p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.ins-cta .btn-row { margin-top: 18px; }

/* Guides linked from the product, use case, why and trust pages. */
.guides { padding: 24px 26px; border-radius: var(--r-card); background: var(--glass-card); border: var(--glass-edge); box-shadow: var(--elev-1); }
.guides ul { list-style: none; margin: 14px -12px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 6px 18px; }
.guides a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-row); color: var(--ink-soft); font-weight: 700; font-size: 15.5px; line-height: 1.35; text-decoration: none; transition: background 0.2s var(--ease-out), color 0.2s; }
.guides a:hover { background: var(--primary-wash); color: var(--primary-deep); }
.guides a .ic:first-child { flex: none; color: var(--primary-deep); }
.guides a span { flex: 1; text-wrap: balance; }
.guides a .arrow { flex: none; opacity: 0.6; transition: transform 0.3s var(--ease-spring); }
.guides a:hover .arrow { transform: translateX(3px); opacity: 1; }
.guide-link { display: inline-flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 15px; color: var(--primary-deep); text-decoration: none; }
.guide-link .ic { margin-top: 3px; }
.guide-link:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .ins-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ins-toc-inline { display: block; }
  .ins-rail .ins-toc { display: none; }
  .ins-rail-in { position: static; max-height: none; overflow: visible; padding: 0 0 clamp(28px, 4vw, 48px); }
  /* The product card follows the guide in one column, so the closing box would ask the same thing twice. */
  .ins-cta { display: none; }
  .ins-toc a { padding: 9px 0; }
  .ins-toc ol { padding-left: 28px; }
  .ins-body .ins-toc a { color: var(--ink-soft); }
  /* Under its own section heading a card does not need to name the section again. */
  .ins-group .ins-cat { display: none; }
}
@media (max-width: 640px) {
  .guides { padding: 22px; }
  .ins-body { font-size: 17px; }
  .ins-help { grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; }
  .ins-help-ic { width: 36px; height: 36px; border-radius: 12px; }
  .ins-prod { padding: 20px; }
  .ins-cats { gap: 6px; }
  .ins-cats a { padding: 7px 12px; font-size: 13.5px; }
  /* Three-column tables become a card per row, each cell under its column's name. */
  .table-wrap table.stack, .table-wrap table.stack tbody, .table-wrap table.stack tr, .table-wrap table.stack tr > * { display: block; width: 100%; }
  .table-wrap table.stack thead { display: none; }
  .table-wrap table.stack tr { padding: 14px 16px; border-bottom: 1px solid var(--hair); }
  .table-wrap table.stack tbody tr:last-child { border-bottom: 0; }
  .table-wrap table.stack tr > * { padding: 0; border: 0; }
  .table-wrap table.stack tr > * + * { margin-top: 8px; }
  .table-wrap table.stack td::before { content: attr(data-col); display: block; font-size: 12.5px; font-weight: 800; color: var(--faint); }
}
