/* Linear-grade product shots.
   Composition rule (every overlay shot): focus card LEFT · canvas RIGHT.
   Colors from site .ln-shot + Linear Pulse: indigo, cyan bars, orange/blue/gray scatter, risk/ok. */

.lx {
  --lx-bg: #000000;
  --lx-stage:
    radial-gradient(ellipse 80% 55% at 50% 8%, rgba(255, 255, 255, 0.05) 0%, transparent 62%),
    radial-gradient(ellipse 125% 100% at 50% 0%, #1c1f27 0%, #16181f 28%, #101115 55%, #0c0c0e 78%, #0a0a0a 100%);
  --lx-card: #161618;
  --lx-card-hi: #1c1c1f;
  --lx-line: rgba(255, 255, 255, 0.08);
  --lx-line2: rgba(255, 255, 255, 0.12);
  --lx-fg: #f7f8f8;
  --lx-fg2: #d0d4db;
  --lx-mu: #8a8f98;
  --lx-dim: #6b707a;
  --lx-indigo: #5e6ad2;
  --lx-indigo-hi: #6894ff;
  --lx-indigo-soft: #7b85e0;
  --lx-cyan: #4ec8ea;
  --lx-cyan-2: #8be9ff;
  --lx-orange: #f2a65a;
  --lx-orange-hi: #ffb86b;
  --lx-risk: #eb5757;
  --lx-ok: #4cb782;
  --lx-ok-hi: #6fcf97;
  --lx-hold: #f2c94c;
  --lx-font: "Inter Variable", Inter, ui-sans-serif, system-ui, sans-serif;

  position: relative;
  width: min(1520px, 100%);
  max-width: 100%;
  aspect-ratio: 16 / 9.05;
  margin: clamp(22px, 3.2vh, 44px) auto 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lx-bg);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.8),
    0 40px 90px -36px rgba(0, 0, 0, 0.95);
  text-align: left;
  isolation: isolate;
  font-family: var(--lx-font);
  color: var(--lx-fg);
  -webkit-font-smoothing: antialiased;
  justify-self: center;
}

.lx__fill {
  position: absolute;
  inset: 0;
  background: var(--lx-stage);
  pointer-events: none;
}

/* Shared: LEFT focus · RIGHT canvas — no absolute right floats */
.lx__stack {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: stretch;
  z-index: 1;
}

.lx-card,
.lx-focus {
  position: relative;
  background: var(--lx-card);
  border: 0.5px solid var(--lx-line2);
  border-radius: 10px;
  box-shadow:
    0 28px 64px -28px rgba(0, 0, 0, 0.9),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
}

.lx-focus {
  padding: 18px 18px 16px;
  display: grid;
  align-content: start;
  gap: 0;
  min-width: 0;
  background: linear-gradient(180deg, var(--lx-card-hi) 0%, var(--lx-card) 100%);
}

.lx-canvas {
  min-width: 0;
  min-height: 0;
  border-radius: 10px;
  border: 0.5px solid var(--lx-line);
  background: #0f1013;
  overflow: hidden;
}

.lx-focus__h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.lx-focus__h b {
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.022em;
  color: var(--lx-fg);
}

.lx-focus__item {
  padding: 13px 0;
  border-top: 0.5px solid var(--lx-line);
}
.lx-focus__item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.lx-focus__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 510;
  letter-spacing: -0.015em;
  color: var(--lx-fg);
}

.lx-focus__meta {
  margin: 6px 0 8px 24px;
  font-size: 12px;
  color: var(--lx-mu);
}

.lx-focus__item ul {
  margin: 0 0 0 24px;
  padding: 0;
  display: grid;
  gap: 5px;
}
.lx-focus__item li {
  font-size: 12px;
  line-height: 1.45;
  color: var(--lx-fg2);
  list-style: disc;
}

.lx-ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  color: var(--lx-mu);
}
.lx-ic--ok { color: var(--lx-ok-hi); }
.lx-ic--hold { color: var(--lx-hold); }
.lx-ic--live { color: var(--lx-indigo-hi); }
.lx-ic--risk { color: var(--lx-risk); }
.lx-ic--muted { color: var(--lx-dim); }

