/* Same dark palette as the app (apps/web/src/styles/tokens.css); dark theme only (REQ-THEME-001). */
@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/nunito-latin-800-normal.woff2") format("woff2");
}

:root {
  --bg-body: #0b0716;
  --bg-card: #181025;
  --border-color: #2e2241;
  --primary: #9057c3;
  --text-primary: #f4f1ff;
  --text-muted: #a99fc8;
  --text-accent: #b98ee0;
  --text-highlight: #50ff5c;
  --danger: #ff8a8a;
  --radius: 14px;
  --font-heading: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* A soft violet glow at the top and a faint green one on the side: the same mood as the presentation, never louder than the text. */
body {
  position: relative;
  margin: 0;
  background:
    radial-gradient(900px 520px at 88% -4%, rgba(144, 87, 195, 0.2), transparent 62%),
    radial-gradient(700px 460px at -6% 38%, rgba(80, 255, 92, 0.045), transparent 62%),
    radial-gradient(800px 500px at 100% 82%, rgba(144, 87, 195, 0.1), transparent 62%), var(--bg-body);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Dots like the modules of the logo's QR bunch, fading out down the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(185, 142, 224, 0.13) 1.6px, transparent 1.8px) 0 0 / 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

main,
.bar,
footer {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

/* Holds the logo symbol only; it takes no space. */
.sprite {
  position: absolute;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--text-highlight);
  color: var(--bg-body);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

a {
  color: var(--text-accent);
}

:focus-visible {
  outline: 3px solid var(--text-highlight);
  outline-offset: 3px;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  width: 32px;
  height: 37px;
  flex: none;
}
.wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.w-grape {
  color: var(--primary);
}
.w-field {
  color: var(--text-highlight);
}
/* The product name inside running text, written like the logo and the presentation: "grape" purple, "field" green. */
.brand-name {
  font-weight: 800;
  white-space: nowrap;
}

.btn {
  display: inline-block;
  min-height: 44px;
  padding: 11px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.12);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn-small {
  padding: 8px 18px;
  min-height: 40px;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--text-accent);
  color: var(--text-primary);
}

/* The menu of the page: Inicio, Cómo funciona, Precios and Contacto. */
.sections {
  display: flex;
  align-items: center;
  gap: 4px 20px;
  /* The entries never push the page sideways: if they do not fit one row, they wrap to a second one. */
  flex-wrap: wrap;
}
/* On a phone the logo already leads home, so «Inicio» steps out and the other three fit one row under the logo. */
@media (max-width: 879px) {
  .sections {
    width: 100%;
    justify-content: space-between;
    gap: 4px 12px;
  }
  .sections .nav-link[href="/"] {
    display: none;
  }
}
.nav-link {
  padding: 10px 4px;
  white-space: nowrap;
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text-primary);
}
.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--text-highlight);
}

.photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px -24px rgba(144, 87, 195, 0.55);
}

