/* Timmacy Growth Labs: live store showcase (projects.html + the partner profile)
   A browser frame and a phone frame, each scrolling a full-page capture of the real store
   (assets/js/tgl-live.js), beside the store's story. Markup is generated by _build/build-stores.ps1.
   Colours fall back through the main site's tokens, then the partner profile's, then fixed values. */
.tgl-ls {
  --tl-accent: var(--tgl-klein, var(--klein, #33CBBF));
  --tl-accent-deep: var(--tgl-klein-deep, var(--klein-deep, #0B837F));
  --tl-ink: var(--tgl-ink, var(--ink, #1C1C1C));
  --tl-muted: var(--tgl-muted, var(--muted, #6E6E6E));
  --tl-line: var(--tgl-line, var(--line, #E7E7E7));
  --tl-soft: var(--tgl-paper-2, var(--paper-2, #F7F7F7));
  --tl-carbon: var(--tgl-carbon, var(--carbon, #0D0D10));
  container-type: inline-size;
  background: #FFFFFF; border: 1px solid var(--tl-line); border-radius: 24px;
  padding: clamp(20px, 3vw, 40px);
  box-shadow: 0 24px 60px rgba(13, 13, 16, 0.07);
}
.tgl-ls--flat { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 28px 0; border-top: 1px solid var(--tl-line); }
.tgl-ls--flat:first-child { border-top: 0; padding-top: 4px; }

.tgl-ls__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 4cqi, 56px); align-items: center; }
.tgl-ls--flip .tgl-ls__stage { order: 2; }

/* stage: browser frame with a phone in front of its inner bottom corner */
.tgl-ls__stage { position: relative; padding-bottom: 9%; }
.tgl-ls__browser { width: 86%; border-radius: 14px; background: #FFFFFF; overflow: hidden; border: 1px solid var(--tl-line); box-shadow: 0 30px 70px rgba(13, 13, 16, 0.16), 0 6px 16px rgba(13, 13, 16, 0.06); }
.tgl-ls--flip .tgl-ls__browser { margin-left: auto; }
.tgl-ls__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #F3F4F6; border-bottom: 1px solid var(--tl-line); }
.tgl-ls__dots { display: flex; gap: 6px; flex: 0 0 auto; }
.tgl-ls__dots i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.tgl-ls__dots i:nth-child(2) { background: #FEBC2E; }
.tgl-ls__dots i:nth-child(3) { background: #28C840; }
.tgl-ls__url { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--tl-line); color: #4B5563; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tgl-ls__url svg { width: 11px; height: 11px; flex: 0 0 auto; color: #16A34A; }
.tgl-ls__toggle { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--tl-carbon); color: #FFFFFF; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.tgl-ls__toggle:hover { transform: scale(1.08); background: var(--tl-accent-deep); }
.tgl-ls__toggle svg { width: 12px; height: 12px; }
.tgl-ls__toggle .is-play, .tgl-ls.is-paused .tgl-ls__toggle .is-pause { display: none; }
.tgl-ls.is-paused .tgl-ls__toggle .is-play { display: block; }

.tgl-ls__screen { position: relative; display: block; overflow: hidden; background: var(--tl-soft); }
.tgl-ls__browser .tgl-ls__screen { aspect-ratio: 16 / 10; }
.tgl-ls__screen img { display: block; width: 100%; height: auto; max-width: none; will-change: transform; }

.tgl-ls__phone { position: absolute; bottom: 0; right: 0; width: 27%; padding: 7px; border-radius: 30px; background: #111114; box-shadow: 0 30px 60px rgba(13, 13, 16, 0.32), inset 0 0 0 2px #2A2A30; }
.tgl-ls--flip .tgl-ls__phone { right: auto; left: 0; }
.tgl-ls__phone .tgl-ls__screen { aspect-ratio: 390 / 844; border-radius: 23px; }
.tgl-ls__phone::before { content: ""; position: absolute; top: 12px; left: 50%; z-index: 1; width: 30%; height: 9px; border-radius: 99px; background: #111114; transform: translateX(-50%); }

/* copy */
.tgl-ls__num { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; font-weight: 700; color: var(--tl-accent-deep); letter-spacing: 0.06em; }
.tgl-ls__name { margin: 8px 0 12px; font-family: var(--heading-font, inherit); font-size: clamp(1.6rem, 1.1rem + 1.4cqi, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; color: var(--tl-ink); }
.tgl-ls__name a { color: inherit; text-decoration: none; }
.tgl-ls__desc { margin: 0; font-size: 1.05rem; line-height: 1.65; color: var(--tl-muted); }
.tgl-ls__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 22px 0 0; padding: 18px 0; border-top: 1px solid var(--tl-line); border-bottom: 1px solid var(--tl-line); }
.tgl-ls__facts dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tl-muted); }
.tgl-ls__facts dd { margin: 3px 0 0; font-weight: 700; color: var(--tl-ink); }
.tgl-ls__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tgl-ls__tags span { padding: 6px 12px; border-radius: 999px; background: var(--tl-soft); border: 1px solid var(--tl-line); font-size: 0.82rem; font-weight: 600; color: var(--tl-ink); }
.tgl-ls__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.tgl-ls__visit { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px; border-radius: 999px; background: var(--tl-carbon); color: #FFFFFF !important; font-weight: 700; text-decoration: none; box-shadow: 0 14px 30px rgba(13, 13, 16, 0.2); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tgl-ls__visit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(13, 13, 16, 0.26); }
.tgl-ls__visit span { width: 36px; height: 36px; border-radius: 50%; background: var(--tl-accent); color: var(--tl-carbon); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.tgl-ls__domain { display: inline-flex; align-items: center; gap: 6px; font-size: 0.92rem; color: var(--tl-muted); }

/* narrow containers (phones, the partner profile's main column): stage above copy */
@container (max-width: 760px) {
  .tgl-ls__grid { grid-template-columns: 1fr; }
  .tgl-ls--flip .tgl-ls__stage { order: 0; }
}
@container (max-width: 420px) {
  .tgl-ls__bar { padding: 8px 10px; gap: 8px; }
  .tgl-ls__dots i { width: 8px; height: 8px; }
  .tgl-ls__phone { padding: 5px; border-radius: 22px; }
  .tgl-ls__phone .tgl-ls__screen { border-radius: 17px; }
  .tgl-ls__phone::before { top: 9px; height: 6px; }
  .tgl-ls__facts { gap: 12px 16px; }
}

/* the main site stacks the showcases one per row */
.tgl-ls-list { display: grid; gap: 28px; }
