/* Parameter Manager landing page. Palette matches the app (src/renderer/styles/tokens.css). */
:root {
  --navy: #001e2b;
  --navy-2: #112733;
  --slate: #1c2d38;
  --slate-2: #21313c;
  --forest: #023430;
  --green-dark: #00684a;
  --green-mid: #00a35c;
  --green: #00ed64;
  --green-pale: #e3fcf7;
  --cream: #f9fbf6;
  --white: #ffffff;
  --text: #001e2b;
  --text-muted: #3d4f58;
  --text-subtle: #5c6c75;
  --border: #e8edeb;
  --border-strong: #c1c7c6;
  --blue: #016bf8;
  --yellow: #fef7db;
  --yellow-text: #944f01;

  --font-sans: Inter, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Inter, sans-serif;
  --font-mono: 'Source Code Pro', ui-monospace, Menlo, Consolas, monospace;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 6px;
  --radius-lg: 16px;
  --radius-xl: 48px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code, kbd { font-family: var(--font-mono); font-size: 0.9em; }
p code, li code, h3 code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgb(0 30 43 / 0.06);
}
kbd {
  display: inline-block;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--white);
  font-size: 0.8em;
  line-height: 1.6;
}
:focus-visible { outline: 3px solid rgb(0 237 100 / 0.7); outline-offset: 3px; }

