/* Features: a bento grid of small product moments, in the app's own colours and avatars. */
.ft { --ft-line: #e6e7ea; --ft-muted: #626b7b; --ft-muted-2: #8a92a3; }
.ft-head h2 { font-size: clamp(36px, 4vw, 48px); font-weight: 560; letter-spacing: -.035em; line-height: 1.05; }
.ft-head p { margin-top: 14px; max-width: 560px; color: var(--ft-muted); font-size: 18px; line-height: 1.5; }
.ft-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.ft-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--ft-line); border-radius: 14px; }
.ft-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 0%, rgba(18, 75, 206, .07), transparent 70%); pointer-events: none; }
.ft-third { grid-column: span 2; }
.ft-half { grid-column: span 3; }
.ft-tall { grid-row: span 2; }
.ft-vis { position: relative; flex: 1; min-height: 300px; overflow: hidden; }
.ft-vis.is-short { min-height: 190px; }
.ft-copy { position: relative; padding: 0 22px 22px; }
.ft-copy h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ft-copy p { margin-top: 8px; color: var(--ft-muted); font-size: 14.5px; line-height: 1.6; }
.ft-av { display: block; flex: none; width: 30px; height: 30px; border-radius: 50%; }


/* Quick replies */
.ft-qr { position: absolute; top: 24px; left: 50%; width: 270px; padding: 6px; background: #fff; border: 1px solid var(--ft-line); border-radius: 12px; box-shadow: 0 20px 40px -24px rgba(23, 32, 51, .35); transform: translateX(-50%); }
.ft-qr-search { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 9px 10px; border-bottom: 1px solid #f0f1f3; font-size: 13px; }
.ft-qr-search svg { width: 15px; height: 15px; fill: none; stroke: var(--ft-muted-2); stroke-width: 1.8; stroke-linecap: round; }
.ft-qr-search i { width: 1.5px; height: 15px; margin-left: -6px; background: var(--blue); }
.ft-qr-item { padding: 8px 10px; border-radius: 8px; }
.ft-qr-item b { display: block; font-size: 13px; font-weight: 600; }
.ft-qr-item small { display: block; overflow: hidden; color: var(--ft-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ft-qr-item.is-on { background: #edf2ff; }
.ft-qr-item.is-on b { color: var(--blue); }
.ft-qr-composer { position: absolute; bottom: 16px; left: 22px; right: 22px; display: flex; align-items: center; gap: 4px; padding: 7px; background: #fff; border: 1px solid var(--ft-line); border-radius: 11px; font-size: 12px; }
.ft-qr-tab { padding: 4px 9px; border-radius: 7px; color: var(--ft-muted-2); }
.ft-qr-tab.is-on { background: #f1f2f4; color: var(--ink); font-weight: 500; }
.ft-qr-btn { margin-left: auto; padding: 5px 10px; border: 1px solid #c9d6fb; border-radius: 7px; background: #edf2ff; color: var(--blue); font-weight: 550; }

/* Inbox rows */
.ft-rows { position: absolute; top: 30px; right: 22px; left: 22px; }
.ft-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding: 11px 12px; background: #fff; border: 1px solid var(--ft-line); border-radius: 11px; box-shadow: 0 6px 16px -14px rgba(23, 32, 51, .35); font-size: 13px; }
.ft-row > div { min-width: 0; }
.ft-row b { font-weight: 600; }
.ft-row small { display: block; overflow: hidden; color: var(--ft-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ft-row time { margin-left: auto; color: #d9480f; font-size: 11.5px; font-weight: 600; }
.ft-row.is-read { opacity: .55; transform: scale(.96); }
.ft-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.ft-row.is-read .ft-dot { background: transparent; }

/* Routing orbit */
.ft-orbit { position: absolute; inset: 0; }
.ft-ring { position: absolute; top: 150px; left: 50%; width: 330px; height: 330px; border: 1px dashed #d8deeb; border-radius: 50%; transform: translate(-50%, -50%); }
.ft-hub { position: absolute; top: 150px; left: 50%; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 20px; background: linear-gradient(150deg, #4675f2, #124bce); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 10px 22px -8px #124bce; transform: translate(-50%, -50%); }
.ft-team { position: absolute; display: flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; background: #fff; border: 1px solid var(--ft-line); border-radius: 30px; box-shadow: 0 8px 20px -14px rgba(23, 32, 51, .4); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.ft-team .ft-av { width: 24px; height: 24px; }
.ft-team.is-billing { top: 70px; left: 9%; }
.ft-team.is-support { top: 58px; right: 8%; }
.ft-team.is-sales { top: 196px; left: 12%; }
.ft-team.is-onboarding { top: 204px; right: 10%; }

/* Built-in tools */
.ft-stat { position: absolute; top: 34px; left: 24px; }
.ft-stat b { display: block; font-size: 42px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.ft-stat span { color: var(--ft-muted); font-size: 18px; }
.ft-chips { position: absolute; top: 22px; right: -40px; left: 190px; display: flex; flex-direction: column; gap: 9px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 80%, transparent); }
.ft-chips div { display: flex; gap: 8px; white-space: nowrap; }
.ft-chips div:nth-child(2) { margin-left: -60px; }
.ft-chips div:nth-child(3) { margin-left: -20px; }
.ft-chips span { padding: 8px 13px; background: #fff; border: 1px solid var(--ft-line); border-radius: 9px; color: var(--ft-muted); font-size: 12.5px; }

/* Roles */
.ft-roles { position: absolute; top: 44px; right: -30px; left: 40px; }
.ft-search { display: flex; align-items: center; gap: 9px; padding: 12px 14px; background: #fff; border: 1px solid var(--ft-line); border-bottom: 0; border-radius: 12px 12px 0 0; color: var(--ft-muted-2); font-size: 14px; }
.ft-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.ft-roles-head, .ft-role { display: grid; grid-template-columns: 36px 1.3fr 1.2fr 1fr; align-items: center; }
.ft-roles-head { padding: 10px 14px; background: #f6f7f9; border: 1px solid var(--ft-line); color: var(--ft-muted-2); font: 500 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.ft-role { position: relative; margin-top: 8px; padding: 15px 14px; background: #fff; border: 1px solid var(--ft-line); border-radius: 10px; box-shadow: 0 14px 30px -20px rgba(23, 32, 51, .4); font-size: 14.5px; transform-origin: left center; }
/* Rows step back: the first is largest and sits furthest forward; all stay inside the card. */
.ft-role:nth-child(3) { z-index: 4; transform: translateX(-18px) scale(1.045); }
.ft-role:nth-child(4) { z-index: 3; transform: translateX(-12px) scale(1.03); }
.ft-role:nth-child(5) { z-index: 2; transform: translateX(-6px) scale(1.015); }
.ft-role:nth-child(6) { z-index: 1; }
.ft-box { width: 17px; height: 17px; border: 1.5px solid #c3c7cf; border-radius: 4px; }
.ft-who { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ft-who .ft-av { width: 24px; height: 24px; }
.ft-role code { justify-self: start; padding: 4px 9px; border: 1px solid var(--ft-line); border-radius: 6px; font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }


/* AI routing */
.ft-ai-card .ft-vis { min-height: 240px; }
.ft-ai { position: absolute; top: 24px; right: 22px; left: 200px; }
.ft-ai-msg, .ft-ai-team { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: #fff; border: 1px solid var(--ft-line); border-radius: 11px; box-shadow: 0 10px 24px -18px rgba(23, 32, 51, .4); font-size: 13px; }
.ft-ai-msg > div, .ft-ai-team > div { min-width: 0; }
.ft-ai-msg b, .ft-ai-team b { font-weight: 600; }
.ft-ai-msg small, .ft-ai-team small { display: block; overflow: hidden; color: var(--ft-muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.ft-ai-step { position: relative; display: flex; align-items: center; gap: 8px; margin: 10px 0 10px 26px; padding: 7px 12px 7px 7px; width: max-content; background: linear-gradient(135deg, #f1eafe, #edf2ff); border: 1px solid #ddd2fb; border-radius: 30px; color: #4b3a8f; font-size: 12.5px; }
.ft-ai-step b { color: var(--blue); font-weight: 650; }
.ft-ai-step::before, .ft-ai-step::after { content: ""; position: absolute; left: 16px; width: 1.5px; height: 10px; background: #cbbef6; }
.ft-ai-step::before { top: -11px; } .ft-ai-step::after { bottom: -11px; }
.ft-ai-spark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(150deg, #957af0, #6b4bd8); color: #fff; }
.ft-ai-spark svg { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.ft-ai-badge { flex: none; margin-left: auto; padding: 3px 9px; border-radius: 20px; background: #e3f5ec; color: #17784f; font-size: 11.5px; font-weight: 600; }

/* Tablet: two columns; the tall roles card spans the full width. */
@media (max-width: 1023px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-third, .ft-half { grid-column: span 1; }
  .ft-tall { grid-column: span 2; grid-row: auto; }
  .ft-tall .ft-vis { min-height: 420px; }
  .ft-chips-card .ft-vis { min-height: 270px; }
  .ft-chips-card .ft-stat { top: 22px; }
  .ft-chips-card .ft-chips { top: 116px; left: 0; right: -60px; }
  .ft-ai-card { grid-column: span 2; }
}
/* Mobile: one column, with the side-by-side visuals stacked. */
@media (max-width: 680px) {
  .ft-grid { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .ft-third, .ft-half, .ft-tall, .ft-ai-card { grid-column: auto; }
  .ft-head p { font-size: 16px; }
  .ft-stat { top: 20px; }
  .ft-stat b { font-size: 34px; }
  .ft-stat span { font-size: 15px; }
  .ft-chips-card .ft-vis { min-height: 260px; }
  .ft-chips-card .ft-chips { top: 104px; }
  .ft-ai-card .ft-vis { min-height: 300px; }
  .ft-ai { top: 100px; left: 20px; right: 20px; }
  .ft-tall .ft-vis { min-height: 380px; }
  .ft-roles { top: 28px; left: 38px; right: -16px; }
  .ft-roles-head, .ft-role { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .ft-roles-head span:nth-child(3), .ft-role > span:nth-child(3) { display: none; }
  .ft-role code { margin-right: 24px; }
  .ft-ring { width: 280px; height: 280px; }
}
