/* app.css — canon extract of relay-app's app-level design-system classes.
   Source of truth: relay-app/concepts/public/relay-app.css (copied verbatim where
   possible). This file exists so the prototype gallery renders the SHIPPED
   component styles, not re-drawn approximations. When relay-app.css changes,
   re-extract — do not hand-edit values here. Extracted 2026-07-18. */

/* ── Screen wrapper + editorial head ─────────────────────────── */
.screen       { max-width: 1080px; margin: 0 auto; padding: 46px 32px 96px; }
.screen-head  { margin-bottom: 34px; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.eyebrow::after { content: ''; height: 0.5px; flex: 1; background: var(--border); }
.eyebrow--plain::after { display: none; }

.display {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: clamp(34px, 4.4vw, 50px); line-height: 1.02; letter-spacing: -0.012em;
  color: var(--text-bright); margin: 0;
}
.display .ink { font-style: normal; }

.subtitle {
  font-size: 15px; font-weight: 300; color: var(--text-2);
  margin-top: 13px; max-width: 60ch; line-height: 1.55;
}

.head-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}

.sec-label {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px; margin: 38px 0 16px;
}
.sec-label .act {
  margin-left: auto; text-transform: none; letter-spacing: 0;
  font-family: var(--font); font-size: 12.5px; color: var(--text-2); cursor: pointer;
}
.sec-label .act:hover { color: var(--teal); }

/* ── Code artifact ───────────────────────────────────────────── */
.code-hero {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-weight: 600; text-transform: uppercase;
  font-size: 30px; letter-spacing: 0.2em; color: var(--teal);
  cursor: pointer; user-select: none; position: relative; padding: 2px;
}
.code-hero .sig { width: 22px; height: 22px; opacity: .9; }
.code-hero .ch  { display: inline-block; transition: transform .4s cubic-bezier(.16,1,.3,1), color .3s; }
.code-hero:hover .ch            { color: var(--text-bright); }
.code-hero:hover .ch:nth-child(2n) { transform: translateY(-2px); }
.code-hero:hover .sig           { color: var(--text-bright); }
.code-hero.copied .ch           { color: var(--success); }

.code-chip {
  font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal);
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 3px 9px; cursor: pointer; user-select: all; white-space: nowrap;
  transition: border-color .15s, background .15s;
}
.code-chip:hover {
  border-color: color-mix(in srgb, var(--teal) 45%, var(--border));
  background: var(--teal-dim);
}

/* ── Chips ───────────────────────────────────────────────────── */
.chip {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 5px;
  border: 0.5px solid var(--border); color: var(--text-muted); background: var(--surface);
  white-space: nowrap;
}
.chip-teal   { color: var(--teal);    background: var(--teal-dim);      border-color: color-mix(in srgb, var(--teal)    30%, var(--border)); }
.chip-indigo { color: var(--indigo);  background: var(--indigo-dim);    border-color: color-mix(in srgb, var(--indigo)  30%, var(--border)); }
.chip-green  { color: var(--success); background: rgba(22,163,74,0.10); border-color: color-mix(in srgb, var(--success) 30%, var(--border)); }
.chip-warn   { color: var(--warning); background: rgba(217,119,6,0.10); border-color: color-mix(in srgb, var(--warning) 30%, var(--border)); }
.chip-red    { color: var(--error);   background: rgba(220,38,38,0.10); border-color: color-mix(in srgb, var(--error)   30%, var(--border)); }

/* ── Timeline ────────────────────────────────────────────────── */
.tl { position: relative; padding-left: 26px; }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -19px; top: 3px; bottom: -3px;
  width: 1px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: absolute; left: -23px; top: 2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border-hi);
}
.tl-dot.on { background: var(--teal); border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-dim); }
.tl-when { font-family: var(--mono); font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.04em; }
.tl-what { font-size: 13.5px; color: var(--text-bright); margin-top: 3px; font-weight: 400; }
.tl-who  { font-size: 12px;   color: var(--text-2);      margin-top: 2px;  font-weight: 300; }

/* ── Empty state refinements ─────────────────────────────────── */
.empty .em-mark  { width: 38px; height: 38px; color: var(--border-hi); margin: 0 auto 16px; }
.empty .em-title { font-family: var(--display); font-style: italic; font-size: 22px; color: var(--text-2); }
.empty .em-sub   { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

/* ── Just-in-time feature intros (the Tool Help Card) ─────────── */
.fi-panel {
  position: relative;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  border-radius: 10px;
  padding: 18px 20px 16px;
  margin-bottom: 18px;
}
.fi-close {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 6px; background: transparent; cursor: pointer;
  color: var(--text-muted); font-size: 12px; line-height: 1; font-family: inherit;
}
.fi-close:hover { background: var(--surface); color: var(--text-bright); }
.fi-close:focus-visible { outline: 1.5px solid var(--teal); outline-offset: 1px; }
.fi-eyebrow {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 4px;
}
.fi-title {
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--text-bright); margin-bottom: 6px;
}
.fi-lede {
  font-size: 13px; line-height: 1.5; color: var(--text-muted);
  margin: 0 0 14px; max-width: 60ch;
}
.fi-steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.fi-step { display: flex; align-items: flex-start; gap: 10px; }
.fi-step-num {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--teal); color: var(--on-accent, #0d1514);
  font-size: 11px; font-weight: 700; margin-top: 1px;
}
.fi-step-body { display: flex; flex-direction: column; gap: 1px; }
.fi-step-title { font-size: 13px; font-weight: 600; color: var(--text-bright); }
.fi-step-text { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.fi-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ── Focus ring ──────────────────────────────────────────────── */
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--teal-dim), 0 0 0 1px var(--teal);
  border-radius: 6px;
}

/* ── Signal ripple easter-egg overlay (JS-activated) ─────────── */
#signal-fx { position: fixed; inset: 0; pointer-events: none; z-index: 2000; display: none; }
.ripple { position: absolute; border: 1.5px solid var(--teal); border-radius: 50%; transform: translate(-50%,-50%); opacity: 0; }
@keyframes rippleout { 0% { width: 0; height: 0; opacity: .6; } 100% { width: 160vmax; height: 160vmax; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