.sr-only {
  position: absolute; 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: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: var(--radius);
  background: var(--green); color: var(--navy); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 1120px; }

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display--section { font-size: clamp(2.5rem, 5vw, 4rem); text-align: center; }
.display--light { color: var(--white); text-align: left; }
.h2 { margin: 0 0 16px; font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.h2--light { color: var(--white); }
.h3 { margin: 0 0 20px; font-size: clamp(1.5rem, 2.4vw, 2.125rem); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.h4 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 600; line-height: 1.35; }

.overline {
  display: inline-block;
  margin: 0 0 20px;
  padding-left: 10px;
  border-left: 2px solid var(--green-mid);
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.overline--dark { border-color: var(--green); color: #c1c7c6; }
.overline--mono { padding: 0; border: 0; color: var(--green); font-size: 0.75rem; letter-spacing: 0.3em; }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn--primary { background: var(--green); border-color: var(--green-dark); color: var(--navy); }
.btn--primary:hover { background: #3ff58a; box-shadow: 0 0 0 4px rgb(0 237 100 / 0.2); }
.btn--lg { min-height: 52px; padding: 12px 32px; font-size: 1rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.link-arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--green-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s; }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light { color: var(--white); }
.link-arrow--light svg { stroke: var(--green); }

/* ---------- Announcement ---------- */
.announce { background: var(--forest); color: var(--border); font-family: var(--font-mono); font-size: 0.8125rem; }
.announce__inner { display: flex; align-items: center; gap: 14px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.announce__text { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce__link { flex: none; color: var(--green); text-decoration: none; }
.announce__link:hover { text-decoration: underline; }
.pill {
  flex: none;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--green);
  color: var(--forest);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(249 251 246 / 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgb(0 30 43 / 0.25); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; }
.brand--light { color: var(--white); }

.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.btn):hover, .site-nav a.is-current { color: var(--text); background: rgb(0 30 43 / 0.05); }
.site-nav__cta { margin-left: 12px; }
.site-nav a.site-nav__github { display: inline-flex; align-items: center; gap: 10px; padding: 8px; }
.site-nav__github svg { width: 22px; height: 22px; fill: currentColor; }
.site-nav__github-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 11px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; margin: 4px 0; background: var(--navy); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0 clamp(96px, 12vw, 168px);
  background: var(--navy);
  color: var(--white);
  border-radius: 0 0 50% 50% / 0 0 clamp(40px, 8vw, 120px) clamp(40px, 8vw, 120px);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero__title { font-size: clamp(2.75rem, 5.2vw, 4.375rem); text-transform: uppercase; }
.hero__lede { max-width: 560px; margin: 28px 0 36px; color: #c1c7c6; font-size: 1.1875rem; line-height: 1.65; }
.hero__lede code { background: rgb(255 255 255 / 0.08); color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero__meta { margin: 28px 0 0; color: #889397; font-family: var(--font-mono); font-size: 0.8125rem; }

.hero__art { position: relative; padding: 48px 0 56px 40px; }
.blob { position: absolute; border-radius: 999px; background: #3d4f58; opacity: 0.55; }
.blob--a { top: 0; right: -8%; width: 72%; height: 58%; }
.blob--b { bottom: 0; left: 0; width: 34%; height: 72%; }
.hero__chevron {
  position: absolute; z-index: 3; left: 0; top: 34%;
  width: clamp(64px, 9vw, 120px);
  fill: #4fb022; stroke: var(--navy); stroke-width: 4;
  filter: drop-shadow(10px 10px 0 #000);
}

.window {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--navy);
  border-radius: 10px;
  background: var(--navy-2);
  box-shadow: 14px 14px 0 rgb(0 30 43 / 0.12);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: transform 0.25s, box-shadow 0.25s;
}
.window:hover { transform: translate(-3px, -3px); box-shadow: 18px 18px 0 rgb(0 30 43 / 0.14); }
.window__bar { display: flex; gap: 8px; align-items: center; height: 30px; padding: 0 12px; background: var(--green-mid); border-bottom: 2px solid var(--navy); }
.window__bar i { width: 13px; height: 13px; border: 2px solid var(--navy); border-radius: 50%; background: #e8edeb; }
.window--hero { z-index: 2; border-color: #000; box-shadow: 14px 14px 0 #000; cursor: default; }
.window--hero:hover { transform: none; box-shadow: 14px 14px 0 #000; }
.window--hero .window__bar { border-color: #000; }
.window--hero .window__bar i { border-color: #000; }

.float-chip {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 2px solid #000;
  border-radius: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 6px 6px 0 #000;
  animation: bob 6s ease-in-out infinite;
}
.float-chip--one { right: 6%; bottom: 8px; }
.float-chip--two { right: -2%; top: 18px; background: var(--green); animation-delay: -3s; }
.float-chip--two svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float-chip { animation: none; } }

.chip { padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; }
.chip--added { background: var(--green-pale); color: var(--green-dark); }
.chip--changed { background: var(--yellow); color: var(--yellow-text); }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--tight { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 0; }
.section--soft { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head .h2 { max-width: 720px; margin-bottom: 0; }
.section-head__lede { max-width: 640px; margin: 16px 0 0; color: var(--text-muted); font-size: 1.125rem; }

.rule { height: 1px; margin: 48px 0 0; border: 0; background: var(--border-strong); }

/* Highlight card */
.highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: 1176px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(24px, 6vw, 80px);
  border-radius: var(--radius-xl);
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 24px 60px -30px rgb(0 30 43 / 0.6);
}
.highlight__copy p { margin: 0 0 32px; color: #e8edeb; font-size: 1.0625rem; line-height: 1.75; }
.highlight__copy .h2 { color: var(--white); }
.shot--card { border: 2px solid #000; border-radius: 12px; box-shadow: 10px 10px 0 #000; transform: rotate(-1.5deg); }

/* Theme switch */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--white);
}
.theme-switch__label { padding: 0 8px 0 12px; color: var(--text-subtle); font-size: 0.8125rem; }
.theme-switch button {
  min-height: 34px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.theme-switch button.is-active { background: var(--navy); color: var(--white); }

/* Feature rows */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(56px, 7vw, 104px) 0 0;
}
.feature--flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.feature--flip .feature__copy { order: 2; }
.feature__copy { max-width: 480px; }
.feature__copy p { margin: 0 0 24px; color: var(--text-muted); font-size: 1.125rem; line-height: 1.75; }
.feature__media { margin: 0; }
.feature__media img { transition: opacity 0.2s; }
.feature__media img.is-swapping { opacity: 0; }

.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; margin: 10px 0; padding-left: 30px; color: var(--text); font-weight: 500; }
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--green-pale) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300684a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* Safety */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--cream);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--green-mid); transform: translateY(-3px); }
.card p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.card__step { display: block; margin-bottom: 18px; color: var(--green-mid); font-family: var(--font-mono); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.1em; }
.card:not(:last-child)::after {
  content: '';
  position: absolute; top: 40px; right: -16px; z-index: 1;
  width: 12px; height: 12px;
  border-top: 2px solid var(--green-mid); border-right: 2px solid var(--green-mid);
  transform: rotate(45deg);
}

.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--border); }
.trust__item { display: flex; gap: 16px; }
.trust__item svg { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 10px; background: var(--forest); fill: none; stroke: var(--green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust__item p { margin: 0; color: var(--text-muted); font-size: 0.9375rem; }
.trust__item .h4 { font-size: 1.0625rem; }

/* Get started */
.learn {
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--navy);
  color: var(--white);
  border-radius: 0 clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px) 0;
}
.learn__lede { margin: 0 0 56px; color: #e8edeb; }
.learn__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.learn__item p { margin: 0 0 24px; color: #c1c7c6; font-size: 0.9375rem; }
.learn__item p code { background: rgb(255 255 255 / 0.08); color: var(--white); }
.learn__icon { width: 64px; height: 64px; margin-bottom: 24px; }
.i-line { fill: none; stroke: #e8edeb; stroke-width: 2; }
.i-fill { fill: var(--green); stroke: #e8edeb; stroke-width: 2; }
.i-accent { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.code {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  border: 1px solid #3d4f58;
  border-radius: var(--radius);
  background: var(--navy-2);
  color: var(--green-pale);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}
.code code { overflow-x: auto; white-space: nowrap; }
.code--block { display: block; margin: 16px 0; padding: 16px 20px; border-color: var(--navy-2); }
.code--block pre { margin: 0; overflow-x: auto; line-height: 1.55; }
.code--block code { white-space: pre; }
.code--block .code__copy { position: absolute; top: 10px; right: 10px; }
.code__copy {
  flex: none;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #5c6c75;
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font: 600 0.75rem var(--font-sans);
  cursor: pointer;
}
.code__copy:hover { border-color: var(--green); color: var(--green); }
.code__copy.is-done { border-color: var(--green); background: var(--green); color: var(--navy); }

/* FAQ */
.faq { margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--border-strong); }
.faq__item { border-bottom: 1px solid var(--border-strong); }
.faq__item h3 { margin: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 30px 8px;
  border: 0;
  background: none;
  color: var(--text);
  font: 600 clamp(1.125rem, 2vw, 1.375rem) / 1.35 var(--font-sans);
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}
.faq__q:hover { color: var(--green-dark); }
.faq__icon { position: relative; flex: none; width: 30px; height: 30px; }
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  width: 30px; height: 3px;
  background: var(--green-dark);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { overflow: hidden; padding: 0 8px; transition: height 0.3s ease; }
.faq__a > :first-child { margin-top: 0; }
.faq__a > :last-child { margin-bottom: 30px; }
.faq__a p { max-width: 860px; color: var(--text-muted); font-size: 1.0625rem; line-height: 1.75; }
.faq__note { font-size: 0.9375rem !important; }

/* Final CTA */
.cta {
  position: relative;
  margin-top: 0;
  padding: clamp(72px, 9vw, 112px) 0;
  background: var(--forest);
  color: var(--white);
  border-radius: 0 clamp(48px, 7vw, 96px) clamp(48px, 7vw, 96px) 0;
}
main { padding-bottom: clamp(48px, 6vw, 96px); }
.cta__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.cta__copy { padding-left: clamp(0px, 6vw, 112px); }
.cta__copy > p { max-width: 420px; margin: 24px 0 36px; color: #e8edeb; font-size: 1.0625rem; line-height: 1.75; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.downloads { display: grid; gap: 28px; }
.downloads__os { margin: 0 0 12px; color: var(--green); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; }
.os-logo { flex: none; width: 20px; height: 20px; fill: currentColor; }
.cta__meta a { color: #c1c7c6; }
.cta__meta a:hover, .cta__os a:hover { color: var(--green); }
.cta__copy > .cta__meta { margin: 24px 0 0; color: #889397; font-family: var(--font-mono); font-size: 0.8125rem; }
.cta__copy > .cta__os { margin: 12px 0 0; padding: 10px 14px; border-left: 2px solid var(--green); background: rgb(255 255 255 / 0.05); font-size: 0.9375rem; }
.cta__card { padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-xl); background: var(--slate-2); }
.checks { margin: 8px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; margin: 20px 0 0; padding-left: 48px; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.3; }
.checks li code { background: rgb(255 255 255 / 0.08); }
.checks li::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ed64' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Footer */
.site-footer { padding: 72px 0 32px; background: #001520; color: #c1c7c6; font-size: 0.9375rem; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer__brand p { max-width: 280px; margin: 16px 0 0; }
.site-footer__github { display: inline-flex; margin-top: 20px; color: #c1c7c6; }
.site-footer__github:hover { color: var(--green); }
.site-footer__github svg { width: 26px; height: 26px; fill: currentColor; }
.site-footer__col { display: flex; flex-direction: column; gap: 14px; }
.site-footer__col h2 { margin: 0 0 6px; color: var(--white); font-size: 1rem; font-weight: 600; }
.site-footer__col a { text-decoration: none; }
.site-footer__col a:hover { color: var(--green); }
.site-footer__legal { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--slate); font-size: 0.8125rem; color: #889397; }

/* Lightbox */
.lightbox {
  width: min(1440px, 94vw);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 2px solid #000;
  border-radius: 12px;
  background: var(--navy-2);
  overflow: visible;
}
.lightbox::backdrop { background: rgb(0 20 30 / 0.82); backdrop-filter: blur(3px); }
.lightbox img { width: 100%; max-height: calc(94vh - 4px); object-fit: contain; border-radius: 10px; }
.lightbox__close {
  position: absolute; top: -18px; right: -18px;
  width: 40px; height: 40px;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(2)::after { display: none; }
  .trust { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__inner { grid-template-columns: repeat(3, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 24px -16px rgb(0 30 43 / 0.3);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px; }
  .site-nav a.site-nav__github { padding: 12px; }
  .site-nav__github-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .site-nav__cta { margin: 8px 0 0; }

  .hero__inner, .highlight, .feature, .feature--flip, .cta__inner { grid-template-columns: 1fr; }
  .feature--flip .feature__copy { order: 0; }
  .feature__copy { max-width: none; }
  .hero__art { max-width: 640px; }
  .learn__grid { grid-template-columns: 1fr; gap: 48px; }
  .cta__copy { padding-left: 0; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 600px) {
  .announce__text { white-space: normal; }
  .announce__link { display: none; }
  .hero__art { padding: 32px 0 48px 20px; }
  .float-chip { font-size: 0.75rem; padding: 6px 10px; }
  .float-chip--two { right: 0; top: 4px; }
  .cards { grid-template-columns: 1fr; }
  .card::after { display: none; }
  .highlight, .cta__card { border-radius: 28px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .faq__q { padding: 22px 4px; }
  .faq__icon, .faq__icon::before, .faq__icon::after { width: 22px; }
  .faq__icon { height: 22px; }
  .window { box-shadow: 8px 8px 0 rgb(0 30 43 / 0.12); }
  .window--hero, .window--hero:hover { box-shadow: 8px 8px 0 #000; }
}
