/* Killis AI Kits: kits.killisai.com
   Colours mirror the dark theme in killisai-website/src/styles/tokens.css (navy, sky, gold, purple glow).
   No web fonts (system stack) and no JS, to keep the page fast. Every text/background pair is >= 4.5:1. */
:root {
  color-scheme: dark;
  --font-sans: 'Inter Variable', Inter, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --bg: #0d1117;
  --surface: #161b2e;
  --surface-2: #1d2640;
  --stage-bg: #0a0d14;
  --terminal-bg: #080b11;
  --border: #2b3654;
  --border-strong: #7384a0;
  --text: #e6edf3;
  --text-muted: #a9b7c8;
  --link: #4fc3f7;
  --link-hover: #9ddcfa;
  --sky: #4fc3f7;
  --purple: #7b2ff7;
  --purple-soft: #c7a8ff;
  --green: #7ee0a0;
  --gold: #f2c94c;
  --on-gold: #0d1117;
  --focus: #4fc3f7;
  --glow: rgb(123 47 247 / 0.3);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1120px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --space-section: clamp(2.75rem, 7vw, 5rem);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px rgb(0 0 0 / 0.25);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.05rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p, li { text-wrap: pretty; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
:not(pre) > code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; color: #fff; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--on-gold); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.section-head p { color: var(--text-muted); margin-top: 0.6rem; }
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); margin-bottom: 0.6rem; }
.muted { color: var(--text-muted); }
.small { font-size: 0.92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(13 17 23 / 0.92); border-bottom: 1px solid var(--border); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgb(13 17 23 / 0.78); backdrop-filter: blur(8px); } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); text-decoration: none; font-weight: 750; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { color: var(--text-muted); font-weight: 600; }
.nav { display: none; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; padding: 0; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
@media (min-width: 52rem) { .nav { display: block; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: 1.02rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn-gold:hover { color: var(--on-gold); box-shadow: 0 6px 18px rgb(242 201 76 / 0.35); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { color: var(--text); border-color: var(--sky); }
.btn-sm { min-height: 40px; padding: 0.45rem 0.9rem; font-size: 0.92rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(2.75rem, 8vw, 5.5rem); background: radial-gradient(55% 70% at 0% 100%, var(--glow), transparent 70%), radial-gradient(40% 50% at 100% 0%, rgb(79 195 247 / 0.12), transparent 70%), linear-gradient(160deg, #141a2c, var(--stage-bg)); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 .accent { color: var(--sky); }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--text-muted); margin-top: 1.1rem; max-width: 38rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 1.1rem; padding: 0; list-style: none; color: var(--text-muted); font-size: 0.93rem; }
.trust-row li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 0.4rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.92rem; color: var(--text-muted); max-width: 38rem; }

/* Terminal mock */
.terminal { background: var(--terminal-bg); border: 1px solid #36436a; border-radius: var(--radius); box-shadow: 0 20px 60px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(123 47 247 / 0.15); overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4766; }
.terminal-bar span { margin-left: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.terminal pre { margin: 0; padding: 1.1rem 1.1rem 1.3rem; overflow-x: auto; font-size: 0.86rem; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.terminal .c { color: #8b9bb3; }
.terminal .p { color: var(--green); }
.terminal .s { color: var(--gold); }
.terminal .f { color: var(--purple-soft); }

/* Cards and grids */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.card { background: linear-gradient(165deg, var(--surface), var(--stage-bg)); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.45rem; }
.card p, .card li { color: var(--text-muted); }
.card .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--sky); margin-bottom: 0.9rem; }
.card .icon svg { width: 22px; height: 22px; }
.not-for { margin-top: 1.25rem; border-style: dashed; background: transparent; box-shadow: none; }
.not-for h3 { color: var(--gold); }
.not-for ul { margin-top: 0.4rem; padding-left: 1.2rem; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: 1rem; counter-reset: step; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.steps li { counter-increment: step; position: relative; padding: 1.35rem 1.35rem 1.35rem 1.35rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--font-mono); font-weight: 700; color: var(--sky); font-size: 0.95rem; margin-bottom: 0.5rem; }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--text-muted); font-size: 0.98rem; }

/* Inside list */
.inside { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .inside { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.file-list { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.file-list li { display: block; padding: 0.95rem 1.2rem; border-bottom: 1px solid var(--border); }
.file-list li:last-child { border-bottom: 0; }
.file-list code { background: none; padding: 0; color: var(--sky); font-weight: 600; }
.file-list span { display: block; margin-top: 0.25rem; color: var(--text-muted); font-size: 0.97rem; }
.file-list span code { color: var(--text); font-weight: 500; }
.excluded ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.excluded li + li { margin-top: 0.35rem; }

/* Requirements table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
caption { text-align: left; padding: 0.9rem 1.1rem 0; color: var(--text-muted); font-size: 0.9rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
th[scope="row"] { color: #fff; font-weight: 650; white-space: nowrap; }
td { color: var(--text-muted); }
.tested { margin-top: 1rem; border-left: 3px solid var(--sky); padding: 0.9rem 1.1rem; background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.tested p + p { margin-top: 0.4rem; }


/* Pricing */
.price-wrap { display: grid; gap: 1.25rem; }
@media (min-width: 56rem) { .price-wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.price-card { position: relative; border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2rem); background: radial-gradient(70% 90% at 100% 0%, rgb(242 201 76 / 0.1), transparent 70%), linear-gradient(165deg, var(--surface-2), var(--stage-bg)); border: 1px solid #4a4220; box-shadow: var(--shadow); }
.price { display: flex; align-items: baseline; gap: 0.5rem; margin: 0.4rem 0 0.25rem; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.price .per { color: var(--text-muted); font-weight: 600; }
.checklist { list-style: none; padding: 0; margin: 1.1rem 0 1.4rem; display: grid; gap: 0.5rem; }
.checklist li { padding-left: 1.6rem; position: relative; color: var(--text); }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.fine { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-muted); }
.fine + .fine { margin-top: 0.45rem; }
.limits { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.35rem; }
.limits ul { padding-left: 1.2rem; margin-top: 0.5rem; color: var(--text-muted); }
.limits li + li { margin-top: 0.45rem; }
.refund { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: #12301c; color: #b9f0cb; font-size: 0.95rem; }
.refund strong { color: #e4fbe9; }

/* FAQ */
.faq { display: grid; gap: 0.7rem; max-width: 50rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.15rem; font-weight: 650; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.15rem; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 1.3rem; color: var(--sky); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 0.9rem 1.15rem 1.1rem; color: var(--text-muted); }
.faq .answer p + p { margin-top: 0.6rem; }

/* Closing band */
.closing { text-align: center; }
.closing .cta-row { justify-content: center; }
.closing p { color: var(--text-muted); max-width: 40rem; margin: 0.75rem auto 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--stage-bg); padding-block: 2.5rem 2rem; font-size: 0.93rem; color: var(--text-muted); }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.85rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 0.6rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }
.disclosure { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--border); font-size: 0.88rem; }
.disclosure p + p { margin-top: 0.5rem; }

/* Legal pages */
.legal { padding-block: clamp(2rem, 6vw, 3.5rem); }
.legal .prose { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose p, .prose li { color: var(--text-muted); }
.prose table { margin-top: 1rem; }
.draft-banner { background: #3a2e0a; color: var(--gold); border: 1px solid #6b5514; border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-weight: 600; }
.draft-banner strong { color: #ffe08a; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}
@media print {
  .site-header, .cta-row, .hero { background: none; }
  body { background: #fff; color: #000; }
}
.mt-sm { margin-top: 0.6rem; }

/* v1.0 sample gallery (masonry via CSS columns: images keep their own aspect ratio) */
.gallery { columns: 3 20rem; column-gap: 1rem; }
.gallery figure { break-inside: avoid; margin: 0 0 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery img, .upscale img { width: 100%; height: auto; background: var(--surface-2); }
.gallery figcaption, .upscale figcaption { padding: 0.75rem 0.95rem 0.9rem; font-size: 0.86rem; color: var(--text-muted); display: grid; gap: 0.35rem; }
.gallery figcaption code, .upscale figcaption code { background: none; padding: 0; font-size: 0.8rem; color: var(--sky); }
.gallery .prompt { color: var(--text); }
.gallery .neg, .gallery .note { font-size: 0.82rem; }
.gallery .note { color: var(--gold); }
.upscale { margin-top: 2.25rem; }
.upscale > p { margin-top: 0.5rem; max-width: 52rem; }
.upscale figure { margin: 1rem 0 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.upscale .wide figcaption { display: flex; justify-content: space-between; font-weight: 650; color: var(--text); }
.upscale-row { display: grid; gap: 1rem; align-items: center; }
.upscale-row p { color: var(--text-muted); }
@media (min-width: 56rem) { .upscale-row { grid-template-columns: 1fr 1fr; } }
.timings { margin: 0.6rem 0; padding-left: 1.2rem; }
.timings li + li { margin-top: 0.3rem; }
.mt-md { margin-top: 1.1rem; }
