/* KithMoot website. Colours, type and spacing follow the brand guide in
   art/brand/2026-09-29: flat fills in the interface, gradients only in the
   logo, deep blue for light-mode actions and links, turquoise in dark mode. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter-var-latin.woff2) format('woff2');
}
:root {
  color-scheme: light dark;
  --blue: #073B7A; --turquoise: #00BFC5; --ink: #102A43; --mist: #F3F8FA; --night: #081923;
  --bg: var(--mist); --panel: #fff; --soft: #E6F0F4; --text: var(--ink);
  --muted: #475D72; --border: #D3E0E7; --accent: var(--blue); --on-accent: #fff;
  --link: var(--blue); --tint: #E0F5F6;
  --warning: #6B4310; --warning-bg: #FBF0DC;
  --shadow: 0 1px 2px rgb(16 42 67 / 6%), 0 24px 48px rgb(16 42 67 / 10%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night); --panel: #0F2533; --soft: #12303F; --text: var(--mist);
    --muted: #A3B6C4; --border: #23404F; --accent: var(--turquoise); --on-accent: var(--ink);
    --link: var(--turquoise); --tint: #0C2D38;
    --warning: #F3CD8E; --warning-bg: #2E2414;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 24px 48px rgb(0 0 0 / 35%);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-wrap: anywhere; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: fixed; top: -6rem; left: 1rem; background: var(--panel); color: var(--text); padding: 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 1rem; }
p { margin: 0 0 1rem; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 700; letter-spacing: -.03em; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 1rem; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; margin: 0 0 .5rem; }

/* Header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.site-header .brand img { width: 158px; height: auto; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem 1.5rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-size: .9375rem; font-weight: 500; text-decoration: none; }
nav a:hover { color: var(--link); text-decoration: underline; }
nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }
.site-header nav { margin-left: auto; }
.nav-open { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }

/* Buttons */
.actions, .button-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.actions { justify-content: center; margin: 2rem 0 1.25rem; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: .75rem 1.25rem; min-height: 48px; border: 1.5px solid var(--accent); border-radius: 10px; background: transparent; color: var(--link); font-size: 1rem; font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; transition: background-color .15s, color .15s; }
.button:hover { background: var(--soft); text-decoration: none; }
.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.under { font-size: .875rem; color: var(--muted); line-height: 1.55; }

/* Hero */
.hero { text-align: center; padding-block: clamp(2.5rem, 7vw, 5rem) 0; }
.hero h1 { margin-inline: auto; }
.lead { color: var(--muted); font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.5; max-width: 40ch; }
.hero .lead { margin-inline: auto; }
.hero .under { margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.hero-shot { margin: 0 auto; max-width: 1040px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--soft); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.hero-shot img { width: 100%; }
.hero-shot figcaption { border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); padding: .625rem 1rem; text-align: left; }

.proof-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2rem; margin-block: 2.5rem 0; padding: 0; color: var(--muted); font-size: .9375rem; font-weight: 500; }
.proof-strip li { display: inline-flex; align-items: center; gap: .5rem; }
.proof-strip li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); }

