/* ============================================================================
   FREE DESIGN TOOLS HUB — /tools (prefix tlh-)
   The tool-guide system (docs/design/tool-guide-design-system.md) on the hub:
   one 1200px rail, a landscape compare stage (one illustration through two of
   the tools), one-line stats, the tool cards with a hover-zoom pair each, the
   lime bento, a four-step track, the three deep dives, the dark cards.
   ============================================================================ */

.tlh .mono-container { max-width: 1200px; }
.tlh .mono-section { padding: clamp(40px, 6vw, 72px) 0; }
.tlh .mono-section-head { max-width: 760px; }
.tlh .mono-section-head .mono-lead { margin-top: 12px; }

/* hairline above container-less sections, on the rail so it matches 1200px */
.tlh .mono-section.tlh-sep { padding-top: 0; }
.tlh .mono-section.tlh-sep > .mono-container {
    border-top: 1px solid var(--mono-border);
    padding-top: clamp(40px, 6vw, 72px);
}

/* ---- hero -------------------------------------------------------------- */
.tlh-hero { text-align: center; }
.tlh-hero .tlh-h1 {
    margin: 14px auto 0;
    max-width: 22ch;
    font-family: var(--mono-font-display);
    font-size: clamp(1.9rem, 3.7vw, 3.7rem) !important;   /* the same size as before on desktop; site.css sets every h1 to clamp(.8rem, 3.7vw, ...) !important: 14px on a phone */
    font-weight: var(--mono-w-extrabold, 800);
    line-height: 1.06;
    letter-spacing: -0.02em;
    color: var(--mono-ink);
}
.tlh-hero .mono-lead { max-width: 64ch; margin: 18px auto 0; }
.tlh-cta-row {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 12px 20px; margin: 24px 0 0;
}
.tlh-cta-row--left { justify-content: flex-start; }
.tlh-cta-row .mono-link svg { margin-right: 2px; }
.tlh-note { font-size: 13px; color: var(--mono-text-muted); }
.tlh-hero .tlh-cta-row { margin-top: 26px; }

/* the stage: one illustration, then the Vectorizer Lab SVG and the Pixel Lab render wiping across it as you scroll */
.tlh-stage { margin: 44px auto 0; max-width: 1100px; }
.tlh-stage__frame {
    position: relative; aspect-ratio: 1200 / 514; overflow: hidden;
    border-radius: 20px; border: 1px solid var(--mono-border);
    background: var(--mono-gray-50); box-shadow: var(--mono-shadow-card, 0 18px 50px rgba(17,17,17,.05));
}
/* Three bands: the original, then the poster export from --a, then the grey export from --b.
   The two lines are draggable (pointer) and keyboard sliders; scroll drives them until then. */
