/* Shared landing tool-card chrome for Hugo article widgets */
.tools-landing {
  --bg: #f5f3f0;
  --bg-elev: #ebe7e2;
  --bg-card: #fffcf9;
  --line: #ddd6cd;
  --text: #1c1917;
  --muted: #6b6560;
  --dim: #9a928a;
  --amber: #f5ad4f;
  --amber-dim: rgba(245, 173, 79, 0.18);
  --amber-ink: #b45309;
  --cyan: #6b5e54;
  --green: #166534;
  --green-dim: rgba(22, 101, 52, 0.1);
  --shadow: 0 6px 20px rgba(40, 32, 24, 0.08);
  --btn-primary-fg: #1c1917;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  --edo-yellow: #f6f42e;
  --edo-gray: #555d67;
  --edo-soft: #f3f6f9;
  margin: 1.5rem 0 1.25rem;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.45;
}

.tools-landing__row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.55fr);
  gap: 16px 20px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tools-landing__visual {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tools-landing__visual .tools-demo {
  margin: 0;
  width: 100%;
  text-align: center;
}

.tools-landing__visual .spd-caption,
.tools-landing__visual .uvd-caption,
.tools-landing__visual .ecd-caption {
  display: none;
}

.tools-landing__visual .spd-stage,
.tools-landing__visual .uvd-stage,
.tools-landing__visual .ecd-stage {
  min-height: 0;
  margin-bottom: 0;
  transform: scale(0.84);
  transform-origin: center center;
}

.tools-landing__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
}

.tools-landing__who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.tools-landing__title {
  margin: 0;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 22ch;
}

.tools-landing__text {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  max-width: 28ch;
}

.tools-landing__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--amber-ink);
  margin-top: 4px;
  text-decoration: none;
}

.tools-landing__link:hover {
  filter: brightness(1.08);
  text-decoration: underline;
}

@media (max-width: 720px) {
  .tools-landing__row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 14px;
  }
  .tools-landing__copy {
    align-items: center;
    text-align: center;
  }
  .tools-landing__title,
  .tools-landing__text {
    max-width: none;
  }
}

.tools-demo {
  margin: 0;
  text-align: center;
  --edo-yellow: #f6f42e;
  --edo-gray: #555d67;
  --edo-soft: #f3f6f9;
}