.hero {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 48px 0 56px;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--text-highlight);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
h1,
h2,
h3 {
  font-family: var(--font-heading);
}
h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
}
.lead,
.section-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}
.lead {
  margin: 0 0 28px;
}
/* The preview offer, one line under the hero buttons. */
.hero-note {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}
/* The title of the Precios and Contacto pages: the page's only h1, sized like a section title. */
.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}
section {
  padding: 40px 0;
}
.section-lead {
  margin: 0 0 28px;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  padding: 22px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.card h3 {
  margin: 12px 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}
.card > h3:first-child {
  margin-top: 0;
}
/* The cards for what is required: framed in the brand green so they read apart from the optional ones. */
.card-key {
  background: rgba(80, 255, 92, 0.07);
  border: 2px solid rgba(80, 255, 92, 0.55);
}
.card-key h3 {
  font-size: 1.25rem;
}
.card.card-key p {
  color: var(--text-primary);
}
.card p {
  margin: 0;
  color: var(--text-muted);
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.chip-on {
  background: rgba(80, 255, 92, 0.14);
  color: var(--text-highlight);
}
.chip-soon {
  background: rgba(185, 142, 224, 0.16);
  color: var(--text-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: rgba(80, 255, 92, 0.06);
  border: 1px solid rgba(80, 255, 92, 0.35);
  border-radius: var(--radius);
}
.trial h2 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}
.trial p {
  margin: 0;
  max-width: 60ch;
  color: var(--text-muted);
}

/* The packages sit in one row that slides sideways, so five cards never wrap into uneven rows. */
.carousel-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.carousel-hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.carousel-btns {
  display: flex;
  gap: 8px;
}
.carousel-btn,
.modal-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  cursor: pointer;
}
.carousel-btn:hover:not(:disabled),
.modal-close:hover {
  border-color: var(--primary);
}
.carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
/* The pause button shows what it will do: pause while the row turns, play while it is paused. */
.carousel-pause .icon-play,
.carousel-pause[data-paused="true"] .icon-pause {
  display: none;
}
.carousel-pause[data-paused="true"] .icon-play {
  display: block;
}
.carousel-btn:focus-visible,
.modal-close:focus-visible,
.plans:focus-visible {
  outline: 2px solid var(--text-highlight);
  outline-offset: 2px;
}
.plans {
  list-style: none;
  margin: 0;
  padding: 8px 8px 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.plan {
  flex: 0 0 min(300px, 84%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.plan-featured {
  border-color: var(--primary);
  box-shadow: 0 18px 50px -26px rgba(144, 87, 195, 0.9);
}
.plan h3 {
  margin: 10px 0 4px;
  font-size: 1.3rem;
  font-weight: 800;
}
.plan:not(.plan-featured) h3 {
  margin-top: 0;
}
.plan-for {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.price {
  margin: 0 0 4px;
  line-height: 1.2;
}
.amount {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
}
.old-price {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: line-through;
}
.per {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.included {
  margin: 8px 0 14px;
  color: var(--text-accent);
  font-size: 0.9rem;
  font-weight: 700;
}
.plan-list {
  flex: 1;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.plan-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--text-highlight);
  font-weight: 800;
}
.plan-list .chip {
  margin-left: 4px;
  vertical-align: 1px;
}
/* On a wide screen the five packages sit side by side to be compared at a glance, a little wider than the page;
   below that width they stay in the carousel (REQ-LND-009). */
@media (min-width: 1240px) {
  .carousel[aria-label="Paquetes"] {
    margin-inline: -80px;
  }
  .carousel[aria-label="Paquetes"] .carousel-bar {
    display: none;
  }
  .plans {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow: visible;
    padding: 8px 0 20px;
  }
  .plan {
    padding: 18px;
  }
}
.video {
  margin: 0 0 48px;
}
/* The presentation video is a poster that opens the shared full-screen modal (video-modal.js, REQ-LND-010). */
.video__open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  font: inherit;
  color: inherit;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
}
.video__open:hover {
  border-color: var(--primary);
}
.video__open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #fff;
  border-radius: 50%;
  pointer-events: none;
}
.video__open:hover .video__play {
  background: rgba(0, 0, 0, 0.8);
}
.video__play svg {
  width: 40px;
  height: 40px;
  margin-left: 4px;
}
.video figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.step-title {
  margin: 40px 0 12px;
  font-size: 1.4rem;
}
.step-lead {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--text-muted);
}
.step-lead strong {
  color: var(--text-primary);
}
.enterprise {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 16px;
  padding: 20px 24px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.enterprise h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 800;
}
.enterprise p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
}
.packs {
  width: 100%;
  max-width: 560px;
  border-collapse: collapse;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.packs th,
.packs td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  color: var(--text-muted);
}
.packs thead th {
  font-size: 0.85rem;
  color: var(--text-accent);
}
.packs tbody th {
  color: var(--text-primary);
  font-weight: 800;
}
.packs tr:last-child th,
.packs tr:last-child td {
  border-bottom: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.plan-notes {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plan-notes li {
  margin-bottom: 6px;
}
.plan-notes strong {
  color: var(--text-primary);
}
/* The rest of the notes wait folded under «Notas». */
.plan-notes + .faq {
  margin-top: 12px;
}
.faq .plan-notes {
  margin: 0;
  padding: 0 20px 10px 40px;
}

.split {
  display: grid;
  gap: 28px;
  align-items: center;
}
.steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text-muted);
}
.steps li {
  margin-bottom: 10px;
}
.steps strong {
  color: var(--text-primary);
}

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.faq summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
}
.faq summary:focus-visible {
  outline: 2px solid var(--text-highlight);
  outline-offset: 2px;
  border-radius: var(--radius);
}
.faq p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--text-muted);
}

