/* Examples: one tab per sponsor (airline, food delivery, bank). */
.usecases {
  background: var(--paper);
  padding: clamp(calc(64px * var(--s, 1)), calc(8vw * var(--s, 1)), calc(120px * var(--s, 1))) 0;
}

/* The tabs are one pill holding three; the chosen one is filled ink. */
.usecases__tabs {
  display: inline-flex; gap: calc(4px * var(--s, 1));
  padding: calc(4px * var(--s, 1));
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--ink) 16%, var(--paper));
  border-radius: calc(999px * var(--s, 1));
  max-width: 100%;
}
.usecases__tab {
  appearance: none; border: 0; cursor: pointer;
  min-height: calc(44px * var(--s, 1)); padding: 0 calc(20px * var(--s, 1));
  border-radius: calc(999px * var(--s, 1));
  background: transparent; color: var(--ink-2);
  font-family: var(--sans); font-size: calc(17px * var(--s, 1)); font-weight: 600; line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.usecases__tab-short { display: none; }
.usecases__tab:hover { color: var(--ink); }
.usecases__tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.usecases__tab:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 2px; border-radius: calc(999px * var(--s, 1)); }

.usecases__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: clamp(calc(32px * var(--s, 1)), calc(6vw * var(--s, 1)), calc(96px * var(--s, 1)));
  row-gap: clamp(calc(32px * var(--s, 1)), calc(4vw * var(--s, 1)), calc(56px * var(--s, 1)));
  align-items: start;
  margin-top: clamp(calc(32px * var(--s, 1)), calc(4vw * var(--s, 1)), calc(56px * var(--s, 1)));
}
.usecases__panel[hidden] { display: none; }
.usecases__panel:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: 8px; border-radius: calc(8px * var(--s, 1)); }
/* The section's heading, above the tabs. */
.usecases__heading { margin: 0 0 clamp(calc(24px * var(--s, 1)), calc(3vw * var(--s, 1)), calc(40px * var(--s, 1))); max-width: 16em; text-wrap: balance; }
/* "Example: ..." above each example, and the two lines under it. */
.usecases__about {
  grid-column: 1 / -1; margin: 0; max-width: 24em;
  font-family: var(--display);
  font-size: clamp(calc(22px * var(--s, 1)), calc(2.2vw * var(--s, 1)), calc(30px * var(--s, 1)));
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance;
}
/* The example's title sits close to the cards it introduces. */
.usecases__about + .journey { margin-top: calc(-8px * var(--s, 1)); }
.usecases__foot { grid-column: 1 / -1; }
.usecases__who {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(calc(19px * var(--s, 1)), calc(1.6vw * var(--s, 1)), calc(22px * var(--s, 1)));
  font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
}
.usecases__note { margin: calc(10px * var(--s, 1)) 0 0; font-size: calc(17px * var(--s, 1)); line-height: 1.5; color: var(--ink-3); }

/* The four stages as one worked example -----------------------------------
   Four cards across, an arrow between each pair. The chips and the round
   photo are the loop's own (.loop__chip, .loop__face in loop.css), so the two
   sections stay one visual language. */
.journey { grid-column: 1 / -1; min-width: 0; }
.journey__steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: calc(40px * var(--s, 1));
}
.journey__step {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: calc(20px * var(--s, 1));
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: calc(20px * var(--s, 1));
  --face: calc(48px * var(--s, 1));
}
.journey__arrow {
  position: absolute; left: calc(-33px * var(--s, 1)); top: 50%; margin-top: calc(-8px * var(--s, 1));
  fill: none; stroke: var(--ink-3); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.journey__name {
  display: flex; align-items: center; gap: calc(10px * var(--s, 1));
  margin: 0 0 calc(14px * var(--s, 1));
  font-family: var(--display);
  font-size: calc(22px * var(--s, 1)); line-height: 28px; font-weight: 800; letter-spacing: -0.02em;
}
.journey__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(28px * var(--s, 1)); height: calc(28px * var(--s, 1)); flex: none;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: calc(15px * var(--s, 1)); font-weight: 700;
  letter-spacing: 0; line-height: 1;
}
.journey__num--coral { background: var(--coral-fill); color: var(--on-coral); }
.journey__step p { margin: 0; font-size: calc(17px * var(--s, 1)); line-height: 24px; }

