/* =========================================================
   USE CASES
   ========================================================= */

.uc { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.uc-tabs { display: grid; gap: 2px; position: sticky; top: 100px; }
.uc-tab {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: grid; grid-template-columns: 1fr; padding-right: 44px;
  padding: 10px 18px; border-radius: 16px; color: var(--text-muted);
  transition: background-color .35s var(--ease), transform .45s var(--spring), color .3s;
}
.uc-tab-l { font: 750 clamp(1.3rem, 2vw, 1.75rem)/1 var(--f-display); letter-spacing: -.04em; }
.uc-tab-c { font: 500 .72rem var(--f-mono); color: var(--text-soft); margin-top: 2px; }
.uc-tab::after { content: ""; position: absolute; right: 18px; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--t); translate: 0 -50%; transition: scale .4s var(--spring); }
.uc-tab:hover { color: var(--text); transform: translateX(6px); }
.uc-tab:hover::after { scale: 1.5; }
.uc-tab[aria-selected="true"] { background: var(--t); color: var(--tile-text); transform: translateX(10px) rotate(-1deg); }
.uc-tab[aria-selected="true"] .uc-tab-c { color: var(--tile-text); }
.uc-tab[aria-selected="true"]::after { background: var(--tile-text); scale: .7; }
.uc-tab:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }

.uc-panel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.uc-panel[hidden] { display: none; }
.uc-card {
  position: relative; background: var(--t); color: var(--tile-text); border-radius: 6px 30px 30px 30px; padding: clamp(28px, 4vw, 44px);
  display: grid; gap: 18px; margin-top: 30px;
  box-shadow: 14px 14px 0 -2px var(--t-soft), 28px 28px 0 -4px var(--surface-muted);
  animation: ucIn .7s var(--spring) both;
}
@keyframes ucIn { from { opacity: 0; transform: translateY(30px) rotate(2deg) scale(.97); } to { transform: rotate(-.8deg); } }
.uc-card { transform: rotate(-.8deg); }
.uc-file {
  position: absolute; top: -30px; left: 0; height: 30px; padding: 0 18px; display: flex; align-items: center; background: var(--t);
  border-radius: 12px 12px 0 0; font: 600 .7rem var(--f-mono); letter-spacing: .12em;
}
.uc-chip {
  position: absolute; top: -22px; right: -14px; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: 0 16px 32px var(--shadow); font-size: .8rem; line-height: 1.2;
  rotate: 4deg; animation: bob 5s ease-in-out infinite;
}
.uc-chip b { display: block; } .uc-chip small { color: var(--text-soft); }
.uc-chip .check { width: 28px; height: 28px; font-size: .8rem; }
.uc-quote { font: italic 400 clamp(1.3rem, 2vw, 1.6rem)/1.15 var(--f-serif); opacity: .8; max-width: 26ch; }
.uc-card h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.uc-stakes { font-size: 1rem; max-width: 52ch; opacity: .85; }
.uc-flow { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: f; }
.uc-flow li {
  counter-increment: f; position: relative; padding: 14px; border-radius: 16px; font-size: .9rem; line-height: 1.3;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}
.uc-flow li span { display: block; font: 700 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.uc-flow li span::before { content: counter(f) " · "; opacity: .55; }
.uc-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; translate: 0 -50%; z-index: 1; font-weight: 700; }
.uc-outcome {
  font: 650 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--f-display); letter-spacing: -.015em;
  padding: 16px 18px; border-radius: 16px; background: var(--tile-text); color: var(--t);
}
.uc-outcome::before { content: "THE RESULT"; display: block; font: 700 .68rem var(--f-mono); letter-spacing: .14em; opacity: .6; margin-bottom: 6px; }
.uc-fit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; }
.uc-fit-cta { display: flex; align-items: center; gap: 14px; }
.uc-card .btn-ink { background: var(--tile-text); color: var(--t); }
.uc-link { font-weight: 600; font-size: .9rem; text-underline-offset: 4px; }
.uc-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.uc-perks li { font: 600 .74rem var(--f-mono); letter-spacing: .02em; padding: 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.uc-perks li::before { content: "✓ "; }

.uc-more { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 10px; }
.uc-more li {
  background: var(--surface); border: 1px solid var(--line); border-left: 8px solid var(--t); border-radius: 18px; padding: 14px 18px;
  display: grid; gap: 6px; animation: ucMore .6s var(--ease) both; transition: transform .35s var(--spring), box-shadow .3s;
}
.uc-more li:nth-child(2) { animation-delay: .06s; } .uc-more li:nth-child(3) { animation-delay: .12s; }
.uc-more li:nth-child(4) { animation-delay: .18s; } .uc-more li:nth-child(5) { animation-delay: .24s; }
.uc-more li:hover { transform: translateX(-6px) rotate(-.5deg); box-shadow: 0 16px 30px -12px var(--shadow); }
.uc-more b { font: 700 1.02rem/1.2 var(--f-display); letter-spacing: -.015em; }
.uc-more span { font-size: .88rem; line-height: 1.4; color: var(--text-muted); }
@keyframes ucMore { from { opacity: 0; transform: translateX(24px); } }

@media (max-width: 900px) {
  .uc { grid-template-columns: 1fr; }
  .uc-tabs {
    position: static; display: flex; overflow-x: auto; gap: 8px; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 12px; scrollbar-width: none;
  }
  .uc-tabs::-webkit-scrollbar { display: none; }
  .uc-tab { flex: none; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; grid-template-columns: auto; }
  .uc-tab-c, .uc-tab::after { display: none; }
  .uc-tab-l { font-size: 1.15rem; }
  .uc-tab:hover, .uc-tab[aria-selected="true"] { transform: none; }
  .uc-tab[aria-selected="true"] { border-color: transparent; }
  .uc-panel { grid-template-columns: 1fr; }
  .uc-more { margin-top: 18px; }
}
@media (max-width: 560px) {
  .uc-flow { grid-template-columns: 1fr; }
  .uc-flow li:not(:last-child)::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -15px; translate: -50% 0; }
  .uc-chip { right: 8px; top: -26px; }
  .uc-card { box-shadow: 8px 8px 0 -2px var(--t-soft), 16px 16px 0 -4px var(--surface-muted); }
}
