/* Kynoss Studios site styles. Generated pages use these directly; the older
   support and privacy pages keep their own styles and only pick up the
   .ks-* chrome (top bar, breadcrumbs, footer). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  /* SIL Open Font License 1.1 */
}

:root {
  --paper: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #172033;
  --slate: #586377;
  --line: #DCE1E9;
  --signal: #2B54E0;
  --signal-ink: #FFFFFF;
  --screen: #172033;
  --screen-label: #F2F5FA;
  --app: var(--signal);
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --measure: 68ch;
  --wide: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-icon: 22.4%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1522;
    --surface: #161E2E;
    --ink: #E8EDF6;
    --slate: #9AA5B8;
    --line: #253046;
    --signal: #7C9BFF;
    --signal-ink: #0F1522;
    --screen: #1C2640;
    --screen-label: #E8EDF6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F1522; --surface: #161E2E; --ink: #E8EDF6; --slate: #9AA5B8;
  --line: #253046; --signal: #7C9BFF; --signal-ink: #0F1522; --screen: #1C2640;
  --screen-label: #E8EDF6; color-scheme: dark;
}

/* ---------- base (generated pages only) ---------- */
.ks-page [hidden] { display: none !important; }
.ks-page *, .ks-page *::before, .ks-page *::after { box-sizing: border-box; }
body.ks-page {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.ks-page h1, .ks-page h2, .ks-page h3, .ks-page p, .ks-page ul, .ks-page ol, .ks-page dl, .ks-page dd, .ks-page figure { margin: 0; }
.ks-page img { display: block; max-width: 100%; }
.ks-page a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ks-page a:hover { text-decoration-thickness: 2px; }
.ks-page :focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
.ks-wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.ks-prose { max-width: var(--measure); }
.ks-prose p + p, .ks-prose p + ul, .ks-prose ul + p, .ks-prose h3 + p, .ks-prose h3 + ul { margin-top: 0.9em; }
.ks-prose h3 { font: 600 1.1rem/1.3 var(--font-text); margin-top: 1.8em; }
.ks-prose ul { padding-left: 1.2em; }
.ks-prose li + li { margin-top: 0.35em; }
.ks-sr:focus { position: fixed !important; top: 8px; left: 8px; z-index: 100; width: auto !important; height: auto !important; clip: auto !important; padding: 10px 16px; background: var(--surface); border-radius: 10px; }
.ks-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ks-display {
  font-family: var(--display);
  font-stretch: 86%;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
}
.ks-h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); text-wrap: balance; }
.ks-h2, .ks-h3 { text-wrap: balance; }
.ks-h2 { font-size: clamp(1.75rem, 3.4vw, 2.45rem); line-height: 1.08; }
.ks-h3 { font-size: 1.35rem; line-height: 1.15; letter-spacing: -0.015em; }
.ks-lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 34em; }
.ks-muted { color: var(--slate); }
.ks-small { font-size: 0.875rem; }

.ks-section { padding: clamp(56px, 8vw, 104px) 0; }
.ks-section + .ks-section { border-top: 1px solid var(--line); }
.ks-section-head { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); max-width: 44rem; }