.lx-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 5px 0 0 24px;
  font-size: 12px;
  font-weight: 510;
  letter-spacing: -0.01em;
}
.lx-focus__h .lx-status { margin: 0; }
.lx-status--risk { color: var(--lx-risk); }
.lx-status--ok { color: var(--lx-ok-hi); }
.lx-status--hold { color: var(--lx-hold); }
.lx-status--live { color: var(--lx-indigo-hi); }

.lx-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 510;
  border: 0.5px solid var(--lx-line2);
  background: rgba(255, 255, 255, 0.03);
}
.lx-pill--hold {
  color: var(--lx-hold);
  border-color: rgba(242, 201, 76, 0.28);
  background: rgba(242, 201, 76, 0.08);
}
.lx-pill--live {
  color: var(--lx-indigo-hi);
  border-color: rgba(104, 148, 255, 0.28);
  background: rgba(104, 148, 255, 0.08);
}
.lx-pill .lx-ic { width: 14px; height: 14px; color: currentColor; }

.lx-listen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid var(--lx-line2);
  font-size: 12px;
  font-weight: 510;
  color: var(--lx-fg2);
}
.lx-listen .lx-ic {
  width: 12px;
  height: 12px;
  color: currentColor;
}

/* ═══ 1. SMS — inbox LEFT · thread RIGHT ═══ */
.lx--sms .lx__grid {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: 1.02fr 1.22fr;
  gap: 14px;
  z-index: 1;
}

.lx--sms .lx-inbox {
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 4px;
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(94, 106, 210, 0.12), transparent 55%),
    linear-gradient(180deg, #1a1b1f, #141416);
}

.lx--sms .lx-inbox__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 590;
  letter-spacing: -0.018em;
  color: var(--lx-fg);
}
.lx--sms .lx-inbox__head em {
  font-style: normal;
  font-size: 12px;
  font-weight: 510;
  color: var(--lx-hold);
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(227, 184, 90, 0.12);
  border: 0.5px solid rgba(227, 184, 90, 0.22);
}

.lx--sms .lx-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 10px;
  border-radius: 8px;
  border: 0.5px solid transparent;
}
.lx--sms .lx-row.is-on {
  background: rgba(94, 106, 210, 0.1);
  border-color: rgba(94, 106, 210, 0.28);
}
.lx--sms .lx-row b {
  display: block;
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.014em;
  color: var(--lx-fg);
}
.lx--sms .lx-row span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--lx-mu);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lx--sms .lx-row time {
  font-size: 11px;
  color: var(--lx-dim);
  font-variant-numeric: tabular-nums;
}

.lx--sms .lx-thread {
  padding: 16px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  background:
    radial-gradient(90% 50% at 100% 0%, rgba(242, 166, 90, 0.1), transparent 50%),
    linear-gradient(180deg, #1a1b1f, #141416);
}

.lx--sms .lx-thread__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lx--sms .lx-thread__head b {
  font-size: 15px;
  font-weight: 590;
  letter-spacing: -0.02em;
  color: var(--lx-fg);
}
.lx--sms .lx-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 510;
  color: var(--lx-hold);
  background: rgba(227, 184, 90, 0.12);
  border: 0.5px solid rgba(227, 184, 90, 0.28);
}

.lx--sms .lx-msgs { display: grid; gap: 8px; align-content: end; }
.lx--sms .lx-msg {
  max-width: 84%;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: -0.012em;
}
.lx--sms .lx-msg--in {
  justify-self: start;
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid var(--lx-line);
  color: var(--lx-fg2);
}
.lx--sms .lx-msg--out {
  justify-self: end;
  background: rgba(94, 106, 210, 0.28);
  border: 0.5px solid rgba(130, 143, 255, 0.35);
  color: var(--lx-fg);
  box-shadow: 0 0 24px -10px rgba(94, 106, 210, 0.65);
}
.lx--sms .lx-msg--hold {
  justify-self: end;
  background: rgba(227, 184, 90, 0.14);
  border: 0.5px solid rgba(227, 184, 90, 0.32);
  color: #f0d08a;
  box-shadow: 0 0 24px -10px rgba(227, 184, 90, 0.5);
}

.lx--sms .lx-compose {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--lx-line2);
  font-size: 13px;
  color: var(--lx-mu);
}
.lx--sms .lx-compose i {
  font-style: normal;
  font-weight: 510;
  color: var(--lx-hold);
}

