/* Landing page extras: scene chips under the hero phone, map and bot-file bubbles,
   the stacking feature cards and the departments coming-soon page.
   The oil material comes from oil.css. The stack copies the Apollo Chat site's modules stack
   (sites/apollochat-website: .modules-stack / .module-card in main.css): sticky cards with the
   gap on the container, plus a runway after the last card so it stays pinned. */

/* ---------- hero phone: pick a conversation ---------- */
.stage { grid-template-rows: auto auto; gap: 26px; }
.scenes { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.scenes button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px;
                 font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.scenes button:hover { border-color: #86e3a8; }
.scenes button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.scenes button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.scenes button i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 999px; padding: 1px 6px; margin-left: 4px; }
.scenes button.on i { color: #fff; background: rgba(255, 255, 255, .18); }

/* a file Apollo sends, and a location pin */
.msg-b.bot .doc-icon::before { border-right-color: #fff; }
.msg-b.map { padding: 4px 4px 5px; width: 74%; }
.msg-b.map > b, .msg-b.map > small { display: block; padding: 0 6px; }
.msg-b.map > b { font-size: 12.5px; margin-top: 6px; }
.msg-b.map > small { font-size: 11px; color: #667781; }
.map-thumb { position: relative; height: 92px; border-radius: 7px; overflow: hidden; display: grid; place-items: center;
             background:
               linear-gradient(90deg, transparent 46%, #fff 46% 52%, transparent 52%),
               linear-gradient(0deg, transparent 58%, #fff 58% 63%, transparent 63%),
               linear-gradient(32deg, transparent 70%, #fdf3c4 70% 74%, transparent 74%),
               radial-gradient(circle at 22% 28%, #c9e8c4 0 16%, transparent 17%),
               radial-gradient(circle at 80% 76%, #c9e8c4 0 14%, transparent 15%),
               #e8eef0; }
.map-thumb .pin { width: 30px; height: 30px; fill: #e8453c; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); margin-top: -10px; }

/* ---------- what it does: stacking oil cards ---------- */
.uses { background: var(--panel); padding: 80px 0 40px; }
.uses .lead { margin-bottom: 48px; }
.uses-stack { display: flex; flex-direction: column; gap: 40px; }
.uses-stack::after { content: ""; height: clamp(120px, 22vh, 260px); flex: none; }
.use-card { --dim: 0; position: sticky; top: 104px; display: grid; grid-template-columns: 1fr 1.1fr; height: 500px; overflow: hidden;
            background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 24px 48px -32px rgba(33, 36, 44, .35);
            transform-origin: top center; will-change: transform; }
.use-card:nth-child(2) { top: 116px; }
.use-card:nth-child(3) { top: 128px; }
.use-card:nth-child(4) { top: 140px; }
.use-card:nth-child(5) { top: 152px; }
.use-card:nth-child(6) { top: 164px; }
.use-card:nth-child(7) { top: 176px; }
/* the card going under darkens a little (site.js sets --dim as the next one slides over) */
.use-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: #0b0d12; opacity: calc(var(--dim) * .28); }
.use-card .copy { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px; min-width: 0; }
.u-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.u-new { font-style: normal; font-size: 11px; letter-spacing: .04em; color: #fff; background: var(--accent); border-radius: 999px; padding: 2px 8px; }
.use-card h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.use-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 34em; }
.u-try { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.u-try li { font-size: 13.5px; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.u-try .tag-soon { margin-left: 4px; }
.use-card .panel { min-width: 0; display: grid; place-items: center; padding: 36px; }

/* the example conversation floating on the oil */
.u-chat { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 8px;
          font-family: -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
.u-chat .b { margin: 0; max-width: 86%; padding: 8px 11px; border-radius: 12px; font-size: 14px; line-height: 1.42; color: #111b21;
             box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); }
.u-chat .b.me { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 4px; }
.u-chat .b.bot { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.u-chat .b b { font-weight: 700; }
/* site.js adds .anim to the stack, then .live to each card as it scrolls in; without JS everything shows */
.uses-stack.anim .u-chat .b { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s cubic-bezier(.2, .8, .2, 1); }
.uses-stack.anim .live .u-chat .b { opacity: 1; transform: none; }
.uses-stack.anim .live .u-chat .b:nth-child(2) { transition-delay: .35s; }
.uses-stack.anim .live .u-chat .b:nth-child(3) { transition-delay: .7s; }
.uses-stack.anim .live .u-chat .b:nth-child(4) { transition-delay: 1.05s; }

@media (max-width: 960px) {
  .use-card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: auto; }
  .use-card .copy { padding: 28px 26px 22px; gap: 12px; }
  .use-card .panel { padding: 22px 20px; min-height: 210px; }
}
@media (max-width: 640px) {
  .uses { padding: 56px 0 24px; }
  .uses .lead { margin-bottom: 32px; }
  .uses-stack { gap: 24px; }
  .use-card { top: 76px; border-radius: 16px; }
  .use-card:nth-child(2) { top: 82px; }
  .use-card:nth-child(3) { top: 88px; }
  .use-card:nth-child(4) { top: 94px; }
  .use-card:nth-child(5) { top: 100px; }
  .use-card:nth-child(6) { top: 106px; }
  .use-card:nth-child(7) { top: 112px; }
  .use-card .copy { padding: 22px 20px 18px; }
  .use-card h3 { font-size: 22px; }
  .use-card p { font-size: 15px; }
  .u-try { display: none; }
  .use-card .panel { min-height: 0; padding: 18px 16px; }
  .u-chat .b { font-size: 13px; }
  .u-chat .b:nth-child(n+4) { display: none; }
  .scenes { gap: 6px; padding: 0 4px; }
  .scenes button { font-size: 13px; padding: 6px 12px; }
}
/* short screens: a sticky card taller than the screen would hide its own bottom, so let them scroll */
@media (max-height: 600px) {
  .use-card { position: relative; top: auto !important; }
  .uses-stack::after { display: none; }
}

/* ---------- departments / SRC: coming soon ---------- */
.soon { padding: 48px 0 72px; }
.soon-card { border-radius: 24px; color: #fff; padding: 64px 56px; min-height: 480px; display: flex; flex-direction: column; justify-content: center;
             --scrim: linear-gradient(100deg, rgba(0, 0, 0, .45) 0%, rgba(0, 0, 0, .14) 60%, transparent 85%); }
.soon-tag { margin: 0 0 14px; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
            background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; padding: 4px 12px;
            -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.soon-card h1 { margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; max-width: 14em; text-wrap: balance; }
.soon-lead { margin: 0 0 22px; font-size: 18px; color: rgba(255, 255, 255, .88); max-width: 34em; }
.soon-points { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.soon-points li { position: relative; padding-left: 26px; color: rgba(255, 255, 255, .9); }
.soon-points li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.soon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.soon-btn { background: #fff; color: var(--ink); }
.soon-btn:hover { background: #eef1f6; }
.soon-back { color: #fff; font-weight: 600; }
@media (max-width: 640px) {
  .soon { padding: 20px 0 48px; }
  .soon-card { padding: 40px 22px; min-height: 0; border-radius: 18px; }
  .soon-lead { font-size: 16px; }
}
