/* StackPad website. Plain CSS, system fonts (the same ones the app uses),
   no third-party requests. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f5f6f8;
  --surface-raised: #ffffff;
  --fg: #151821;
  --muted: #555c6b;
  --border: #e2e5eb;
  --accent: #1e3a8a;
  --accent-hover: #172f73;
  --accent-soft: #e7edfc;
  --accent-text: #1e3a8a;
  --on-accent: #ffffff;
  --band-bg: #1e3a8a;
  --band-fg: #ffffff;
  --band-muted: #d6e0ff;
  --shadow: 0 1px 2px rgba(20, 24, 40, 0.06), 0 12px 32px rgba(20, 24, 40, 0.1);
  --shot-shadow: 0 2px 4px rgba(20, 24, 40, 0.06), 0 24px 60px rgba(30, 58, 138, 0.18);

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Ubuntu", "Cantarell", "Noto Sans", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Ubuntu", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Ubuntu Mono", "DejaVu Sans Mono", monospace;

  --radius: 10px;
  --radius-small: 7px;
  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-pad: clamp(64px, 9vw, 112px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141519;
    --surface: #1b1d23;
    --surface-raised: #22252c;
    --fg: #ececf0;
    --muted: #a4a9b6;
    --border: #2e323b;
    --accent: #3b5bdb;
    --accent-hover: #4c6ef5;
    --accent-soft: #1c2547;
    --accent-text: #9db1ff;
    --band-bg: #18213f;
    --band-fg: #ffffff;
    --band-muted: #c3cff7;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shot-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  word-break: break-word;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.15);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.28);
}

.btn-large {
  min-height: 54px;
  padding: 14px 28px;
  font-size: 1.08rem;
}

.btn-small {
  min-height: 38px;
  padding: 7px 16px;
  font-size: 0.92rem;
  background: var(--accent);
  color: var(--on-accent);
}

.btn-small:hover {
  background: var(--accent-hover);
}

.btn-quiet {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.btn-quiet:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

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

.site-header {
  transition: box-shadow 240ms var(--ease);
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--fg);
  background: var(--surface);
}

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

  .header-inner .btn-small {
    margin-left: auto;
  }
}

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

.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

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

.lede {
  margin-top: 20px;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
}

.cta {
  margin-top: 32px;
}

.cta-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-alt {
  margin-top: 4px;
  font-size: 0.9rem;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--fg);
  font-size: 0.95rem;
}

.promises li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.promises .icon {
  color: #2b8a3e;
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.6;
}

@media (prefers-color-scheme: dark) {
  .promises .icon {
    color: #69db7c;
  }
}

.hero-shot {
  margin: 0;
}

.hero-shot img,
.wide-shot img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shot-shadow);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    max-width: 640px;
  }
}

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

.section {
  padding: var(--section-pad) 0;
}

.section-tint {
  background: var(--surface);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.section-head > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- Tabs demo ---------- */

.compare-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.demo {
  margin: 0;
}

.demo figcaption {
  margin-top: 16px;
  color: var(--muted);
}

.demo figcaption strong {
  color: var(--fg);
}

.demo figcaption .link-button {
  display: inline;
  margin-left: 4px;
}

