/* ServiceOS hero demo. Own styles only; the homepage owns the hero grid. */
.cv-serviceos {
  --so-mint: #77f7e7;
  --so-periwinkle: #c9ceff;
  --so-text: #f3f8f8;
  --so-muted: #b9c8cf;
  min-width: 0;
  width: min(26.5rem, 34vw);
  justify-self: end;
  padding: 15px 17px 14px;
  border: 1px solid rgba(171, 205, 212, .24);
  border-radius: 13px;
  color: var(--so-text);
  background: rgba(10, 17, 21, .94);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .06);
  overflow-wrap: anywhere;
  font: 400 .875rem/1.42 var(--font-body, system-ui, sans-serif);
}

.cv-serviceos [hidden] { display: none !important; }
.cv-serviceos :where(h2, p, blockquote) { margin: 0; }

.cv-serviceos__header,
.cv-serviceos__brand,
.cv-serviceos__controls,
.cv-serviceos__actions {
  display: flex;
  align-items: center;
}
.cv-serviceos__header { justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; }
.cv-serviceos__brand { gap: 6px; color: var(--so-mint); font-weight: 750; }
.cv-serviceos__brand svg { flex: none; }
.cv-serviceos__badge {
  padding: 3px 7px;
  border: 1px solid #3b5158;
  border-radius: 5px;
  color: var(--so-muted);
  font-size: .68rem;
  font-weight: 660;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.cv-serviceos h2 {
  margin: 5px 0 9px;
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  font-weight: 720;
  line-height: 1.22;
  letter-spacing: -.018em;
  color: var(--so-text);
}
.cv-serviceos__controls { gap: 6px; flex-wrap: wrap; }
.cv-serviceos button {
  max-width: 100%;
  min-height: 40px;
  padding: 5px 9px;
  font: inherit;
  font-size: .8rem;
  font-weight: 670;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  white-space: normal;
}
.cv-serviceos button:focus-visible { outline: 2px solid var(--so-mint); outline-offset: 2px; }
.cv-serviceos__choice { background: #17232b; color: var(--so-text); border-color: #41535b !important; }
.cv-serviceos__choice[aria-pressed="true"] {
  border-color: #6bd7c8 !important;
  background: #183a3b;
  color: var(--so-mint);
}
.cv-serviceos__message {
  margin-top: 8px;
  padding: 6px 8px;
  border-left: 2px solid #4f6a72;
  background: #131f27;
  color: var(--so-text);
}
.cv-serviceos__result { margin-top: 7px; }
.cv-serviceos__result[data-ready] { border: 1px solid #475172; border-radius: 7px; padding: 6px 8px; background: #141d2e; }
.cv-serviceos__state { color: var(--so-periwinkle); font-size: .8rem; font-weight: 760; }
.cv-serviceos__response { margin-top: 2px; font-size: .84rem; }
.cv-serviceos__source,
.cv-serviceos__note,
.cv-serviceos__fallback { color: var(--so-muted); }
.cv-serviceos__source { margin-top: 3px; font-size: .75rem; }
.cv-serviceos__actions { flex-wrap: wrap; gap: 4px 7px; margin-top: 8px; }
.cv-serviceos__action { background: #143b39; color: var(--so-mint); border-color: #4e9a8e !important; }
.cv-serviceos__action:hover { background: #21534f; }
.cv-serviceos__action span { margin-inline-start: 3px; }
.cv-serviceos__reset { color: var(--so-muted); background: transparent; }
.cv-serviceos__reset:not(:disabled):hover { color: var(--so-text); background: #253039; }
.cv-serviceos__reset:disabled { opacity: .65; cursor: default; }
.cv-serviceos__note { margin-top: 5px; font-size: .72rem; }
.cv-serviceos__fallback { margin-top: 7px; }

@media (max-width: 960px) {
  .cv-serviceos { width: 100%; max-width: 26.5rem; justify-self: start; }
}
@media (max-width: 720px) {
  .cv-serviceos { padding: 13px; }
}
@media (max-height: 620px) and (min-width: 760px) {
  .cv-serviceos { width: min(23rem, 35vw); }
}
/* Match the stacked grid on portrait tablets. Make the hero content-sized so
   the expanded review card and the dock cannot overlap on a short tablet. */
@media (721px <= width <= 960px) and (height > 620px) {
  html[data-scrub-ready] .cv-hero:has(.cv-serviceos) { height: auto; min-height: 96svh; padding-block: 110px 100px; }
  html[data-scrub-ready] .cv-hero:has(.cv-serviceos) .cv-hero__stage,
  html[data-scrub-ready] .cv-hero:has(.cv-serviceos) .cv-hero__dock { position: absolute; inset: 0; height: auto; margin-top: 0; }
  html[data-scrub-ready] .cv-hero:has(.cv-serviceos) .cv-hero__flow { position: relative; inset: auto; height: auto; padding-block: 0; }
}
