/* /use-cases/ only. Shared look and motion (h- classes, reveals, reduced motion) come from home.css. */

/* Hero and audience switcher */
.u-hero {
  position: relative;
  padding: 56px 0 0;
}
.u-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40px -50vw 30%;
  background-image:
    linear-gradient(#ffffff08 1px, #0000 1px),
    linear-gradient(90deg, #ffffff08 1px, #0000 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 50% 70% at 40% 30%, #000, #0000);
  pointer-events: none;
}
.u-hero-copy {
  max-width: 860px;
}
.u-hero h1 {
  margin-top: 26px;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 650;
  animation: h-in 0.9s var(--ease) 0.08s both;
}
.u-hero .h-kicker,
.u-hero .h-lede {
  animation: h-in 0.9s var(--ease) 0.18s both;
}
.u-hero .h-lede {
  max-width: 640px;
  animation-delay: 0.26s;
}
.u-picks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 56px;
}
.u-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  transition:
    border-color 0.3s,
    translate 0.45s var(--ease-out);
  animation: h-in 0.9s var(--ease) both;
  animation-delay: calc(0.35s + var(--i) * 0.09s);
}
.u-pick:hover {
  translate: 0 -4px;
  border-color: #4a4c4f;
  box-shadow: var(--edge), var(--shadow-raised);
}
.u-pick:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.u-pick-media {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
}
.u-pick-media .h-photo {
  object-position: center 25%;
  transition: transform 1.2s var(--ease);
}
.u-pick:hover .h-photo {
  transform: scale(1.06);
}
.u-pick .h-karaoke {
  font-size: 13px;
  bottom: 9%;
}
.u-pick .h-karaoke.style-2 {
  font-size: 13px;
}
.u-pick-num {
  padding-inline: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: #6f716c;
}
.u-pick strong {
  padding-inline: 4px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.u-pick-mode {
  padding-inline: 4px;
  font-size: 13px;
  color: var(--muted);
}
.u-pick-plan {
  align-self: flex-start;
  margin: 4px 4px 0;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.u-pick-plan.plus {
  border-color: #d2f88b55;
  background: #d2f88b0d;
  color: var(--accent);
}

/* Audience sections */
.u-preview-note {
  margin-top: 20px;
}
.u-stream-frame {
  position: absolute;
  inset: 0;
}
.u-stream-face {
  position: absolute;
  top: 12px;
  right: 10px;
  width: 32%;
  aspect-ratio: 1;
  border: 2px solid var(--accent);
  border-radius: 10px;
  overflow: hidden;
}
.u-game .h-cam {
  width: 24%;
  animation: none;
}
.u-game .h-layouts span { animation: none; }
.u-game .h-layouts span:nth-child(2) {
  background: var(--accent);
  color: #101011;
}
.u-photo-credits {
  margin-top: 48px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.u-case {
  padding-top: 140px;
}
.u-case-head {
  max-width: 820px;
  margin-bottom: 44px;
}
.u-case-head h2 {
  margin-top: 20px;
  font-size: clamp(36px, 4.4vw, 60px);
  letter-spacing: -0.055em;
}
.u-job {
  margin-top: 22px;
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
}
.u-job > span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.u-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.u-flip .u-case-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}
.u-flip .u-case-grid > :first-child {
  order: 2;
}

/* From this recording to these clips */
.u-demo {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #151617;
  box-shadow: 0 20px 40px #0006;
}
.u-src {
  padding: 10px;
  border: 1px solid #2a2b2d;
  border-radius: 16px;
  background: #18191a;
}
.u-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #222;
}
.u-duo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
.u-duo .h-photo {
  object-position: center 25%;
}
.u-solo {
  position: relative;
  height: 100%;
}
.u-solo > .h-photo {
  position: absolute;
  inset: 0;
  object-position: center top;
  animation: h-zoom 18s ease-in-out infinite alternate;
}
.u-solo > .u-pos-demo {
  object-position: center 70%;
}
.u-pos-top {
  object-position: center 22%;
}
.u-pos-left {
  object-position: 30% 30%;
}
.u-pos-right {
  object-position: 68% 30%;
}
.u-tag,
.u-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #101011cc;
  font-size: 11px;
  font-weight: 600;
}
.u-tag {
  color: var(--accent);
}
.u-logo svg {
  width: 15px;
  height: 15px;
  color: var(--violet);
}
.u-topics,
.u-ratios {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.u-topics span,
.u-ratios span {
  padding: 5px 10px;
  border: 1px solid #0000;
  border-radius: 999px;
  background: #101011b3;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  animation: h-mode 9s infinite;
}
.u-topics span:nth-child(2) { animation-delay: 3s; }
.u-topics span:nth-child(3) { animation-delay: 6s; }
.u-ratios span { animation-duration: 12s; }
.u-ratios span:nth-child(2) { animation-delay: 3s; }
.u-ratios span:nth-child(3) { animation-delay: 6s; }
.u-ratios span:nth-child(4) { animation-delay: 9s; }
.u-game {
  height: 100%;
  border-radius: 0;
}
.u-src-cap {
  font-size: 22px;
  bottom: 13%;
}

.u-track {
  position: relative;
  height: 46px;
  margin-top: 10px;
  padding: 0 4px;
  border-radius: 10px;
  background: #121313;
  overflow: hidden;
}
.u-mark {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border: 1.5px solid var(--accent);
  border-radius: 7px;
  background: #d2f88b1a;
  transform-origin: left center;
  animation: u-hit-1 10s var(--ease) infinite;
}
.u-mark-2 {
  border-color: var(--orange);
  background: #f7a06c1a;
  animation-name: u-hit-2;
}
.u-mark-3 {
  border-color: var(--violet);
  background: #c4b2fa1a;
  animation-name: u-hit-3;
}
.u-head {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -10px;
  width: 100%;
  background: linear-gradient(90deg, #0000, #fff3 7px, var(--text) 9px 11px, #fff3 13px, #0000 22px) 0 0 / 22px 100% no-repeat;
  transform: translateX(100%);
  pointer-events: none;
  animation: u-head 10s linear infinite;
}

.u-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 70px;
}
.u-flow-line {
  flex: 1;
  width: 2px;
  background: repeating-linear-gradient(#55575a 0 4px, #0000 4px 8px);
  animation: u-dash 0.8s linear infinite;
}
.u-flow-chip {
  padding: 5px 12px;
  border: 1px solid #d2f88b55;
  border-radius: 999px;
  background: #d2f88b0d;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}
.u-clips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 168px));
  justify-content: center;
  gap: 14px;
}
.u-clip {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 3px solid #2a2b2d;
  border-radius: 16px;
  overflow: hidden;
  background: #222;
  box-shadow: 0 12px 24px #000a;
  animation: u-clip-1 10s var(--ease) infinite;
}
.u-clip-2 { animation-name: u-clip-2; }
.u-clip-3 { animation-name: u-clip-3; }
.u-clip .h-chip {
  max-width: calc(100% - 20px);
  white-space: nowrap;
}
.u-from {
  position: absolute;
  left: 10px;
  top: 36px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #101011b3;
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: #d9dad3;
}
.u-clip .h-karaoke {
  left: 8px;
  right: 8px;
  font-size: 13px;
}
.u-clip .h-karaoke.style-2 { font-size: 13.5px; }
.u-clip .h-karaoke.style-3 { font-size: 12px; }
.h-karaoke.u-brand > span {
  animation-name: u-word-brand;
}
.u-note {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #6f716c;
}

