    .grain-warm {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.14  0 0 0 0 0.14  0 0 0 0 0.14  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    }
    .grain-dark {
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    }

    .dotted-grid {
      background-color: #F2F1EF;
      background-image: radial-gradient(circle, #D8D7D4 1px, transparent 1px);
      background-size: 18px 18px;
    }

    .lum {
      box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 30px 80px -40px rgba(36,36,36,0.18),
        0 4px 16px -8px rgba(36,36,36,0.06);
    }

    @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    .rise { animation: rise 900ms cubic-bezier(.2,.7,.2,1) both; }
    .rise-1 { animation-delay: 60ms; }
    .rise-2 { animation-delay: 160ms; }
    .rise-3 { animation-delay: 260ms; }
    .rise-4 { animation-delay: 360ms; }

    .ico-400 { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

    /* ---- Mock polish ---- */
    /* Skeleton sheen — same recipe as platform.css .sk */
    .sk-anim { position: relative; overflow: hidden; }
    .sk-anim::after {
      content: '';
      position: absolute;
      inset: 0;
      transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
      animation: sk-sheen 3.2s ease-in-out infinite;
    }
    @keyframes sk-sheen { 55%, 100% { transform: translateX(100%); } }

    /* Gentle pointer tilt on the product mock (JS drives the transform) */
    #product-mock-stage { perspective: 1600px; }
    #product-mock { transform-style: preserve-3d; will-change: transform; }

    /* Prompt input lights up with the brand ring while Ida types */
    #mockup-input-card { transition: box-shadow 280ms ease; }
    #mockup-input-card.is-typing {
      box-shadow:
        0 0 0 1px rgba(0,87,255,0.30),
        0 0 0 4px rgba(0,87,255,0.07),
        0 2px 10px -6px rgba(36,36,36,0.08) !important;
    }

    /* Bento cards lift on hover */
    .bento-card {
      transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
    }
    @media (hover: hover) and (pointer: fine) {
      .bento-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 56px -26px rgba(27,25,22,0.30);
      }
    }
    @media (prefers-reduced-motion: reduce), (max-width: 768px) {
      .sk-anim::after { animation: none; transform: translateX(-100%); }
      .bento-card, .bento-card:hover { transform: none; transition: none; }
    }

    /* Override shared nav-scrolled with cream tint to match warm content blocks */
    .nav-scrolled { background: rgba(248,248,247,0.78); }
    /* Phones have no backdrop blur (mobile.css) — near-opaque so text can't bleed through */
    @media (max-width: 767.98px) {
      .nav-scrolled { background: rgba(248,248,247,0.96); }
    }

    /* Hero state (default): white logo, white nav links, white CTA pill.
       Scoped to the top bar only — the mobile menu panel keeps its own dark-on-light styling. */
    header#nav img { filter: brightness(0) invert(1); transition: filter 300ms; }
    header#nav > div:first-child nav a,
    header#nav > div:first-child > div > a:not([href="/learn-more"]) {
      color: #fff;
      transition: color 200ms, background-color 200ms;
    }
    header#nav > div:first-child nav a:hover,
    header#nav > div:first-child > div > a:not([href="/learn-more"]):hover {
      color: #fff;
      background-color: rgba(255,255,255,0.14);
    }
    /* Snap both bg and text together on scroll — transitioning them independently
       produces a mid-state where cream text lands on a still-light pill (or dark
       text on a still-dark pill), both of which look broken. Hover keeps a transition. */
    header#nav a[href="/learn-more"] { background: #fff !important; color: #242424 !important; }
    header#nav a[href="/learn-more"]:hover { background: rgba(255,255,255,0.92) !important; transition: background-color 160ms; }

    /* Mobile menu toggle inherits the hero/scrolled color treatment */
    header#nav #nav-mobile-toggle { color: #fff; }
    header#nav #nav-mobile-toggle:hover { background-color: rgba(255,255,255,0.14); }
    header#nav.nav-scrolled #nav-mobile-toggle { color: #3F3D3A; }
    header#nav.nav-scrolled #nav-mobile-toggle:hover { background-color: rgba(36,36,36,0.06); color: #242424; }

    /* Scrolled: dark logo, dark nav links, dark CTA pill — also scoped to the top bar. */
    header#nav.nav-scrolled img { filter: none; }
    header#nav.nav-scrolled > div:first-child nav a,
    header#nav.nav-scrolled > div:first-child > div > a:not([href="/learn-more"]) { color: #3F3D3A; }
    header#nav.nav-scrolled > div:first-child nav a:hover,
    header#nav.nav-scrolled > div:first-child > div > a:not([href="/learn-more"]):hover {
      color: #242424;
      background-color: rgba(36, 36, 36, 0.06);
    }
    header#nav.nav-scrolled a[href="/learn-more"] { background: #0000EE !important; color: #FFFFFF !important; }
    header#nav.nav-scrolled a[href="/learn-more"]:hover { background: #0000C4 !important; transition: background-color 160ms; }

    @keyframes cursor-blink {
      0%, 49% { opacity: 1; }
      50%, 100% { opacity: 0; }
    }
    .cursor-blink { animation: cursor-blink 0.85s steps(2) infinite; }

    @keyframes submit-click {
      0%, 100% { transform: scale(1); }
      45% { transform: scale(0.86); }
    }
    .submit-clicking { animation: submit-click 240ms ease-out; }

    /* Hero banker ↔ Identifee chat: continuous stream — new at bottom pushes older up; mask fades top */
    #hero-ida-chat {
      -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 14%, rgba(0,0,0,1) 32%);
              mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55) 14%, rgba(0,0,0,1) 32%);
    }

    /* Each message starts collapsed (zero space) so its growth pushes the rest of the stack upward */
    .chat-msg {
      max-height: 0;
      opacity: 0;
      margin-top: 0;
      overflow: hidden;
      transform: translateY(8px);
      will-change: max-height, opacity, transform, margin-top;
      transition:
        max-height 700ms cubic-bezier(.22,.61,.36,1),
        margin-top 700ms cubic-bezier(.22,.61,.36,1),
        opacity 500ms ease-out,
        transform 600ms cubic-bezier(.22,.61,.36,1);
    }
    .chat-msg.is-visible {
      max-height: 200px;
      opacity: 1;
      margin-top: 12px;
      transform: translateY(0);
    }
    /* Exit: opacity-only fade — height stays during fade so the stack scrolls up
       cleanly as the new bubble grows in at the bottom. JS removes after fade. */
    .chat-msg.is-fading {
      opacity: 0;
    }

    /* Typing indicator: dots and final text are grid-stacked in the same cell,
       so the bubble enters at its final height and we just crossfade the two. */
    .chat-body { display: grid; }
    .chat-body > * {
      grid-area: 1 / 1;
      transition: opacity 280ms ease-out;
    }
    .chat-body .chat-text { opacity: 0; }
    .chat-body.is-typed .typing-dots { opacity: 0; }
    .chat-body.is-typed .chat-text  { opacity: 1; }
    .typing-dots {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      align-self: center;
      height: 1.25rem;
    }
    .typing-dots > span {
      width: 5px; height: 5px;
      border-radius: 9999px;
      background: rgba(255,255,255,0.75);
      animation: typing-bounce 1.1s ease-in-out infinite;
    }
    .typing-dots > span:nth-child(2) { animation-delay: .15s; }
    .typing-dots > span:nth-child(3) { animation-delay: .30s; }
    @keyframes typing-bounce {
      0%, 80%, 100% { transform: translateY(0);   opacity: .45; }
      40%           { transform: translateY(-3px); opacity: 1;   }
    }
    /* BI chart end-marker pulse — radiates outward from the latest data point */
    @keyframes bi-pulse {
      0%   { transform: scale(1);   opacity: 0.55; }
      70%  { transform: scale(3.2); opacity: 0;    }
      100% { transform: scale(3.2); opacity: 0;    }
    }
    .bi-pulse {
      transform-box: fill-box;
      transform-origin: center;
      animation: bi-pulse 1.8s cubic-bezier(.22,.61,.36,1) infinite;
    }

    /* Product mockup: turnkey artifact reveals (chart / report / trend) */
    .artifact { display: none; }
    .artifact.is-mounted { display: flex; flex-direction: column; height: 100%; }
    .bar-fill { height: 0%; transition: height 900ms cubic-bezier(.22,1,.36,1); }
    .artifact.is-revealing .bar-fill { height: var(--bar-h, 50%); }
    .report-row {
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 360ms ease-out, transform 360ms ease-out;
    }
    .artifact.is-revealing .report-row { opacity: 1; transform: none; }
    .artifact.is-revealing .report-row:nth-child(1) { transition-delay: 60ms; }
    .artifact.is-revealing .report-row:nth-child(2) { transition-delay: 200ms; }
    .artifact.is-revealing .report-row:nth-child(3) { transition-delay: 340ms; }
    .artifact.is-revealing .report-row:nth-child(4) { transition-delay: 480ms; }
    .artifact.is-revealing .report-row:nth-child(5) { transition-delay: 620ms; }
    .spark-path {
      stroke-dasharray: 620;
      stroke-dashoffset: 620;
      transition: stroke-dashoffset 1400ms cubic-bezier(.22,1,.36,1);
    }
    .artifact.is-revealing .spark-path { stroke-dashoffset: 0; }
    /* Area fill fades via its own SVG gradient; reveal just ramps it in */
    .spark-area { opacity: 0; transition: opacity 600ms ease-out 600ms; }
    .artifact.is-revealing .spark-area { opacity: 1; }
    .spark-dot { opacity: 0; transition: opacity 240ms ease-out 1100ms; }
    .artifact.is-revealing .spark-dot { opacity: 1; }
    /* Mockup cycle indicator (Instagram-stories-style segmented bars) */
    .cycle-dot {
      position: relative;
      display: block;
      width: 24px;
      height: 3px;
      border-radius: 9999px;
      background: rgba(36, 36, 36, 0.14);
      overflow: hidden;
      transition: width 320ms ease;
    }
    .cycle-dot::after {
      content: '';
      position: absolute;
      inset: 0;
      width: 0;
      background: #0000EE;
      border-radius: 9999px;
    }
    .cycle-dot.is-played::after {
      width: 100%;
    }
    .cycle-dot.is-active {
      width: 36px;
    }
    .cycle-dot.is-active::after {
      animation: cycle-progress 9.2s linear forwards;
    }
    @keyframes cycle-progress {
      from { width: 0; }
      to   { width: 100%; }
    }

    /* Suggested follow-up chips under the agent reply — staggered fade-in */
    .thread-chip {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 5px 10px 5px 8px;
      border-radius: 9999px;
      background: #fff;
      box-shadow: inset 0 0 0 1px #E4E4E2;
      font-size: 11px;
      font-weight: 500;
      color: #6B7280;
      line-height: 1;
      opacity: 0;
      transform: translateY(4px);
      transition: opacity 320ms ease-out, transform 320ms ease-out;
    }
    .thread-chip .material-symbols-rounded { font-size: 13px; }
    #mockup-thread-chips.is-shown .thread-chip { opacity: 1; transform: none; }
    #mockup-thread-chips.is-shown .thread-chip:nth-child(1) { transition-delay: 200ms; }
    #mockup-thread-chips.is-shown .thread-chip:nth-child(2) { transition-delay: 340ms; }

    /* Thread typing dots (dark variant for light backgrounds) */
    .thread-dot {
      width: 4px; height: 4px;
      border-radius: 9999px;
      background: #9CA3AF;
      animation: typing-bounce 1.1s ease-in-out infinite;
    }
    .thread-dot:nth-child(2) { animation-delay: .15s; }
    .thread-dot:nth-child(3) { animation-delay: .30s; }

    /* Generative-AI document preview */
    .doc-page-front {
      opacity: 0;
      transform: translateY(8px) scale(0.985);
      transition: opacity 380ms ease-out, transform 520ms cubic-bezier(.22,1,.36,1);
    }
    .doc-page-back {
      opacity: 0;
      transform: translateY(6px) scale(0.985);
      transition: opacity 380ms ease-out 120ms, transform 520ms cubic-bezier(.22,1,.36,1) 120ms;
    }
    .artifact.is-revealing .doc-page-front { opacity: 1; transform: none; }
    .artifact.is-revealing .doc-page-back  { opacity: 1; transform: none; }
    .doc-line {
      opacity: 0;
      transform: translateY(3px);
      transition: opacity 320ms ease-out, transform 320ms ease-out;
    }
    .artifact.is-revealing .doc-line { opacity: 1; transform: none; }
    .status-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 10px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #6b6660;
      transition: opacity 320ms ease;
    }
    .status-pill .status-dot {
      width: 6px; height: 6px; border-radius: 9999px;
      background: #0000EE;
      animation: status-pulse 1.1s ease-in-out infinite;
    }
    @keyframes status-pulse {
      0%, 100% { opacity: .35; }
      50%      { opacity: 1; }
    }

    /* Global heading sizes */
    h3 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; }
    h4 { font-size: clamp(18px, 2vw, 22px); line-height: 1.2; }

    /* Integrations logo marquee */
    .logo-marquee {
      overflow: hidden;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
              mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    }
    .logo-marquee-track {
      display: flex;
      gap: 16px;
      width: max-content;
      animation: logo-marquee 50s linear infinite;
    }
    @keyframes logo-marquee {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }
    .logo-marquee:hover .logo-marquee-track { animation-play-state: paused; }
    @media (prefers-reduced-motion: reduce) {
      .logo-marquee-track { animation: none; }
    }
    .logo-card {
      width: 300px;
      height: 170px;
      flex-shrink: 0;
      display: grid;
      place-items: center;
      border-radius: 20px;
      background: #ffffff;
      border: 1px solid rgba(15,12,10,0.06);
    }
    .logo-card img {
      max-height: 100px;
      max-width: 86%;
      width: auto;
      height: auto;
      object-fit: contain;
      object-position: center;
      /* Invisible on logos with transparent corners; softens any full-bleed colored square */
      border-radius: 20px;
    }
    /* For logos whose source PNG has built-in whitespace, scale the bitmap up */
    .logo-card.tight   img { transform: scale(1.45); transform-origin: center; }
    .logo-card.tighter img { transform: scale(2.2);  transform-origin: center; }
    @media (max-width: 640px) {
      .logo-card { width: 180px; height: 112px; border-radius: 16px; }
      .logo-card img { max-height: 64px; }
      .logo-marquee-track { gap: 12px; }
    }

    /* Prevent any rare horizontal overflow from absolutely-positioned decorative layers */
    html, body { overflow-x: hidden; }

    /* Hide scrollbar on horizontally-scrolling tab strips for a cleaner mobile look */
    .scrollbar-none::-webkit-scrollbar { display: none; }
    .scrollbar-none { scrollbar-width: none; -ms-overflow-style: none; }

    /* Ask Ida pill — same brand mark used on platform.html, kept in sync */
    .ask-ida {
      position: relative;
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px 6px 10px;
      background: #fff;
      border-radius: 999px;
      font-size: 12px; font-weight: 600;
      line-height: 1;
    }
    .ask-ida::before {
      content: '';
      position: absolute; inset: 0;
      border-radius: 999px;
      padding: 1.4px;
      background: #0000EE;
      -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
              mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
      -webkit-mask-composite: xor;
              mask-composite: exclude;
      pointer-events: none;
    }
    .ask-ida .ai-label {
      color: #0000EE;
    }
    .ask-ida .ai-sparkle {
      width: 12px; height: 12px;
      background: #0000EE;
      -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%);
              mask: radial-gradient(circle, transparent 38%, #000 40%);
      border-radius: 50%;
    }

    /* Customer logo grid — scale ~15% smaller without re-tuning each logo */
    #trust-logos {
      grid-auto-rows: 60px;
      row-gap: 1.25rem;
    }
    /* Wide wordmarks must shrink to their grid cell — at md the 5-column
       cells (~120px) are narrower than the widest logo, which otherwise
       pokes past the viewport edge. */
    #trust-logos a { max-width: 100%; }
    #trust-logos a img { max-width: 100%; object-fit: contain; }
    @media (min-width: 640px) {
      #trust-logos { grid-auto-rows: 74px; row-gap: 1.5rem; }
    }
    @media (min-width: 1024px) {
      #trust-logos { grid-auto-rows: 84px; row-gap: 2rem; }
    }
    #trust-logos a img { transform: scale(0.85); transform-origin: center; }
