/* GENERATED FILE. Edit design/hero-demo.css and run `npm run styles:build`. */
/* Styles for the homepage hero example panel (#hero-demo, a shadow root).
 * Linked from inside the shadow root because the CSP forbids inline <style>.
 * Compiled to public/hero-demo.css by scripts/build-styles.mts. */
/* Panel reads the host page tokens (--surface, --ink, --accent ...), so it follows kybriq.cz light/dark with no extra theme code. */
:host {
  display: block;
  /* Page CSS hides .hero-demo until this sheet has loaded (no unstyled flash). */
  /* biome-ignore lint/complexity/noImportantStyles: print and host-visibility overrides must beat the timeline and page rules */
  visibility: visible !important;
}
.demo {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-panel);
  overflow: hidden;
  font: 13px / 1.45 var(--font-body);
  text-align: left;
}
.d-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.dots {
  display: flex;
  gap: 5px;
}
.dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.url {
  flex: 1;
  min-width: 0;
  font: 12px var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 9px;
  white-space: nowrap;
  overflow: hidden;
}
.caret {
  display: inline-block;
  width: 1px;
  height: 12px;
  background: var(--ink);
  vertical-align: -2px;
  margin-left: 1px;
  opacity: 0;
}
.typing .caret {
  opacity: 1;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.ex {
  font: 600 10px / 1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}
.body {
  padding: 12px 14px 14px;
}
.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 11px var(--font-mono);
  color: var(--muted);
  min-height: 16px;
  margin-bottom: 10px;
}
.led {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.demo.done .led {
  background: var(--danger);
}

/* stage: the calculator form, later covered by the verdict card. Both share one grid cell, so the cell is as tall as the taller one at every width. */
.stage {
  display: grid;
}
.stage > * {
  grid-area: 1 / 1;
  min-width: 0;
}
.form {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 9px;
  align-content: start;
}
.q {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
}
.q .n {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--ink-2);
  font: 700 10px / 18px var(--font-mono);
  text-align: center;
}
.ql {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.qa {
  margin: 2px 0 0;
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.3;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--bg);
}
.qa .ph {
  display: none;
  color: var(--muted);
  font-weight: 400;
}

.verdict {
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vk {
  margin: 0;
  font: 700 10.5px / 1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.verdict h3 {
  margin: 0;
  font: 700 16px / 1.25 var(--font-display);
  letter-spacing: -0.01em;
}
.verdict h3 span {
  display: inline-block;
  margin-top: 3px;
  background: var(--danger-soft);
  color: var(--danger-text);
  border-radius: 6px;
  padding: 2px 7px;
}
.why {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.pin {
  display: inline-block;
  font: 600 10.5px / 1.2 var(--font-mono);
  color: var(--accent-text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 7px;
  white-space: nowrap;
  transform-origin: left center;
}
.why .pin {
  margin-top: 5px;
  white-space: normal;
}
.fix {
  font: 11px / 1.45 var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
}
.fix b {
  font-weight: 600;
}
.price {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.next {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
}

/* calendar */
.cols {
  display: flex;
  justify-content: space-between;
  font: 600 10px / 1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 12px 0 6px;
  padding: 0 9px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 7px 9px;
  border-radius: 8px;
  background: var(--bg);
}
.row .d {
  font: 600 11.5px / 1.2 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  justify-self: start;
  padding-bottom: 2px;
}
.row p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.3;
}
.row .pin {
  transform-origin: right center;
}
.caveat {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 420px) {
  .row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .row p {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* timeline: only when JS plays it. No JS, reduced motion and print show this final frame. */
.anim [data-at] {
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.anim .row[data-at]:not(.on) {
  opacity: 0;
  transform: translateY(6px);
}
.anim .pin[data-at] {
  transition:
    opacity 0.3s ease,
    transform 0.45s cubic-bezier(0.3, 1.4, 0.4, 1);
}
.anim .pin[data-at]:not(.on) {
  opacity: 0;
  transform: scaleX(0.6);
}
.anim .verdict[data-at]:not(.on) {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}
.anim .fix[data-at]:not(.on),
.anim .caveat[data-at]:not(.on) {
  opacity: 0;
}
.anim .qa[data-at]:not(.on) .ph {
  display: inline;
}
.anim .qa[data-at]:not(.on) .v {
  display: none;
}
.anim .qa.on {
  animation: pick 0.7s var(--ease);
}
@keyframes pick {
  0% {
    border-color: var(--accent);
    background: var(--accent-soft);
  }
  100% {
    border-color: var(--line);
    background: var(--bg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .typing .caret {
    animation: none;
  }
}

/* Print shows the final frame whatever the timeline state. */
@media print {
  .anim [data-at] {
    /* biome-ignore lint/complexity/noImportantStyles: print and host-visibility overrides must beat the timeline and page rules */
    opacity: 1 !important;
    /* biome-ignore lint/complexity/noImportantStyles: print and host-visibility overrides must beat the timeline and page rules */
    transform: none !important;
    /* biome-ignore lint/complexity/noImportantStyles: print and host-visibility overrides must beat the timeline and page rules */
    pointer-events: auto !important;
  }

  .anim .qa[data-at]:not(.on) .ph {
    /* biome-ignore lint/complexity/noImportantStyles: print and host-visibility overrides must beat the timeline and page rules */
    display: none !important;
  }

  .anim .qa[data-at]:not(.on) .v {
    /* biome-ignore lint/complexity/noImportantStyles: print and host-visibility overrides must beat the timeline and page rules */
    display: inline !important;
  }
}
