/* 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.05fr) minmax(0, 0.95fr);
  gap: 22px 28px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.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;
}

.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(18px, 2.2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.tools-landing__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 42ch;
}

.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__text {
    max-width: none;
  }
}

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

.tools-demo + .tools-demo { margin-top: 0; }
.ecd { position: relative; }
.ecd-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 420px;
  margin-bottom: 12px;
}
.ecd-phone {
  flex: 0 0 auto;
  width: min(228px, 58vw);
}
.ecd-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);
}
.ecd-notch {
  width: 68px; height: 7px; margin: 1px auto 8px;
  border-radius: 999px; background: #080706;
}
.ecd-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;
}
.ecd-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);
}
.ecd-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  max-width: 55%;
}
.ecd-live em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ecd-live i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  animation: ecd-pulse 1.4s ease-in-out infinite;
}
.ecd-camera { flex: 0 0 auto; padding: 2px 10px 6px; }
.ecd-frame {
  position: relative;
  height: 96px;
  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;
}
.ecd-corner {
  position: absolute; width: 12px; height: 12px;
  border: 2px solid rgba(245, 173, 79, 0.9);
}
.ecd-corner.tl { top: 6px; left: 6px; border-right: 0; border-bottom: 0; }
.ecd-corner.tr { top: 6px; right: 6px; border-left: 0; border-bottom: 0; }
.ecd-corner.bl { bottom: 6px; left: 6px; border-right: 0; border-top: 0; }
.ecd-corner.br { bottom: 6px; right: 6px; border-left: 0; border-top: 0; }
.ecd-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;
}
.ecd-target .ecd-dm { width: 30px; height: 30px; display: block; }
.ecd-target.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.ecd-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);
}
.ecd[data-phase="scanning"] .ecd-laser {
  opacity: 1;
  animation: ecd-laser 1.2s ease-in-out infinite;
}

.ecd-list-wrap {
  flex: 1 1 auto;
  padding: 0 10px;
  min-height: 0;
}
.ecd-list-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.ecd-list-head strong {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-ink);
}
.ecd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ecd-slot {
  position: relative;
  height: 34px;
  border-radius: 8px;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  overflow: hidden;
}
.ecd-slot-empty {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--dim); opacity: 0.4;
}
.ecd-slot-fill {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.28s ease, transform 0.28s ease, background 0.25s ease, border-color 0.25s ease;
}
.ecd-slot.is-filled { border-color: transparent; background: transparent; }
.ecd-slot.is-filled .ecd-slot-empty { opacity: 0; }
.ecd-slot.is-filled .ecd-slot-fill {
  opacity: 1;
  transform: translateY(0);
}
.ecd-slot.is-new .ecd-slot-fill {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
  background: var(--green-dim);
}
.ecd-slot-fill code {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ecd-ok { color: var(--green); font-size: 12px; font-weight: 700; }

.ecd-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 8px 10px 10px;
}
.ecd-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;
}
.ecd[data-count="0"] .ecd-btn-scan,
.ecd[data-count="1"] .ecd-btn-scan,
.ecd[data-count="2"] .ecd-btn-scan {
  background: var(--amber);
  border-color: transparent;
  color: var(--btn-primary-fg);
}
.ecd[data-count="3"] .ecd-btn-csv,
.ecd[data-phase="press-csv"] .ecd-btn-csv,
.ecd[data-phase="csv-ready"] .ecd-btn-csv,
.ecd[data-phase="transfer"] .ecd-btn-csv,
.ecd[data-phase="press-upload"] .ecd-btn-csv,
.ecd[data-phase="done"] .ecd-btn-csv {
  background: var(--amber);
  border-color: transparent;
  color: var(--btn-primary-fg);
}
.ecd[data-press="scan"] .ecd-btn-scan,
.ecd[data-press="csv"] .ecd-btn-csv {
  transform: scale(0.94);
  box-shadow: 0 0 0 3px var(--amber-dim);
  animation: ecd-btn-flash 0.38s ease;
}

.ecd-mid {
  flex: 0 0 auto;
  width: min(96px, 22vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: center;
}
.ecd-beam {
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--edo-yellow, #f6f42e), transparent);
  opacity: 0;
  transform: scaleX(0.2);
}
.ecd[data-phase="transfer"] .ecd-beam {
  opacity: 1;
  animation: ecd-beam 0.9s ease-in-out infinite;
}
.ecd-csv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 8px;
  border-radius: 10px;
  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(8px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.ecd[data-phase="csv-ready"] .ecd-csv,
.ecd[data-phase="transfer"] .ecd-csv,
.ecd[data-phase="press-upload"] .ecd-csv,
.ecd[data-phase="done"] .ecd-csv {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.ecd-csv-icon {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--edo-yellow, #f6f42e);
  color: var(--edo-gray, #555d67);
  border: 1px solid var(--edo-gray, #555d67);
}
.ecd-csv-name {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text);
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.ecd-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;
}
.ecd-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;
}
.ecd-edo-dots { display: inline-flex; gap: 4px; }
.ecd-edo-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff; opacity: 0.4;
}
.ecd-edo-body { padding: 12px; }
.ecd-edo-label {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--dim);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ecd-edo-panel {
  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;
  min-height: 210px;
}
.ecd-edo-panel::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--edo-yellow, #f6f42e) 35%, transparent);
  pointer-events: none;
}
.ecd-edo-panel > strong {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}
.ecd-edo-upload {
  position: relative;
  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: 11px;
  font-weight: 700;
  text-align: center;
  padding: 0 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.ecd[data-press="upload"] .ecd-edo-upload {
  transform: scale(0.95);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--edo-yellow, #f6f42e) 45%, transparent);
  animation: ecd-btn-flash 0.38s ease;
}
.ecd-edo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.35s ease;
}
.ecd[data-phase="press-upload"] .ecd-edo-list,
.ecd[data-phase="done"] .ecd-edo-list {
  opacity: 1;
  transform: translateY(0);
}
.ecd-edo-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ecd-edo-row.is-on { opacity: 1; }
.ecd-edo-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--edo-gray, #555d67);
  color: var(--edo-yellow, #f6f42e);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ecd-edo-row code {
  font-family: var(--mono);
  font-size: 10px;
  background: #fff;
  border-radius: 4px;
  padding: 2px 5px;
  color: var(--edo-gray, #555d67);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ecd-edo-done {
  position: relative;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--edo-gray, #555d67);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ecd[data-phase="done"] .ecd-edo-done { opacity: 1; }

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

@keyframes ecd-laser {
  0%, 100% { top: 16%; opacity: 0.45; }
  50% { top: 78%; opacity: 1; }
}
@keyframes ecd-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@keyframes ecd-btn-flash {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.25); }
  100% { filter: brightness(1.08); }
}
@keyframes ecd-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) {
  .ecd-stage {
    flex-direction: column;
    gap: 14px;
    min-height: 0;
  }
  .ecd-mid {
    width: auto;
    flex-direction: row;
    gap: 12px;
  }
  .ecd-beam {
    width: 2px;
    height: 22px;
    background: linear-gradient(180deg, transparent, var(--edo-yellow, #f6f42e), transparent);
  }
  .ecd[data-phase="transfer"] .ecd-beam {
    animation-name: ecd-beam-v;
  }
  @keyframes ecd-beam-v {
    0% { opacity: 0.15; transform: scaleY(0.2); }
    45% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0.25; transform: scaleY(0.4); }
  }
  .ecd-csv { width: min(140px, 50vw); }
  .ecd-edo { width: min(280px, 92vw); }
  .ecd-phone { width: min(228px, 78vw); }
}
@media (prefers-reduced-motion: reduce) {
  .ecd-live i, .ecd-laser, .ecd-beam, .ecd-btn, .ecd-edo-upload { animation: none !important; }
  .ecd-csv, .ecd-edo-list, .ecd-slot-fill, .ecd-target { transition: none; }
}