/* Setup card */
.u-setup {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
}
.u-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #bfc0b9;
}
.u-start strong {
  display: block;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 650;
}
.u-start p {
  margin-top: 10px;
  font-size: 14.5px;
}
.u-start .u-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.u-alt span {
  margin-right: 4px;
  font-size: 12px;
}
.u-alt b {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #cfd0c9;
}
.u-tools {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.u-tools li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 12px;
  border-top: 1px solid #2a2b2d;
}
.u-tools .h-plan {
  justify-content: center;
  width: 52px;
  margin-top: 2px;
}
.u-tools b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.u-tools li span:not(.h-plan) {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.u-credits {
  padding: 14px 16px;
  border: 1px solid #d2f88b26;
  border-radius: 12px;
  background: #d2f88b0a;
  font-size: 14px;
}
.u-credits b {
  color: var(--text);
  font-weight: 600;
}
.u-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}

/* Free or Plus */
.u-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--edge), var(--shadow-card);
  overflow: hidden;
}
.u-table table {
  width: 100%;
  border-collapse: collapse;
}
.u-table th,
.u-table td {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}
.u-table thead th {
  border-top: 0;
  background: #151617;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfc0b9;
}
.u-table thead .h-plan {
  margin-right: 8px;
}
.u-table tbody th {
  width: 26%;
}
.u-table tbody th a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.u-table tbody th a:hover {
  color: var(--accent);
}
.u-table tbody td:last-child {
  color: #d9dad3;
}
.u-table tbody tr {
  transition: background 0.3s;
}
.u-table tbody tr:hover {
  background: #ffffff05;
}
.u-plans-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  margin-top: 28px;
}

