/* Customer stories (flagship M5-proof, GQC-SITE-31).
   Facts only from the approved /case-studies text (MM D-261023-19) and docs/MEASURED-20261020.md; no invented numbers,
   quotes or people (HR-11). Customers without a logo asset are set in type, never drawn as a logo.
   Used by /case-studies (full stories: .cs-index + .story) and, as one short story (.cstory), by the product pages
   whose subject the story really shows: ai-agent, inbox, channels, channels/whatsapp, enterprise, solutions/restaurants,
   solutions/clinics. Linked from each page's body: <link rel="stylesheet" href="../case-studies/stories.css">. */

/* — the customer's name: their logo when we have it, else their name in our display type (one style for all) — */
.st-name{margin:0;font-family:var(--gb-font-display);font-weight:var(--gb-weight-semibold);font-size:var(--gb-type-heading-2-size);line-height:var(--gb-type-heading-2-lh);color:var(--gb-text);text-wrap:balance}
.st-logo{display:block;height:56px;width:auto;margin:0}   /* the logo is the name (it carries both the Arabic and the Latin mark) */
.st-sec{margin:6px 0 0;font-size:var(--gb-type-body-sm-size);line-height:var(--gb-type-body-sm-lh);color:var(--gb-text-muted)}

/* — /case-studies: the five customers, one row, each a jump to its story — */
.cs-index{position:relative;z-index:2;padding:72px var(--pad) 0}
.cs-index ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border-top:1px solid var(--gb-border-strong)}
.cs-index li{min-width:0;border-bottom:1px solid var(--gb-border-strong)}
.cs-index li + li{border-inline-start:1px solid var(--hair)}
.cs-index a{display:flex;flex-direction:column;gap:6px;height:100%;padding:20px 20px 22px;color:var(--gb-text);text-decoration:none;transition:background-color var(--gb-duration-quick) var(--gb-ease-brand)}
.cs-index li:first-child a{padding-inline-start:0}
.cs-index b{font-family:var(--gb-font-display);font-weight:var(--gb-weight-semibold);font-size:var(--gb-type-heading-3-size);line-height:var(--gb-type-heading-3-lh);transition:color var(--gb-duration-quick) var(--gb-ease-brand)}
.cs-index span{font-size:var(--gb-type-caption-size);line-height:var(--gb-type-caption-lh);color:var(--gb-text-muted)}
.cs-index a:hover b,.cs-index a:focus-visible b{color:var(--gb-text-brand)}

/* — /case-studies: one story = who (start column) + the result as the heading, then challenge → with Gabster → result — */
.story{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);column-gap:clamp(40px,6vw,112px);align-items:start;scroll-margin-top:96px}
.story > *{position:relative;z-index:2;min-width:0}
.st-id{border-top:2px solid var(--gb-text);padding-top:20px}
.st-ch{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.st-ch li{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:4px 12px;border:1px solid var(--gb-border-strong);border-radius:999px;font-size:var(--gb-type-caption-size);line-height:1.4;color:var(--gb-text)}
.st-ch img{display:block;width:16px;height:16px;flex:none}
.st-body h2{margin:0;max-width:22ch;font-family:var(--gb-font-display);font-weight:var(--gb-weight-light);font-size:var(--gb-type-display-4-size);line-height:var(--gb-type-display-4-lh);letter-spacing:0;text-wrap:balance}
.st-beats{margin:36px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;counter-reset:beat}
.st-beats > div{border-top:1px solid var(--gb-border-strong);padding-top:16px;counter-increment:beat}
.st-beats dt{display:flex;align-items:baseline;gap:8px;margin:0 0 8px;font-weight:var(--gb-weight-semibold);font-size:var(--gb-type-ui-size)}
.st-beats dt::before{content:counter(beat);font-family:var(--gb-font-display);font-weight:var(--gb-weight-light);font-size:var(--gb-type-caption-size);color:var(--gb-text-muted);font-variant-numeric:tabular-nums}
.st-beats dd{margin:0;font-size:var(--gb-type-body-sm-size);line-height:var(--gb-type-body-sm-lh);color:var(--gb-text-muted)}
.st-beats > .is-result{border-top:2px solid var(--gb-accent)}
.st-beats > .is-result dd{color:var(--gb-text)}
.st-fact{margin:28px 0 0;padding-top:16px;border-top:1px solid var(--hair);font-size:var(--gb-type-body-sm-size);line-height:var(--gb-type-body-sm-lh);color:var(--gb-text);max-width:62ch}
.st-fact small{display:block;margin-top:2px;color:var(--gb-text-muted);font-size:var(--gb-type-micro-size)}
.st-uses{display:flex;flex-wrap:wrap;align-items:center;gap:6px 18px;margin:28px 0 0;font-size:var(--gb-type-caption-size);color:var(--gb-text-muted)}
.st-uses a{color:var(--gb-text);text-decoration:none;border-bottom:1px solid var(--gb-border-strong);padding-bottom:1px}
.st-uses a:hover{color:var(--gb-text-brand);border-color:currentColor}

/* — product pages: one short story, a solid card that breaks the run of watercolor bands (GQC-SITE-61: one proof moment) — */
.cstory{position:relative;z-index:2;padding:112px var(--pad) 0}
.cst-in{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);column-gap:clamp(32px,5vw,96px);align-items:start;padding:clamp(28px,4vw,56px);background:var(--gb-surface);border:1px solid var(--hair);border-radius:24px}
.cst-id .eyebrow{margin:0 0 18px}
.cst-id .st-logo{margin:0 0 4px}
.cst-body h2{margin:0;max-width:24ch;font-family:var(--gb-font-display);font-weight:var(--gb-weight-light);font-size:var(--gb-type-display-4-size);line-height:var(--gb-type-display-4-lh);letter-spacing:0;text-wrap:balance}
.cst-body p{margin:18px 0 0;max-width:60ch;font-size:var(--gb-type-lead-size);line-height:var(--gb-type-lead-lh);color:var(--gb-text-muted)}
.cst-body .more{display:inline-flex;align-items:center;gap:8px;margin-top:24px;font-size:var(--gb-type-ui-size);color:var(--gb-text);text-decoration:none;border-bottom:1px solid var(--gb-border-strong);padding-bottom:3px}
.cst-body .more:hover{color:var(--gb-text-brand);border-color:currentColor}

@media (max-width:860px){
  .cs-index{padding:56px var(--gutter) 0}
  .cs-index ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-index li + li{border-inline-start:0}
  .cs-index li:nth-child(even){border-inline-start:1px solid var(--hair)}
  .cs-index a,.cs-index li:first-child a{padding:16px 14px 18px}
  .cs-index li:nth-child(odd) a{padding-inline-start:0}
  .cs-index li:last-child:nth-child(odd){grid-column:1/-1}
  .story{grid-template-columns:1fr;row-gap:28px}
  .st-beats{grid-template-columns:1fr;gap:18px;margin-top:28px}
  .cstory{padding:96px var(--gutter) 0}
  .cst-in{grid-template-columns:1fr;row-gap:22px;padding:24px 20px 28px;border-radius:20px}
  .cst-body p{font-size:var(--gb-type-body-size);line-height:var(--gb-type-body-lh)}
}
@media (pointer:coarse){.st-uses a,.cst-body .more{display:inline-flex;align-items:center;min-height:44px}}
