/* ── Use cases ──────────────────────────────────────────────
   The one section with real colour: the four hues come straight from the
   brand mark, so it reads as identity rather than decoration. */

.uses { margin-top: 76px; display: flex; flex-direction: column; gap: 26px; }

.uses-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.uses-title { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.03em; }
.uses-note { color: var(--muted); font-size: 15.5px; }

.uses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.uc {
  --uc: #2d7ff9;
  --uc-soft: rgba(45, 127, 249, 0.13);
  --uc-wash: rgba(45, 127, 249, 0.07);
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  position: relative;
  overflow: hidden;
  /* A soft wash of the card's hue pools behind the icon corner, so each card
     carries its colour as light rather than as a painted panel. */
  background-image: radial-gradient(130% 90% at 0% 0%, var(--uc-wash), transparent 55%);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.uc--wide { grid-column: span 2; }

.uc--blue  { --uc: #2d7ff9; --uc-soft: rgba(45, 127, 249, 0.13); --uc-wash: rgba(45, 127, 249, 0.07); }
.uc--green { --uc: #1fa463; --uc-soft: rgba(31, 164, 99, 0.13); --uc-wash: rgba(31, 164, 99, 0.07); }
.uc--flame { --uc: #e8553e; --uc-soft: rgba(232, 85, 62, 0.13); --uc-wash: rgba(232, 85, 62, 0.07); }
.uc--gold  { --uc: #f5b429; --uc-soft: rgba(245, 180, 41, 0.14); --uc-wash: rgba(245, 180, 41, 0.08); }

/* The lightest hues lose contrast as text on the light page. */
:root[data-theme="light"] .uc--gold { --uc: #9a6b1f; }
:root[data-theme="light"] .uc--blue { --uc: #1e63cc; }

/* After the modifiers above: at equal specificity the later rule must win,
   or span 2 survives into the single-column layout and forces a phantom
   second column off the right edge of the screen. */
@media (max-width: 980px) {
  .uses-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; width: 100%; gap: 12px; }
  .uc--wide { grid-column: auto; }
}

.uc:hover { border-color: var(--line-hi); transform: translateY(-2px); }
@supports (border-color: color-mix(in srgb, red 50%, transparent)) {
  .uc:hover {
    border-color: color-mix(in srgb, var(--uc) 45%, transparent);
    box-shadow: 0 14px 44px color-mix(in srgb, var(--uc) 14%, transparent);
  }
}

/* Colour-tinted hairline across the top, brighter than the step cards': this
   is the section that gets to speak in colour. */
.uc::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--uc), transparent);
  opacity: 0.45;
}

/* Solid hue tile with a white glyph and its own coloured glow, the one fully
   saturated element on each card. */
.uc-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(160deg, var(--uc), color-mix(in srgb, var(--uc) 78%, #000));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 3px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--uc) 32%, transparent);
}

/* Fallback where color-mix is unsupported: flat hue, no glow. */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
  .uc-icon { background: var(--uc); box-shadow: none; }
}

.uc-icon svg { width: 19px; height: 19px; }

.uc-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--uc);
}

.uc-title { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.uc-body { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

.uc-exchange {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.uc-bubble {
  font-size: 13px;
  line-height: 1.5;
  padding: 9px 13px;
  border-radius: 14px;
  max-width: 88%;
}

.uc-bubble--q {
  align-self: flex-end;
  background: var(--accent);
  color: var(--on-accent);
  border-bottom-right-radius: 4px;
}

.uc-bubble--a {
  align-self: flex-start;
  background: var(--surface-hi);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.uc-files { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }

.uc-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

.uc-file svg { width: 12px; height: 12px; color: var(--uc); }

/* The vignettes borrow a trace of their card's hue, so the wide cards read
   as one composed picture rather than grey UI pasted onto a tinted panel. */
@supports (border-color: color-mix(in srgb, red 50%, transparent)) {
  .uc-bubble--a { border-color: color-mix(in srgb, var(--uc) 24%, var(--line)); }
  .uc-file { border-color: color-mix(in srgb, var(--uc) 20%, var(--line)); }
}

/* ── Steps ──────────────────────────────────────────────── */

.steps { margin-top: 76px; display: flex; flex-direction: column; gap: 26px; }

.steps-head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.steps-title { font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -0.03em; }
.steps-note { color: var(--muted); font-size: 15px; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; width: 100%; gap: 12px; }
}

.step {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.step:hover { border-color: var(--line-hi); transform: translateY(-2px); }

.step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-soft), transparent);
  opacity: 0.7;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.step-title { font-size: 17px; font-weight: 600; }
.step-body { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* Small UI vignette per step, so the step is seen rather than imagined.
   margin-top: auto pins all three to the card bottom across unequal copy. */
.step-visual {
  margin-top: auto;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.mini-field {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--text);
  background: var(--bg-raised);
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  padding: 9px 12px;
  overflow: hidden;
  white-space: nowrap;
}

/* caret-blink keyframes live in landing-demo.css; the landing sheets always
   load together (index.html), and keyframes are document-global. */
.mini-caret {
  width: 1.5px;
  height: 14px;
  margin-left: 2px;
  background: var(--brand);
  flex: none;
  animation: caret-blink 1.1s steps(1) infinite;
}

.mini-row { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); min-width: 0; }
.mini-row svg { width: 14px; height: 14px; color: var(--subtle); }
.mini-row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mini-row-check { color: var(--good); display: grid; place-items: center; flex: none; }
.mini-row-check svg { width: 12px; height: 12px; color: var(--good); stroke-width: 2.6; }

/* One source still indexing: a small indeterminate bar keeps the vignette
   mid-action rather than a finished state. */
.mini-progress {
  width: 34px;
  height: 3px;
  border-radius: 2px;
  background: var(--surface-hi);
  overflow: hidden;
  flex: none;
  position: relative;
}

.mini-progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 45%;
  border-radius: 2px;
  background: var(--good);
  animation: mini-slide 1.3s ease-in-out infinite alternate;
}

@keyframes mini-slide { to { transform: translateX(122%); } }

.mini-link { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mini-link > svg { width: 14px; height: 14px; color: var(--subtle); }

.mini-link-url {
  flex: 1;
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-live { font-size: 11px; padding: 4px 10px; flex: none; }
