/* dznir.com/tools and /tools/overlay-studio (tools/*.php). Built on styles.css (tokens, .wrap, .btn, .kicker,
   .sec-title, .faq) and partnerships.css (.pt-hero, .pt-h2, .pt-card, .pt-steps), like About and Partnerships.
   4 / 8 px spacing, 24 px card corners, the site's paper / card / line colours. */

/* tags: New (solid orange) and the plan a tool comes with, in the kicker's own lettering (uppercase, spaced) so they
   sit with it as one line (owner, 10 Nov: the softer sentence-case pill next to the kicker "looks shit") */
.tl-new, .tl-plan { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font: 700 11px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; vertical-align: middle; }
.tl-new { background: #D0340C; color: #FFFFFF; }
.tl-plan { background: var(--ink); color: #FFFFFF; }
.tl-plan--free { background: var(--paper-2); color: #A82808; }
.kicker .tl-new { margin-left: 4px; }
.pt-card h3 .tl-plan { margin-left: 4px; }

/* the featured tool: text on the left, its picture on the right */
.tl-feature { padding: 0 0 16px; }
.tl-feat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 32px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform 0.3s var(--ease-out), border-color 0.2s, box-shadow 0.4s var(--ease-out); }
.tl-feat:hover, .tl-feat:focus-visible { transform: translateY(-2px); border-color: rgba(17, 17, 16, 0.18); box-shadow: 0 32px 64px -40px rgba(17, 17, 16, 0.4); }
.tl-feat__body { display: grid; gap: 16px; align-content: center; }
.tl-feat__tags { display: flex; gap: 8px; margin: 0; }
.tl-feat h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.tl-feat p { margin: 0; max-width: 30.64em; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.tl-feat__go { color: var(--accent-ink); font-size: 15px; font-weight: 600; }
.tl-feat__media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; box-shadow: 0 24px 48px -28px rgba(17, 17, 16, 0.5); }

/* the other tools */
.tl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tl-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl-card h3 .tl-plan { margin: 0; }

/* what's next + the closing call to action */
.tl-next { padding: 48px 0 96px; }
.tl-next__card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 32px; border-radius: 28px; background: var(--paper-2); }
.tl-next__card .pt-h2 { margin-bottom: 8px; }
.tl-next__card p { max-width: 37.3em; margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.tl-next__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Overlay Studio ---------- */
.ov-hero__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.ov-hero .sec-title { max-width: 8.8em; }
.ov-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.ov-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 20px; background: #0B0B0E; box-shadow: 0 32px 64px -32px rgba(17, 17, 16, 0.55); }

.ov-sub { max-width: 39.96em; margin: -8px 0 24px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.ov-scenes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ov-scene { display: grid; gap: 12px; align-content: start; margin: 0; }
.ov-scene img, .ov-tpls img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #0B0B0E; box-shadow: 0 0 0 1px var(--line); }
.ov-scene figcaption { display: grid; gap: 4px; }
.ov-scene b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.ov-scene span { color: var(--muted); font-size: 14px; line-height: 1.5; }

.ov-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 24px 16px; margin: 0; padding: 0; list-style: none; }
.ov-tpls li { display: grid; gap: 8px; }
.ov-tpls span { font-size: 15px; font-weight: 600; text-align: center; }

.ov-how { padding: 48px 0; }
.ov-how__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.ov-how .pt-steps { margin: 0; }
.ov-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ov-feat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; padding: 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.ov-feat .pt-card__ico { margin: 0; }
.ov-feat div { display: grid; gap: 4px; }
.ov-feat b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.ov-feat span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.ov-faq { border-top: 0; }

@media (max-width: 1000px) {
  .tl-feat, .ov-hero__grid, .ov-how__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-scenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-next__card { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .tl-feat { padding: 24px 16px; gap: 24px; }
  .tl-grid, .ov-feats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ov-scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ov-tpls { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .ov-tpls span { font-size: 14px; }
  .tl-next { padding: 32px 0 64px; }
  .tl-next__card { padding: 24px 16px; }
  .tl-next__acts .btn { flex: 1 1 100%; }
  .ov-how { padding: 32px 0; }
}
@media (prefers-reduced-motion: reduce) { .tl-feat { transition: none; } .tl-feat:hover { transform: none; } }
