/* KITZLABS AI TOOLS — BRAND ALIGN V9
   Reference: live kitzlabs.ai 2026-11-26
   Scope: presentation only; no API, form, tool or analytics changes.
   Rollback: remove this stylesheet link from the two page templates. */
:root {
  color-scheme: dark;
  --ink: #f3f8ff;
  --muted: #b4c5db;
  --surface: #091729;
  --band: #10233d;
  --accent: #89d7ff;
  --k8-cyan: #66d7f8;
  --k8-blue: #75b5ff;
  --k8-violet: #83a5ed;
  --k8-magenta: #79d8f7;
  --k8-line: rgba(156,200,245,.18);
  --k8-line-strong: rgba(156,200,245,.30);
  --k8-shadow: 0 20px 54px rgba(1,7,19,.22);
  --content-max: 1380px;
}
html { background:#061121; scrollbar-color:#607eaa #09182c; }
body {
  color:#f3f8ff;
  background: radial-gradient(ellipse 80% 35% at 50% 0%,rgba(40,103,177,.17),transparent 73%),#061121;
  font-family:Sora,Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body:lang(hi) { font-family:Sora,Inter,"Noto Sans Devanagari",system-ui,sans-serif; }
::selection { background:#78c5fb; color:#071329; }
body :where(h1,h2,h3,h4) { color:#f9fcff; }
body :where(p,li) { overflow-wrap:break-word; }
body :where(.tools-main,.tool-main,.toolkit-main,.shared-main) {
  color:#f3f8ff;
  padding-bottom:90px;
}
body :where(.tools-main,.tool-main,.toolkit-main,.shared-main) :where(h1,h2,h3) {
  font-family:Sora,Inter,system-ui,sans-serif;
  text-wrap:balance;
}
/* Header: same ink/glass hierarchy as the corporate site. */
body .kitz-global-header {
  border:1px solid rgba(156,200,245,.25);
  border-radius:18px;
  background:rgba(10,23,45,.94);
  box-shadow:0 10px 30px rgba(2,9,23,.32);
  -webkit-backdrop-filter:blur(22px) saturate(125%);
  backdrop-filter:blur(22px) saturate(125%);
  color:#f7fbff;
}
body .kitz-global-header .kitz-header-brand {
  color:#f7fbff;
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  font-weight:750;
  letter-spacing:-.035em;
}
body .kitz-global-header .kitz-header-nav {
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
body .kitz-global-header .kitz-header-nav>a {
  color:#c1d0e5;
}
body .kitz-global-header .kitz-header-nav>a:hover,
body .kitz-global-header .kitz-header-nav>a[aria-current="page"] { color:#fff; }
body .kitz-global-header .kitz-header-nav>a::after { background:#83cfff; }
body .kitz-global-header .kitz-header-lang {
  background:rgba(17,39,69,.9);
  border-color:rgba(156,200,245,.20);
  box-shadow:none;
}
body .kitz-global-header .kitz-header-lang a { color:#bfcee2; }
body .kitz-global-header .kitz-header-lang a.is-active,
body .kitz-global-header .kitz-header-lang a[aria-current="page"] {
  background:#254367;color:#fff;box-shadow:none;
}
body .kitz-global-header .kitz-header-cta {
  color:#07172d;
  border-color:#f8fbff;
  background:#f8fbff;
  box-shadow:none;
  border-radius:12px;
}
body .kitz-global-header .kitz-header-cta::before { display:none; }
body .kitz-global-header .kitz-header-cta:hover { color:#07172d;background:#d8efff;box-shadow:none; }
body .kitz-global-header.is-scrolled {
  background:rgba(8,20,40,.97);
  box-shadow:0 16px 34px rgba(2,9,23,.36);
}
body .kitz-global-header.is-scrolled :is(.kitz-header-brand,.kitz-header-nav,.kitz-header-lang) {
  background:transparent;box-shadow:none;
}
/* Hero, search, section rhythm. */
body .hub-hero {
  border-bottom:1px solid var(--k8-line);
}
body .hub-hero::after {
  background:radial-gradient(circle,rgba(55,122,196,.10),transparent 69%);
  filter:none;
}
body .hub-hero h1,body .tool-hero h1,body .toolkit-detail-hero h1 {
  color:#fff;
  font-weight:760;
  letter-spacing:-.065em;
  line-height:.99;
}
body .hub-hero h1 span {
  color:#a2dcff;
  -webkit-text-fill-color:#a2dcff;
  background:none;
}
body .hub-hero>p,body .tool-hero p,
body .toolkit-detail-hero p,body .section-heading p { color:#b8c9e0; }
body .status-pill,body .tool-kicker,body .trending-badge {
  color:#b9d5f1;
  background:rgba(16,40,70,.75);
  border-color:var(--k8-line);
  box-shadow:none;
}
body .status-pill::before { background:#58cdaa;box-shadow:0 0 0 3px rgba(88,205,170,.14); }
body .search-shell {
  background:rgba(15,35,62,.95);
  border:1px solid rgba(156,200,245,.30);
  box-shadow:0 14px 38px rgba(2,9,23,.24);
}
body .search-shell:focus-within { border-color:#8cc9ff;box-shadow:0 0 0 3px rgba(117,181,255,.13); }
body .search-shell label { color:#b7d1ed; }
body .search-shell input { color:#f9fcff; background:transparent; }
body .search-shell input::placeholder { color:#91a9c6;opacity:1; }
body .search-shell>span { background:#e7f4ff;color:#102745;border-color:transparent; }
body .filter-pill {
  color:#c6d6e9;
  background:#10243f;
  border:1px solid rgba(156,200,245,.22);
  box-shadow:none;
}
body .filter-pill:hover,body .filter-pill.is-active {
  color:#081b31;background:#e7f4ff;border-color:#e7f4ff;
}
body .tools-section { border-color:var(--k8-line); }
body .section-heading h2,body .tool-hero h1 { color:#fff; }
body .eyebrow,body .tool-card-category { color:#95c6e7; }
body .section-count { color:#d9edff;background:#142b4b;border-color:rgba(156,200,245,.24); }
/* Cards and toolkit grid. */
body .tool-card,body .toolkit-card {
  color:#f4f9ff;
  background:linear-gradient(150deg,#11243e 0%,#0b1b32 100%);
  border:1px solid rgba(156,200,245,.21);
  border-radius:22px;
  box-shadow:0 10px 30px rgba(1,8,20,.14);
  transform:none !important;
}
body .tool-card::before,body .toolkit-card::before {
  background:none;opacity:0;box-shadow:none;
}
body .tool-card:hover,body .toolkit-card:hover {
  background:linear-gradient(145deg,#193456,#102440);
  border-color:rgba(140,205,255,.57);
  box-shadow:0 14px 34px rgba(1,8,20,.28);
}
body .tool-card h3,body .toolkit-card h3 { color:#f8fbff;font-weight:700; }
body .tool-card p,body .toolkit-card p { color:#afc1d9; }
body .tool-card-icon,body .toolkit-icon,body .hero-tool-icon {
  background:#17385a;
  color:#9adfff;
  border:1px solid rgba(149,213,255,.27);
  box-shadow:none;
}
body .tool-open,body .toolkit-card>strong { color:#91d4ff; }
body .tool-open:hover,body .toolkit-card>strong:hover { color:#fff; }
body .breadcrumb { color:#a9bfd9; }
body .breadcrumb a { color:#d7edff; }
/* Tool forms & output surfaces. */
body .tool-workspace {
  background:#0d2039;
  border:1px solid rgba(156,200,245,.23);
  border-radius:24px;
  box-shadow:0 18px 45px rgba(2,8,20,.18);
}
body .tool-form {
  background:#102641;
  border-color:rgba(156,200,245,.17);
}
body .tool-result {
  color:#f3f8ff;
  background:#0b1d35;
}
body .field-label { color:#d8e9fd; }
body :is(.tool-form,.pro-suite-form,.seo-pro-form,.ai-text-pro-form,.universal-pro-form) :is(input,select,textarea),
body .tool-select {
  color:#f7fbff;
  background:#07172d;
  border:1px solid rgba(156,200,245,.30);
  border-radius:12px;
  box-shadow:none;
  accent-color:#8dcaff;
}
body :is(input,textarea,select)::placeholder { color:#91a9c6;opacity:1; }
body :is(.tool-form,.pro-suite-form,.seo-pro-form,.ai-text-pro-form,.universal-pro-form) :is(input,select,textarea):focus {
  outline:2px solid rgba(145,204,255,.72);
  outline-offset:1px;
  box-shadow:none;
}
body .input-note,body .free-note,body .result-placeholder,
body .result-placeholder p { color:#b0c2db; }
body .result-text,body .tool-result pre,body .tool-result code { color:#eaf4ff; }
body .result-placeholder>span,body .score-ring,body .steps b {
  background:#173758;color:#d8efff;border-color:var(--k8-line);
}
/* All tool workspaces retain their original markup and behavior. */
body :is(.ai-text-pro-grid,.pro-suite-grid,.seo-pro-grid,.universal-pro-grid) {
  color:#f1f7ff;
  border-color:rgba(156,200,245,.2);
}
body :is(.ai-text-pro-brief,.ai-text-output,.ai-quality-card,.ai-version-compare,
         .pro-suite-input,.pro-suite-output,.pro-suite-summary,.pro-suite-original,.pro-suite-custom,
         .pro-suite-compare,.seo-pro-panel,.seo-pro-summary,.seo-focus-card,
         .universal-pro-live,.universal-pro-compare,.insight-kpi,.insight-panel,
         .workflow-step,.steps article,.how-section,.related-section) {
  color:#edf6ff;
  background:#112640;
  border-color:rgba(156,200,245,.22);
  box-shadow:none;
}
body :is(.ai-text-pro-brief,.ai-text-output,.ai-quality-card,.ai-version-compare,
         .pro-suite-input,.pro-suite-output,.pro-suite-summary,.pro-suite-original,.pro-suite-custom,
         .pro-suite-compare,.seo-pro-panel,.seo-pro-summary,.seo-focus-card,
         .universal-pro-live,.universal-pro-compare,.insight-kpi,.insight-panel,
         .workflow-step,.steps article,.how-section,.related-section)
  :is(p,small,label) { color:#b8cbe3; }
body :is(.ai-version-chip,.pro-suite-version-chip,.seo-history-chip,.pro-secondary,.small-btn) {
  color:#d9ebff;background:#193655;border-color:rgba(156,200,245,.25);
}
body :is(.ai-version-chip,.pro-suite-version-chip,.seo-history-chip,.pro-secondary,.small-btn):hover {
  background:#254c76;color:#fff;
}
body .generate-btn,body .btn-dark {
  color:#071c34;
  background:#f2f9ff;
  border:1px solid #f2f9ff;
  border-radius:12px;
  box-shadow:none;
}
body .generate-btn:hover,body .btn-dark:hover {
  color:#071c34;background:#cfeaff;border-color:#cfeaff;
  box-shadow:none;transform:translateY(-1px);
}
body .generate-btn:disabled { opacity:.55;cursor:wait; }
body :is(.seo-pro-progress-track,.ai-pro-progress-track,.pro-suite-progress-track) {
  background:#233c5c;
}
body .conversion-band {
  color:#f7fbff;
  background:linear-gradient(130deg,#102c4b,#081a30 72%);
  border:1px solid rgba(156,200,245,.25);
  border-radius:24px;
  box-shadow:none;
}
body .conversion-band h2 { color:#fff; }
body .conversion-band p { color:#bcd1e8; }
body .conversion-band .btn-dark { background:#eaf5ff;color:#0a2038;border-color:#eaf5ff; }
body .site-footer.v7-footer {
  color:#b8cbe3;
  background:rgba(10,25,46,.93);
  border:1px solid rgba(156,200,245,.21);
  border-radius:22px;
  box-shadow:none;
}
body .site-footer .footer-brand strong { color:#f6fbff; }
body .site-footer .footer-brand small,body .site-footer a { color:#bbcee7; }
body .site-footer a:hover { color:#fff; }
body #kitz-tools-progress { background:#10243d; }
body #kitz-tools-progress>i { background:#8bcfff;box-shadow:none; }
body #kitz-tools-rail { background:rgba(156,200,245,.13); }
body #kitz-tools-rail>i { background:#94d4ff;border-color:#94d4ff;box-shadow:none; }
/* Corporate site is clean and restrained: remove decorative particle canvas. */
body #kitz-tools-stars { display:none !important; }
/* Keyboard and mobile rules. */
body :where(a,button,input,textarea,select):focus-visible {
  outline:2px solid #a4dbff;outline-offset:3px;
}
@media (max-width:900px) {
  body .kitz-global-header { top:10px;border-radius:18px;background:rgba(8,23,43,.97); }
  body .kitz-global-header .kitz-header-menu {
    color:#f5faff;border:1px solid rgba(156,200,245,.28);background:#152d4c;border-radius:12px;
  }
  body .kitz-global-header .kitz-header-menu-lines::before,
  body .kitz-global-header .kitz-header-menu-lines::after { background:#eaf6ff; }
  body .kitz-global-header .kitz-header-nav {
    background:#0c213a;border:1px solid rgba(156,200,245,.24);
    border-radius:18px;box-shadow:0 22px 48px rgba(1,8,20,.45);
  }
  body .kitz-global-header .kitz-header-nav>a {
    color:#d1e4f7;border-radius:12px;
  }
  body .kitz-global-header .kitz-header-nav>a:hover,
  body .kitz-global-header .kitz-header-nav>a[aria-current="page"] {
    color:#fff;background:#1a3758;
  }
  body .kitz-global-header .kitz-header-mobile-footer {
    border-color:rgba(156,200,245,.22);
  }
  body .kitz-global-header .kitz-header-mobile-footer .kitz-header-lang { background:#142f50; }
  body .kitz-global-header .kitz-header-mobile-footer .kitz-header-cta { border-radius:12px; }
  body .tool-form { border-right:0;border-bottom:1px solid rgba(156,200,245,.22); }
}
@media (max-width:620px) {
  body .hub-hero h1 { font-size:clamp(2.2rem,11.2vw,3.8rem);line-height:1.03; }
  body .hub-hero { padding-top:34px; }
  body .category-pills { scrollbar-width:thin; }
  body .tool-card,body .toolkit-card { min-height:180px;border-radius:18px; }
  body .search-shell { border-radius:16px; }
  body .tool-workspace { border-radius:18px; }
  body .tool-hero h1 { font-size:clamp(2rem,10.7vw,3.7rem);line-height:1.07; }
  body .site-footer.v7-footer { border-radius:18px !important; }
}
@media (prefers-reduced-motion:reduce) {
  body .tool-card,body .toolkit-card,body .kitz-global-header { transition:none!important; }
}

/* V9 QA follow-up: override legacy !important presentation rules. */
body .site-footer.v7-footer {
  background:#0a192e !important;
  color:#b8cbe3 !important;
}
body .conversion-band {
  background:linear-gradient(130deg,#102c4b,#081a30 72%) !important;
  box-shadow:none !important;
}
body .kitz-global-header .kitz-header-cta,
body .kitz-global-header .kitz-header-mobile-footer .kitz-header-cta {
  background:#f2f9ff !important;
  background-image:none !important;
  color:#081b31 !important;
  border:1px solid #f2f9ff !important;
  box-shadow:none !important;
}
body .kitz-global-header .kitz-header-cta:hover { background:#d8efff !important; }
body .kitz-global-header .kitz-header-brand img { background:transparent !important; }
body .tool-card .tool-card-icon,
body .toolkit-card .toolkit-icon,
body .hero-tool-icon {
  color:#b2e3ff !important;
  background:#193c5f !important;
  background-image:none !important;
  border-color:rgba(156,200,245,.30) !important;
  box-shadow:none !important;
}


/* V9.1 — verified desktop/iPhone QA repairs, 2026-11-26.
   Fix header centering + sticky behavior (including reduced-motion);
   restore accessible chip and input contrast across tool workspaces. */
body > .kitz-global-header {
  position: fixed !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 10000;
}
body .pro-feature-chips > span {
  color: #d7ebff !important;
  background: #193756 !important;
  border: 1px solid rgba(161, 206, 246, .33) !important;
  border-radius: 999px;
  box-shadow: none !important;
  font-size: clamp(.67rem, 1vw, .76rem) !important;
  font-weight: 650;
  padding: 7px 11px;
}
body #tool-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body #tool-form select,
body #tool-form textarea {
  color: #f3f9ff !important;
  background: #081b31 !important;
  border: 1px solid rgba(158, 203, 246, .32) !important;
  box-shadow: none;
  color-scheme: dark;
}
body #tool-form input::placeholder,
body #tool-form textarea::placeholder {
  color: #aac4df !important;
  opacity: 1;
}
body #tool-form input:focus-visible,
body #tool-form select:focus-visible,
body #tool-form textarea:focus-visible {
  outline: 2px solid #9cd8ff !important;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body > .kitz-global-header {
    transform: translateX(-50%) !important;
    transition: none !important;
  }
}


/* V9.2 — Insights mobile grid min-content overflow repair. */
body .insights-dashboard,
body .insight-panels,
body .insight-panel {
  min-width: 0;
  max-width: 100%;
}
body .insight-panel {
  box-sizing: border-box;
  overflow: hidden;
}
body .insight-panel .section-heading,
body .insight-panel .insight-table,
body .insight-panel .daily-chart,
body .insight-panel .insight-row {
  min-width: 0;
  max-width: 100%;
}
body .insight-row > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
body .daily-chart {
  width: 100%;
  overflow: hidden;
}
body .daily-bar-wrap {
  min-width: 0;
}
@media(max-width:800px) {
  body .insight-panels {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}
@media(min-width:801px) {
  body .insight-panels {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) !important;
  }
}


/* V9.3 — PRO badge color contrast, WCAG 2.2 AA.
   Pale blue (#89d7ff) with near-white text was 1.49:1;
   dark navy on the same badge background is about 11:1. */
body .pro-badge {
  color: #081a31 !important;
  background: #89d7ff !important;
  border: 1px solid #89d7ff !important;
  -webkit-text-fill-color: #081a31 !important;
  box-shadow: none !important;
}