.ks-page .ks-button, .ks-button {
  display: inline-flex; align-items: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-text); text-decoration: none !important;
  background: var(--signal); color: var(--signal-ink);
  cursor: pointer;
}
.ks-button:hover { filter: brightness(1.08); }
.ks-page .ks-button.is-quiet, .ks-button.is-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.ks-button.is-quiet:hover { border-color: var(--slate); filter: none; }
.ks-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- top bar (all pages, including legacy) ---------- */
.ks-bar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  font: 15px/1.2 var(--font-text);
  color: var(--ink);
  text-align: left;
}
.ks-bar *, .ks-bar *::before, .ks-bar *::after { box-sizing: border-box; }
.ks-bar-in {
  max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; gap: 20px;
}
.ks-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink) !important; text-decoration: none !important;
  font-family: var(--display); font-stretch: 88%; font-weight: 650; font-size: 1.12rem; letter-spacing: -0.01em;
  margin-right: auto;
}
.ks-mark { width: auto; height: 24px; aspect-ratio: 437 / 507; flex: none; }
.ks-nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ks-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  color: var(--ink) !important; text-decoration: none !important; font-weight: 500;
}
.ks-nav a:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.ks-nav a[aria-current="page"] { background: color-mix(in srgb, var(--signal) 14%, transparent); color: var(--signal) !important; }
.ks-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 14px/1 var(--font-text); cursor: pointer;
}
.ks-iconbtn:hover { border-color: var(--slate); }
.ks-iconbtn svg { width: 17px; height: 17px; }
.ks-menu-btn { display: none; }
@media (max-width: 860px) {
  .ks-menu-btn { display: inline-flex; }
  .ks-search-label { display: none; }
  .ks-nav {
    display: none; position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .ks-bar.is-open .ks-nav { display: flex; }
  .ks-nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .ks-nav a[aria-current="page"] { background: none; }
}

/* ---------- breadcrumbs ---------- */
.ks-crumbs { max-width: var(--wide); margin: 0 auto; padding: 14px var(--gutter) 0; font: 14px/1.4 var(--font-text); color: var(--slate); }
.ks-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.ks-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.ks-crumbs a { color: var(--slate) !important; text-decoration: none; }
.ks-crumbs a:hover { color: var(--ink) !important; text-decoration: underline; }

/* ---------- footer (all pages) ---------- */
.ks-foot {
  border-top: 1px solid var(--line); background: var(--surface);
  font: 15px/1.5 var(--font-text); color: var(--slate); text-align: left;
  margin-top: 0;
}
.ks-foot *, .ks-foot *::before, .ks-foot *::after { box-sizing: border-box; }
.ks-foot-in { max-width: var(--wide); margin: 0 auto; padding: 48px var(--gutter) 32px; display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.ks-foot h2 { font: 600 14px/1.3 var(--font-text); color: var(--ink); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.ks-foot-about h2 { font: 650 1.12rem/1.2 var(--display); font-stretch: 88%; }
.ks-foot .ks-mark { width: auto; height: 20px; }
.ks-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ks-foot a { color: var(--slate) !important; text-decoration: none; }
.ks-foot a:hover { color: var(--ink) !important; text-decoration: underline; }
.ks-foot p { margin: 0 0 8px; font-size: 15px; color: var(--slate); }
.ks-foot-legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; font-size: 13.5px; }
@media (max-width: 760px) { .ks-foot-in { grid-template-columns: 1fr 1fr; } .ks-foot-about { grid-column: 1 / -1; } }

/* ---------- search dialog ---------- */
.ks-search {
  width: min(640px, calc(100vw - 24px)); max-height: min(70vh, 640px);
  margin: 10vh auto auto; padding: 0; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface); color: var(--ink); font: 16px/1.4 var(--font-text);
  box-shadow: 0 24px 80px rgba(10, 16, 30, 0.28);
}
.ks-search::backdrop { background: rgba(10, 16, 30, 0.45); }
.ks-search form { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ks-search input {
  flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 500 18px/1.3 var(--font-text); padding: 6px 0;
}
.ks-search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; max-height: calc(min(70vh, 640px) - 70px); }
.ks-search-results a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink) !important; }
.ks-search-results a:hover, .ks-search-results a.is-active { background: color-mix(in srgb, var(--signal) 10%, transparent); }
.ks-search-results img, .ks-search-results .ks-sglyph { width: 36px; height: 36px; border-radius: var(--r-icon); grid-row: span 2; }
.ks-sglyph { display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: 15px; }
.ks-search-results strong { font-weight: 600; }
.ks-search-results span { font-size: 14px; color: var(--slate); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ks-search-empty { padding: 18px; color: var(--slate); }

/* ---------- home: hero with the wall of real screens ---------- */
.ks-hero { padding: 0 0 clamp(48px, 7vw, 88px); }
.ks-hero-copy { display: grid; gap: 22px; }
.ks-hero-b .ks-h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.ks-hero-stage { position: relative; overflow: hidden; --copy-w: min(32rem, 44vw); --copy-r: calc(max(var(--gutter), 50% - 560px + var(--gutter)) + var(--copy-w) + 28px); }
.ks-hero-stage > .ks-wrap { position: relative; z-index: 2; width: 100%; }
.ks-hero-b .ks-hero-copy { max-width: var(--copy-w); padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
/* second line of business: one quiet, linked row under the app buttons */
.ks-page .ks-hero-also { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 16px 12px 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15.5px; line-height: 1.4; }
.ks-hero-also .ks-pglyph { grid-row: auto; }
.ks-hero-also strong { font-weight: 600; }
.ks-hero-also-go { color: var(--signal); font-size: 1.2em; transition: transform .15s ease; }
.ks-page .ks-hero-also:hover { border-color: var(--slate); }
.ks-hero-also:hover .ks-hero-also-go { transform: translateX(3px); }

/* the wall: 4 columns of App Store screenshots drifting in opposite directions.
   The only ambient motion on the site; static under reduced motion. */
.ks-wall {
  position: absolute; z-index: 0; top: 0; bottom: 0; left: var(--copy-r); right: 0;
  pointer-events: none; user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent), linear-gradient(to right, transparent, #000 120px);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 78%, transparent), linear-gradient(to right, transparent, #000 120px);
}
.ks-wall-tilt {
  position: absolute; top: -30%; bottom: -30%; left: -40px; width: max(820px, 64vw);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px);
  transform: rotate(-9deg) skewX(3deg);
  transform-origin: 30% 50%;
}
.ks-wall-col { overflow: hidden; }
.ks-wall-col:nth-child(even) { margin-top: -18%; }
.ks-wall-track { display: grid; will-change: transform; }
.ks-page .ks-wall img {
  width: 100%; height: auto; aspect-ratio: 300 / 652; margin-bottom: clamp(14px, 1.6vw, 22px);
  border-radius: clamp(14px, 1.5vw, 22px); background: var(--screen);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 18px 40px -18px rgba(10, 16, 30, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .ks-wall-track { animation: ks-drift var(--dur, 80s) linear infinite; }
  .ks-wall-col:nth-child(even) .ks-wall-track { animation-direction: reverse; }
}
@keyframes ks-drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }

@media (min-width: 900px) {
  .ks-hero-stage { min-height: clamp(560px, 74vh, 720px); display: grid; align-items: center; }
  /* scrim: keeps the headline on clean paper where the wall fades in behind it */
  .ks-hero-stage::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(to right, var(--paper) 0, var(--paper) var(--copy-r), transparent calc(var(--copy-r) + 120px));
  }
}
@media (max-width: 899px) {
  .ks-hero-stage { --copy-w: 40rem; }
  .ks-hero-b .ks-hero-copy { padding-bottom: 28px; }
  .ks-wall { position: relative; left: auto; right: auto; height: clamp(300px, 70vw, 440px); order: 2;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 76%, transparent); }
  .ks-hero-stage { display: flex; flex-direction: column; }
  .ks-wall-tilt { left: -14%; width: 128%; top: -40%; bottom: -40%; gap: 12px; }
  .ks-page .ks-wall img { margin-bottom: 12px; border-radius: 14px; }
}

