/* Kablooey: "Ink and Paper"
   Warm paper, ink-blue structure, one red-orange accent. No gold, no teal. */

:root {
  --paper: #FBF6E9;
  --paper-2: #F2EAD5;
  --tan: #E6DCC2;
  --blue: #285070;
  --ink: #1F2430;
  --muted: #4D5361;
  --accent: #C7361B;          /* fills: buttons, marks */
  --accent-text: #B02E15;     /* small accent text on paper and stripe (AA) */
  --on-accent: #FBF6E9;
  --on-blue: #FBF6E9;
  --on-blue-muted: rgba(251, 246, 233, 0.84);
  --key-fill: #FBF6E9;
  --key-text: #1F2430;
  --key-border: rgba(31, 36, 48, 0.2);
  --line: rgba(31, 36, 48, 0.12);
  --card: #FFFCF4;
  --focus: #C7361B;
  --shadow: 0 1px 2px rgba(31, 36, 48, 0.06), 0 8px 24px rgba(31, 36, 48, 0.07);
  --shadow-lift: 0 2px 4px rgba(31, 36, 48, 0.08), 0 14px 32px rgba(31, 36, 48, 0.1);

  --stage: #0F1A24;
  --stage-detail: #F2EAD5;

  --font-head: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #13171C;
    --paper-2: #191E25;
    --tan: #1A2028;
    --blue: #1D3E58;
    --ink: #F2EBDA;
    --muted: #B8B1A2;
    --accent: #FF6A4A;
    --accent-text: #FF6A4A;
    --on-accent: #13171C;     /* paper text on #FF6A4A is under 4.5:1, so dark text */
    --on-blue: #F2EBDA;
    --on-blue-muted: rgba(242, 235, 218, 0.84);
    --key-fill: #262E38;
    --key-text: #F2EBDA;
    --key-border: rgba(242, 235, 218, 0.22);
    --line: rgba(242, 235, 218, 0.12);
    --card: #1C222A;
    --focus: #FF6A4A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 14px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 3px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--tan) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { background: var(--line); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); }

@media (max-width: 760px) {
  .site-nav .nav-optional { display: none; }
}

/* Social icons in the header */
.site-nav .nav-social a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.site-nav .nav-social a:hover { background: var(--line); color: var(--accent-text); }
.site-nav .nav-social--first {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
@media (max-width: 480px) {
  .site-nav .nav-social { display: none; }
}

/* Hamburger menu (only when JavaScript is running; otherwise the header stays as above) */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover { background: var(--line); }
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--tan);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(31, 36, 48, 0.12);
  }
  .js .site-header.is-open .site-nav { display: block; }
  .js .site-nav ul { flex-wrap: wrap; gap: 2px 4px; }
  .js .site-nav li { flex-basis: 100%; }
  .js .site-nav .nav-optional { display: block; }
  .js .site-nav a { display: block; padding: 12px; font-size: 1.05rem; }
  .js .site-nav .nav-social { display: block; flex-basis: auto; margin-top: 8px; }
  .js .site-nav .nav-social--first { margin-left: 0; padding-left: 0; border-left: 0; }
  .js .site-nav .nav-social a { display: inline-grid; width: 44px; height: 44px; padding: 0; }
}

/* ---------- Sections ---------- */

main { display: block; }

section { scroll-margin-top: 72px; }

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}
.section--stripe { background: var(--paper-2); }
.section--blue {
  background: var(--blue);
  color: var(--on-blue);
  --focus: var(--on-blue);
  --muted: var(--on-blue-muted);
  --accent-text: var(--on-blue);
  --line: rgba(251, 246, 233, 0.18);
  --card: rgba(251, 246, 233, 0.07);
}
.section--blue a { text-decoration-color: currentColor; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 14px;
}

