/* KAN-1828 (Site 2.1 pass F, docs/site-v2/tools-21.md): the Home 2.1 grammar on the generators hub (.kx21 = the CMS body
   of /pages/ai-generators, every word kept) and on /pages/ai-tools + the six AI CRM add-on pages (.k21 = the theme
   snippets kms-tl-ai-*). Loaded only by templates/page.generator.liquid with the `tools` key on. Namespaced: .kx21 / .k21.
   Colour roles: lime = the page's one action (the add-on's hero action / the deal button); magenta = pill, one word of
   the H1, the one deal frame; cyan = AI accents and focus; blue = links; tiles graphite (the home's type tiles). */

/* ---------- generators hub ---------- */
.template-page main:has(.kx21){background:var(--kv2-bg,#0B0B0D)!important}
.kx21 .kx{background:var(--kv2-bg,#0B0B0D);background-image:none;color:var(--kv2-text-2,#C9CBD1)}
.kx21 .kx-w{max-width:1200px}
.kx21 .kx-s{padding:44px 0}
.kx21 .kx-s--band{background:none;border-block:1px solid var(--kv2-hair,rgba(255,255,255,.07))}
.kx21 .kx h2{font-size:clamp(28px,2.8vw,40px)!important;line-height:1!important;color:var(--kv2-text,#F2F3F5)}
.kx21 .kx h2 em{font-style:normal;color:var(--kv2-text,#F2F3F5)!important;text-shadow:none!important}
.kx21 .kx-eye{color:var(--kv2-muted,#9A9DA5)}
.kx21 .kx-intro{color:var(--kv2-text-2,#C9CBD1);max-width:60ch}
/* hero: pill + eyebrow, H1 with its <em> in magenta, lede, search (in the hidden button slot), category chips */
.kx21 .kx-hero{padding:48px 0 40px;background:none}
.kx21 .kx-hero .kx-eye{display:none}
.kx21 .kx21-eye{margin:0 0 18px}
.kx21 .kx-hero h1{max-width:16ch;font-size:clamp(42px,4.1vw,60px)!important;line-height:.96!important;letter-spacing:-.01em;color:var(--kv2-text,#F2F3F5);text-wrap:balance}
.kx21 .kx-hero h1 em{font-style:normal;color:var(--kv2-magenta,#FF2E88)!important;-webkit-text-fill-color:currentColor;background:none!important;text-shadow:0 0 26px rgba(255,46,136,.45)!important}
.kx21 .kx-lede{max-width:62ch;margin:18px 0 0;color:var(--kv2-text-2,#C9CBD1);font-size:18px;line-height:1.55}
.kx21 .kx-hero .kx-facts{display:none}
.kx21 .kx-hero .kx-btns{display:block;min-height:72px;margin:24px 0 0;max-width:760px}
.kx21 .kx-hero .kx-btns>a{display:none!important}
.kx21 .kx-find{position:static;margin:0;padding:6px;border-radius:14px;border:1px solid var(--kv2-hair-strong,rgba(255,255,255,.14));background:var(--kv2-surface,#15161A);box-shadow:none}
.kx21 .kx-find input{min-height:56px;border:0;background:transparent;color:var(--kv2-text,#F2F3F5);font-size:18px}
.kx21 .kx-find input:focus{outline:0}
.kx21 .kx-find:focus-within{border-color:var(--kv2-cyan,#22E5FF);box-shadow:0 0 0 3px var(--kv2-cyan-tint,rgba(34,229,255,.14))}
.kx21 .kx-find__n{padding-right:12px;color:var(--kv2-muted,#9A9DA5)}
.kx21 .kx-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.kx21 .kx-jump a{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 12px;border-radius:999px;border:1px solid var(--kv2-hair-strong,rgba(255,255,255,.14));background:var(--kv2-surface,#15161A);color:var(--kv2-text-2,#C9CBD1)!important;font:500 14px/1 var(--kms-font-sans,"Geist",system-ui,sans-serif);text-decoration:none;box-shadow:none}
.kx21 .kx-jump a:hover{border-color:var(--kv2-line-2,#3A3D44);color:var(--kv2-text,#F2F3F5)!important}
.kx21 .kx-jump a span{background:none!important;color:var(--kv2-muted,#9A9DA5)!important;font:500 12.5px/1 var(--kms-font-mono,"Geist Mono",monospace);padding:0}
/* cards (featured "start with" row) and tool tiles: the home's type tiles, graphite, no colour variants */
.kx21 .kx-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.kx21 .kx-card,.kx21 .kx-tool{position:relative;display:flex;flex-direction:column;gap:4px;height:100%;padding:16px 18px;border-radius:16px;border:1px solid var(--kv2-hair-strong,rgba(255,255,255,.12))!important;background:var(--kv2-surface,#15161A)!important;box-shadow:none!important;color:var(--kv2-text,#F2F3F5);text-decoration:none;transition:border-color .15s,background .15s}
.kx21 .kx-card:hover,.kx21 .kx-tool:hover{border-color:var(--kv2-line-2,#3A3D44)!important;background:var(--kv2-surface-2,#1A1C21)!important;transform:none}
.kx21 .kx-card::before,.kx21 .kx-tool::before,.kx21 .kx-card::after,.kx21 .kx-tool::after{display:none!important}
.kx21 .kx-card__k{color:var(--kv2-muted,#9A9DA5)!important;font:600 11.5px/1.3 var(--kms-font-mono,"Geist Mono",monospace);letter-spacing:.1em;text-transform:uppercase}
.kx21 .kx-card__t,.kx21 .kx-tool__t{color:var(--kv2-text,#F2F3F5)!important;font:650 16px/1.3 var(--kms-font-sans,"Geist",system-ui,sans-serif)!important;text-transform:none!important;letter-spacing:0!important}
.kx21 .kx-card__d,.kx21 .kx-tool__d{color:var(--kv2-muted,#9A9DA5)!important;font-size:14px!important;line-height:1.45!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.kx21 .kx-card__go{margin-top:auto;padding-top:8px;color:var(--kv2-blue,#4D8DFF)!important;font-weight:600;font-size:14.5px}
.kx21 .kx-price{color:var(--kv2-text-2,#C9CBD1)!important;background:none!important}
/* categories: a compact directory, the category on the left, its tiles on the right (3 columns, 6 shown) */
.kx21 #kx-all .kx-cat{display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:32px;margin:0;padding:16px 0;border-top:1px solid var(--kv2-hair,rgba(255,255,255,.07))}
.kx21 .kx-cat__head{grid-column:1;grid-row:1;display:block;margin:0}
.kx21 .kx-cat__t{margin:0;color:var(--kv2-text,#F2F3F5)!important;font:800 21px/1.15 var(--kms-font-display,"Archivo",sans-serif)!important;font-stretch:85%!important;text-transform:none!important}
.kx21 .kx-cat__n{display:inline-block;margin-top:6px;padding:0!important;background:none!important;border:0!important;color:var(--kv2-muted,#9A9DA5)!important;font:500 12.5px/1.3 var(--kms-font-mono,"Geist Mono",monospace)!important}
.kx21 .kx-cat__sub{grid-column:1;grid-row:2;margin:8px 0 0;color:var(--kv2-muted,#9A9DA5);font-size:14px;line-height:1.45}
@media (min-width:1024px){.kx21 .kx-cat__sub{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
.kx21 .kx-tools{grid-column:2;grid-row:1/span 3;align-self:start;align-content:start;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.kx21 .kx-tools>li{margin:0;min-width:0}
.kx21 .kx-tool{padding:13px 15px;border-radius:14px;gap:3px}
.kx21 .kx-tool__t{font-size:15px!important}
.kx21 .kx-tool__d{font-size:13.5px!important;-webkit-line-clamp:1}
.kx21 .kx-more6{grid-column:1;grid-row:3;align-self:start;justify-self:start;margin:10px 0 0;border-color:var(--kv2-line-2,#3A3D44);color:var(--kv2-text,#F2F3F5)!important;font-weight:600}
.kx21 .kx-more6:hover{border-color:var(--kv2-text-2,#C9CBD1)}
.kx21 .kx-find__none{border-color:var(--kv2-line-2,#3A3D44);color:var(--kv2-text,#F2F3F5)}
.kx21 .kx-find__none button{color:var(--kv2-blue,#4D8DFF)!important;border-color:var(--kv2-line-2,#3A3D44)}
.kx21 .kx-tools>li.kx21-dead .kx-tool{background:transparent!important}
/* the store door: the deal card (snippets/kms-tool-deal) replaces the body's "Want more than a free tool?" cards */
.kx21 #kx-more,.kx21 .kx-cta{display:none!important}
.kx21 .kx21-dealsec{padding:24px 0 8px}
.kx21 .kx21-dealsec .kms-v2-deal{max-width:760px}
/* the "start with" row: its first 4 cards (the rest are in their categories) */
.kx21 #kx-featured .kx-cards>li:nth-child(n+5){display:none}
/* the walkthrough video after the page (templates/page.generator.liquid, explainer slot): narrower on the hub */
body:has(.kx21) .kpv--explainer{max-width:680px!important;margin-left:auto!important;margin-right:auto!important}
/* FAQ */
.kx21 #kx-faq details{border-color:var(--kv2-hair-strong,rgba(255,255,255,.12))!important;background:none!important}
.kx21 #kx-faq summary{color:var(--kv2-text,#F2F3F5)}
/* any lime left in the body: quiet (the deal button is the page's one lime) */
.kx21 .kx-btn--lime{background:var(--kv2-white,#F4F5F7)!important;border-color:var(--kv2-white,#F4F5F7)!important;color:var(--kv2-on-accent,#0B0B0D)!important;box-shadow:none!important}
.kx21 .kx a:not(.kms-v2-btn){color:inherit}
.kx21 .kx-intro a,.kx21 #kx-faq a{color:var(--kv2-blue,#4D8DFF)!important}
@media (max-width:1023px){
  .kx21 .kx-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kx21 #kx-all .kx-cat{grid-template-columns:minmax(0,1fr);grid-template-rows:none}
  .kx21 .kx-cat__head,.kx21 .kx-cat__sub,.kx21 .kx-tools,.kx21 .kx-more6{grid-column:1;grid-row:auto}
  .kx21 .kx-cat__head{display:flex;align-items:baseline;gap:10px}
  .kx21 .kx-cat__sub{margin:4px 0 14px}
}
@media (max-width:749px){
  .kx21 .kx-w{padding:0 16px}
  .kx21 .kx-s{padding:40px 0}
  .kx21 .kx-hero{padding:28px 0 28px}
  .kx21 .kx-hero h1{font-size:clamp(36px,10vw,46px)!important}
  .kx21 .kx-lede{font-size:16.5px}
  .kx21 .kx-hero .kx-btns{min-height:68px}
  .kx21 .kx-jump{flex-wrap:nowrap;overflow-x:auto;margin-right:-16px;padding-right:16px;scrollbar-width:none}
  .kx21 .kx-jump a{flex:none}
  .kx21 .kx-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .kx21 .kx-tool{padding:12px}
  .kx21 .kx-tool__t{font-size:14.5px!important}
  .kx21 .kx-tool__d{display:none!important}
  .kx21 #kx-all .kx-cat{padding:18px 0}
  .kx21 .kx-cat__sub{display:none}
}

/* ---------- /pages/ai-tools + AI CRM add-on pages (.k21 = kms-tl-ai-* snippet output) ---------- */
.k21 .k21-eye{margin:0 0 18px}
.k21 .ktl-hero .ktl-eye{display:none}
.k21 .ktl-h1{font-family:var(--kms-font-display,"Archivo",sans-serif)!important;font-weight:850!important;font-stretch:75%!important;font-size:clamp(42px,4.1vw,60px)!important;line-height:.96!important;letter-spacing:-.01em!important;text-transform:uppercase;text-wrap:balance;color:var(--kv2-text,#F2F3F5)!important;text-shadow:none!important}
.k21 .ktl-h1 :is(span,em){font-style:normal;color:var(--kv2-magenta,#FF2E88)!important;-webkit-text-fill-color:currentColor!important;background:none!important;text-shadow:0 0 26px rgba(255,46,136,.45)!important}
/* the hero's "$0 free plan" box, the plans section (renamed plans-v1, the deal card took its place) */
.k21 .ktl-hero .ktl-offer,.k21 #plans-v1{display:none!important}
/* one lime: the hero's first lime button stays; every other lime button white, magenta buttons outline */
.k21 .ktl-btn--lime{background:var(--kv2-white,#F4F5F7)!important;border-color:var(--kv2-white,#F4F5F7)!important;color:var(--kv2-on-accent,#0B0B0D)!important;box-shadow:none!important}
.k21 .ktl-hero .ktl-btns .ktl-btn--lime:first-child{background:var(--kv2-lime,#C6FF3A)!important;border-color:var(--kv2-lime,#C6FF3A)!important}
.k21 .ktl-btn--pink{background:transparent!important;border:1px solid var(--kv2-line-2,#3A3D44)!important;color:var(--kv2-text,#F2F3F5)!important;box-shadow:none!important}
.k21 :is(.ktl-pink,.ktl-glow-cyan,.ktl-glow,.ktl-lime):not(.ktl-h1 *){color:inherit!important;text-shadow:none!important;-webkit-text-fill-color:currentColor!important;background:none!important}
.k21 .k21-dealsec{padding:56px 0 24px}
.k21 .k21-dealsec .kms-v2-deal{max-width:760px;margin:0 auto}
@media (max-width:749px){
  .k21 .ktl-h1{font-size:clamp(36px,10vw,46px)!important}
  .k21 .ktl-sticky .ktl-btn--lime{background:var(--kv2-white,#F4F5F7)!important}
}
/* /pages/ai-tools (KAN-1754): the flagship CRM block and the final band go, the hero pair is white + a link to the free
   generators; the page's one lime is the deal card's Subscribe */
.k21 #ai-crm,.k21 .k21-end{display:none!important}
.k21--ai-tools .ktl-hero .ktl-btns .ktl-btn--lime:first-child{background:var(--kv2-white,#F4F5F7)!important;border-color:var(--kv2-white,#F4F5F7)!important}
.k21--ai-tools .ktl-hero .ktl-fine{display:none}
.k21 .k21-free{margin:14px 0 0;font-size:15px}
.k21 .k21-free a{color:var(--kv2-blue,#4D8DFF)!important;text-decoration:none;font-weight:600}
.k21 .k21-free a:hover{text-decoration:underline}
/* add-on pages (KAN-1754 "final bands"): the closing CTA band after the FAQ goes; the deal card is the page's last door */
.k21 #faq ~ section.ktl-sec:not(.ktl-sec--line):not(.ktl-sec--alt):not(.ktl-sec--tight){display:none!important}