.demo-window {
  position: relative;
  height: 280px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.demo-window::before {
  content: "";
  display: block;
  height: 26px;
  background: var(--band-bg);
}

.demo-lines {
  display: grid;
  gap: 14px;
  padding: 28px 28px 0;
}

.demo-lines i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.demo-lines i:nth-child(1) {
  width: 55%;
}

.demo-lines i:nth-child(2) {
  width: 82%;
}

.demo-lines i:nth-child(3) {
  width: 70%;
}

.demo-lines i:nth-child(4) {
  width: 40%;
}

.strip {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.strip span {
  flex: 1 1 0;
  min-width: 0;
  padding: 9px 6px;
  border-right: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow: hidden;
}

.strip span:nth-child(2) {
  background: var(--surface-raised);
  color: var(--fg);
}

.demo-rail .demo-window {
  padding-left: 52px;
}

.demo-rail .demo-window::before {
  margin-left: -52px;
}

.rail {
  position: absolute;
  top: 26px;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 52px;
  padding: 10px 7px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  background: var(--surface);
  transition:
    width 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.demo-rail .demo-window:hover .rail,
.rail.is-open {
  width: 210px;
  box-shadow: 10px 0 24px rgba(20, 24, 40, 0.12);
}

.rail-group {
  height: 0;
  margin: 4px 4px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: height 220ms var(--ease);
}

.demo-rail .demo-window:hover .rail-group,
.rail.is-open .rail-group {
  height: 18px;
  border-top-color: transparent;
}

.rail-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 4px;
  border-radius: 6px;
  white-space: nowrap;
}

.rail-tab.is-active {
  background: var(--accent-soft);
}

.rail-tab b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--c);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 700;
}

.rail-tab em {
  color: var(--fg);
  font-size: 0.85rem;
  font-style: normal;
  opacity: 0;
  transition: opacity 180ms var(--ease);
}

.rail-tab.is-active em {
  color: var(--accent-text);
  font-weight: 600;
}

.demo-rail .demo-window:hover .rail-tab em,
.rail.is-open .rail-tab em {
  opacity: 1;
}

@media (max-width: 760px) {
  .compare-demo {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-window {
    height: 240px;
  }
}

/* ---------- Never lose a note ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.checklist {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 20px 0 20px 44px;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--accent);
}

.checklist p {
  margin-top: 6px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split .section-head {
    margin-bottom: 8px;
  }
}

/* ---------- Features ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.features p {
  margin-top: 8px;
  color: var(--muted);
}

.icon-feature {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  padding: 9px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  stroke-width: 1.8;
}

.wide-shot {
  margin: clamp(48px, 6vw, 72px) 0 0;
}

.wide-shot figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Compare table ---------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.compare-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.compare-table thead .col-us {
  color: var(--accent-text);
}

.compare-table tbody th {
  width: 22%;
  font-weight: 600;
}

.compare-table td {
  color: var(--muted);
}

.compare-table td.col-us {
  color: var(--fg);
  background: color-mix(in srgb, var(--accent-soft) 55%, transparent);
}

@media (max-width: 640px) {
  .table-scroll {
    overflow: visible;
    border: 0;
    background: none;
  }

  .compare-table {
    min-width: 0;
  }

  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: auto;
  }

  .compare-table tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-raised);
  }

  .compare-table tbody th {
    width: auto;
    padding: 14px 16px 6px;
    border: 0;
  }

  .compare-table td {
    padding: 8px 16px 12px;
    border: 0;
  }

  .compare-table tbody th {
    order: -2;
  }

  .compare-table td.col-us {
    order: -1;
  }

  .compare-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .compare-table td.col-us::before {
    color: var(--accent-text);
  }
}

/* ---------- Privacy band ---------- */

.privacy-band {
  background: var(--band-bg);
  color: var(--band-fg);
}

.privacy-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
  max-width: 900px;
}

.privacy-icon {
  width: 56px;
  height: 56px;
  stroke-width: 1.6;
  color: var(--band-muted);
}

.privacy-band p {
  margin-top: 14px;
  color: var(--band-muted);
  font-size: 1.08rem;
}

.privacy-band a {
  color: #ffffff;
  font-weight: 600;
}

@media (max-width: 560px) {
  .privacy-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Shortcuts ---------- */

.shortcut-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 5vw, 64px);
}

.shortcuts {
  margin: 0;
}

.shortcuts div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.shortcuts dt {
  color: var(--fg);
}

.shortcuts dd {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

kbd {
  display: inline-block;
  min-width: 26px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 760px) {
  .shortcut-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- Downloads ---------- */

#download .section-head {
  margin-inline: auto;
  text-align: center;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 28px);
  max-width: 860px;
  margin-inline: auto;
}

.download-card {
  transition:
    transform 240ms var(--ease),
    box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
}