.tools-demo {
  margin: 0;
  text-align: center;
  --edo-yellow: #f6f42e;
  --edo-gray: #555d67;
  --edo-soft: #f3f6f9;
}
.uvd { position: relative; }
.uvd-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 420px;
  margin-bottom: 12px;
}
.uvd-edo {
  flex: 0 0 auto;
  width: min(240px, 42vw);
  text-align: left;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--edo-gray, #555d67) 18%, #fff);
  background: var(--edo-soft, #f3f6f9);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.uvd-edo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--edo-gray, #555d67);
  border-bottom: 1px solid color-mix(in srgb, var(--edo-gray, #555d67) 80%, #000);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}
.uvd-edo-dots { display: inline-flex; gap: 4px; }
.uvd-edo-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; opacity: 0.4;
}
.uvd-edo-body { padding: 12px 12px 14px; }
.uvd-edo-label {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.uvd-edo-doc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--edo-yellow, #f6f42e) 70%, var(--edo-gray, #555d67));
  background: var(--edo-soft, #f3f6f9);
  color: var(--edo-gray, #555d67);
  box-shadow: 0 8px 18px rgba(85, 93, 103, 0.12);
  border-top: 4px solid var(--edo-yellow, #f6f42e);
  position: relative;
  overflow: hidden;
}
.uvd-edo-doc::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--edo-yellow, #f6f42e) 35%, transparent);
  pointer-events: none;
}
.uvd-edo-doc-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; }
.uvd-edo-doc-main strong {
  font-size: 12px;
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--edo-gray, #555d67);
}
.uvd-edo-doc-main span { font-size: 11px; color: color-mix(in srgb, var(--edo-gray, #555d67) 75%, #fff); }
.uvd-edo-dl {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 4px;
  background: var(--edo-yellow, #f6f42e);
  color: var(--edo-gray, #555d67);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.uvd[data-press="download"] .uvd-edo-dl {
  transform: scale(0.95);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--edo-yellow, #f6f42e) 45%, transparent);
  filter: brightness(1.15);
  animation: uvd-btn-flash 0.38s ease;
}
.uvd-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px dashed color-mix(in srgb, var(--edo-yellow, #f6f42e) 70%, var(--edo-gray, #555d67));
  background: var(--edo-soft, #f3f6f9);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.uvd[data-phase="download"] .uvd-file,
.uvd[data-phase="transfer"] .uvd-file,
.uvd[data-phase="press-add"] .uvd-file {
  opacity: 1;
  transform: translateY(0);
}
.uvd-file-icon {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 3px;
  background: var(--edo-yellow, #f6f42e);
  color: var(--edo-gray, #555d67);
  border: 1px solid var(--edo-gray, #555d67);
}
.uvd-file-name {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.uvd-beam {
  flex: 0 0 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--edo-yellow, #f6f42e), transparent);
  opacity: 0;
  transform: scaleX(0.2);
  align-self: center;
}
.uvd[data-phase="transfer"] .uvd-beam {
  opacity: 1;
  animation: uvd-beam 0.9s ease-in-out infinite;
}

.uvd-phone {
  flex: 0 0 auto;
  width: min(228px, 58vw);
}
.uvd-bezel {
  border-radius: 30px;
  padding: 11px 9px 13px;
  background: linear-gradient(160deg, #342c24 0%, #12100e 100%);
  box-shadow:
    0 22px 40px rgba(28, 22, 16, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.uvd-notch {
  width: 68px; height: 7px; margin: 1px auto 8px;
  border-radius: 999px; background: #080706;
}
.uvd-screen {
  height: 380px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.uvd-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.uvd-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  max-width: 55%;
}
.uvd[data-view="empty"] .uvd-live { color: var(--muted); }
.uvd[data-view="empty"] .uvd-live i { background: var(--dim); animation: none; }
.uvd-live em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uvd-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: uvd-pulse 1.4s ease-in-out infinite;
}

.uvd-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.uvd-view {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.uvd[data-view="empty"] .uvd-view-empty,
.uvd[data-view="doc"] .uvd-view-doc {
  opacity: 1;
  pointer-events: auto;
}
.uvd-view-empty {
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 16px;
  text-align: center;
}
.uvd-empty-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  max-width: 18ch;
}
.uvd-btn-add {
  width: 100%;
  max-width: 180px;
  background: var(--amber);
  border-color: transparent;
  color: var(--btn-primary-fg);
}
.uvd[data-press="add"] .uvd-btn-add {
  transform: scale(0.94);
  box-shadow: 0 0 0 3px var(--amber-dim);
  animation: uvd-btn-flash 0.38s ease;
}

.uvd-meta {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 10px 6px;
  font-size: 11px;
  color: var(--muted);
}
.uvd-meta-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 10px;
}
.uvd-meta b { color: var(--text); font-weight: 650; }
.uvd-progress { flex: 0 0 auto; white-space: nowrap; }
.uvd-progress-n { color: var(--amber-ink); }

.uvd-camera { flex: 0 0 auto; padding: 0 10px 6px; }
.uvd-frame {
  position: relative;
  height: 78px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(245, 173, 79, 0.12), transparent 58%),
    linear-gradient(180deg, #1c1712 0%, #0b0908 100%);
  overflow: hidden;
}
.uvd-corner {
  position: absolute; width: 12px; height: 12px;
  border: 2px solid rgba(245, 173, 79, 0.9);
}
.uvd-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.uvd-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.uvd-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.uvd-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.uvd-target {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.65);
  color: #f5f0ea;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.uvd-target .uvd-dm { width: 28px; height: 28px; display: block; }
.uvd-target.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.uvd-laser {
  position: absolute; left: 12%; right: 12%; height: 2px;
  top: 18%; opacity: 0;
  border-radius: 2px; background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.9);
}
.uvd[data-phase="scanning"] .uvd-laser {
  opacity: 1;
  animation: uvd-laser 1.2s ease-in-out infinite;
}

.uvd-line {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 10px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
}
.uvd-line-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: baseline;
}
.uvd-line-name {
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uvd-line-qty {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.uvd-line-stats {
  margin: 3px 0 6px;
  font-size: 10px;
  color: var(--muted);
}
.uvd-kiz-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.uvd-kiz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 5px;
  align-items: center;
  min-height: 24px;
}
.uvd-kiz code {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  background: color-mix(in srgb, #6366f1 12%, var(--bg-card));
  border-radius: 6px;
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  color: var(--text);
  transition: background 0.25s ease;
}
.uvd-kiz.is-ok code {
  background: var(--green-dim);
}
.uvd-kiz.is-new code {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 40%, transparent);
}
.uvd-mark {
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  text-align: center;
  line-height: 1;
  min-height: 12px;
}

.uvd-actions {
  flex: 0 0 auto;
  padding: 8px 10px 10px;
}
.uvd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.uvd[data-view="doc"] .uvd-btn-scan {
  background: var(--amber);
  border-color: transparent;
  color: var(--btn-primary-fg);
}
.uvd[data-press="scan"] .uvd-btn-scan {
  transform: scale(0.94);
  box-shadow: 0 0 0 3px var(--amber-dim);
  animation: uvd-btn-flash 0.38s ease;
}
.uvd[data-phase="done"] .uvd-btn-scan {
  background: var(--green-dim);
  border-color: color-mix(in srgb, var(--green) 35%, var(--line));
  color: var(--green);
}

.uvd-caption {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

@keyframes uvd-laser {
  0%, 100% { top: 16%; opacity: 0.45; }
  50% { top: 78%; opacity: 1; }
}
@keyframes uvd-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes uvd-btn-flash {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.25); }
  100% { filter: brightness(1.08); }
}
@keyframes uvd-beam {
  0% { opacity: 0.15; transform: scaleX(0.2); }
  45% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0.25; transform: scaleX(0.4); }
}
@media (max-width: 700px) {
  .uvd-stage {
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }
  .uvd-edo { width: min(280px, 92vw); }
  .uvd-beam {
    flex: 0 0 auto;
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, transparent, var(--edo-yellow, #f6f42e), transparent);
  }
  .uvd[data-phase="transfer"] .uvd-beam {
    animation-name: uvd-beam-v;
  }
  @keyframes uvd-beam-v {
    0% { opacity: 0.15; transform: scaleY(0.2); }
    45% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0.25; transform: scaleY(0.4); }
  }
  .uvd-phone { width: min(228px, 78vw); }
}
@media (prefers-reduced-motion: reduce) {
  .uvd-live i, .uvd-laser, .uvd-beam, .uvd-edo-dl, .uvd-btn { animation: none !important; }
  .uvd-file, .uvd-view, .uvd-target { transition: none; }
}