.demo {
  display: grid;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(24, 16, 37, 0.86);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.demo-photo {
  display: none;
}
form {
  max-width: 520px;
}
.field {
  margin-bottom: 18px;
}
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.optional {
  color: var(--text-muted);
  font-weight: 400;
}
input[type="email"],
input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--bg-body);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font: inherit;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
}
.hint {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.error {
  margin: 4px 0 0;
  min-height: 0;
  color: var(--danger);
  font-size: 0.9rem;
}
.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
}
.check label {
  margin: 0;
  font-weight: 400;
}
.check .error {
  grid-column: 2;
}
.privacy {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.status {
  margin: 14px 0 0;
  font-weight: 600;
}
.status[data-kind="ok"] {
  color: var(--text-highlight);
}
.status[data-kind="error"] {
  color: var(--danger);
}

/* Plan a la medida (Precios) opens in a modal dialog so the page stays short. */
.modal {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: auto;
}
.modal::backdrop {
  background: rgba(5, 3, 10, 0.78);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 14px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}
.modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.modal-body {
  padding: 20px 24px 24px;
}
.modal .quiz {
  max-width: none;
  padding: 0;
  background: none;
  border: 0;
}
.modal-open {
  overflow: hidden;
}

/* Plan a la medida (Precios): a short quiz, a live summary and the contact fields. */
.quiz {
  max-width: 720px;
  padding: 24px;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.quiz fieldset {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.quiz legend {
  margin-bottom: 10px;
  padding: 0;
  font-weight: 800;
  color: var(--text-primary);
}
.quiz .check {
  margin-bottom: 12px;
}
.quiz select {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  background: var(--bg-body);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font: inherit;
}
.quiz .hint {
  grid-column: 2;
}
.plan-result {
  margin: 0 0 24px;
  padding: 16px 20px;
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}
.plan-result h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 800;
}
.plan-empty,
.plan-note {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.plan-picked {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plan-picked li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.plan-amount {
  color: var(--text-primary);
  font-weight: 800;
  white-space: nowrap;
}
.plan-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 12px 0 0;
  font-weight: 700;
}
.plan-total strong {
  color: var(--text-highlight);
  font-size: 1.15rem;
}
.plan-tip {
  margin: 12px 0 0;
  color: var(--text-highlight);
  font-weight: 700;
}

/* Bots fill it; people never see it. Off-screen instead of display:none so simple bots still fill it. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.brand-small .wordmark {
  font-size: 1.25rem;
}
.brand-small .mark {
  width: 24px;
  height: 28px;
}
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.velt {
  width: 56px;
  height: 56px;
}
.copy {
  margin: 0;
  width: 100%;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    padding: 72px 0 64px;
  }
  /* Eight features, four per row: two full rows, no gap at the end. */
  #funcionalidades .cards {
    grid-template-columns: repeat(4, 1fr);
  }
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
  .split-reverse .photo {
    order: -1;
  }
  .demo {
    grid-template-columns: 1fr minmax(240px, 320px);
    gap: 48px;
  }
  .demo-photo {
    display: block;
  }
  .copy {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* The privacy notice: long reading text, so a narrow column and quieter section titles. */
.legal {
  max-width: 70ch;
}
.legal h2 {
  margin: 32px 0 8px;
  font-size: 1.25rem;
}
.legal p,
.legal li {
  line-height: 1.6;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}
.legal li + li {
  margin-top: 6px;
}

/* Casos de uso (Inicio): the cards slide sideways like the packages of Precios; a click opens a full-screen video modal. */
.usecases {
  list-style: none;
  margin: 0;
  padding: 8px 8px 20px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}
.usecases:focus-visible,
.usecase__open:focus-visible {
  outline: 2px solid var(--text-highlight);
  outline-offset: 2px;
}
.usecase {
  flex: 0 0 min(320px, 84%);
  scroll-snap-align: start;
}
.usecase__open {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  font: inherit;
  color: inherit;
  background: rgba(24, 16, 37, 0.82);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
}
.usecase__open:hover {
  border-color: var(--primary);
}
.usecase__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #000;
}
/* On the home page the use cases picture is itself a link to the subsection. */
a.usecase__thumb {
  overflow: hidden;
}
.usecase__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.usecase__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: auto;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border: 3px solid #fff;
  border-radius: 50%;
}
.usecase__play svg {
  margin-left: 3px;
}
.usecase__open:hover .usecase__play {
  background: rgba(0, 0, 0, 0.8);
}
.usecase__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 20px;
}
.usecase__title {
  font-size: 1.1rem;
  font-weight: 700;
}
.usecase__text {
  color: var(--text-muted);
}
.usecase__time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* The video modal fills the screen; the video is contained, so it is never cropped on a phone or a wide monitor. */
.video-modal {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  background: #05030a;
  border: 0;
}
.video-modal[open] {
  display: flex;
  flex-direction: column;
}
.video-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.video-modal__bar h2 {
  margin: 0;
  font-size: 1.1rem;
}
/* A row and a column that can shrink to the stage (minmax(0, 1fr)), so the video's 100% is the stage, never its own size. */
.video-modal__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: 0 16px 16px;
}
.video-modal video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
}
@media (max-height: 520px) {
  .video-modal__bar {
    padding: 4px 12px;
  }
  .video-modal__bar h2 {
    font-size: 0.95rem;
  }
  .video-modal__stage {
    padding: 0 12px 8px;
  }
}