.download-card.is-detected {
  border-color: var(--accent-text);
  box-shadow:
    0 0 0 1px var(--accent-text),
    var(--shadow);
}

.platform-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  color: var(--accent-text);
  stroke-width: 1.6;
}

.download-sub {
  margin: 4px 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.download-card .btn {
  width: 100%;
}

.download-meta {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.download-meta:last-child {
  margin-bottom: 0;
}

/* ---------- Microsoft Store ---------- */

.store-mark {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* The big download buttons show the Store mark instead of the arrow when they point at the Store. */
[data-primary-download] .store-mark,
[data-primary-download].is-store .icon-download {
  display: none;
}

[data-primary-download].is-store .store-mark {
  display: block;
}

.btn-store {
  background: #000000;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 2px rgba(20, 24, 40, 0.15);
}

.btn-store:hover {
  background: #23262e;
  box-shadow: 0 6px 18px rgba(20, 24, 40, 0.28);
}

.next-steps {
  max-width: 860px;
  margin: 28px auto 0;
  padding: 24px 28px;
  border: 1px solid var(--accent-text);
  border-radius: var(--radius);
  background: var(--surface-raised);
  animation: rise 260ms var(--ease);
}

.next-steps:focus {
  outline: none;
}

.next-steps ol {
  margin: 14px 0 0;
  padding-left: 1.3em;
}

.next-steps li + li {
  margin-top: 10px;
}

.next-steps li {
  color: var(--muted);
}

.next-steps strong,
.next-steps em {
  color: var(--fg);
}

.download-footnote {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 680px) {
  .downloads {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq details:first-child {
  border-top: 1px solid var(--border);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-top: -2px;
}

.faq details p {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 62ch;
}

@media (max-width: 900px) {
  .faq-wrap {
    grid-template-columns: 1fr;
  }
}

/* ---------- Final CTA ---------- */

.final-cta {
  padding: var(--section-pad) 0;
  background: linear-gradient(0deg, var(--accent-soft), transparent);
  text-align: center;
}

.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.final-inner p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 12px;
}

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

.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--fg);
}

/* ---------- Plain pages (privacy) ---------- */

.doc {
  max-width: 760px;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: var(--section-pad);
}

.doc h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.doc h2 {
  margin-top: 48px;
  font-size: 1.45rem;
}

.doc p,
.doc ul {
  margin-top: 14px;
}

.doc li + li {
  margin-top: 6px;
}

.doc .updated {
  margin-top: 10px;
  color: var(--muted);
}

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

/* Header gains a soft shadow once the page scrolls. */
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -12px rgb(15 23 42 / 0.25);
}

/* Hover lifts, only on devices that can hover. */
@media (hover: hover) {
  .download-card:hover {
    transform: translateY(-4px);
    box-shadow:
      0 18px 40px -18px rgb(15 23 42 / 0.35),
      var(--shadow);
  }

  .download-card.is-detected:hover {
    box-shadow:
      0 0 0 1px var(--accent-text),
      0 18px 40px -18px rgb(15 23 42 / 0.35);
  }

  .icon-feature {
    transition: transform 260ms var(--ease);
  }

  .features li:hover .icon-feature {
    transform: translateY(-3px) rotate(-6deg);
  }

  .btn-primary .icon {
    transition: transform 220ms var(--ease);
  }

  .btn-primary:hover .icon {
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero: copy and screenshot settle in on load. */
  .hero-copy > * {
    animation: rise 700ms var(--ease) both;
  }

  .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .hero-copy > :nth-child(4) { animation-delay: 240ms; }
  .hero-copy > :nth-child(5) { animation-delay: 320ms; }

  .hero-shot {
    animation: settle 900ms 200ms var(--ease) both;
  }

  /* Sections: content rises into place as it scrolls into view (site.js). */
  [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 600ms var(--ease),
      transform 700ms var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }

  [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  /* FAQ answers ease in when opened. */
  .faq details[open] p {
    animation: rise 320ms var(--ease);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
