/* Shared styles for the Use Cases section: realistic software-UI mockups
   (chat / ticket / document / email / CRM / receipt) plus the detail-page
   and summary-page layout. Deliberately avoids "AI generated" visual
   cliches (gradients, glows, abstract blobs) in favor of things that look
   like real enterprise software screenshots.
   Self-contained (no reliance on host-page CSS variables). */

:root {
  --c1: #4f46e5; /* indigo   — Financial Services */
  --c2: #0284c7; /* sky      — IT Operations */
  --c3: #059669; /* emerald  — Retail */
  --c4: #d97706; /* amber    — Cross-Industry */
  --c5: #dc2626; /* red */
  --c6: #db2777; /* pink */
  --c7: #7c3aed; /* violet   — Professional Services */
  --c8: #0d9488; /* teal */
}

/* ============ Avatar color utilities ============ */
.av-1 { background: var(--c1); } .av-2 { background: var(--c2); }
.av-3 { background: var(--c3); } .av-4 { background: var(--c4); }
.av-5 { background: var(--c5); } .av-6 { background: var(--c6); }
.av-7 { background: var(--c7); } .av-8 { background: var(--c8); }

/* ============ Mockup window shell ============ */
.mock-window {
  background: #fff;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(17,17,17,.4);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; }
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); }
.mock-titlebar .mock-app { margin-left: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: rgba(255,255,255,.94); }
.mock-titlebar .mock-vendor { margin-left: auto; font-size: 10px; color: rgba(255,255,255,.55); font-weight: 500; }

