/* izCloud public site: product visuals (inline SVG scenes beside hero copy).
   Every colour comes from the --mk-* tokens so light and dark themes match.
   Scenes are decorative (aria-hidden); copy stays in the page and lang files. */

:root { --mk-danger: #dc2626; --mk-warn: #d97706; }
[data-bs-theme="dark"] { --mk-danger: #f87171; --mk-warn: #fbbf24; }

/* Stage: visual frame + optional floating spec panel */
.mk-stage { position: relative; }
.mk-visual {
  position: relative;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--mk-brand-soft), transparent 60%),
    var(--mk-bg-alt);
  overflow: hidden;
}
.mk-visual svg { display: block; width: 100%; height: auto; }
.mk-stage .mk-panel--float { margin-top: 1rem; box-shadow: 0 12px 32px rgba(15, 23, 42, .10); }
[data-bs-theme="dark"] .mk-stage .mk-panel--float { box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
/* Panel overlaps only the visual's lower-left band (scenes keep that band quiet) */
@media (min-width: 992px) {
  .mk-stage .mk-panel--float {
    position: relative; z-index: 1;
    width: min(68%, 24rem); margin-top: -4.5rem; margin-inline-start: -2.5rem;
  }
}

/* Pages whose stage carries a floating panel: copy starts level with the visual instead of
   being centred against the taller visual + panel column */
@media (min-width: 992px) {
  .mk-hero .row:has(> div > .mk-stage) { align-items: flex-start !important; }
  .mk-hero .row:has(> div > .mk-stage) > div:first-child { padding-top: 2.5rem; }
}

/* Home: pool spec strip below the hero (hairline grid; 3 / 2 / 1 columns) */
.mk-pool { padding: 0 0 3rem; }
.mk-kv--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; }
.mk-kv--grid > div {
  display: flex; flex-direction: column; align-items: flex-start; gap: .25rem;
  padding: 1rem 1.125rem; border-top: 0;
  /* hairline: right + bottom edges; the outer ones are clipped by overflow, empty cells stay blank */
  box-shadow: 1px 0 0 var(--mk-line), 0 1px 0 var(--mk-line);
}
.mk-kv--grid dt { font-size: .8125rem; }
.mk-kv--grid dd { text-align: start; font-size: 1rem; font-weight: 500; }
@media (max-width: 991.98px) { .mk-kv--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .mk-kv--grid { grid-template-columns: minmax(0, 1fr); } }

/* SVG primitives */
.v-grid { stroke: var(--mk-line); stroke-width: 1; fill: none; }
.v-card { fill: var(--mk-bg); stroke: var(--mk-line-strong); stroke-width: 1; }
.v-card-alt { fill: var(--mk-bg-alt); stroke: var(--mk-line); stroke-width: 1; }
.v-fill-alt { fill: var(--mk-bg-alt); }
.v-line { stroke: var(--mk-line-strong); stroke-width: 1.25; fill: none; }
.v-line-soft { stroke: var(--mk-line); stroke-width: 1; fill: none; }
.v-brand { fill: var(--mk-brand); }
.v-brand-stroke { stroke: var(--mk-brand); stroke-width: 1.5; fill: none; }
.v-soft { fill: var(--mk-brand-soft); }
.v-ok { fill: var(--mk-ok); }
.v-bad { fill: var(--mk-danger); }
.v-bad-stroke { stroke: var(--mk-danger); stroke-width: 1.75; fill: none; stroke-linecap: round; }
.v-warn { fill: var(--mk-warn); }
.v-mute { fill: var(--mk-line-strong); }
.v-ink { fill: var(--mk-fg); }
.v-ink-2 { fill: var(--mk-fg-2); }
.v-t { fill: var(--mk-fg-3); font-family: var(--mk-mono); font-size: 11px; }
.v-t-2 { fill: var(--mk-fg-2); font-family: var(--mk-mono); font-size: 11px; }
.v-t-strong { fill: var(--mk-fg); font-size: 12.5px; font-weight: 600; }
.v-t-brand { fill: var(--mk-brand); font-family: var(--mk-mono); font-size: 11px; font-weight: 600; }
.v-t-ok { fill: var(--mk-ok); font-family: var(--mk-mono); font-size: 11px; }
.v-icon { stroke: var(--mk-fg-2); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-icon-brand { stroke: var(--mk-brand); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.v-on-brand { fill: #fff; }

/* Motion: flowing traffic and live dots (off for reduced motion) */
.v-flow { stroke: var(--mk-brand); stroke-width: 1.5; fill: none; stroke-dasharray: 3 7; animation: mk-v-dash 1.4s linear infinite; }
.v-flow--slow { animation-duration: 2.4s; }
.v-flow--bad { stroke: var(--mk-danger); }
.v-pulse { animation: mk-v-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.v-pulse--d1 { animation-delay: .6s; }
.v-pulse--d2 { animation-delay: 1.2s; }
.v-blink { animation: mk-v-blink 1.1s steps(1) infinite; }
@keyframes mk-v-dash { to { stroke-dashoffset: -20; } }
@keyframes mk-v-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes mk-v-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .v-flow, .v-pulse, .v-blink { animation: none; }
}