/* Keyframes: the playhead crosses in the first 70% of the loop, each mark lights up as it passes, its clip follows. */
@keyframes u-head {
  0% { transform: translateX(0); opacity: 1; }
  70% { transform: translateX(100%); opacity: 1; }
  71%, 100% { transform: translateX(100%); opacity: 0; }
}
@keyframes u-hit-1 {
  0%, 12% { opacity: 0; transform: scaleX(0.3); }
  16%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; }
}
@keyframes u-hit-2 {
  0%, 33% { opacity: 0; transform: scaleX(0.3); }
  37%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; }
}
@keyframes u-hit-3 {
  0%, 55% { opacity: 0; transform: scaleX(0.3); }
  59%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; }
}
@keyframes u-clip-1 {
  0%, 16% { opacity: 0; transform: translateY(18px) scale(0.92); }
  22%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes u-clip-2 {
  0%, 37% { opacity: 0; transform: translateY(18px) scale(0.92); }
  43%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes u-clip-3 {
  0%, 59% { opacity: 0; transform: translateY(18px) scale(0.92); }
  65%, 92% { opacity: 1; transform: none; }
  98%, 100% { opacity: 0; transform: translateY(-6px); }
}
@keyframes u-dash {
  to { background-position: 0 8px; }
}
@keyframes u-word-brand {
  0%, 2% { background: #0000; color: #fff; }
  6%, 22% { background: var(--violet); color: #1c1730; }
  28%, 100% { background: #0000; color: #fff; }
}

@media (max-width: 1100px) {
  .u-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .u-case-grid,
  .u-flip .u-case-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .u-flip .u-case-grid > :first-child {
    order: 0;
  }
  .u-demo {
    max-width: 720px;
  }
}
@media (max-width: 850px) {
  .u-picks {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 46%;
    /* Bleeds into the page gutter: 28px here, 18px below 640px. */
    margin-inline: -28px;
    padding: 0 28px 10px;
    scroll-padding-inline: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .u-pick {
    scroll-snap-align: start;
  }
}
@media (max-width: 640px) {
  .u-hero {
    padding-top: 36px;
  }
  .u-hero h1 {
    font-size: 44px;
  }
  .u-picks {
    grid-auto-columns: 62%;
    margin-top: 40px;
    margin-inline: -18px;
    padding-inline: 18px;
    scroll-padding-inline: 18px;
  }
  .u-case {
    padding-top: 96px;
  }
  .u-case-head {
    margin-bottom: 30px;
  }
  .u-job {
    font-size: 16px;
  }
  .u-demo {
    padding: 10px;
  }
  .u-src {
    padding: 8px;
  }
  .u-clips {
    gap: 8px;
  }
  .u-clip {
    border-width: 2px;
    border-radius: 12px;
  }
  .u-clip .h-karaoke,
  .u-clip .h-karaoke.style-2,
  .u-clip .h-karaoke.style-3 {
    left: 4px;
    right: 4px;
    font-size: 10px;
  }
  .u-from {
    left: 6px;
    top: 30px;
    font-size: 8px;
  }
  .u-src-cap {
    font-size: 14px;
  }
  .u-topics span,
  .u-ratios span,
  .u-tag,
  .u-logo {
    font-size: 10px;
  }
  .u-setup {
    padding: 22px;
  }
  .u-start strong {
    font-size: 22px;
  }
  .u-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .u-table table,
  .u-table tbody,
  .u-table tr,
  .u-table th,
  .u-table td {
    display: block;
    width: auto;
  }
  .u-table tbody tr {
    padding: 18px 20px;
    border-top: 1px solid var(--line);
  }
  .u-table tbody tr:first-child {
    border-top: 0;
  }
  .u-table tbody th,
  .u-table tbody td {
    padding: 0;
    border: 0;
  }
  .u-table tbody td {
    margin-top: 10px;
  }
  .u-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6f716c;
  }
  .u-table td:last-child::before {
    color: var(--accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .u-head {
    display: none;
  }
}