.lede {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 40ch;
}
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lede { margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1.25fr; }
  .split--keys { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .split--flip > :first-child { order: 2; }
  .split--flip { grid-template-columns: 1.25fr 1fr; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
  text-align: center;
  overflow: hidden;
}
/* comic-print halftone, very quiet */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background-image: radial-gradient(var(--blue) 1.2px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero-logo {
  width: clamp(150px, 22vw, 220px);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 18px rgba(31, 36, 48, 0.16));
}
.hero h1 { margin-bottom: 14px; }
.hero h1 .kaboom {
  color: var(--accent-text);
  display: inline-block;
  letter-spacing: -0.01em;
}
.hero .tagline {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.req {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
}

.own-sounds {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px auto 0;
  padding: 12px 18px;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 1rem;
  text-align: left;
}
.own-sounds svg { flex: none; margin-top: 3px; color: var(--accent); }
.own-sounds p { margin: 0; }

.hero .stage { margin-top: clamp(40px, 6vw, 64px); }

/* ---------- Buttons ---------- */

/* Store badges: one per platform. Mac now; Windows and Linux join as more <li> items.
   Apple asks for clear space of a quarter of the badge height, so the gap stays at least 13px. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.store-badge {
  display: block;
  border-radius: 12px;
  transition: transform 0.15s ease;
}
.store-badge img { display: block; width: 203px; height: 52px; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:active { transform: translateY(0); }

.btn-quiet {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-quiet:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ---------- Stage + window frames ---------- */

.stage {
  position: relative;
  background-color: var(--stage);
  background-image: radial-gradient(rgba(242, 234, 213, 0.06) 1px, transparent 1.4px);
  background-size: 16px 16px;
  border-radius: var(--radius-lg);
  padding: clamp(14px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.shot-fig { margin: 0; text-align: center; }
.shot {
  margin: 0 auto;
  width: auto;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
picture { display: block; }
.shot--portrait { max-height: 700px; }
/* Real macOS window captures already include the system shadow */
.shot--native { filter: none; }
/* Native captures carry their own shadow margin, so the stage needs less padding */
.stage.shot-fig:has(.shot--native) { padding: clamp(8px, 2.5vw, 28px); }
.shot-fig figcaption {
  margin-top: clamp(14px, 2.5vw, 24px);
  font-size: 0.9rem;
  color: rgba(242, 234, 213, 0.82);
}

/* ---------- Keycaps (signature detail) ---------- */

kbd { font-family: inherit; }

.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9em;
  height: 1.75em;
  padding: 0 0.5em;
  margin: 0 0.08em;
  border-radius: 0.42em;
  background: var(--key-fill);
  color: var(--key-text);
  border: 1px solid var(--key-border);
  box-shadow: 0 1px 0 var(--key-border);
  font-family: var(--font-head);
  font-size: 0.86em;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.08em;
  white-space: nowrap;
}
.key--big { font-size: 1.15em; min-width: 1.8em; }
.combo { display: inline-flex; gap: 0.2em; align-items: center; white-space: nowrap; font: inherit; }
.combo .plus { font-size: 0.8em; color: var(--muted); }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(40px, 6vw, 64px);
}
@media (min-width: 820px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 16px;
}
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .keys { color: var(--ink); font-size: 0.95rem; }

.sub-head { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 20px; }

/* ---------- Lists ---------- */

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 0.5em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.section--blue .ticks li::before { background: var(--on-blue); box-shadow: 0 0 0 4px rgba(251, 246, 233, 0.18); }
.ticks strong { font-family: var(--font-head); }

.facts {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts li {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}
.facts strong { display: block; font-family: var(--font-head); font-size: 1.08rem; }
.facts span { color: var(--muted); font-size: 0.97rem; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--on-blue);
  font-family: var(--font-head);
  font-weight: 700;
}

/* Shortcut sheet */
.shortcuts {
  margin: 0;
  display: grid;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shortcuts div {
  display: grid;
  grid-template-columns: minmax(118px, 38%) 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}
.shortcuts div:first-child { border-top: 0; }
.shortcuts dt { margin: 0; }
.shortcuts dd { margin: 0; color: var(--muted); font-size: 0.98rem; }

.big-key-line {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.5;
}

/* Who it's for */
.for-label {
  margin: 28px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.for-list { margin: 12px 0 0; }

/* Formats */
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 28px;
}
.formats li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
}

.statement {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px;
  max-width: 24ch;
}

.note {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-size: 0.98rem;
}
.note strong { color: inherit; }
.section--blue .note { color: var(--on-blue-muted); }

/* Videos */
.videos {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
@media (min-width: 760px) { .videos { grid-template-columns: 1fr 1fr; } }
.video-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px dashed var(--line);
  color: var(--muted);
}
.video-card .play {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--stage);
  color: var(--stage-detail);
}
.video-card strong { display: block; color: var(--ink); font-family: var(--font-head); }
a.video-card { border-style: solid; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
a.video-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: box-shadow 0.2s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  border-radius: var(--radius-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--accent-text);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p:last-child { margin: 0; }

/* Mailing list */
.signup {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 820px) { .signup { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.signup h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.signup p { color: var(--muted); }
.signup__form { position: relative; }
.signup__form > label:first-child { display: block; font-weight: 600; margin-bottom: 6px; }
.signup__row { display: flex; flex-wrap: wrap; gap: 10px; }
.signup__row input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.signup__row input::placeholder { color: var(--muted); opacity: 0.8; }
.signup__row button {
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.signup__row button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.signup__check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  font-size: 0.97rem;
  cursor: pointer;
}
.signup__check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.signup__fine { font-size: 0.86rem; margin: 14px 0 0; }

/* Final CTA */
.final__shot { margin-bottom: clamp(48px, 7vw, 80px); }
.final { text-align: center; }
.final .cta-row { margin-top: 28px; }
.final .req { color: var(--on-blue-muted); }

/* ---------- Placeholders the owner must fill (visible on purpose) ---------- */
.ph {
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px dashed currentColor;
  font-size: 0.92em;
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--tan);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px 40px;
}
.site-footer .brand { font-size: 1.1rem; }
.site-footer .brand img { width: 28px; height: 28px; }
.foot-tag { margin: 8px 0 0; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; list-style: none; margin: 0; padding: 0; font-weight: 600; }
.social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.social a:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.social svg { flex: none; }
.copyright { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.88rem; }

/* ---------- Simple pages (privacy, support, 404) ---------- */

.page-hero {
  padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 40px);
}
.page-hero .lede { max-width: 52ch; }
.prose { padding-bottom: clamp(72px, 10vw, 120px); }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--accent); }
.summary-box {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--paper-2);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.summary-box h2 { margin-top: 0; }
.summary-box p { margin: 0; font-size: 1.1rem; }
.owner-note { font-size: 0.9rem; color: var(--muted); margin-top: 2.5em; }

.notfound { text-align: center; padding: clamp(80px, 14vw, 160px) 0; }
.notfound img { width: 120px; height: auto; margin: 0 auto 28px; }
.notfound .lede { margin: 0 auto 28px; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .js-reveal .reveal.is-in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .store-badge:hover, .btn-quiet:hover, a.video-card:hover { transform: none; }
}