.mock-window.mock-chat .mock-titlebar { background: #2f2438; }
.mock-window.mock-ticket .mock-titlebar { background: #112f4d; }
.mock-window.mock-crm .mock-titlebar { background: #0e3b37; }
.mock-window.mock-mail .mock-titlebar { background: #f4f4f3; border-bottom: 1px solid rgba(17,17,17,.1); }
.mock-window.mock-mail .mock-titlebar .mock-app { color: rgba(17,17,17,.7); }
.mock-window.mock-mail .mock-titlebar .mock-dot { background: rgba(17,17,17,.18); }
.mock-window.mock-mail .mock-titlebar .mock-vendor { color: rgba(17,17,17,.4); }

/* ============ Chat (team-channel style) ============ */
.mock-chat .mock-body { padding: 14px 14px 16px; }
.mock-channel { font-size: 10.5px; font-weight: 700; color: rgba(17,17,17,.4); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.mock-msg { display: flex; gap: 9px; margin-bottom: 13px; }
.mock-msg:last-child { margin-bottom: 0; }
.mock-avatar { flex: none; width: 27px; height: 27px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.mock-msg-body { min-width: 0; }
.mock-msg-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.mock-msg-head .mock-name { font-size: 12.5px; font-weight: 700; color: #111; }
.mock-msg-head .mock-time { font-size: 10px; color: rgba(17,17,17,.4); }
.mock-msg-text { font-size: 12px; line-height: 1.5; color: rgba(17,17,17,.82); }
.mock-pill-inline { display: inline-block; background: rgba(17,17,17,.06); padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 600; color: #111; }

/* ============ Ticket (ITSM-style) ============ */
.mock-ticket .mock-body { padding: 14px; }
.mock-ticket-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.mock-ticket-num { font-size: 12.5px; font-weight: 700; color: #111; font-variant-numeric: tabular-nums; }
.mock-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.mock-status.st-new { background: #e0f2fe; color: #075985; }
.mock-status.st-progress { background: #fef3c7; color: #92400e; }
.mock-status.st-resolved { background: #dcfce7; color: #166534; }
.mock-status.st-escalated { background: #fee2e2; color: #991b1b; }
.mock-ticket-desc { font-size: 12px; color: rgba(17,17,17,.75); margin-bottom: 12px; line-height: 1.45; }
.mock-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.mock-field label { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: rgba(17,17,17,.4); font-weight: 700; margin-bottom: 2px; }
.mock-field span { font-size: 11.5px; color: #111; font-weight: 600; }

/* ============ Document (invoice / PO / contract paper) ============ */
.mock-doc { background: #fff; border: 1px solid rgba(17,17,17,.14); border-radius: 10px; padding: 18px 18px 16px; box-shadow: 0 24px 48px -28px rgba(17,17,17,.4); font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif; }
.mock-doc-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 12px; gap: 10px; }
.mock-doc-type { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(17,17,17,.5); }
.mock-doc-title { font-size: 14.5px; font-weight: 700; color: #111; margin-top: 2px; }
.mock-doc-num { text-align: right; font-size: 10.5px; color: rgba(17,17,17,.55); flex: none; }
.mock-doc-num strong { display: block; font-size: 12.5px; color: #111; }
.mock-doc-rows { margin-bottom: 10px; }
.mock-doc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; padding: 5px 0; border-bottom: 1px dashed rgba(17,17,17,.12); color: rgba(17,17,17,.75); }
.mock-doc-row span:last-child { font-weight: 600; color: #111; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mock-doc-total { display: flex; justify-content: space-between; padding-top: 8px; border-top: 2px solid #111; font-size: 13px; font-weight: 700; color: #111; }
.mock-doc-stamp { display: inline-block; margin-top: 12px; padding: 4px 10px; border: 2px solid #059669; color: #059669; font-weight: 800; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border-radius: 6px; transform: rotate(-3deg); }
.mock-doc-stamp.pending { border-color: #d97706; color: #d97706; }

/* ============ Email ============ */
.mock-mail .mock-body { padding: 14px; }
.mock-mail-row { display: flex; gap: 8px; font-size: 11px; padding: 3px 0; }
.mock-mail-row .k { width: 42px; flex: none; color: rgba(17,17,17,.4); font-weight: 700; text-transform: uppercase; font-size: 9.5px; padding-top: 1px; }
.mock-mail-row .v { color: #111; font-weight: 500; }
.mock-mail-subject { font-size: 13px; font-weight: 700; color: #111; margin: 8px 0 6px; padding-top: 8px; border-top: 1px solid rgba(17,17,17,.1); }
.mock-mail-preview { font-size: 11.5px; color: rgba(17,17,17,.65); line-height: 1.5; }

/* ============ CRM / PSA record ============ */
.mock-crm .mock-body { padding: 14px; }
.mock-crm-name { font-size: 13.5px; font-weight: 700; color: #111; margin-bottom: 6px; }
.mock-crm-stage { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #ecfdf5; color: #065f46; margin-bottom: 10px; }
.mock-crm-stage.at-risk { background: #fee2e2; color: #991b1b; }

/* ============ Receipt / payment mini card ============ */
.mock-receipt { background: #fff; border: 1px solid rgba(17,17,17,.14); border-radius: 10px; padding: 14px 16px; box-shadow: 0 24px 48px -28px rgba(17,17,17,.4); }
.mock-receipt-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 8px; }
.mock-receipt-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(17,17,17,.45); }
.mock-receipt-amt { font-size: 19px; font-weight: 800; color: #111; font-variant-numeric: tabular-nums; }

/* ============ Scene: two mockups composed like a product screenshot ============ */
.uc-scene { position: relative; max-width: 420px; margin: 0 auto; padding: 6px 20px 46px 0; }
.uc-scene .uc-scene-a { width: 100%; position: relative; z-index: 1; }
.uc-scene .uc-scene-b { position: absolute; width: 60%; right: -8px; bottom: -30px; z-index: 2; }

/* ============ Detail page: hero ============ */
.uc-hero { padding: 44px 0 8px; }
.uc-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; text-align: left; }
.uc-tags { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.uc-industry-tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #111); }
.uc-dot-sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(17,17,17,.3); flex: none; }
.uc-complexity { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.uc-complexity.low { background: #dcfce7; color: #166534; }
.uc-complexity.medium { background: #fef3c7; color: #92400e; }
.uc-complexity.medium-high { background: #ffedd5; color: #9a3412; }
.uc-complexity.high { background: #fee2e2; color: #991b1b; }

.uc-hero h1 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; color: #111; }
.uc-hero .uc-lede { margin: 0; font-size: clamp(15.5px, 1.6vw, 17.5px); line-height: 1.6; color: rgba(17,17,17,.66); max-width: 520px; }
.uc-hero-stat { margin-top: 26px; padding: 13px 18px; border-radius: 12px; background: rgba(17,17,17,.03); border: 1px solid rgba(17,17,17,.12); display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #111; }
.uc-hero-stat svg { width: 16px; height: 16px; stroke: var(--accent, #111); flex: none; }

/* ============ Detail page: sections ============ */
.uc-section { padding: 52px 0; border-bottom: 1px solid rgba(17,17,17,.12); }
main .uc-section:last-of-type { border-bottom: 0; }
.uc-section-label { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(17,17,17,.45); margin-bottom: 14px; }
.uc-section h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; color: #111; margin: 0 0 16px; }
.uc-section > p { font-size: 15.5px; line-height: 1.65; color: rgba(17,17,17,.68); max-width: 740px; }

.uc-goal { margin-top: 22px; padding: 26px 28px; border-left: 4px solid var(--accent, #111); background: rgba(17,17,17,.025); border-radius: 0 14px 14px 0; }
.uc-goal-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(17,17,17,.45); margin-bottom: 10px; }
.uc-goal blockquote { margin: 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; font-weight: 500; color: #111; font-style: italic; }

.uc-ecosystem { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.uc-eco-card { padding: 18px; border: 1px solid rgba(17,17,17,.14); border-radius: 14px; background: #fff; }
.uc-eco-role { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent, #111); margin-bottom: 8px; }
.uc-eco-card h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #111; }
.uc-eco-vendor { font-size: 11.5px; color: rgba(17,17,17,.45); margin-bottom: 10px; font-weight: 500; }
.uc-eco-card p { margin: 0; font-size: 12.5px; line-height: 1.5; color: rgba(17,17,17,.65); }

.uc-steps { counter-reset: uc-step; margin-top: 26px; max-width: 720px; }
.uc-step { counter-increment: uc-step; position: relative; display: flex; gap: 16px; padding-bottom: 22px; }
.uc-step:last-child { padding-bottom: 0; }
.uc-step::before { content: counter(uc-step); flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent, #111); color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.uc-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: rgba(17,17,17,.12); }
.uc-step p { margin: 0; padding-top: 4px; font-size: 14px; line-height: 1.55; color: rgba(17,17,17,.78); }

.uc-routing { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.uc-routing-item { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid rgba(17,17,17,.12); border-radius: 12px; background: rgba(17,17,17,.02); }
.uc-routing-item svg { flex: none; width: 16px; height: 16px; stroke: var(--accent, #111); margin-top: 2px; }
.uc-routing-item p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(17,17,17,.75); }
.uc-routing-item code { background: rgba(17,17,17,.06); padding: 1px 6px; border-radius: 5px; font-size: 12px; color: #111; font-weight: 600; }

.uc-approve { margin-top: 22px; padding: 30px; border-radius: 18px; background: #0b0b0c; color: #fff; }
.uc-approve-label { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 14px; }
.uc-approve ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.uc-approve li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,.88); }
.uc-approve li svg { flex: none; width: 16px; height: 16px; stroke: #34d399; margin-top: 3px; }

.uc-resilience { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.uc-resilience-item { display: flex; gap: 12px; padding: 14px 16px; border: 1px dashed rgba(17,17,17,.2); border-radius: 12px; }
.uc-resilience-item svg { flex: none; width: 16px; height: 16px; stroke: var(--accent, #111); margin-top: 2px; }
.uc-resilience-item p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(17,17,17,.75); }

.uc-outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.uc-outcome { padding: 20px 18px; border: 1px solid rgba(17,17,17,.12); border-radius: 14px; background: rgba(17,17,17,.02); }
.uc-outcome svg { width: 20px; height: 20px; stroke: var(--accent, #111); margin-bottom: 10px; }
.uc-outcome p { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(17,17,17,.78); font-weight: 500; }

.uc-related { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.uc-related-card { display: block; padding: 20px 22px; border: 1px solid rgba(17,17,17,.14); border-radius: 14px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.uc-related-card:hover { border-color: rgba(17,17,17,.4); transform: translateY(-2px); }
.uc-related-eyebrow { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(17,17,17,.45); margin-bottom: 6px; }
.uc-related-card h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #111; }
.uc-related-card p { margin: 0; font-size: 12.5px; color: rgba(17,17,17,.6); line-height: 1.5; }

.uc-disclaimer { margin-top: 40px; padding: 16px 20px; border: 1px solid rgba(17,17,17,.12); border-radius: 12px; background: rgba(17,17,17,.02); font-size: 12px; line-height: 1.6; color: rgba(17,17,17,.55); }

.uc-cta { text-align: center; padding: 60px 0 70px; }
.uc-cta h2 { margin: 0 0 14px; font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; color: #111; }
.uc-cta p { margin: 0 auto 26px; max-width: 500px; color: rgba(17,17,17,.62); font-size: 15px; line-height: 1.6; }

/* ============ Summary (index) page ============ */
.uc-index-hero { padding: 60px 0 34px; }
.uc-index-hero h1 { margin: 0; max-width: 760px; font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.02em; color: #111; }
.uc-index-hero p { margin: 16px 0 0; max-width: 640px; color: rgba(17,17,17,.62); font-size: clamp(15.5px, 1.6vw, 18px); line-height: 1.55; }

.industry-group { padding: 32px 0 40px; border-top: 1px solid rgba(17,17,17,.12); }
.industry-group:first-of-type { border-top: 0; padding-top: 8px; }
.industry-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.industry-group-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: #111; }
.industry-group-head .industry-count { font-size: 12.5px; color: rgba(17,17,17,.45); font-weight: 500; }
.industry-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent, #111); flex: none; }

.uc-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.uc-card { display: flex; flex-direction: column; border: 1px solid rgba(17,17,17,.14); border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit; background: #fff; transition: transform .15s ease, box-shadow .15s ease; }
.uc-card:hover { transform: translateY(-3px); box-shadow: 0 28px 52px -30px rgba(17,17,17,.4); }
.uc-card-visual { padding: 22px 22px 0; background: rgba(17,17,17,.03); pointer-events: none; }
.uc-card-body { padding: 20px 22px 24px; }
.uc-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.uc-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #111; line-height: 1.32; }
.uc-card p { margin: 0; font-size: 12.5px; line-height: 1.55; color: rgba(17,17,17,.62); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .uc-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .uc-hero-grid .uc-hero-visual { order: -1; }
  .uc-outcomes { grid-template-columns: 1fr; }
  .uc-related { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .uc-card-grid { grid-template-columns: 1fr; }
  .uc-scene { max-width: 340px; }
}