/* Sections */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-intro { max-width: 40rem; margin-bottom: 2.5rem; }
.section-intro > p { color: var(--muted); font-size: 1.0625rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.feature-grid article { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.feature-grid p { color: var(--muted); font-size: .9375rem; margin: 0; }
.icon { width: 40px; height: 40px; padding: 8px; margin-bottom: 1rem; border-radius: 10px; background: var(--tint); color: var(--accent); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.getting-started { background: var(--panel); border-block: 1px solid var(--border); padding-block: clamp(3.5rem, 7vw, 5rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 0; margin: 0 0 2.5rem; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 1rem; }
.steps p { color: var(--muted); margin: 0; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.platform { display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.platform > .button, .platform > .button-row { margin-top: auto; }
.platform p { color: var(--muted); }
.platform .under { margin: .75rem 0 0; }
.web-platform { background: var(--tint); border-color: color-mix(in srgb, var(--turquoise) 40%, var(--border)); }
.platform-label { font-size: .8125rem; font-weight: 600; color: var(--link); margin-bottom: .5rem; }
.platform h3 { font-size: 1.25rem; }
.more-platform { background: transparent; border-style: dashed; }
.release-note { font-size: .9rem; padding: 1rem; border-radius: 8px; background: var(--tint); color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; border-top: 1px solid var(--border); }
.privacy-list article + article { border-top: 1px solid var(--border); padding-top: 1.25rem; margin-top: 1.25rem; }
.privacy-list p { color: var(--muted); margin: 0; }
.questions details { border-bottom: 1px solid var(--border); }
.questions details:first-child { border-top: 1px solid var(--border); }
.questions summary { cursor: pointer; padding: 1rem .25rem; font-weight: 600; }
.questions summary:hover { color: var(--link); }
.questions details p { color: var(--muted); padding-inline: .25rem; }

.closing { border-top: 1px solid var(--border); padding-block: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.closing h2 { margin: 0; }
footer { border-top: 1px solid var(--border); padding-block: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
footer .brand img { width: 128px; height: auto; }
footer p { font-size: .875rem; color: var(--muted); margin: 0; }
footer nav { gap: .25rem 1.25rem; }
footer nav a { font-size: .875rem; color: var(--muted); }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split { gap: 2rem; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { gap: .5rem 1rem; }
  .site-header nav { order: 1; width: 100%; margin-left: 0; justify-content: space-between; gap: .25rem 1rem; }
  .site-header nav a { font-size: .875rem; }
  .site-header .brand img { width: 128px; }
  .nav-open { font-size: .875rem; padding-inline: .875rem; }
  .hero-shot { max-width: 360px; }
  .window-bar { display: none; }
  .feature-grid, .steps, .split { grid-template-columns: 1fr; }
  .steps { gap: 1.5rem; }
  .split { gap: 0; }
  .feature-grid article { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.25rem; }
  .feature-grid .icon { grid-row: 1 / 3; margin: 0; }
  .feature-grid p { grid-column: 2; }
}
@media (max-width: 380px) { .site-header nav a[href$="#help"] { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media (forced-colors: active) { .button, .hero-shot, .platform, .feature-grid article { border: 1px solid ButtonText; } }

/* Downloads page */
.download-intro { max-width: 760px; padding-bottom: 2.5rem; }
.downloads-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.downloads-list .platform > .button { margin-top: .5rem; }
@media (min-width: 1100px) { .downloads-list #linux { grid-column: span 2; } }
.downloads-list .platform h2 { font-size: 1.5rem; }
.platform details { margin-top: 1.25rem; width: 100%; }
.platform summary { cursor: pointer; font-weight: 600; padding-block: .5rem; }
.platform ol, .platform ul { padding-left: 1.3rem; color: var(--muted); }
.platform li + li { margin-top: .5rem; }
#linux > .button { margin-top: .5rem; }
#linux h3 { font-size: 1.0625rem; margin-top: 1.5rem; }
code { font-size: .88em; overflow-wrap: anywhere; }
.platform pre { overflow-x: auto; max-width: 100%; padding: 1rem; border-radius: 8px; background: var(--bg); font-size: .82rem; line-height: 1.6; }
.recommended { max-width: 760px; margin-bottom: 2.5rem; border: 2px solid var(--accent); }
.recommended .button { margin-top: .75rem; }
.recommended .under { margin: .5rem 0 0; }
.recommended h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.source-link { display: block; font-size: .9rem; margin-top: 1rem; }
.versions { max-width: 760px; }
.version-picker { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-block: 1.5rem; }
.version-picker label { display: grid; gap: .4rem; flex: 1 1 14rem; min-width: 0; font-weight: 600; }
.version-picker select { width: 100%; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: inherit; font: inherit; max-width: 100%; }
.version-files { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.version-files li { padding-block: .9rem; border-bottom: 1px solid var(--border); }
.version-files li > a { font-weight: 600; overflow-wrap: anywhere; }
.version-files .checksum { display: block; margin-top: .3rem; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.release-notes .questions ul { color: var(--muted); padding-left: 1.3rem; }

/* Terms, privacy and report pages: plain prose on the same palette. */
.legal-page { max-width: 760px; padding-block: 3rem 5rem; }
.legal-page h1 { margin-bottom: .4rem; font-size: clamp(2rem, 5vw, 2.75rem); }
.legal-page .dated { color: var(--muted); font-size: .9rem; margin-top: 0; }
.legal-page h2 { margin-top: 2.5rem; font-size: 1.375rem; }
.legal-page h3 { margin-top: 1.5rem; font-size: 1.125rem; }
.legal-page p, .legal-page li { color: var(--text); }
.legal-page ul, .legal-page ol { padding-left: 1.3rem; }
.legal-page li + li { margin-top: .4rem; }
.draft-note { background: var(--warning-bg); color: var(--warning); padding: 1rem 1.2rem; border-radius: 8px; font-size: .92rem; margin-block: 1.5rem 2rem; }
.draft-note p { margin: 0; color: inherit; }
.draft-note p + p { margin-top: .6rem; }