/* ═══ 2. Week — focus LEFT · board RIGHT ═══ */
.lx--week .lx-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  background:
    radial-gradient(70% 50% at 80% 0%, rgba(94, 106, 210, 0.14), transparent 55%),
    #0e0e11;
}

.lx--week .lx-day { display: grid; gap: 8px; align-content: start; min-width: 0; }
.lx--week .lx-day__h {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 6px;
  font-size: 12px;
  font-weight: 510;
  color: var(--lx-mu);
  border-bottom: 0.5px solid var(--lx-line);
}
.lx--week .lx-day__h i { font-style: normal; font-weight: 400; color: var(--lx-dim); }

.lx--week .lx-ev {
  padding: 11px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  border: 0.5px solid var(--lx-line);
  display: grid;
  gap: 4px;
}
.lx--week .lx-ev b {
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.014em;
  color: var(--lx-fg);
}
.lx--week .lx-ev em {
  font-style: normal;
  font-size: 12px;
  color: var(--lx-mu);
}
.lx--week .lx-ev--hot {
  background: rgba(94, 106, 210, 0.18);
  border-color: rgba(130, 143, 255, 0.4);
  box-shadow: 0 0 28px -12px rgba(94, 106, 210, 0.7);
}
.lx--week .lx-ev--new {
  background: rgba(76, 183, 130, 0.12);
  border-color: rgba(111, 207, 151, 0.35);
}
.lx--week .lx-ev--new em { color: var(--lx-ok-hi); }
.lx--week .lx-ev--gone { opacity: 0.38; text-decoration: line-through; }
.lx--week .lx-ev--moved { opacity: 0.5; border-style: dashed; }

/* ═══ 3. Transfer — Linear integrations hub (screenshot-faithful) ═══ */
.lx--hub {
  background: #000;
  border-color: rgba(255, 255, 255, 0.06);
  aspect-ratio: 16 / 9;
}
.lx--hub .lx__fill--hub { background: #000; }

.lx-hub {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.lx-hub__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.lx-hub__wire {
  fill: none;
  stroke: rgba(198, 204, 220, 0.34);
  stroke-width: 1.15px;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 3px 6px;
  animation: lx-hub-dash 2.4s linear infinite;
}

.lx-hub__tile {
  position: absolute;
  z-index: 3;
  width: clamp(48px, 7.2vw, 76px);
  height: clamp(48px, 7.2vw, 76px);
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #141517;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 28px -18px rgba(0, 0, 0, 0.9),
    inset 0 0.5px 0 rgba(255, 255, 255, 0.06);
  transform: translate(-50%, -50%);
}
.lx-hub__tile img {
  width: 54%;
  height: 54%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

/* Tile centers align to wire nodes at 18%/82% x and 20/50/80% y */
.lx-hub__tile--lt { left: 18%; top: 20%; }
.lx-hub__tile--lm { left: 18%; top: 50%; }
.lx-hub__tile--lb { left: 18%; top: 80%; }
.lx-hub__tile--rt { left: 82%; top: 20%; }
.lx-hub__tile--rm { left: 82%; top: 50%; }
.lx-hub__tile--rb { left: 82%; top: 80%; }

.lx-hub__orb {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  /* ~28% width so left/right edges sit near wire ends at 36%/64% */
  width: min(28%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 70px -28px rgba(0, 0, 0, 0.95),
    0 0 70px -18px rgba(110, 100, 220, 0.28);
}
.lx-hub__orb canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}
.lx-hub__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(150deg, transparent 35%, rgba(0, 0, 0, 0.22) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

@keyframes lx-hub-dash {
  to { stroke-dashoffset: -36px; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-hub__wire { animation: none; }
}

@media (max-width: 900px) {
  .lx--hub { aspect-ratio: 4 / 5; }
  .lx-hub__tile {
    width: clamp(44px, 14vw, 64px);
    height: clamp(44px, 14vw, 64px);
    border-radius: 14px;
  }
  /* keep 18%/82% so wires stay centered on tiles */
  .lx-hub__orb { width: min(36%, 200px); }
}

/* Memory-only Linear Insights chart */
.lx-insight {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 16px 14px 10px;
  background: #0c0c0e;
}
.lx-insight__h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 0 8px 8px;
  font-size: 13px;
  font-weight: 510;
  color: rgba(247, 248, 248, 0.62);
}
.lx-insight__h em {
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  color: rgba(247, 248, 248, 0.32);
}
.lx-insight__svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

/* ═══ 4. Vault — citation LEFT · mosaic RIGHT ═══ */
.lx--vault .lx-read p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--lx-mu);
  margin: 0 0 14px;
}
.lx--vault .lx-read__quote {
  padding: 13px;
  border-radius: 8px;
  background: rgba(94, 106, 210, 0.16);
  border: 0.5px solid rgba(130, 143, 255, 0.35);
  font-size: 13px;
  line-height: 1.45;
  color: var(--lx-fg2);
  font-style: italic;
  box-shadow: 0 0 28px -12px rgba(94, 106, 210, 0.65);
}
.lx--vault .lx-read__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 12px;
  color: var(--lx-dim);
}

.lx--vault .lx-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(130, 143, 255, 0.1), transparent 55%),
    #0d0e12;
}

