/* BeastWeb Tools (FEAT-026): blog.css plus an indigo accent and the
   extension page parts. */
:root { --accent: #4f46e5; --accent-btn: #4f46e5; --on-accent: #fff; --accent-glow: rgba(79,70,229,.3); --accent-ink: #4338ca; --accent-soft: #eef0ff; }
@media (prefers-color-scheme: dark) {
  :root { --accent: #8b8cf8; --accent-btn: #8b8cf8; --on-accent: #0f1030; --accent-glow: rgba(139,140,248,.25); --accent-ink: #a5a6ff; --accent-soft: #23264a; }
}
.bw-logo span { color: var(--accent); }
.tl-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-block: 8px 56px; }
.tl-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); color: inherit; transition: transform .15s ease, box-shadow .2s ease; }
.tl-card:hover { transform: translateY(-2px); }
.tl-card:active { transform: scale(.99); }
.tl-card:hover h2 a { color: var(--accent-ink); }
.tl-card:has(.tl-card-link:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .tl-card { transition: none; } .tl-card:hover, .tl-card:active { transform: none; } }
.tl-card-shot { display: block; inline-size: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--sunken); }
.tl-card-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px; }
.tl-card-top { display: flex; align-items: center; gap: 14px; }
.tl-card-top img { inline-size: 56px; block-size: 56px; border-radius: 14px; flex: none; }
.tl-card h2 { margin: 0; font-size: 20px; }
.tl-card-link { color: inherit; text-decoration: none; }
.tl-card-link::after { content: ""; position: absolute; inset: 0; }
.tl-card p { margin: 0; color: var(--muted); }
.tl-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-block-start: auto; padding-block-start: 4px; }
a.tl-card-store { position: relative; z-index: 1; min-block-size: 44px; font-size: 14px; }
.tl-meta { font-size: 14px; color: var(--muted); }
/* Home page: left-aligned hero; the first (newest) tool gets a wide card
   with the screenshot beside the text. */
.tl-home-hero { text-align: start; padding-block: 48px 32px; }
.tl-home-hero .bw-bar { margin-inline: 0; }
.tl-home-hero h1 { font-size: clamp(36px, 7vw, 60px); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; max-inline-size: 14ch; text-wrap: balance; }
.tl-home-hero p { margin-inline: 0; max-inline-size: 560px; }
@media (min-width: 900px) {
  .tl-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tl-card:first-child:not(:last-child) { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .tl-card:first-child:not(:last-child) .tl-card-shot { inline-size: 56%; aspect-ratio: auto; min-block-size: 340px; }
  .tl-card:first-child:not(:last-child) .tl-card-body { justify-content: center; padding: 36px; gap: 16px; }
  .tl-card:first-child:not(:last-child) h2 { font-size: 28px; letter-spacing: -.02em; }
  .tl-card:first-child:not(:last-child) p { font-size: 18px; }
}
.tl-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-block: 20px 28px; }
.tl-hero img { inline-size: 96px; block-size: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.tl-hero h1 { margin: 0 0 6px; }
.tl-hero p { margin: 0; color: var(--muted); font-size: 18px; }
.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 0 28px; }
a.tl-store, .bw-prose a.tl-store { display: inline-flex; align-items: center; gap: 8px; min-block-size: 46px; padding: 0 20px; border-radius: 999px; background: var(--accent-btn); color: var(--on-accent); font-weight: 600; text-decoration: none; }
a.tl-store:hover { filter: brightness(1.06); color: var(--on-accent); }
a.tl-secondary { display: inline-flex; align-items: center; min-block-size: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.tl-claim { flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.tl-claim a { color: var(--accent-ink); }
.tl-shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 8px; margin-block: 0 28px; }
.tl-zoom { flex: 0 0 auto; inline-size: min(520px, 78vw); scroll-snap-align: start; cursor: zoom-in; border-radius: 16px; }
.tl-shots img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; box-shadow: var(--shadow); background: var(--sunken); }
.tl-viewer { border: 0; padding: 0; background: transparent; max-inline-size: 96vw; max-block-size: 92dvh; overflow: visible; }
.tl-viewer::backdrop { background: rgba(8, 10, 24, .82); }
.tl-viewer img { display: block; inline-size: auto; max-inline-size: 96vw; max-block-size: 86dvh; border-radius: 12px; }
.tl-viewer button { display: block; margin: 10px auto 0; min-block-size: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.tl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 28px; }
.tl-facts div { padding: 12px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.tl-facts dt { font-size: 12px; color: var(--muted); }
.tl-facts dd { margin: 2px 0 0; font-weight: 600; }
.tl-perms { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.tl-perms li { padding: 14px 16px; border-radius: 16px; background: var(--sunken); }
.tl-perms strong { display: block; margin-block-end: 2px; }
.tl-private { padding: 16px 18px; border-radius: 18px; background: var(--accent-soft); margin-block: 8px 28px; }
.tl-logo { display: inline-flex; align-items: center; gap: 10px; }
.tl-logo img { inline-size: 32px; block-size: 32px; border-radius: 8px; flex: none; }
.tl-logo > span { color: var(--ink); }
.tl-soon { display: inline-flex; align-items: center; min-block-size: 46px; padding: 0 20px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
/* Keep the footer at the bottom of short pages. */
body { display: flex; flex-direction: column; min-block-size: 100dvh; }
body > main { flex: 1 0 auto; inline-size: 100%; box-sizing: border-box; }
