/* Shared by the marketing pages: loom panel and waitlist form. Pages define the colour tokens. */
.loom {
  min-width: 0;
  background: #191714;
  border: 1px solid #2c2722;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(40, 24, 12, 0.45);
  color: #e9dfcc;
}
.loom-head, .loom-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 12.5px; }
.loom-head { border-bottom: 1px solid #2c2722; }
.loom-foot { border-top: 1px solid #2c2722; color: #a69c8f; font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.loom-foot b { color: #e9dfcc; font-weight: 600; }
.loom-status { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; color: #a69c8f; }
.loom-status .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 8px #5fd08a; animation: pulse 1.6s ease-in-out infinite; }
.loom-status { min-width: 0; white-space: nowrap; overflow: hidden; }
.loom-status span:last-child { overflow: hidden; text-overflow: ellipsis; }
.seg { display: inline-flex; flex-shrink: 0; background: #24201c; border-radius: 999px; padding: 3px; }
.seg button {
  white-space: nowrap;
  font: inherit; font-size: 12.5px; font-weight: 500; color: #a69c8f; background: transparent;
  border: 0; border-radius: 999px; padding: 5px 11px; cursor: pointer; transition: background .2s, color .2s;
}
.seg button[aria-pressed="true"] { background: #e9dfcc; color: #191714; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.loom canvas { display: block; width: 100%; height: 320px; }
.waitlist { max-width: 520px; margin-bottom: 28px; }
.wl-row { display: flex; gap: 10px; }
.wl-field {
  flex: 1; min-width: 0; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.wl-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wl-field span { padding: 0 4px 0 16px; color: var(--muted); font-weight: 500; font-size: 16px; }
.wl-field input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none; color: var(--ink);
  font: inherit; font-size: 16px; padding: 14px 14px 14px 6px; letter-spacing: 0.02em;
}
.wl-btn {
  border: 0; border-radius: 12px; background: var(--accent); color: #fff; cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15px; padding: 0 22px; white-space: nowrap; transition: filter .15s;
}
.wl-btn:hover { filter: brightness(0.92); }
.wl-btn:disabled { opacity: .6; cursor: default; }
.wl-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-msg { font-size: 14px; margin-top: 10px; min-height: 21px; color: var(--muted); }
.wl-msg.err { color: #b42d2d; }
.wl-done {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; font-size: 15px;
}
.wl-done svg { flex-shrink: 0; color: #23824f; }
.wl-done b { display: block; }
.wl-done span { color: var(--muted); font-size: 14px; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 760px) {
  .loom canvas { height: 280px; }
  .loom-head { padding: 10px 10px 10px 12px; }
  .seg button { padding: 5px 9px; }
  .wl-row { flex-direction: column; }
  .wl-btn { padding: 14px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .loom-status .dot { animation: none; }
}