.tlh-stage__frame { --a: 34%; --b: 67%; cursor: ew-resize; user-select: none; -webkit-user-select: none; }
.tlh-stage__frame.is-dragging { cursor: grabbing; }
.tlh-stage__before, .tlh-stage__layer { position: absolute; inset: 0; pointer-events: none; }
.tlh-stage__before { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlh-stage__layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlh-stage__layer--b img { image-rendering: pixelated; image-rendering: crisp-edges; }
.tlh-stage__layer--a { clip-path: inset(0 0 0 var(--a)); }
.tlh-stage__layer--b { clip-path: inset(0 0 0 var(--b)); }
.tlh-stage__bar {
    position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; touch-action: none; outline: none;
    background: var(--mono-lime, #ccea4a); box-shadow: 0 0 0 1px rgba(17,24,39,.25), 0 0 18px rgba(204,234,74,.8);
}
.tlh-stage__bar--a { left: var(--a); }
.tlh-stage__bar--b { left: var(--b); }
.tlh-stage__bar::before { content: ''; position: absolute; top: 0; bottom: 0; left: -14px; right: -14px; }
.tlh-stage__bar::after {
    content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--mono-lime, #ccea4a); color: var(--mono-ink); font-size: 16px; font-weight: 800;
    box-shadow: 0 6px 18px rgba(17,24,39,.25); transition: transform .15s ease;
}
.tlh-stage__bar:hover::after, .tlh-stage__bar:focus-visible::after { transform: translate(-50%, -50%) scale(1.12); }
.tlh-stage__bar:focus-visible::after { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--mono-ink), 0 6px 18px rgba(17,24,39,.25); }
.tlh-stage__bar--b::after { top: calc(50% + 56px); }
.tlh-stage__tag {
    position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
    font-size: 12px; font-weight: 700; letter-spacing: -0.005em;
    background: rgba(255,255,255,.92); color: var(--mono-ink); backdrop-filter: blur(6px);
    box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.tlh-stage__tag--o { left: 14px; }
.tlh-stage__tag--a { left: calc(var(--a) + 14px); background: var(--mono-lime, #ccea4a); }
.tlh-stage__tag--b { left: calc(var(--b) + 14px); background: var(--mono-ink); color: #fff; }
.tlh-stage__tag[hidden] { display: none; }

.tlh-stats {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
    max-width: 1100px; margin: 18px auto 0; padding: 0; list-style: none;
}
.tlh-stats li {
    display: flex; align-items: center; gap: 10px; min-width: 0; text-align: left;
    padding: 10px 14px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 12px;
    font-size: 12.5px; line-height: 1.35; color: var(--mono-text-muted);
}
.tlh-stats li > svg { flex: 0 0 auto; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--mono-ink); color: var(--mono-lime, #ccea4a); }
.tlh-stats li > span { min-width: 0; }
.tlh-stats strong { display: block; font-family: var(--mono-font-display); font-size: 13.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }

/* ---- before / after gallery: two big pairs a row, the pointer zooms both on one spot ---- */
.tlh-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.tlh-pair {
    display: grid; gap: 12px; margin: 0; padding: 16px 16px 14px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 20px;
    transition: box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.tlh-pair:hover, .tlh-pair.is-zoom { box-shadow: var(--mono-shadow-hover, 0 16px 40px rgba(17,24,39,.09)); border-color: var(--mono-lime, #ccea4a); }
.tlh-pair__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; }
.tlh-pair__title { font-family: var(--mono-font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }
.tlh-pair__kind { font-size: 12.5px; font-weight: 600; color: var(--mono-text-muted); text-align: right; }
.tlh-pair__imgs { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; cursor: zoom-in; }
.tlh-pair.is-zoom .tlh-pair__imgs { cursor: crosshair; }
.tlh-pair__img { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--mono-border); }
.tlh-pair__img img {
    width: 100%; height: 100%; object-fit: contain; display: block; background: #fff;
    transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform .28s var(--mono-ease, ease);
}
.tlh-pair.is-zoom .tlh-pair__img img { transform: scale(2.6); transition: transform .28s var(--mono-ease, ease); }
.tlh-pair__img--after img { image-rendering: auto; }
.tlh-pair--pixel.is-zoom .tlh-pair__img img, .tlh-pair--pixel .tlh-pair__img--after img { image-rendering: pixelated; } /* Pixel Lab keeps its blocks */
.tlh-pair__lbl {
    position: absolute; left: 10px; top: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    background: rgba(255,255,255,.92); color: var(--mono-ink); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.tlh-pair__lbl--lime { background: var(--mono-lime, #ccea4a); }
.tlh-pair__lens {
    position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2;
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
    background: rgba(17,24,39,.82); color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; pointer-events: none;
    opacity: .92; transition: opacity .2s ease;
}
.tlh-pair.is-zoom .tlh-pair__lens { opacity: 0; }
.tlh-pair__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.tlh-pair__auto { font-size: 11.5px; font-weight: 600; color: var(--mono-text-muted); }
.tlh-recipe {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    background: var(--mono-surface-subtle, #f9fafb); border: 1px solid var(--mono-border); color: var(--mono-gray-700);
    font-family: var(--mono-font-mono, 'JetBrains Mono', Menlo, monospace);
    font-size: 11.5px; letter-spacing: 0;
}

/* ---- what it does: the lime shell, an intro, then a bento of feature cards ---- */
.tlh-cap {
    display: grid; gap: 28px;
    background: var(--mono-lime, #CCEA4A);
    border-radius: var(--mono-radius-xl, 24px);
    padding: clamp(24px, 4vw, 48px);
    color: #111;
}
.tlh-cap__intro { max-width: 760px; }
.tlh-cap__intro .mono-eyebrow { color: #111; opacity: .7; }
.tlh-cap__h2 { margin: 8px 0 0; font-family: var(--mono-font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.tlh-cap__body { margin: 12px 0 0; font-size: var(--mono-fs-lead); line-height: 1.55; }
.tlh-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.tlh-feat__card {
    display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
    padding: 18px; border-radius: 18px; background: rgba(255,255,255,.92); border: 1px solid rgba(17,17,17,.06);
    font-size: 13.5px; line-height: 1.5; color: #111;
    transition: transform var(--mono-dur, .2s) ease, box-shadow var(--mono-dur, .2s) ease, background var(--mono-dur, .2s) ease;
}
.tlh-feat__card:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(17,24,39,.12); }
.tlh-feat__card--wide { grid-column: span 2; grid-template-columns: 44px minmax(0, 1fr) 220px; align-items: center; }
.tlh-feat__i { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #111; color: var(--mono-lime, #ccea4a); }
.tlh-feat__card strong { display: block; font-family: var(--mono-font-display); font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.tlh-feat__card--wide strong { font-size: 17px; }
.tlh-feat__card p { margin: 0; color: #2a2a2a; }
.tlh-feat__art { width: 220px; height: 80px; display: block; overflow: hidden; }

/* ---- how it works: six steps on a lime track ------------------------- */
.tlh-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.tlh-flow__step { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.tlh-flow__step::before, .tlh-flow__step::after {
    content: ''; position: absolute; top: 19px; height: 2px; background: var(--mono-lime, #ccea4a); z-index: 0;
}
.tlh-flow__step::before { left: -22px; right: 50%; }      /* from the previous node */
.tlh-flow__step::after { left: 50%; right: -22px; }       /* to the next node */
.tlh-flow__step:nth-child(3n + 1)::before, .tlh-flow__step:nth-child(3n)::after, .tlh-flow__step:last-child::after { display: none; }
.tlh-flow__n {
    position: relative; z-index: 1; justify-self: center;
    display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    background: var(--mono-ink); color: var(--mono-lime, #ccea4a);
    font-family: var(--mono-font-display); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--mono-lime, #ccea4a);
}
.tlh-flow__card {
    min-width: 0; padding: 22px; background: var(--mono-white);
    border: 1px solid var(--mono-border); border-radius: 18px;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.tlh-flow__step:hover .tlh-flow__card { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.tlh-flow__i { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--mono-lime-pale, #fbfde8); color: var(--mono-ink); }
.tlh-flow__t { display: block; margin-top: 14px; font-family: var(--mono-font-display); font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }
.tlh-flow__d { display: block; margin-top: 6px; font-size: var(--mono-fs-sm); color: var(--mono-text-muted); line-height: 1.55; }

/* ---- use cases 3x2 ----------------------------------------------------- */
.tlh-uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tlh-uses__card {
    padding: 20px 22px; background: var(--mono-white); border: 1px solid var(--mono-border); border-radius: 16px;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.tlh-uses__card:hover { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.tlh-uses__i { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mono-lime-pale, #fbfde8); color: var(--mono-ink); margin-bottom: 12px; }
.tlh-uses__card h3 { margin: 0; font-family: var(--mono-font-display); font-size: 15.5px; font-weight: 700; color: var(--mono-ink); }
.tlh-uses__card p { margin: 6px 0 0; font-size: var(--mono-fs-sm); color: var(--mono-text-muted); line-height: 1.55; }
.tlh-uses__card a { color: var(--mono-ink); border-bottom: 2px solid var(--mono-lime); padding-bottom: 1px; text-decoration: none; }

/* ---- FAQ: the foundation accordion, centred ---------------------------- */
.tlh-faq .mono-section-head { margin-left: auto; margin-right: auto; text-align: center; }
.tlh-faq .mono-faq2 { grid-template-columns: 1fr; max-width: 860px; margin: 0 auto; }
.tlh-faq .tlh-cta-row { justify-content: center; margin-top: 32px; }

/* ---- motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    .tlh-stage__bar::after { transition: none; }
    .tlh-pair, .tlh-flow__card, .tlh-uses__card, .tlh-feat__card, .tlh-tool, .tlh-pair__img img { transition: none; }
}

/* ---- narrow ------------------------------------------------------------ */
@media (max-width: 979px) {
    .tlh-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-feat__card--wide { grid-template-columns: 44px minmax(0, 1fr); }
    .tlh-feat__art { display: none; }
    .tlh-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-flow__step:nth-child(3n + 1)::before, .tlh-flow__step:nth-child(3n)::after { display: block; }
    .tlh-flow__step:nth-child(2n + 1)::before, .tlh-flow__step:nth-child(2n)::after { display: none; }
    .tlh-uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .tlh-h1__br { display: none; }
}
@media (max-width: 620px) {
    .tlh-pairs { grid-template-columns: minmax(0, 1fr); }
    .tlh-flow { grid-template-columns: minmax(0, 1fr); }
    .tlh-flow__step::before, .tlh-flow__step::after { display: none !important; }
    .tlh-feat { grid-template-columns: minmax(0, 1fr); }
    .tlh-feat__card--wide { grid-column: span 1; }
    .tlh-uses { grid-template-columns: minmax(0, 1fr); }
    .tlh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-stage { margin-top: 28px; }
    .tlh-stage__frame { border-radius: 14px; }
    .tlh-stage__tag { top: 10px; font-size: 11px; padding: 5px 10px; }
}
@media (max-width: 420px) {
    .tlh-stats { grid-template-columns: minmax(0, 1fr); }
}

/* ---- the tool cards: three big ones with a pair each, then the rest --------- */
.tlh-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tlh-tool {
    position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0;
    padding: 18px 18px 20px; background: var(--mono-white); border: 1px solid var(--mono-border); border-radius: 20px;
    transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease;
}
.tlh-tool:hover { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.tlh-tool__head { display: flex; align-items: center; gap: 12px; }
.tlh-tool__i { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mono-ink); color: var(--mono-lime, #ccea4a); }
.tlh-tool__t { margin: 0; font-family: var(--mono-font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--mono-ink); }
.tlh-tool__t a { color: inherit; text-decoration: none; }
.tlh-tool__t a::after { content: ''; position: absolute; inset: 0; border-radius: 20px; }   /* the whole card is the link */
.tlh-tool__badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; vertical-align: middle; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--mono-lime, #ccea4a); color: var(--mono-ink); }
.tlh-tool__badge--soft { background: var(--mono-lime-pale, #fbfde8); }
.tlh-tool__kind { display: block; margin-top: 1px; font-size: 12.5px; color: var(--mono-text-muted); }
.tlh-tool p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--mono-text-muted); }
.tlh-tool__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tlh-tool__tags li {
    padding: 4px 9px; border-radius: 999px; background: var(--mono-surface-subtle, #f9fafb); border: 1px solid var(--mono-border); color: var(--mono-gray-700);
    font-family: var(--mono-font-mono, 'JetBrains Mono', Menlo, monospace); font-size: 11px; letter-spacing: 0;
}
.tlh-tool__go { margin-top: auto; padding-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--mono-ink); }
.tlh-tool__go svg { vertical-align: -3px; margin-left: 2px; }
/* the pair inside a card: the guide pair, smaller */
.tlh-tool .tlh-pair { padding: 0; border: 0; border-radius: 0; box-shadow: none; gap: 0; }
.tlh-tool .tlh-pair:hover { transform: none; box-shadow: none; }
.tlh-tool .tlh-pair__imgs { gap: 8px; position: relative; z-index: 1; }
.tlh-tool .tlh-pair__img { border-radius: 12px; }
.tlh-tool .tlh-pair__lbl { left: 8px; top: 8px; padding: 3px 7px; font-size: 9.5px; }
.tlh-tool .tlh-pair__lens { bottom: 8px; padding: 5px 9px; font-size: 10.5px; }

/* ---- coming soon: quiet dashed cards ------------------------------------ */
.tlh-soon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tlh-soon__card { padding: 16px 18px; border: 1px dashed var(--mono-gray-300, #d1d5db); border-radius: 16px; background: var(--mono-surface-subtle, #f9fafb); }
.tlh-soon__card span { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #fff; border: 1px solid var(--mono-border); color: var(--mono-text-muted); }
.tlh-soon__card h3 { margin: 0; font-family: var(--mono-font-display); font-size: 15px; font-weight: 800; color: var(--mono-ink); }
.tlh-soon__card p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--mono-text-muted); }

/* ---- the deep dives: picture | text, alternating ------------------------- */
.tlh-deep { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 40px; align-items: center; padding: 36px 0; border-top: 1px solid var(--mono-border); }
.tlh-deep:first-of-type { border-top: 0; padding-top: 8px; }
.tlh-deep--flip .tlh-deep__pic { order: 2; }
.tlh-deep__pic { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--mono-border); background: var(--mono-gray-50); aspect-ratio: 4 / 3; }
.tlh-deep__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlh-deep__pic .tlh-pair__lbl { left: 12px; top: 12px; }
.tlh-deep h3 { margin: 0; font-family: var(--mono-font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; color: var(--mono-ink); }
.tlh-deep p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--mono-text-muted); }
.tlh-deep p strong, .tlh-deep li strong { color: var(--mono-ink); }
.tlh-deep ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tlh-deep li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--mono-text-muted); }
.tlh-deep li svg { flex: 0 0 auto; width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: var(--mono-lime, #ccea4a); color: var(--mono-ink); margin-top: 1px; }
.tlh-deep .tlh-cta-row { justify-content: flex-start; margin-top: 18px; }
.tlh-code { font-family: var(--mono-font-mono, 'JetBrains Mono', Menlo, monospace); font-size: 12.5px; padding: 1px 6px; border-radius: 6px; background: var(--mono-surface-subtle, #f9fafb); border: 1px solid var(--mono-border); color: var(--mono-ink); }

/* ---- four steps in one row (the flow with a 4-up modifier) --------------- */
.tlh-flow--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tlh-flow--4 .tlh-flow__step:nth-child(3n + 1)::before, .tlh-flow--4 .tlh-flow__step:nth-child(3n)::after { display: block; }
.tlh-flow--4 .tlh-flow__step:first-child::before, .tlh-flow--4 .tlh-flow__step:last-child::after { display: none; }

/* ---- dark cards: Photogen, the library --------------------------------- */
.tlh-dark { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 40px; align-items: center; background: var(--mono-ink); color: #fff; border-radius: var(--mono-radius-xl, 24px); padding: clamp(28px, 4.5vw, 52px); }
.tlh-dark .mono-eyebrow { color: var(--mono-lime, #ccea4a); }
.tlh-dark__h2 { margin: 10px 0 0; font-family: var(--mono-font-display); font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.tlh-dark p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
.tlh-dark .tlh-cta-row { justify-content: flex-start; margin-top: 22px; }
.tlh-dark .mono-btn--primary { background: var(--mono-lime, #ccea4a); color: var(--mono-ink); border-color: var(--mono-lime, #ccea4a); }
.tlh-dark .mono-link { color: #fff; }
.tlh-dark__small { margin: 16px 0 0; font-size: 12.5px; color: rgba(255,255,255,.5); }
.tlh-dark__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tlh-dark__tags li { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.tlh-dark__figures ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.tlh-dark__figures li { list-style: none; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.tlh-dark__figures strong { display: block; font-family: var(--mono-font-display); font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--mono-lime, #ccea4a); line-height: 1.1; }
.tlh-dark__figures span { display: block; margin-top: 4px; font-size: 12.5px; color: rgba(255,255,255,.66); }
.tlh-dark__photo { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.tlh-dark__photo img { display: block; width: 100%; height: auto; }

/* ---- the packs that work with every tool ------------------------------- */
.tlh-packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tlh-pack { display: block; text-decoration: none; background: var(--mono-white); border: 1px solid var(--mono-border); border-radius: 16px; overflow: hidden; transition: transform var(--mono-dur, .2s) var(--mono-ease, ease), box-shadow var(--mono-dur, .2s) ease, border-color var(--mono-dur, .2s) ease; }
.tlh-pack:hover { transform: translateY(-3px); box-shadow: var(--mono-shadow-hover, 0 12px 28px rgba(17,24,39,.08)); border-color: var(--mono-lime, #ccea4a); }
.tlh-pack img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--mono-gray-50); }
.tlh-pack__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; }
.tlh-pack__name { font-family: var(--mono-font-display); font-size: 14.5px; font-weight: 800; color: var(--mono-ink); }
.tlh-pack__style { font-size: 12px; color: var(--mono-text-muted); white-space: nowrap; }

@media (max-width: 979px) {
    .tlh-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-deep { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .tlh-deep--flip .tlh-deep__pic { order: 0; }
    .tlh-flow--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-flow--4 .tlh-flow__step:nth-child(2n + 1)::before, .tlh-flow--4 .tlh-flow__step:nth-child(2n)::after { display: none; }
    .tlh-flow--4 .tlh-flow__step:nth-child(2n)::before, .tlh-flow--4 .tlh-flow__step:nth-child(2n + 1)::after { display: block; }
    .tlh-flow--4 .tlh-flow__step:last-child::after { display: none; }
    .tlh-dark { grid-template-columns: minmax(0, 1fr); }
    .tlh-packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .tlh-tools { grid-template-columns: minmax(0, 1fr); }
    .tlh-soon { grid-template-columns: minmax(0, 1fr); }
    .tlh-flow--4 { grid-template-columns: minmax(0, 1fr); }
    .tlh-flow--4 .tlh-flow__step::before, .tlh-flow--4 .tlh-flow__step::after { display: none !important; }
    .tlh-dark__figures ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tlh-packs { grid-template-columns: minmax(0, 1fr); }
}

/* ---- phones: less padding per layer so the text gets the width ---------- */
@media (max-width: 620px) {
    .tlh .mono-section { padding: 36px 0; }
    .tlh-cap { padding: 20px 14px; border-radius: 18px; gap: 20px; }
    .tlh-cap__h2 { font-size: 1.45rem; }
    .tlh-feat { gap: 10px; }
    .tlh-feat__card { padding: 14px; gap: 12px; border-radius: 14px; }
    .tlh-feat__card--wide { grid-template-columns: 44px minmax(0, 1fr); }
    .tlh-flow__card { padding: 16px; }
    .tlh-uses__card { padding: 16px; }
    .tlh-pair { padding: 12px 12px 10px; border-radius: 16px; }
    .tlh-stats li { padding: 9px 12px; }
    .tlh-cta-row .mono-btn { width: 100%; justify-content: center; }
    .tlh .mono-lead { font-size: 15px; }
    .tlh-tool { padding: 14px 14px 16px; border-radius: 16px; }
    .tlh-dark { padding: 22px 16px; border-radius: 18px; }
    .tlh-deep { padding: 24px 0; }
}