@keyframes ks-wake { from { opacity: 0; transform: scale(0.82); } }

/* hero icon shelf */
.ks-page .ks-shelf { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 72px)); gap: 14px; position: relative; z-index: 2; }
@media (min-width: 900px) { .ks-page .ks-shelf { grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 899px) { .ks-page .ks-shelf { margin-top: 20px; } }
.ks-shelf a { display: block; border-radius: var(--r-icon); }
.ks-shelf img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-icon); box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 20px -10px rgba(15,21,34,0.45); transition: transform 0.15s ease; }
.ks-shelf a:hover img { transform: translateY(-3px); }
.ks-page .ks-shelf-note { margin-top: 18px; color: var(--slate); font-size: 15px; }
@media (prefers-reduced-motion: no-preference) {
  .ks-shelf li { animation: ks-wake 0.42s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; animation-delay: calc(var(--i, 0) * 28ms + 120ms); }
}

/* ---------- catalog ---------- */
.ks-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ks-chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: 500 15px/1 var(--font-text); cursor: pointer;
}
.ks-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ks-cat + .ks-cat { margin-top: clamp(36px, 5vw, 56px); }
.ks-page .ks-cat-title { font: 700 1.3rem/1.2 var(--display); font-stretch: 86%; letter-spacing: -0.015em; color: var(--ink); margin-bottom: 14px; }
.ks-rows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.ks-row {
  position: relative; display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto 1fr; align-content: start; gap: 4px 18px; padding: 18px 20px 18px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.ks-row:hover { border-color: color-mix(in srgb, var(--app, var(--signal)) 45%, var(--line)); box-shadow: 0 18px 40px -26px color-mix(in srgb, var(--app, var(--signal)) 70%, #000); transform: translateY(-2px); }
.ks-row:has(.ks-row-name a:focus-visible) { outline: 3px solid var(--signal); outline-offset: 2px; }
.ks-row-name a:focus-visible { outline: 0; }
.ks-row img { width: 64px; height: 64px; border-radius: var(--r-icon); grid-row: span 3; box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 10px 22px -14px color-mix(in srgb, var(--app, #000) 80%, #000); }
.ks-row-name { font: 650 1.12rem/1.25 var(--font-text); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ks-row-name a { color: var(--ink); text-decoration: none; }
.ks-row-name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ks-row-name small { font-weight: 500; color: var(--slate); font-size: 0.9rem; margin: 0; }
.ks-row-blurb { color: var(--slate); font-size: 0.97rem; line-height: 1.5; }
.ks-row-meta { align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.875rem; color: var(--slate); margin-top: 6px !important; }
.ks-row-meta span { font-weight: 600; color: var(--ink); }
.ks-row-meta a { position: relative; z-index: 1; color: var(--slate); }
.ks-row-meta a:hover { color: var(--ink); }
.ks-row:hover .ks-row-name a { color: var(--ink); }
.ks-soon { display: inline-block; font-size: 0.75rem; font-weight: 650; color: var(--app-ink, var(--slate)); background: color-mix(in srgb, var(--app, var(--signal)) 12%, transparent); border-radius: 999px; padding: 2px 9px; margin: 0; align-self: center; }
@media (max-width: 520px) { .ks-row { grid-template-columns: 52px 1fr; gap: 4px 14px; padding: 16px; } .ks-row img { width: 52px; height: 52px; } }

/* ---------- principles + teasers ---------- */
.ks-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ks-principles > div { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-content: start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ks-principles dt { font: 650 1.1rem/1.3 var(--font-text); grid-column: 2; }
.ks-principles dd { color: var(--slate); grid-column: 2; }
.ks-pglyph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; grid-row: span 2; color: var(--app-ink, var(--signal)); background: color-mix(in srgb, var(--app, var(--signal)) 12%, transparent); }
.ks-pglyph svg { width: 22px; height: 22px; }
@media (max-width: 700px) { .ks-principles { grid-template-columns: 1fr; } .ks-principles > div { padding: 18px; } }
.ks-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.ks-split > div { display: grid; gap: 14px; align-content: start; }
@media (max-width: 760px) { .ks-split { grid-template-columns: 1fr; } }
.ks-teasers.ks-split { gap: 14px; }
.ks-teasers > div { position: relative; padding: clamp(24px, 3.4vw, 36px); border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(160deg, color-mix(in srgb, var(--app, var(--signal)) 9%, var(--surface)), var(--surface) 60%); justify-items: start; }
.ks-teasers .ks-pglyph { grid-row: auto; margin-bottom: 6px; }
.ks-teasers > div > p:last-child a { font-weight: 600; color: var(--app-ink, var(--signal)); }

/* ---------- app page ---------- */
main[style*="--app"], .ks-appscope { --app-ink: color-mix(in srgb, var(--app) 72%, #000); --app-btn: color-mix(in srgb, var(--app) 78%, #000); --app-deep: color-mix(in srgb, var(--app) 62%, #000); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main[style*="--app"], :root:not([data-theme="light"]) .ks-appscope { --app-ink: color-mix(in srgb, var(--app) 40%, #fff); } }
:root[data-theme="dark"] main[style*="--app"], :root[data-theme="dark"] .ks-appscope { --app-ink: color-mix(in srgb, var(--app) 40%, #fff); }

/* immersive header in the app's own colors (white text: every accent mixed this deep clears 5:1) */
.ks-apphero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(90% 120% at 88% 0%, color-mix(in srgb, var(--app) 92%, #fff) 0%, transparent 52%),
    radial-gradient(60% 80% at 0% 100%, color-mix(in srgb, var(--app) 30%, #000) 0%, transparent 70%),
    linear-gradient(150deg, color-mix(in srgb, var(--app) 78%, #000) 0%, color-mix(in srgb, var(--app) 52%, #000) 55%, color-mix(in srgb, var(--app) 34%, #04060b) 100%);
}
.ks-apphero::after { /* fine grain so big flat gradients don't band */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ks-apphero .ks-crumbs { color: rgba(255,255,255,0.78); padding-top: 18px; }
.ks-apphero .ks-crumbs a { color: rgba(255,255,255,0.78) !important; }
.ks-apphero .ks-crumbs a:hover { color: #fff !important; }
.ks-apphero .ks-crumbs [aria-current] { color: #fff; }
.ks-apphero :focus-visible { outline-color: #fff; }
.ks-apphero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 24px clamp(32px, 5vw, 64px); align-items: center; min-height: clamp(520px, 62vh, 620px); }
.ks-apphero-copy { display: grid; gap: 22px; justify-items: start; padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.ks-appicon {
  width: clamp(84px, 9vw, 112px); height: auto; aspect-ratio: 1; border-radius: var(--r-icon);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.14), 0 18px 50px -12px rgba(0,0,0,0.55), 0 0 80px color-mix(in srgb, var(--app) 70%, #fff 30%);
}
.ks-apptitle { display: grid; gap: 10px; }
.ks-apphero .ks-h1 { font-size: clamp(3rem, 8vw, 5.6rem); line-height: 0.95; }
.ks-apphero .ks-kind { font-weight: 600; font-size: 1.02rem; color: rgba(255,255,255,0.86); letter-spacing: 0.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ks-apphero .ks-lede { color: rgba(255,255,255,0.86); font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.ks-pill { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.ks-get { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.ks-page .ks-get .ks-button { background: #fff; color: var(--app-deep); min-height: 52px; padding: 0 26px; font-size: 1.05rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,0.5); }
.ks-page .ks-get .ks-button:hover { filter: none; background: color-mix(in srgb, #fff 92%, var(--app)); }
.ks-qrcard { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 16px; background: #fff; color: #172033; box-shadow: 0 12px 30px -14px rgba(0,0,0,0.5); }
.ks-qr { width: 76px; height: 76px; padding: 4px; }
.ks-qr svg { width: 100%; height: 100%; display: block; }
.ks-page .ks-qr-cap { font-size: 13px; line-height: 1.3; color: #3A4458; max-width: 8.5em; font-weight: 500; }
.ks-soon-note { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
@media (hover: none), (max-width: 820px) { .ks-qrcard { display: none; } }

/* a fan of real screenshots, cropped by the bottom of the header */
.ks-fan { position: relative; align-self: end; height: clamp(420px, 52vh, 540px); }
.ks-fan img {
  position: absolute; left: 50%; bottom: -26%; width: clamp(220px, 22vw, 272px); height: auto; aspect-ratio: 600 / 1304;
  border-radius: clamp(22px, 2.4vw, 30px); background: #0c1018;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12), 0 40px 80px -24px rgba(0,0,0,0.6);
  transform-origin: 50% 100%;
}
.ks-fan .ks-fan-0 { transform: translateX(-50%); z-index: 3; }
.ks-fan .ks-fan-1 { transform: translateX(-50%) translateX(-40%) rotate(-8deg) scale(0.9); z-index: 2; filter: brightness(0.82); }
.ks-fan .ks-fan-2 { transform: translateX(-50%) translateX(40%) rotate(8deg) scale(0.9); z-index: 1; filter: brightness(0.82); }

/* upcoming apps: no screenshots yet, so the icon carries the header */
.ks-bigicon { display: grid; place-items: center; padding: 40px 0; }
.ks-bigicon img {
  width: clamp(180px, 24vw, 300px); height: auto; aspect-ratio: 1; border-radius: var(--r-icon);
  transform: rotate(-6deg);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 50px 90px -30px rgba(0,0,0,0.65), 0 0 120px -10px color-mix(in srgb, var(--app) 80%, #fff 20%);
}
@media (max-width: 820px) {
  .ks-apphero-in { grid-template-columns: 1fr; min-height: 0; }
  .ks-apphero-copy { padding-bottom: 8px; }
  .ks-fan { height: 300px; margin: 0 calc(var(--gutter) * -1); }
  .ks-fan img { width: 190px; bottom: -40%; }
  .is-iconic .ks-apphero-in { grid-template-columns: 1fr; }
  .is-iconic .ks-bigicon { order: -1; justify-content: start; padding: 20px 0 0; }
  .is-iconic .ks-bigicon img { width: 132px; transform: rotate(-4deg); box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 30px 60px -24px rgba(0,0,0,0.6), 0 0 90px 10px color-mix(in srgb, var(--app) 70%, #fff 30%); }
  .is-iconic .ks-apphero-copy { padding-top: 24px; }
}

/* facts band + gallery */
.ks-factband { background: color-mix(in srgb, var(--app) 7%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--app) 16%, var(--line)); }
.ks-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; }
.ks-facts div { padding: 20px 20px 20px 0; }
.ks-facts div + div { padding-left: 20px; border-left: 1px solid color-mix(in srgb, var(--app) 14%, var(--line)); }
.ks-facts dt { font-size: 13px; color: var(--slate); margin-bottom: 2px; }
.ks-facts dd { font-weight: 650; font-size: 15.5px; }
@media (max-width: 640px) {
  .ks-facts { grid-template-columns: 1fr 1fr; }
  .ks-facts div, .ks-facts div + div { padding: 14px 12px 14px 0; border-left: 0; border-top: 1px solid color-mix(in srgb, var(--app) 14%, var(--line)); }
  .ks-facts div:nth-child(-n+2) { border-top: 0; }
}
.ks-gallery { padding: clamp(40px, 6vw, 72px) 0 8px; }
.ks-shots { display: flex; gap: clamp(14px, 1.8vw, 22px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1); scroll-padding: 0 var(--gutter); scrollbar-width: thin; }
.ks-shots img { flex: none; width: clamp(220px, 25vw, 288px); height: auto; aspect-ratio: 600 / 1304; border-radius: clamp(20px, 2.4vw, 30px); scroll-snap-align: start; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 24px 50px -30px rgba(10,16,30,0.5); }
.ks-appmain { padding-top: clamp(40px, 6vw, 64px); }
.ks-section.ks-appmain { border-top: 0; }
.ks-appbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 6vw, 72px); align-items: start; }
.ks-aside { display: grid; gap: 28px; position: sticky; top: 84px; }
.ks-aside section { display: grid; gap: 12px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.ks-aside section:first-child[aria-labelledby="data-h"] { background: linear-gradient(170deg, color-mix(in srgb, var(--app, var(--signal)) 10%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--app, var(--signal)) 22%, var(--line)); }
.ks-aside h2 { font: 700 1.2rem/1.2 var(--display); font-stretch: 86%; letter-spacing: -0.01em; }
.ks-flows { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.ks-flows li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.ks-flows svg { width: 20px; height: 20px; margin-top: 2px; color: var(--app-ink); }
.ks-linklist { list-style: none; padding: 0; display: grid; gap: 8px; }
@media (max-width: 900px) { .ks-appbody { grid-template-columns: 1fr; } .ks-aside { position: static; } }
.ks-related { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.ks-related a { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 10px; margin: -10px; border-radius: 14px; }
.ks-related a:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ks-related img { width: 48px; height: 48px; border-radius: var(--r-icon); grid-row: span 2; }
.ks-related span { font-size: 14px; color: var(--slate); }

/* ---------- support hub ---------- */
.ks-picker-input {
  width: 100%; max-width: 520px; min-height: 52px; padding: 0 18px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 17px/1 var(--font-text);
}
.ks-picker-input:focus { outline: none; border-color: var(--signal); }
.ks-page .ks-picker { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; }
.ks-picker button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; justify-items: center; gap: 8px; width: 100%; padding: 10px 4px; border-radius: 16px; font: 500 14px/1.2 var(--font-text); text-align: center; color: var(--ink); }
.ks-picker button:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ks-picker button:focus-visible { outline: 3px solid var(--signal); }
.ks-picker button[aria-pressed="true"] { background: color-mix(in srgb, var(--signal) 12%, transparent); }
.ks-picker img { width: 60px; height: 60px; border-radius: var(--r-icon); }
.ks-help { margin-top: 40px; padding: clamp(22px, 4vw, 36px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 20px; }
.ks-help-head { display: flex; align-items: center; gap: 16px; }
.ks-help-head img { width: 56px; height: 56px; border-radius: var(--r-icon); }
.ks-faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ks-faq details { border-bottom: 1px solid var(--line); }
.ks-faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.ks-faq summary::-webkit-details-marker { display: none; }
.ks-faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--slate); }
.ks-faq details[open] summary::after { content: "−"; }
.ks-faq .ks-ans { padding: 0 0 18px; color: var(--slate); max-width: var(--measure); }

/* ---------- long-form pages (how we build, about, privacy) ---------- */
.ks-pagehead { padding: clamp(40px, 7vw, 80px) 0 clamp(32px, 5vw, 56px); display: grid; gap: 20px; }
.ks-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; position: relative; }
.ks-steps > li { counter-increment: step; position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 4px 22px; padding: 0 0 34px; }
.ks-steps > li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  font: 700 1.5rem/1 var(--display); font-stretch: 86%; color: var(--signal); position: relative; z-index: 1;
  background: color-mix(in srgb, var(--signal) 11%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 26%, var(--line));
}
.ks-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 25.5px; top: 58px; bottom: 6px; width: 1px; background: linear-gradient(var(--line), color-mix(in srgb, var(--line) 30%, transparent)); }
.ks-steps h3 { font: 650 1.18rem/1.3 var(--font-text); padding-top: 12px; }
.ks-steps p { color: var(--slate); max-width: var(--measure); }
.ks-numbers {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0; margin-bottom: clamp(40px, 6vw, 72px) !important;
  border-radius: 28px; overflow: hidden; color: #fff;
  background: radial-gradient(80% 160% at 100% 0%, rgba(124,155,255,0.26), rgba(124,155,255,0.08) 45%, transparent 75%), linear-gradient(150deg, #1B2C66, #0F1522 70%);
  box-shadow: 0 30px 60px -36px rgba(15, 21, 34, 0.7);
}
:root[data-theme="dark"] .ks-numbers { box-shadow: 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ks-numbers { box-shadow: 0 0 0 1px var(--line); } }
.ks-numbers div { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 3.2vw, 36px); }
.ks-numbers div + div { border-left: 1px solid rgba(255,255,255,0.12); }
.ks-numbers dt { order: 2; color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.4; }
.ks-numbers dd { order: 1; font: 700 clamp(2.8rem, 6vw, 4.6rem)/0.9 var(--display); font-stretch: 86%; letter-spacing: -0.03em; color: #fff; }
@media (max-width: 860px) {
  .ks-numbers { grid-template-columns: 1fr 1fr; }
  .ks-numbers div:nth-child(3) { border-left: 0; }
  .ks-numbers div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.12); }
}
.ks-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.ks-two h3 { font: 600 1.08rem/1.3 var(--font-text); margin-bottom: 6px !important; }
.ks-two p { color: var(--slate); }
@media (max-width: 760px) { .ks-two { grid-template-columns: 1fr; } }
.ks-note { padding: 18px 20px; border-radius: 14px; background: color-mix(in srgb, var(--signal) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--signal) 22%, var(--line)); font-size: 15px; }
.ks-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ks-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ks-table th, .ks-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ks-table thead th { font-weight: 600; font-size: 13.5px; color: var(--slate); background: color-mix(in srgb, var(--ink) 3%, var(--surface)); }
.ks-table tr:last-child td, .ks-table tr:last-child th { border-bottom: 0; }
.ks-table .ks-tapp { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.ks-table .ks-tapp img { width: 28px; height: 28px; border-radius: var(--r-icon); }

/* ---------- 404 ---------- */
.ks-404 { padding-top: clamp(48px, 9vw, 112px); padding-bottom: clamp(56px, 10vw, 120px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px clamp(40px, 7vw, 96px); align-items: center; }
.ks-404-copy { display: grid; gap: 22px; order: -1; }
.ks-404-grid { display: grid; grid-template-columns: repeat(3, clamp(64px, 8vw, 96px)); gap: clamp(12px, 1.6vw, 20px); transform: rotate(4deg); }
.ks-404-grid img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-icon); box-shadow: 0 14px 30px -16px rgba(15,21,34,0.55); }
.ks-404-gap { aspect-ratio: 1; border-radius: var(--r-icon); border: 2.5px dashed color-mix(in srgb, var(--signal) 60%, var(--line)); background: color-mix(in srgb, var(--signal) 6%, transparent); }
@media (prefers-reduced-motion: no-preference) { .ks-404-gap { animation: ks-blink 2.4s ease-in-out infinite; } }
@keyframes ks-blink { 50% { opacity: 0.35; } }
@media (max-width: 760px) { .ks-404 { grid-template-columns: 1fr; } .ks-404-grid { grid-template-columns: repeat(3, 72px); order: -2; } }
.ks-suggest { list-style: none; padding: 0; display: grid; gap: 10px; }

/* ---------- legacy page chrome ---------- */
.ks-stance { box-sizing: border-box; max-width: calc(720px + 2 * var(--gutter)); margin: clamp(24px, 4vw, 40px) auto -8px !important; padding: 0 var(--gutter) !important; font: 15px/1.55 var(--font-text) !important; color: var(--slate) !important; text-align: left; }
.ks-stance::before { content: "Our privacy stance"; display: block; font-weight: 600; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.ks-stance a { color: var(--signal) !important; }
.ks-bar ul, .ks-crumbs ol, .ks-foot ul { margin: 0; padding: 0; list-style: none; }
.ks-bar li, .ks-crumbs li, .ks-foot li { margin: 0; padding: 0; font-size: inherit; line-height: inherit; color: inherit; list-style: none; }
.ks-bar nav, .ks-crumbs { border: 0; background: none; margin-bottom: 0; }
.ks-bar nav a, .ks-crumbs a { margin-right: 0; }
.ks-crumbs { font-size: 14px; }
.ks-foot h2 { border: 0; padding: 0; letter-spacing: 0; }

/* the app band under the breadcrumbs: icon, name, Overview / Help / Privacy */
.ks-appband { background: linear-gradient(to bottom, var(--paper), color-mix(in srgb, var(--app) 9%, var(--paper))); border-bottom: 1px solid color-mix(in srgb, var(--app) 18%, var(--line)); font: 16px/1.4 var(--font-text); color: var(--ink); text-align: left; }
.ks-appband *, .ks-appband *::before, .ks-appband *::after { box-sizing: border-box; }
.ks-appband .ks-crumbs { padding-top: 14px; }
.ks-appband-in { max-width: var(--wide); margin: 0 auto; padding: 18px var(--gutter) 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; }
.ks-appband-id { grid-row: span 2; display: block; }
.ks-appband-id img { display: block; width: 64px; height: 64px; border-radius: var(--r-icon); box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 10px 24px -12px color-mix(in srgb, var(--app) 60%, #000); }
.ks-appband-title { min-width: 0; }
.ks-appband h1 { margin: 0; padding: 0; border: 0; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1; letter-spacing: -0.025em; font-weight: 700; font-stretch: 86%; font-family: var(--display); color: var(--ink); text-align: left; background: none; }
.ks-appband-title p { margin: 4px 0 0; padding: 0; font-size: 15px; color: var(--slate); font-weight: 500; }
.ks-tabs { grid-column: 1 / -1; display: flex; gap: 4px; margin: 14px 0 0; padding: 0; border: 0; background: none; overflow-x: auto; scrollbar-width: none; }
.ks-tabs a { position: relative; display: block; padding: 10px 14px 14px; margin: 0 !important; font: 600 15px/1 var(--font-text); color: var(--slate) !important; text-decoration: none !important; white-space: nowrap; border-radius: 10px 10px 0 0; }
.ks-tabs a:first-child { margin-left: -14px !important; }
.ks-tabs a:hover { color: var(--ink) !important; background: color-mix(in srgb, var(--app) 8%, transparent); }
.ks-tabs a[aria-current="page"] { color: var(--app-ink) !important; }
.ks-tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--app-ink); }
.ks-appband :focus-visible { outline: 3px solid var(--signal); outline-offset: -3px; }
@media (min-width: 760px) {
  .ks-appband-in { grid-template-columns: auto 1fr auto; padding-bottom: 0; }
  .ks-appband-id { grid-row: auto; }
  .ks-tabs { grid-column: auto; align-self: end; margin: 0; }
  .ks-appband-in { padding-bottom: 0; min-height: 108px; }
  .ks-appband-id, .ks-appband-title { padding-bottom: 22px; }
}

/* legacy page body: the hand-written pages keep their words; these scoped
   rules give them the site's paper, ink, type and the app's accent */
body.ks-legacy { max-width: none !important; padding: 0 !important; margin: 0 !important; background: var(--paper) !important; color: var(--ink); min-height: 0 !important; }
body.ks-legacy, body.ks-legacy .ks-legacy-main {
  --bg: var(--paper); --fg: var(--ink); --text: var(--ink); --muted: var(--slate); --border: var(--line); --card-bg: var(--surface);
  --accent: var(--app-ink, var(--signal)); --highlight-bg: color-mix(in srgb, var(--app, var(--signal)) 8%, var(--surface)); --highlight-border: color-mix(in srgb, var(--app, var(--signal)) 30%, var(--line));
  --warm-bg: var(--paper); --light-border: var(--line); }
.ks-legacy-main { padding: clamp(28px, 5vw, 48px) var(--gutter) clamp(56px, 8vw, 96px); max-width: calc(720px + 2 * var(--gutter)); margin: 0 auto; font: 17px/1.65 var(--font-text); color: var(--ink); -webkit-font-smoothing: antialiased; }
.ks-legacy-main.is-narrow { max-width: calc(720px + 2 * var(--gutter)); }
body.ks-legacy .ks-legacy-main > .container { max-width: none; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
body.ks-legacy .ks-legacy-main :is(p, li, dd, td) { color: inherit; }
body.ks-legacy .ks-legacy-main :is(h2, h3, h4) { color: var(--ink); text-align: left; }
body.ks-legacy .ks-legacy-main h2 { font-family: var(--display); font-stretch: 86%; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-size: clamp(1.45rem, 2.6vw, 1.75rem); margin: 2.2em 0 0.6em; padding: 0; border: 0; }
body.ks-legacy .ks-legacy-main h3 { font: 600 1.08rem/1.35 var(--font-text); margin: 1.6em 0 0.4em; }
body.ks-legacy .ks-legacy-main :is(main, .container, .section) > h2:first-child { margin-top: 0.4em; }
body.ks-legacy .ks-legacy-main a { color: var(--app-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
body.ks-legacy .ks-legacy-main a:hover { text-decoration-thickness: 2px; }
body.ks-legacy .ks-legacy-main :focus-visible { outline: 3px solid var(--app-ink); outline-offset: 3px; border-radius: 4px; }
body.ks-legacy .ks-legacy-main :is(.muted, .response-time, .tagline, .effective, .effective-date, .fine, .footer) { color: var(--slate); }
body.ks-legacy .ks-legacy-main :is(.card, .faq, .faq-item, .contact-box, .tip-card, .toc, .section) { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; }
body.ks-legacy .ks-legacy-main :is(.card, .contact-box, .tip-card, .toc) { padding: clamp(18px, 3vw, 24px); }
body.ks-legacy .ks-legacy-main .faq-item { background: none; border: 0; border-radius: 0; }
body.ks-legacy .ks-legacy-main .card .faq-item + .faq-item { border-top: 1px solid var(--line); }
body.ks-legacy .ks-legacy-main .highlight { background: var(--highlight-bg); border: 1px solid var(--highlight-border); border-radius: 14px; }
body.ks-legacy .ks-legacy-main :is(.contact-banner, .summary-card, .cta) { background: linear-gradient(150deg, color-mix(in srgb, var(--app) 74%, #000), color-mix(in srgb, var(--app) 46%, #000)); color: #fff; border-radius: 18px; border: 0; }
body.ks-legacy .ks-legacy-main :is(.contact-banner, .summary-card, .cta) :is(p, h2, h3) { color: rgba(255,255,255,0.88); }
body.ks-legacy .ks-legacy-main :is(.contact-banner, .summary-card, .cta) a { color: #fff; }
body.ks-legacy .ks-legacy-main .badge { background: color-mix(in srgb, var(--app) 12%, var(--surface)); color: var(--app-ink); }
body.ks-legacy .ks-legacy-main :is(table) { border-color: var(--line); }
body.ks-legacy .ks-legacy-main :is(th, td) { border-color: var(--line); }
body.ks-legacy .ks-legacy-main th { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); color: var(--ink); }
body.ks-legacy .ks-legacy-main code { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
body.ks-legacy .ks-legacy-main hr { border: 0; border-top: 1px solid var(--line); }
body.ks-legacy .ks-legacy-main .contact-email a { font-weight: 600; font-size: 1.15rem; }

/* each template's own title block duplicates the band, so it goes */
body.ks-legacy .ks-legacy-main > .container > header > :is(h1, .subtitle),
body.ks-legacy .ks-legacy-main > .container > :is(.header, .app-icon, .nav-link),
body.ks-legacy .ks-legacy-main > .container > .app-icon + h1,
body.ks-legacy .ks-legacy-main[data-page="enveloop-support"] > .container > h1 + p,
body.ks-legacy .ks-legacy-main > nav:first-child,
body.ks-legacy .ks-legacy-main > h1:first-of-type,
body.ks-legacy .ks-legacy-main > h1:first-of-type + .tagline { display: none; }
body.ks-legacy .ks-legacy-main > .container > header { border: 0; padding: 0; margin: 0 0 8px; text-align: left; }
body.ks-legacy .ks-legacy-main > .container > header:not(:has(> :not(h1, .subtitle))) { display: none; }
body.ks-legacy .ks-legacy-main :is(.effective-date, .effective, .badge) { font-size: 14px; margin: 0 0 4px; }
body.ks-legacy .ks-legacy-main > .container > main > :first-child, body.ks-legacy .ks-legacy-main > .container > :is(.contact-banner, .contact-box):first-of-type { margin-top: 0; }
body.ks-legacy .ks-legacy-main :is(.card, .faq, .contact-box, .tip-card, .toc, .section, .highlight, .contact-banner, .summary-card, .cta) :is(h2, h3, p, ul):first-child { margin-top: 0; }
body.ks-legacy .ks-legacy-main :is(.card, .faq, .contact-box, .tip-card, .toc, .section, .highlight, .contact-banner, .summary-card, .cta) > :last-child { margin-bottom: 0; }
body.ks-legacy .ks-legacy-main :is(.card, .toc) > .toc { border: 0; padding: 0; background: none; }
body.ks-legacy .ks-legacy-main > :is(.tagline, nav:first-child, h1:first-of-type) + :is(h2, p, ul) { margin-top: 0; }

/* ---------- page-to-page: an app's icon carries over from the catalog into its header ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(*) { animation-duration: 0.38s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
}
.ks-shots { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter) * 2), transparent); mask-image: linear-gradient(to right, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter) * 2), transparent); }

/* ---------- logo on About and in the press kit ---------- */
.ks-aboutlogo { place-items: center; padding: 32px !important; }
.ks-aboutlogo img { width: 150px; height: auto; }
.ks-logotiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ks-logotiles a { display: grid; place-items: center; padding: 18px; border-radius: 14px; border: 1px solid var(--line); }
.ks-logotiles a.is-light { background: #F2F2F0; }
.ks-logotiles a.is-dark { background: #0F1522; }
.ks-logotiles img { width: 72px; height: auto; }