.lx--vault .lx-file {
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 0;
  background: #121317;
  border: 0.5px solid var(--lx-line);
  border-radius: 9px;
}
.lx--vault .lx-file b {
  font-size: 13px;
  font-weight: 510;
  letter-spacing: -0.014em;
  color: var(--lx-fg);
}
.lx--vault .lx-file span {
  font-size: 12px;
  color: var(--lx-dim);
}
.lx--vault .lx-file em {
  font-style: normal;
  font-size: 12px;
  font-weight: 510;
  color: var(--lx-indigo-hi);
}

/* ═══ 5. Record — props LEFT · feed RIGHT ═══ */
.lx--record .lx__split {
  position: absolute;
  inset: 18px;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 12px;
  z-index: 1;
}

.lx--record .lx-props {
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 8px;
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(76, 183, 130, 0.1), transparent 50%),
    linear-gradient(180deg, #1a1b1f, #141416);
}
.lx--record .lx-props__h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.lx--record .lx-props__h b {
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.022em;
  color: var(--lx-fg);
}

.lx--record .lx-prop {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 0.5px solid var(--lx-line);
}
.lx--record .lx-prop span { font-size: 12px; color: var(--lx-dim); }
.lx--record .lx-prop strong {
  font-size: 13px;
  font-weight: 510;
  color: var(--lx-fg);
}
.lx--record .lx-prop em {
  font-style: normal;
  font-size: 12px;
  color: var(--lx-mu);
}
.lx--record .lx-prop--fresh {
  background: rgba(76, 183, 130, 0.12);
  border-color: rgba(111, 207, 151, 0.38);
  box-shadow: 0 0 24px -12px rgba(76, 183, 130, 0.55);
}
.lx--record .lx-prop--fresh strong { color: var(--lx-ok-hi); }
.lx--record .lx-prop--lock {
  background: rgba(227, 184, 90, 0.1);
  border-color: rgba(227, 184, 90, 0.3);
}
.lx--record .lx-prop--lock strong { color: var(--lx-hold); }

.lx--record .lx-feed {
  padding: 16px;
  display: grid;
  align-content: start;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(94, 106, 210, 0.12), transparent 55%),
    linear-gradient(180deg, #1a1b1f, #141416);
}
.lx--record .lx-feed__h {
  font-size: 13px;
  font-weight: 510;
  color: var(--lx-fg2);
  margin-bottom: 8px;
}
.lx--record .lx-feed__item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 0.5px solid var(--lx-line);
}
.lx--record .lx-feed__item:first-of-type { border-top: 0; }
.lx--record .lx-feed__item b {
  display: block;
  font-size: 13px;
  font-weight: 510;
  color: var(--lx-fg);
}
.lx--record .lx-feed__item span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--lx-mu);
}

/* ═══ 6. Memory — Pulse LEFT · Linear insight chart RIGHT ═══ */

@media (max-width: 900px) {
  .lx {
    aspect-ratio: 4 / 5.2;
    width: 100%;
  }

  .lx__stack,
  .lx--sms .lx__grid,
  .lx--record .lx__split {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .lx--week .lx-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lx--week .lx-day:nth-child(4),
  .lx--week .lx-day:nth-child(5) {
    display: none;
  }

  .lx--vault .lx-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

}
