    /* Override shared nav-scrolled with cream tint to match warm row cards */
    .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 ---- */
    @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; }

    /* ---- Section row card (the alternating cream blocks Sierra uses) ---- */
    .row-card {
      background: #F2F1EE;
      border-radius: 22px;
      padding: 36px 24px;
    }
    @media (min-width: 768px) {
      .row-card { border-radius: 28px; padding: 56px 48px; }
    }
    @media (min-width: 1024px) {
      .row-card { padding: 72px 64px; }
    }
    .row-card.row-white { background: #FFFFFF; border: 1px solid #ECECE9; }

    /* Compact variant for the bottom 2-col cards (Prospects + Learn) */
    .row-card.row-sm { padding: 28px 22px; }
    @media (min-width: 768px) { .row-card.row-sm { padding: 36px 28px; } }
    @media (min-width: 1024px) { .row-card.row-sm { padding: 44px 36px; } }

    /* ---- Mock UI visual frame ---- */
    .ui-frame {
      position: relative;
      z-index: 1;
      border-radius: 18px;
      background: #FFFFFF;
      box-shadow:
        0 0 0 1px rgba(36,36,36,0.05),
        0 30px 60px -24px rgba(36,36,36,0.22),
        0 12px 24px -12px rgba(36,36,36,0.14);
      border: 1px solid rgba(36,36,36,0.05);
      overflow: hidden;
    }
    @media (min-width: 768px) {
      .ui-frame { border-radius: 22px; }
    }
    /* Uniform height across all main module frames; body flexes to fill */
    .module-mock { display: flex; flex-direction: column; min-height: 380px; }
    .module-mock > *:nth-child(2) { flex: 1; }
    /* Same trick for the compact bottom-row frames (Prospects + Learn) */
    .compact-mock {
      display: flex;
      flex-direction: column;
      width: 100%;
      max-width: 400px;
      height: 320px;
    }
    .compact-mock > *:nth-child(2) { flex: 1; overflow: hidden; }

    /* Quiet stage backdrop — frame is centered; Ask Ida lives inside the frame header */
    .mock-bg {
      position: relative;
      isolation: isolate;
      border-radius: 22px;
      padding: 28px;
      display: flex; align-items: center; justify-content: center;
      min-height: 320px;
      overflow: hidden;
      background: #ECEBE7;
    }
    .mock-bg::before {
      content: '';
      position: absolute; inset: 0;
      background-image: radial-gradient(circle, rgba(36,36,36,0.10) 1px, transparent 1px);
      background-size: 18px 18px;
      -webkit-mask-image: radial-gradient(ellipse 80% 70% at center, #000 40%, transparent 88%);
              mask-image: radial-gradient(ellipse 80% 70% at center, #000 40%, transparent 88%);
      z-index: 0;
      pointer-events: none;
    }
    .row-white .mock-bg { background: #F0EFEC; }
    @media (min-width: 768px) {
      .mock-bg { border-radius: 26px; padding: 44px; min-height: 440px; }
    }
    /* md band (768–1023): the two-column feature rows squeeze each mock frame
       to ~290px; the 44px stage padding left 204px frames whose interiors
       truncated to single letters. Slimmer padding buys the frame ~250px,
       and tighter row chrome keeps the checklist titles readable. */
    @media (min-width: 768px) and (max-width: 1023.98px) {
      .mock-bg { padding: 20px; }
    }
    @media (min-width: 1024px) {
      .mock-bg { min-height: 480px; }
    }
    .mock-bg .ui-frame { position: relative; z-index: 1; }

    /* ---- Ask Ida — pill lives inside the frame header; menu drops down on scroll ----
       margin-left:auto keeps the pill on the RIGHT when the flex-wrap header breaks to
       two lines (narrow md columns) — otherwise the right-anchored menu extends 232px
       leftward from a left-wrapped pill and gets clipped at the frame edge. */
    .ai-demo { position: relative; display: inline-flex; flex: none; margin-left: auto; }

    .ask-ida {
      position: relative;
      display: inline-flex; align-items: center; gap: 6px;
      padding: 5px 11px 5px 9px;
      background: #fff;
      border-radius: 999px;
      font-size: 11.5px; font-weight: 600;
      line-height: 1;
      white-space: nowrap;
      cursor: pointer;
    }
    .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%;
    }

    /* Menus size against their mock frame: md two-col rows squeeze frames to
       ~200px, narrower than the 232px design width. Cap at 232px; older
       browsers drop the min() line and keep the fixed width. */
    :is(.module-mock, .compact-mock) { container-type: inline-size; }
    .ai-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      z-index: 5;
      width: 232px;
      width: min(232px, 100cqw - 24px);
      background: #fff;
      border: 1px solid rgba(36,36,36,0.06);
      border-radius: 14px;
      padding: 5px;
      box-shadow:
        0 1px 0 rgba(255,255,255,0.95) inset,
        0 24px 48px -16px rgba(36,36,36,0.22),
        0 8px 18px -8px rgba(36,36,36,0.14);
      opacity: 0;
      transform: translateY(-6px) scale(0.96);
      transform-origin: top right;
      pointer-events: none;
    }
    .ai-menu.menu-left { right: auto; left: 0; transform-origin: top left; }

    .ai-item {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 10px;
      border-radius: 9px;
      background: #EDF4FF;
      transition: background 240ms ease;
    }
    .ai-item + .ai-item { margin-top: 4px; }
    .ai-item .ai-ico {
      width: 28px; height: 28px;
      border-radius: 50%;
      display: grid; place-items: center;
      background: #FFFFFF;
      color: #0000EE;
      border: 1px solid rgba(0,87,255,0.18);
      flex-shrink: 0;
    }
    .ai-item .ai-ico .material-symbols-rounded { font-size: 14px; }
    .ai-item .ai-title { font-size: 11.5px; font-weight: 600; color: #1B1B1F; line-height: 1.25; }
    .ai-item .ai-sub   { font-size: 10px; color: #6B7280; margin-top: 1px; line-height: 1.3; }

    /* Scroll-triggered demo: when section enters viewport, click pill, open menu, highlight item, close. Repeats. */
    :is(.module-mock, .compact-mock).is-active .ai-demo .ai-menu  { animation: aiMenu 5.6s cubic-bezier(.2,.7,.2,1) infinite; }
    :is(.module-mock, .compact-mock).is-active .ai-demo .ask-ida  { animation: aiPill 5.6s cubic-bezier(.2,.7,.2,1) infinite; }
    :is(.module-mock, .compact-mock).is-active .ai-demo .demo-pick { animation: aiItem 5.6s cubic-bezier(.2,.7,.2,1) infinite; }

    @keyframes aiMenu {
      0%, 12%   { opacity: 0; transform: translateY(-6px) scale(0.96); }
      18%, 80%  { opacity: 1; transform: translateY(0) scale(1); }
      88%, 100% { opacity: 0; transform: translateY(-6px) scale(0.96); }
    }
    @keyframes aiPill {
      0%, 7%, 14%, 100% { transform: scale(1); }
      10%               { transform: scale(0.92); }
    }
    @keyframes aiItem {
      0%, 38%, 70%, 100% { background: #EDF4FF; }
      46%, 62%           { background: #D6E7FF; }
    }

    /* Outcome card — bigger, glowy, bouncy result of what Ida just did */
    .demo-outcome {
      position: absolute;
      bottom: 64px;
      left: 50%;
      z-index: 4;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 16px 10px 10px;
      background: #ffffff;
      border: 1px solid rgba(0,87,255,0.16);
      border-radius: 14px;
      box-shadow:
        0 0 0 5px rgba(0,87,255,0.10),
        0 26px 44px -14px rgba(0,87,255,0.32),
        0 8px 16px -6px rgba(36,36,36,0.16);
      opacity: 0;
      pointer-events: none;
      white-space: nowrap;
      transform: translate(-50%, 14px) scale(0.84);
      transform-origin: bottom center;
    }
    .demo-outcome .demo-ico {
      width: 32px; height: 32px;
      border-radius: 50%;
      background: #0000EE;
      color: #fff;
      display: grid; place-items: center;
      flex-shrink: 0;
      box-shadow: 0 4px 10px -3px rgba(0,87,255,0.45);
    }
    .demo-outcome .demo-ico .material-symbols-rounded { font-size: 18px; }
    .demo-outcome .demo-title { font-size: 12.5px; font-weight: 600; color: #1B1B1F; line-height: 1.2; }
    .demo-outcome .demo-sub   { font-size: 10.5px; color: #6B7280; margin-top: 2px; line-height: 1.2; }

    :is(.module-mock, .compact-mock).is-active .demo-outcome {
      animation: aiOutcome 5.6s cubic-bezier(.34,1.56,.64,1) infinite;
    }

    /* Offset second compact card so paired mocks don't cycle in lockstep */
    .compact-mock.is-offset.is-active .ai-demo .ai-menu,
    .compact-mock.is-offset.is-active .ai-demo .ask-ida,
    .compact-mock.is-offset.is-active .ai-demo .demo-pick,
    .compact-mock.is-offset.is-active .demo-outcome {
      animation-delay: -2.8s;
    }
    @keyframes aiOutcome {
      0%, 78%  { opacity: 0; transform: translate(-50%, 14px) scale(0.84); }
      84%      { opacity: 1; transform: translate(-50%, -4px) scale(1.05); }
      90%      { opacity: 1; transform: translate(-50%, 0) scale(1); }
      96%      { opacity: 1; transform: translate(-50%, 0) scale(1); }
      100%     { opacity: 0; transform: translate(-50%, -10px) scale(0.96); }
    }
    @media (prefers-reduced-motion: reduce) {
      :is(.module-mock, .compact-mock).is-active .demo-outcome { animation: none; }
    }

    @media (prefers-reduced-motion: reduce) {
      :is(.module-mock, .compact-mock).is-active .ai-demo .ai-menu,
      :is(.module-mock, .compact-mock).is-active .ai-demo .ask-ida,
      :is(.module-mock, .compact-mock).is-active .ai-demo .demo-pick { animation: none; }
    }

    /* ---- Skeleton bars (60% skeleton / 40% real mockups) ---- */
    /* Uses index's bg-warm/70 (#E4E4E2 @ 0.7) so skeletons render identically on both pages. */
    .sk {
      display: inline-block;
      background: rgba(228,228,226,0.7);
      border-radius: 999px;
      vertical-align: middle;
      position: relative;
      overflow: hidden;
    }
    /* Slow sheen pass keeps the skeleton areas feeling alive without drawing focus */
    .sk::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%); } }
    @media (prefers-reduced-motion: reduce), (max-width: 767.98px) {
      .sk::after { animation: none; transform: translateX(-100%); }
    }
    .sk-dim { background: rgba(228,228,226,0.45); }
    .sk-line    { height: 8px; }
    .sk-line-sm { height: 6px; }
    .sk-pill    { height: 14px; }
    .sk-chip    { height: 16px; border-radius: 4px; }
    .sk-circle  { border-radius: 50%; }
    .sk-bar     { height: 6px; }
    .sk-block   { border-radius: 6px; }

    /* ---- Meet Ida photo with glassy chat overlay ---- */
    .ida-photo {
      position: relative;
      isolation: isolate;
      width: 100%;
      max-width: 460px;
      aspect-ratio: 6 / 5;
      min-height: 380px;
      border-radius: 22px;
      overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(36,36,36,0.05),
        0 30px 60px -24px rgba(36,36,36,0.22),
        0 12px 24px -12px rgba(36,36,36,0.14);
    }
    .ida-photo img {
      position: absolute; inset: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      z-index: 0;
    }
    /* Dark gradient overlay so chat messages stay legible against bright photos */
    .ida-photo::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.35) 55%, rgba(0,0,0,0.65) 100%);
      pointer-events: none;
      z-index: 1;
    }
    /* Meet Ida — looping chat stream overlay on the hero photo */
    .ida-chat {
      position: absolute;
      left: 14px; right: 14px; bottom: 14px;
      height: 78%;
      pointer-events: none;
      z-index: 2;
      -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%);
    }
    .ida-chat-stream {
      position: absolute; inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
    }
    .ida-chat .chat-msg {
      max-width: 88%;
      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);
    }
    .ida-chat .chat-msg.is-visible {
      max-height: 180px;
      opacity: 1;
      margin-top: 8px;
      transform: translateY(0);
    }
    .ida-chat .chat-msg.is-fading { opacity: 0; }
    .ida-chat .chat-body { display: grid; }
    .ida-chat .chat-body > * {
      grid-area: 1 / 1;
      transition: opacity 280ms ease-out;
    }
    .ida-chat .chat-body .chat-text { opacity: 0; }
    .ida-chat .chat-body.is-typed .typing-dots { opacity: 0; }
    .ida-chat .chat-body.is-typed .chat-text { opacity: 1; }
    .ida-chat .typing-dots {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      align-self: center;
      height: 1.1rem;
    }
    .ida-chat .typing-dots > span {
      width: 5px; height: 5px;
      border-radius: 9999px;
      background: rgba(255,255,255,0.78);
      animation: ida-typing-bounce 1.1s ease-in-out infinite;
    }
    .ida-chat .typing-dots > span:nth-child(2) { animation-delay: .15s; }
    .ida-chat .typing-dots > span:nth-child(3) { animation-delay: .30s; }
    @keyframes ida-typing-bounce {
      0%, 80%, 100% { transform: translateY(0); opacity: .45; }
      40%           { transform: translateY(-3px); opacity: 1; }
    }
    /* Chat avatars — fixed 18×18, min-width:0 prevents flex-item intrinsic blow-up */
    .ida-chat .ida-avatar {
      flex: 0 0 18px;
      width: 18px;
      height: 18px;
      min-width: 0;
      min-height: 0;
      box-sizing: border-box;
      display: inline-block;
      overflow: hidden;
    }
    .ida-chat .ida-avatar-bot {
      background: #FFFFFF url('../img/favicon.png') center / cover no-repeat;
      border-radius: 5px;
    }
    .ida-chat .ida-avatar-user {
      background: #10B981;
      border-radius: 9999px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .ida-chat .ida-avatar-user .material-symbols-rounded {
      color: #FFFFFF;
      font-size: 13px;
      line-height: 1;
    }

    /* ---- Ida chat mock ---- */
    .ida-chip {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      background: #fff;
      border: 1px solid rgba(36,36,36,0.08);
      color: #4D4B48;
      font-size: 13px;
    }
    .ida-chip .sparkle {
      width: 14px; height: 14px;
      background:
        conic-gradient(from 0deg, #0000EE, #4D8BFF, #0057FF, #0000EE);
      -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%);
              mask: radial-gradient(circle, transparent 38%, #000 40%);
      border-radius: 50%;
    }

    /* ---- Account row mock ---- */
    .acct-row {
      display: grid;
      grid-template-columns: 22px 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-top: 1px solid #F0EFEC;
      font-size: 13px;
    }
    .acct-row:first-child { border-top: 0; }
    .acct-avatar {
      width: 24px; height: 24px;
      /* Fixed-size chip must not shrink in its flex row (same guard as
         .ai-item .ai-ico) — narrow frames were squashing it into an oval. */
      flex: none;
      border-radius: 6px;
      display: grid; place-items: center;
      color: #fff;
      font-size: 9.5px;
      font-weight: 500;
      letter-spacing: 0;
    }
    .tag {
      display: inline-flex; align-items: center;
      padding: 1px 7px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 500;
      letter-spacing: 0;
    }

    /* ---- Pipeline kanban mock ---- */
    .pipe-col {
      background: #F6F5F2;
      border-radius: 10px;
      padding: 10px;
      min-width: 0;
    }
    .pipe-card {
      background: #fff;
      border: 1px solid #ECECE9;
      border-radius: 8px;
      padding: 10px;
      margin-top: 8px;
      font-size: 11px;
      /* Narrow kanban columns: truncate deal names instead of painting them
         under the neighboring column. */
      overflow: hidden;
    }
    .pipe-card > div:first-child {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* ---- Checklist rows mock ---- */
    .check-row {
      display: grid;
      /* Fluid columns: fixed 56px/50px trailing columns starved the title
         column to a few px inside narrow md frames. */
      grid-template-columns: 14px minmax(0, 1fr) minmax(36px, 56px) auto;
      align-items: center;
      gap: 10px;
      padding: 10px 12px;
      border-top: 1px solid #F0EFEC;
      font-size: 12px;
    }
    /* md band: tighter chrome keeps the title column readable in ~250px frames */
    @media (min-width: 768px) and (max-width: 1023.98px) {
      .check-row { gap: 8px; padding: 10px 8px; }
    }
    .check-row:first-child { border-top: 0; }
    .progress {
      height: 6px;
      background: #EFEFEC;
      border-radius: 999px;
      overflow: hidden;
    }
    .progress > span { display: block; height: 100%; border-radius: 999px; }

    /* ---- Prospect score badge ---- */
    .score-badge {
      display: inline-grid; place-items: center;
      width: 22px; height: 22px;
      border-radius: 6px;
      font-size: 10px; font-weight: 600;
      letter-spacing: 0;
    }
    .score-a { background: #DCFCE7; color: #166534; }
    .score-b { background: #DDE7FF; color: #1D4ED8; }
    .score-c { background: #FFEEDC; color: #B45309; }

    /* ---- Activity row ---- */
    .act-row {
      display: grid;
      grid-template-columns: 22px 1fr auto;
      align-items: center;
      gap: 10px;
      padding: 10px 14px;
      border-top: 1px solid #F0EFEC;
      font-size: 12px;
    }
    .act-row:first-child { border-top: 0; }
    .act-row .ico {
      width: 22px; height: 22px;
      border-radius: 7px;
      display: grid; place-items: center;
      background: #EDF4FF; color: #0000EE;
    }
    .act-row .ico .material-symbols-rounded { font-size: 14px; }

    /* ---- Learn card grid ---- */
    .learn-card {
      background: #fff;
      border: 1px solid #ECECE9;
      border-radius: 12px;
      padding: 12px;
    }
    .learn-card .emoji { font-size: 22px; line-height: 1; }
    .learn-card .l-title {
      font-size: 12px; font-weight: 600;
      color: #1B1B1F; line-height: 1.2;
      margin-top: 8px;
    }
    .learn-card .l-desc {
      font-size: 10px; color: #6B7280;
      line-height: 1.35; margin-top: 4px;
      min-height: 26px;
    }
    .learn-card .l-cta {
      display: block; text-align: center;
      margin-top: 10px;
      padding: 6px 10px;
      background: #1B1F3B;
      color: #fff;
      border-radius: 999px;
      font-size: 10px;
      font-weight: 500;
      /* One line always — a wrapped pill pushed the second card row into the
         fixed-height frame's crop. */
      white-space: nowrap;
    }

    /* ---- Insights chart mock ---- */
    .ins-card {
      background: #fff;
      border: 1px solid #ECECE9;
      border-radius: 14px;
      padding: 18px;
    }
    /* The stat figure tracks the mock frame's width (the frame declares
       container-type above) so '$6.3M' never overflows narrow md frames;
       clamps to the designed 22px everywhere roomy. */
    .ins-card .tnum { font-size: clamp(15px, 9cqw, 22px); }
    @media (min-width: 768px) and (max-width: 1023.98px) {
      .ins-card { padding: 12px; }
    }
    .delta-up   { color: #0F8A56; }
    .delta-down { color: #B23A48; }