/* 1: the brief, typed into a chat window: the project bar on top, the goal
   as the person's message on the right, an empty message field below. */
.journey__chat {
  display: flex; flex-direction: column;
  margin-top: calc(4px * var(--s, 1));
  border: 1px solid var(--rule-strong, #E4E4EA);
  border-radius: calc(14px * var(--s, 1));
  background: var(--paper);
  overflow: hidden;
  flex: 1;
  /* Fill the card's width. The card lines its children up at the start, so
     without this the window sized itself to its one-line header and ran out
     past the card's edge on narrower screens. */
  align-self: stretch; min-width: 0;
}
.journey__chat-head {
  margin: 0 !important; padding: calc(8px * var(--s, 1)) calc(12px * var(--s, 1));
  border-bottom: 1px solid var(--rule-strong, #E4E4EA);
  font-size: calc(15px * var(--s, 1)) !important; line-height: 1.4; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.journey__chat-org { font-weight: 700; color: var(--ink); }
.journey__chat-body { flex: 1; padding: calc(12px * var(--s, 1)); display: flex; justify-content: flex-end; align-items: flex-start; }
.journey__goal {
  margin: 0 !important;
  max-width: 92%;
  padding: calc(10px * var(--s, 1)) calc(12px * var(--s, 1));
  border-radius: calc(14px * var(--s, 1)) calc(14px * var(--s, 1)) calc(4px * var(--s, 1)) calc(14px * var(--s, 1));
  background: var(--paper-2);
  color: var(--ink);
  font-size: calc(17px * var(--s, 1)) !important; line-height: 1.45 !important;
  max-height: calc(336px * var(--s, 1)); overflow: hidden;
}
.journey__goal.is-long {
  -webkit-mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 40px), transparent);
}
.journey__chat-input {
  display: flex; align-items: center; gap: calc(8px * var(--s, 1));
  margin: 0 calc(10px * var(--s, 1)) calc(10px * var(--s, 1)); padding: calc(6px * var(--s, 1)) calc(6px * var(--s, 1)) calc(6px * var(--s, 1)) calc(12px * var(--s, 1));
  border: 1px solid var(--rule-strong, #E4E4EA); border-radius: calc(999px * var(--s, 1));
}
.journey__chat-field { flex: 1; height: calc(14px * var(--s, 1)); border-radius: calc(4px * var(--s, 1)); background: var(--paper-2); }
.journey__chat-send {
  display: inline-flex; align-items: center; justify-content: center;
  width: calc(28px * var(--s, 1)); height: calc(28px * var(--s, 1)); border-radius: 50%;
  background: var(--coral-fill); color: var(--on-coral);
}
.journey__chat-send svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.journey__goal::after, .journey__caret {
  content: ""; display: inline-block;
  width: 0; height: 1.05em; margin-right: -2px;
  border-left: 2px solid var(--coral-fill);
  vertical-align: -0.18em;
}
.journey__goal.is-typing::after { content: none; }
.journey__rest { visibility: hidden; }

/* 2: what the agent said. */
.journey__says { display: flex; align-items: center; gap: calc(10px * var(--s, 1)); }
.journey__role { font-weight: 700; }
.journey__quote {
  margin-top: calc(10px * var(--s, 1)) !important;
  padding: calc(12px * var(--s, 1)) calc(14px * var(--s, 1));
  background: var(--paper-2);
  border-radius: calc(5px * var(--s, 1)) calc(16px * var(--s, 1)) calc(16px * var(--s, 1)) calc(16px * var(--s, 1));
  color: var(--ink);
}
.journey__chips { margin-top: auto !important; padding-top: calc(16px * var(--s, 1)); }
/* A label too long for the card wraps from the left, beside its icon, not
   centred in the tag. */
.journey__chips .loop__chip { justify-content: flex-start; text-align: left; }

/* 3: the format. */
.journey__thumb {
  display: block; width: 100%; height: auto;
  border-radius: calc(10px * var(--s, 1));
}
.journey__format { margin-top: calc(12px * var(--s, 1)) !important; font-weight: 700; }
.journey__line { margin-top: 2px !important; color: var(--ink-2); }

/* 4: what came back, and the arrow that sends it round again. */
.journey__insight {
  align-self: stretch;
  padding: calc(14px * var(--s, 1));
  background: #FDF2EE;
  border: 1px solid var(--coral);
  border-radius: calc(12px * var(--s, 1));
}
.journey__insight-label {
  display: flex; align-items: center; gap: calc(8px * var(--s, 1));
  font-weight: 700;
}
.journey__insight-label svg {
  flex: none; fill: none; stroke: var(--coral-fill); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.journey__insight-text { margin-top: calc(10px * var(--s, 1)) !important; color: var(--ink-2); }
/* The example report in the Learn card: what is counted, how far it has got,
   and four weekly bars on one scale (--h is a bar's share of the tallest). */
.journey__report-metric { margin-top: calc(10px * var(--s, 1)) !important; color: var(--ink-2); }
.journey__report-value {
  margin-top: calc(2px * var(--s, 1)) !important;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: calc(20px * var(--s, 1)) !important; line-height: 1.2 !important;
}
.journey__bars {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end;
  gap: calc(8px * var(--s, 1));
  height: calc(88px * var(--s, 1)); margin-top: calc(28px * var(--s, 1));
  border-bottom: 1.5px solid var(--ink);
}
.journey__bar {
  position: relative; height: max(var(--h), 6%);
  /* A shape with no text on it, so --coral, as the funnel's bars are. */
  background: var(--coral); border-radius: calc(4px * var(--s, 1)) calc(4px * var(--s, 1)) 0 0;
}
.journey__bar-n {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  padding-bottom: 2px; white-space: nowrap;
  font-size: calc(12px * var(--s, 1)); font-weight: 700; line-height: 1; color: var(--ink);
}
.journey__report-axis { margin-top: calc(6px * var(--s, 1)) !important; font-size: calc(13px * var(--s, 1)) !important; color: var(--ink-3); }

.journey__dots { display: none; }

/* The Activation Funnel ----------------------------------------------------------
   A funnel for the tab's format, per 1,000 fans reached. Every bar is drawn
   on one linear scale whose end is the largest high estimate shown: solid
   coral to the low estimate, lighter coral on to the high one. --lo and
   --band are percentages of that scale, set per row by build-landing-v2.mjs;
   --value is the width of the figures' column. */
.plan {
  grid-column: 1 / -1;
  padding: clamp(calc(24px * var(--s, 1)), calc(3vw * var(--s, 1)), calc(36px * var(--s, 1))) clamp(calc(20px * var(--s, 1)), calc(3.4vw * var(--s, 1)), calc(44px * var(--s, 1)));
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: calc(20px * var(--s, 1));
  --value: 9.5em;
}
.plan__title {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: calc(4px * var(--s, 1)) calc(14px * var(--s, 1));
  margin: 0;
  font-family: var(--display);
  font-size: clamp(calc(22px * var(--s, 1)), calc(2vw * var(--s, 1)), calc(26px * var(--s, 1))); line-height: 1.2;
  font-weight: 800; letter-spacing: -0.02em;
}
.plan__format {
  font-family: var(--sans); font-size: calc(17px * var(--s, 1)); font-weight: 600; letter-spacing: 0;
  color: var(--ink-3);
}
.plan p { margin: 0; font-size: calc(17px * var(--s, 1)); line-height: 24px; }
/* The goal is the customer's target, so it comes first and stands apart
   from the estimates under it. */
/* The label sits over its sentence at every width, so the goal reads as one
   statement rather than a short label far from its text (Tom, 16 Nov 2026). */
.plan__goal {
  display: flex; flex-direction: column; gap: calc(6px * var(--s, 1));
  margin-top: calc(16px * var(--s, 1)) !important; padding-bottom: calc(20px * var(--s, 1));
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, var(--paper));
}
.plan p.plan__goal {
  font-family: var(--display); font-weight: 700; letter-spacing: -0.01em;
  font-size: clamp(calc(18px * var(--s, 1)), calc(1.6vw * var(--s, 1)), calc(21px * var(--s, 1))); line-height: 1.35;
}
.plan__goal-label {
  font-family: var(--sans); font-size: calc(15px * var(--s, 1)); font-weight: 700; letter-spacing: 0;
  color: var(--ink-3);
}
.plan__basis { margin-top: calc(20px * var(--s, 1)) !important; color: var(--ink-2); }
.plan__rows { list-style: none; margin: calc(8px * var(--s, 1)) 0 0; padding: 0; }
.plan__row {
  display: grid;
  grid-template-columns: minmax(0, calc(300px * var(--s, 1))) minmax(0, 1fr);
  align-items: center; column-gap: calc(24px * var(--s, 1));
  padding: calc(10px * var(--s, 1)) 0;
  font-size: calc(17px * var(--s, 1)); line-height: 24px;
}
.plan__stage { font-weight: 700; }
.plan__of { display: block; font-weight: 400; color: var(--ink-3); }
.plan__of:empty { display: none; }
/* Bar on a light rail that shows the whole scale; the count in its own
   right-hand column so the figures line up and read down the card. */
.plan__track { display: grid; grid-template-columns: minmax(0, 1fr) var(--value); align-items: center; gap: calc(16px * var(--s, 1)); min-width: 0; }
.plan__rail { position: relative; display: block; height: calc(20px * var(--s, 1)); border-radius: calc(4px * var(--s, 1)); background: var(--paper-2); overflow: hidden; }
/* The target: a dark tick at the middle of the range. */
.plan__tick {
  position: absolute; top: 0; bottom: 0; left: calc(var(--at) * 1%);
  width: calc(3px * var(--s, 1)); margin-left: calc(-1.5px * var(--s, 1)); background: var(--ink);
}
.plan__bar {
  display: flex;
  width: calc((var(--lo) + var(--band)) * 1%);
  min-width: calc(4px * var(--s, 1)); height: 100%;
}
.plan__bar-low { flex: var(--lo) 1 0; min-width: calc(3px * var(--s, 1)); background: var(--coral); }
.plan__bar-high { flex: var(--band) 1 0; background: color-mix(in srgb, var(--coral) 34%, var(--paper)); }
.plan__value { font-size: calc(20px * var(--s, 1)); font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.plan__target { display: block; font-size: calc(15px * var(--s, 1)); font-weight: 600; color: var(--ink-2); }
.plan__key {
  display: flex; flex-wrap: wrap; gap: calc(4px * var(--s, 1)) calc(20px * var(--s, 1));
  margin-top: calc(10px * var(--s, 1)) !important;
  color: var(--ink-3);
}
.plan__key-item { display: inline-flex; align-items: center; gap: calc(8px * var(--s, 1)); white-space: nowrap; }
.plan__swatch {
  display: inline-block; flex: none;
  width: calc(14px * var(--s, 1)); height: calc(14px * var(--s, 1)); border-radius: calc(3px * var(--s, 1));
}
.plan__swatch--low { background: var(--coral); }
.plan__swatch--high { background: color-mix(in srgb, var(--coral) 34%, var(--paper)); }
.plan__swatch--tick { width: calc(3px * var(--s, 1)); border-radius: 0; background: var(--ink); }

/* Two across, the arrows dropped, between a phone and a wide desktop. */
@media (max-width: 1100px) {
  .journey__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(20px * var(--s, 1)); }
  .journey__arrow { display: none; }
}
/* A phone: one card at a time, swiped or stepped with the numbered dots. */
@media (max-width: 640px) {
  .journey__steps {
    display: flex; gap: calc(16px * var(--s, 1));
    /* Each card is its own height: stretched to the tallest, the chat card
       was half empty space. */
    align-items: flex-start;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .journey__steps::-webkit-scrollbar { display: none; }
  .journey__step { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: start; }
  .journey__dots { display: flex; justify-content: center; gap: calc(4px * var(--s, 1)); margin-top: calc(8px * var(--s, 1)); }
  .journey__dot {
    display: inline-flex; align-items: center; justify-content: center;
    width: calc(44px * var(--s, 1)); height: calc(44px * var(--s, 1));
    text-decoration: none;
  }
  .journey__dot .journey__num {
    background: var(--paper); color: var(--ink);
    border: 1.5px solid var(--ink);
    box-sizing: border-box;
  }
  .journey__dot[aria-current] .journey__num { background: var(--ink); color: var(--paper); }
  .journey__dot:focus-visible { outline: 2px solid var(--coral-ink); outline-offset: -4px; border-radius: 50%; }

  /* The name over its bar; the goal's label over its sentence. */
  .plan { --value: 9em; }
  .plan__row { grid-template-columns: minmax(0, 1fr); row-gap: calc(6px * var(--s, 1)); }
  .plan__bar { height: calc(16px * var(--s, 1)); }
}

/* Arriving: home.js adds .journey--anim when the section starts below the
   fold and motion is allowed, then .journey--in the first time the strip is
   on screen. The cards come in one after another, 0.6s apart, while the goal
   types itself. At rest, and without the script, all four cards are shown. */
@keyframes journey-rise { from { opacity: 0; translate: 0 8px; } }
@keyframes journey-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .journey--anim .journey__step { animation: journey-rise 0.4s ease-out both paused; }
  .journey--anim.journey--in .journey__step { animation-play-state: running; }
  .journey--anim .journey__step:nth-child(2) { animation-delay: 0.6s; }
  .journey--anim .journey__step:nth-child(3) { animation-delay: 1.2s; }
  .journey--anim .journey__step:nth-child(4) { animation-delay: 1.8s; }
  .journey__caret, .journey__goal::after { animation: journey-blink 1s steps(1) infinite; }
  .journey__goal.is-typing .journey__caret { animation: none; }
}

@media (max-width: 860px) {
  .usecases__panel { grid-template-columns: minmax(0, 1fr); }
}
/* Below this the full labels ("For Sponsorship Sales") wrap to two lines, so
   the pill shows the short team name instead. The button keeps the full name
   for screen readers. */
@media (max-width: 900px) {
  .usecases__tabs { display: flex; }
  .usecases__tab { flex: 1 1 0; padding: 0 calc(12px * var(--s, 1)); }
  .usecases__tab-long { display: none; }
  .usecases__tab-short { display: inline; }
}
@media (max-width: 480px) {
  .usecases__tab { padding: 0 calc(8px * var(--s, 1)); font-size: calc(15px * var(--s, 1)); }
}

/* A desktop window shows the heading, the tabs and all four cards in one
   screen (Tom, 17 Nov 2026): the tabs sit beside the heading instead of
   under it, the example's title runs on one line, and the gaps close up. */
@media (min-width: 1101px) {
  .usecases > .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: end; column-gap: calc(32px * var(--s, 1));
  }
  .usecases__heading { margin-bottom: 0; }
  .usecases__tabs { justify-self: end; }
  .usecases__panel {
    grid-column: 1 / -1;
    margin-top: calc(28px * var(--s, 1));
    row-gap: calc(40px * var(--s, 1));
  }
  .usecases__about { max-width: none; font-size: calc(26px * var(--s, 1)); }
  .usecases__about + .journey { margin-top: calc(-20px * var(--s, 1)); }
  .journey__bars { height: calc(64px * var(--s, 1)); margin-top: calc(24px * var(--s, 1)); }
}
