/* Kitty landing: page layer over the kit (system.css). Colours come from the app and the
   logo: cream ground, navy ink and dark bands, lime accent. Every brand image is a crop of
   desktop/assets/brand/kitty_logo.png made by desktop/scripts/build-brand-assets.cjs. */
:root {
  --navy: #0b1a25;          /* the app's dark ground, used for every dark band */
  --tint: #edf1e1;          /* cream with a little lime: the one alternate light band */
  --lime: #d1f760;
  --stack: clamp(56px, 6vw, 96px);   /* one gap between blocks inside a section */
}
/* one section rhythm at every width: the same top and bottom padding everywhere */
:root { --padt: clamp(64px, 6.2vw, 92px); --padb: clamp(64px, 6.2vw, 92px); }

::selection { background: var(--lime); color: var(--navy); }

/* The kit sizes every section to one or two screens. This page is screenshot-led, so
   sections size to their content instead and keep one --padt / --padb rhythm. */
main > :is(section, .section) { --h: 0; --hm: 0; height: auto; min-height: 0; }
main > :is(section, .section) > :is(.wrap, .container) { height: auto; }

/* ---------------------------------------------------------------- header brand badge */
.brand-badge { gap: 6px; padding: 2px 12px 2px 6px; border-radius: 12px; background: var(--navy); }
.nav__logo.brand-badge img.brand-badge__face { height: 40px; width: auto; }
.nav__logo.brand-badge img.brand-badge__word { height: 22px; width: auto; }
.brand-badge:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 639px) {
  .brand-badge { padding: 3px 10px 3px 4px; min-height: 0; }
  .nav__logo.brand-badge img.brand-badge__face { height: 32px; }
  .nav__logo.brand-badge img.brand-badge__word { height: 18px; }
}

/* ---------------------------------------------------------------- screenshots */
.shot { margin: 0; min-width: 0; }
.shot__frame { display: block; overflow: hidden; border: 1px solid color-mix(in oklab, var(--p-ink) 14%, transparent); border-radius: 14px; background: #fff; box-shadow: 0 1px 2px rgb(11 26 37 / 6%), 0 18px 48px -18px rgb(11 26 37 / 28%); }
.shot__frame img { display: block; width: 100%; height: auto; }
.shot figcaption { margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); max-width: 70ch; }
.shot-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--card-gap); margin-top: var(--stack); align-items: start; }
@media (min-width: 1024px) {
  .shot-pair { gap: clamp(24px, 3vw, 40px); }
  .shot-pair--stagger > :nth-child(2) { margin-top: clamp(48px, 6vw, 96px); }
}
@media (max-width: 1023px) { .shot-pair { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); } }

/* ---------------------------------------------------------------- hero: words left, the logo right, the app below */
.hero { padding-top: clamp(32px, 5vw, 72px); padding-bottom: var(--padb); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4.2vw, 64px); line-height: 1.08; text-wrap: balance; }
.hero__lead { font-size: var(--t-lead); margin-top: var(--s-5); max-width: 40rem; }
.hero__proof { font-size: var(--t-small); color: var(--muted); margin-top: var(--s-5); max-width: 44rem; }
.hero .btn-row { margin-top: var(--s-6); }
.hero__stage { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 24px; background-color: var(--navy);
  box-shadow: 0 24px 60px -28px rgb(11 26 37 / 55%); overflow: hidden; }
.hero__logo { width: 88%; height: auto; image-rendering: auto; }
.hero__shot { margin-top: var(--stack); }
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .hero__stage { order: -1; aspect-ratio: auto; padding: var(--s-6) var(--s-5); }
  .hero__logo { width: min(72%, 360px); }
}
@media (max-width: 639px) { .hero__logo { width: min(78%, 280px); } }

/* ---------------------------------------------------------------- split rows */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.split--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split--flip > .split__text { order: 2; }
.split--next { margin-top: var(--stack); }
.split__text > * + * { margin-top: var(--s-4); }
@media (min-width: 1024px) { .split:not(.split--top) { align-items: center; } }
@media (max-width: 1023px) { .split, .split--flip { grid-template-columns: minmax(0, 1fr); } .split--flip > .split__text { order: 0; } }
.sub-h { font: 600 var(--t-lead)/1.3 var(--font-text); letter-spacing: 0; }

/* ---------------------------------------------------------------- create: one tinted band, steps on a rail */
.band-tint { background: var(--tint); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--card-gap); margin-top: var(--s-6); list-style: none; padding: 0; }
.steps li { padding-top: var(--s-4); border-top: 2px solid var(--p-ink); }
.steps h3 { margin: var(--s-2) 0; font-size: var(--t-lead); }
@media (min-width: 1024px) { .steps { gap: clamp(24px, 3vw, 40px); } }
@media (max-width: 1023px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- worlds: heading over one wide picture, facts in a row */
.worlds-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: end; margin-bottom: var(--s-8); }
.worlds-head .t-lead { max-width: 52ch; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.facts li { padding-left: 1.4em; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: .55em; height: .55em; background: var(--lime); outline: 1.5px solid var(--ink); }
.facts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: var(--s-8); }
@media (max-width: 1023px) {
  .worlds-head { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }
  .facts--row { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); margin-top: var(--s-6); }
}

/* ---------------------------------------------------------------- player: the dark band, like the player window */
.band-player .shot__frame { background: #0f1218; border-color: rgb(245 247 240 / 14%); box-shadow: 0 24px 60px -24px rgb(0 0 0 / 60%); }
.band-player .split { align-items: start; }
.player-aside { padding: var(--s-6); border-radius: 16px; background: var(--surface); }
.keys { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); font-size: var(--t-small); }
.keys kbd { display: inline-block; min-width: 1.9em; padding: 1px 6px; margin-right: 4px; border: 1px solid color-mix(in oklab, var(--ink) 30%, transparent); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); font: 500 12px/1.5 var(--font-mono); text-align: center; color: var(--ink); }
.keys .muted { color: var(--muted); }
@media (max-width: 639px) { .player-aside { padding: var(--s-5); } }

/* the moment's cover begins where the ground changes, not at the section's box edge */
#limits { border-top: clamp(8px, 1.2vw, 18px) solid var(--p-bg); }

/* ---------------------------------------------------------------- install */
.code { margin: 0; padding: var(--s-5); border-radius: 12px; background: var(--navy); color: var(--p-inv-ink); font: 400 14px/1.7 var(--font-mono); overflow-x: auto; }
.code b { color: var(--lime); font-weight: 400; user-select: none; }
.code--npm { font-size: clamp(14px, 1.3vw, 18px); padding: var(--s-6); }
.install { display: grid; gap: var(--s-5); }
.source-run { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.source-run summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: var(--s-2); min-height: 44px; }
.source-run summary::-webkit-details-marker { display: none; }
.source-run summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s ease-out; }
.source-run[open] summary::before { transform: rotate(45deg); }
.source-run summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.source-run > p { margin: var(--s-3) 0 var(--s-4); font-size: var(--t-small); max-width: 60ch; }
.source-run a, .split__text .t-lead a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) { .code { font-size: 12.5px; padding: var(--s-4); } .code--npm { font-size: 13.5px; } }

/* ---------------------------------------------------------------- FAQ: two balanced columns, no stretched rows.
   Source order puts the long consoles answer at the top of the right column so both end together. */
@media (min-width: 1024px) {
  #questions .faq--cols { display: block; columns: 2; column-fill: balance; column-gap: clamp(32px, 5vw, 80px); }
  #questions .faq--cols > .faq__item { break-inside: avoid; padding-block: var(--s-5); }
  #questions .faq--cols > .faq__item:first-child { padding-top: var(--s-5); }
}
#questions .faq__item p + p { margin-top: var(--s-2); }
#questions .faq__item strong { font-weight: 600; }

/* ---------------------------------------------------------------- footer: the logo, the ask, the links, on the navy band */
.site-foot { border-top: 0; padding-block: var(--padt) var(--s-7); }
.site-foot__close { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: var(--s-8); border-bottom: 1px solid var(--line); }
.site-foot__logo { width: min(100%, 400px); height: auto; justify-self: start; }
.site-foot__cta { display: grid; gap: var(--s-4); justify-items: start; }
.site-foot__cta .btn { margin-top: var(--s-2); }
.site-foot__links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); padding-block: var(--s-7); }
.site-foot__label { font: 500 var(--t-small)/1.4 var(--font-text); color: var(--muted); margin-bottom: var(--s-3); }
.site-foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-foot__links a { color: var(--ink); text-decoration: none; display: inline-block; padding-block: 2px; }
.site-foot__links a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.site-foot a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 3px; }
.site-foot__legal { padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 1023px) {
  .site-foot__close { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .site-foot__logo { width: min(80%, 320px); }
  .site-foot__links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .site-foot__links a { padding-block: 10px; }
  .site-foot__links ul { gap: 0; }
}
