/* Contact Extractor — landing styles.
   No build step, no external fonts: one stylesheet, system font stack,
   light/dark driven by tokens on :root and [data-theme]. */

/* ---------- tokens ---------- */
:root {
  /* Light palette is cool-tinted rather than pure white — flat #fff next to
     grey #f6f7f9 read as "unstyled", so surfaces carry a hint of the accent
     hue and the decorative layers below add depth. */
  --bg: #ffffff;
  --bg-alt: #eaf0fb;
  --surface: #ffffff;
  --surface-2: #e8eefa;
  --text: #000208;
  --frame-muted: #5a6478;
  --text-muted: #3a4459;
  --border: #b7c6de;
  --accent: #1d4ed8;
  --accent-strong: #1e3a8a;
  --accent-soft: rgba(29, 78, 216, 0.12);
  /* Secondary hue used only in gradients, never for text or borders. */
  --accent-2: #6d28d9;
  --ok: #15803d;
  --shadow-sm: 0 1px 2px rgba(5, 7, 15, 0.06), 0 2px 6px rgba(5, 7, 15, 0.06);
  --shadow-lg: 0 34px 64px -26px rgba(15, 32, 90, 0.42), 0 12px 26px -16px rgba(5, 7, 15, 0.22);

  /* Decorative layers, tokenised so the dark theme can flatten them. */
  --hero-mesh:
    radial-gradient(760px 420px at 6% -14%, rgba(29, 78, 216, 0.3), transparent 62%),
    radial-gradient(620px 380px at 94% 2%, rgba(109, 40, 217, 0.24), transparent 60%),
    radial-gradient(700px 400px at 55% 110%, rgba(14, 165, 233, 0.2), transparent 62%);
  --hero-grid: rgba(29, 78, 216, 0.12);
  --surface-grad: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  --alt-grad: linear-gradient(180deg, #eaf0fb 0%, #dfe8f9 100%);
  --btn-grad: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  --btn-grad-hover: linear-gradient(180deg, #1d4ed8 0%, #1e3a8a 100%);
  --btn-shadow: 0 12px 26px -10px rgba(29, 78, 216, 0.65);
  --chip-grad: linear-gradient(140deg, #2563eb 0%, #6d28d9 100%);
  --chip-fg: #ffffff;
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(29, 78, 216, 0.34), transparent 70%);
  --card-hover-shadow: 0 22px 44px -22px rgba(29, 78, 216, 0.55);

  /* Inverted band: one deep-navy section per page so the light theme has a
     real tonal jump instead of shades of white. */
  --invert-bg: linear-gradient(155deg, #04070f 0%, #0d1732 55%, #16307a 100%);
  --invert-text: #ffffff;
  --invert-muted: rgba(226, 234, 252, 0.82);
  --invert-border: rgba(148, 178, 255, 0.3);
  --invert-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.05) 100%);
  --invert-accent: #7fb0ff;
  --invert-mesh:
    radial-gradient(820px 460px at 6% -16%, rgba(37, 99, 235, 0.55), transparent 62%),
    radial-gradient(660px 400px at 96% 0%, rgba(124, 58, 237, 0.42), transparent 60%),
    radial-gradient(760px 430px at 52% 112%, rgba(14, 165, 233, 0.3), transparent 62%);
  --invert-grid: rgba(160, 190, 255, 0.12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shell: 1140px;
  --step: clamp(1rem, 0.9rem + 0.4vw, 1.125rem);
}

:root[data-theme='dark'],
:root[data-theme='auto'] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    color-scheme: dark;
    --bg: #0b0d12;
    --bg-alt: #0f131a;
    --surface: #141922;
    --surface-2: #1a2029;
    --text: #eef1f6;
    --frame-muted: #9aa4b6;
    --text-muted: #9aa4b6;
    --border: #232b37;
    --accent: #6ea0ff;
    --accent-strong: #8ab4ff;
    --accent-soft: rgba(110, 160, 255, 0.14);
    --ok: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.75), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --accent-2: #a78bfa;
  --hero-mesh:
    radial-gradient(760px 420px at 8% -12%, rgba(110, 160, 255, 0.16), transparent 62%),
    radial-gradient(620px 380px at 92% 4%, rgba(167, 139, 250, 0.12), transparent 60%),
    radial-gradient(700px 400px at 55% 108%, rgba(56, 189, 248, 0.08), transparent 62%);
  --hero-grid: rgba(148, 178, 255, 0.05);
  --surface-grad: linear-gradient(180deg, #161c26 0%, #131822 100%);
  --alt-grad: linear-gradient(180deg, #0f131a 0%, #0d1119 100%);
  --btn-grad: linear-gradient(180deg, #7fadff 0%, #6ea0ff 100%);
  --btn-grad-hover: linear-gradient(180deg, #93bcff 0%, #8ab4ff 100%);
  --btn-shadow: 0 8px 20px -10px rgba(110, 160, 255, 0.55);
  --chip-grad: linear-gradient(140deg, #6ea0ff 0%, #a78bfa 100%);
  --chip-fg: #08111f;
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(110, 160, 255, 0.18), transparent 70%);
  --card-hover-shadow: 0 18px 40px -24px rgba(110, 160, 255, 0.4);
  --invert-bg: linear-gradient(155deg, #090d14 0%, #0f1626 55%, #131d34 100%);
  --invert-text: #f7f9fc;
  --invert-muted: #9aa4b6;
  --invert-border: #273143;
  --invert-surface: linear-gradient(180deg, #171d28 0%, #141a24 100%);
  --invert-accent: #8ab4ff;
  --invert-mesh:
    radial-gradient(820px 460px at 6% -16%, rgba(110, 160, 255, 0.18), transparent 62%),
    radial-gradient(660px 400px at 96% 0%, rgba(167, 139, 250, 0.14), transparent 60%),
    radial-gradient(760px 430px at 52% 112%, rgba(56, 189, 248, 0.1), transparent 62%);
  --invert-grid: rgba(148, 178, 255, 0.07);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-alt: #0f131a;
  --surface: #141922;
  --surface-2: #1a2029;
  --text: #eef1f6;
  --frame-muted: #9aa4b6;
  --text-muted: #9aa4b6;
  --border: #232b37;
  --accent: #6ea0ff;
  --accent-strong: #8ab4ff;
  --accent-soft: rgba(110, 160, 255, 0.14);
  --ok: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, 0.75), 0 10px 24px -14px rgba(0, 0, 0, 0.6);
  --accent-2: #a78bfa;
  --hero-mesh:
    radial-gradient(760px 420px at 8% -12%, rgba(110, 160, 255, 0.16), transparent 62%),
    radial-gradient(620px 380px at 92% 4%, rgba(167, 139, 250, 0.12), transparent 60%),
    radial-gradient(700px 400px at 55% 108%, rgba(56, 189, 248, 0.08), transparent 62%);
  --hero-grid: rgba(148, 178, 255, 0.05);
  --surface-grad: linear-gradient(180deg, #161c26 0%, #131822 100%);
  --alt-grad: linear-gradient(180deg, #0f131a 0%, #0d1119 100%);
  --btn-grad: linear-gradient(180deg, #7fadff 0%, #6ea0ff 100%);
  --btn-grad-hover: linear-gradient(180deg, #93bcff 0%, #8ab4ff 100%);
  --btn-shadow: 0 8px 20px -10px rgba(110, 160, 255, 0.55);
  --chip-grad: linear-gradient(140deg, #6ea0ff 0%, #a78bfa 100%);
  --chip-fg: #08111f;
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(110, 160, 255, 0.18), transparent 70%);
  --card-hover-shadow: 0 18px 40px -24px rgba(110, 160, 255, 0.4);
  --invert-bg: linear-gradient(155deg, #090d14 0%, #0f1626 55%, #131d34 100%);
  --invert-text: #f7f9fc;
  --invert-muted: #9aa4b6;
  --invert-border: #273143;
  --invert-surface: linear-gradient(180deg, #171d28 0%, #141a24 100%);
  --invert-accent: #8ab4ff;
  --invert-mesh:
    radial-gradient(820px 460px at 6% -16%, rgba(110, 160, 255, 0.18), transparent 62%),
    radial-gradient(660px 400px at 96% 0%, rgba(167, 139, 250, 0.14), transparent 60%),
    radial-gradient(760px 430px at 52% 112%, rgba(56, 189, 248, 0.1), transparent 62%);
  --invert-grid: rgba(148, 178, 255, 0.07);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'Noto Sans', sans-serif;
  font-size: var(--step);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.028em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--text);
}

h1 {
  font-size: clamp(2.2rem, 1.5rem + 2.9vw, 3.75rem);
  font-weight: 780;
}

h2 {
  font-size: clamp(1.7rem, 1.25rem + 1.7vw, 2.5rem);
  font-weight: 740;
}

h3 {
  font-size: 1.125rem;
}

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

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

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

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  padding: 0.75rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.mark-body {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.6;
}

.mark-flap {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.mark-dot {
  fill: var(--accent);
}

.mark-check {
  fill: none;
  stroke: var(--bg);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 1.35rem;
  margin-inline-start: auto;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--text);
}

/* The external link reads as a different kind of destination than the
   in-page anchors next to it. */
.nav-external {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-inline-start: 1.1rem;
  border-inline-start: 1px solid var(--border);
}

.external-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle,
.icon-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
}

.theme-toggle:hover,
.icon-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.icon-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  grid-area: 1 / 1;
}

.icon-moon {
  display: none;
}

:root[data-theme='dark'] .icon-sun {
  display: none;
}

:root[data-theme='dark'] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .icon-sun {
    display: none;
  }
  :root[data-theme='auto'] .icon-moon {
    display: block;
  }
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.1rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 560;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  --btn-bg: var(--btn-grad);
  --btn-fg: #fff;
  border-color: transparent;
  box-shadow: var(--btn-shadow);
}

:root[data-theme='dark'] .btn-primary {
  --btn-fg: #08111f;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .btn-primary {
    --btn-fg: #08111f;
  }
}

.btn-primary:hover {
  --btn-bg: var(--btn-grad-hover);
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- hero ---------- */
/* The hero is an inverted band in both themes: a deep navy slab under a
   white page is the single biggest contrast jump available, and the light
   app screenshot reads better on it than on white-on-white. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3.5rem, 2rem + 7vw, 7rem) 0 clamp(3rem, 2rem + 5vw, 5.5rem);
  background: var(--invert-mesh), var(--invert-bg);
  border-bottom: 1px solid var(--invert-border);
  --text: var(--invert-text);
  --text-muted: var(--invert-muted);
  --border: var(--invert-border);
  --surface: transparent;
  --surface-grad: var(--invert-surface);
  --accent: var(--invert-accent);
  --hero-grid: var(--invert-grid);
  color: var(--invert-text);
}

.hero h1 {
  color: var(--invert-text);
}

/* Blueprint grid, faded out towards the bottom so it never competes with
   the copy sitting on top of it. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--hero-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 75%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface-grad);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem);
  color: var(--text-muted);
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1.5rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-facts strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 720;
  letter-spacing: -0.02em;
  color: var(--invert-text);
}

.hero-shot {
  margin: 0;
  position: relative;
}

/* Colour glow under the app window, so the screenshot doesn't look pasted
   onto the page. */
.hero-shot::before {
  content: '';
  position: absolute;
  inset: -12% -8% -18%;
  z-index: -1;
  background: var(--glow);
  filter: blur(6px);
}

.window-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.tl.red {
  background: #ff5f57;
}
.tl.yellow {
  background: #febc2e;
}
.tl.green {
  background: #28c840;
}

.window-title {
  margin-inline: auto;
  font-size: 0.8rem;
  /* Not --text-muted: the title bar keeps the page-level surface colour even
     inside the inverted hero, so it needs the page-level muted ink too. */
  color: var(--frame-muted);
  padding-inline-end: 33px;
}

/* ---------- sections ---------- */
.section {
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0;
}

.section-alt {
  background: var(--alt-grad);
  border-block: 1px solid var(--border);
}

/* Token overrides only — every component inside already reads these
   variables, so the whole band flips to the dark palette without a single
   component-specific rule. */
.section-invert {
  background: var(--invert-bg);
  --text: var(--invert-text);
  --text-muted: var(--invert-muted);
  --border: var(--invert-border);
  --surface: transparent;
  --surface-grad: var(--invert-surface);
  --shadow-sm: none;
  color: var(--invert-text);
  border-block: 1px solid var(--invert-border);
}

.section-invert h2,
.section-invert h3 {
  color: var(--invert-text);
}

/* Short gradient rule above every section heading — cheap structure, and it
   keeps the accent present on the white sections too. */
.section h2::before,
.cta-inner h2::before {
  content: '';
  display: block;
  width: 52px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-lede {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 2.25rem;
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  position: relative;
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

/* Accent hairline along the top edge, revealed on hover. */
.card::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--card-hover-shadow);
}

.card:hover::after {
  opacity: 1;
}

.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--chip-grad);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  box-shadow: var(--btn-shadow);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--chip-fg);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.15rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}

.step {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 650;
  margin-bottom: 0.9rem;
  box-shadow: var(--btn-shadow);
}

:root[data-theme='dark'] .step-num {
  color: #08111f;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .step-num {
    color: #08111f;
  }
}

.step p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- screenshots ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tab {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--text);
}

.tab[aria-selected='true'] {
  background: var(--btn-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--btn-shadow);
}

:root[data-theme='dark'] .tab[aria-selected='true'] {
  color: #08111f;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .tab[aria-selected='true'] {
    color: #08111f;
  }
}

.shot-stage img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}

.tabpanel[hidden] {
  display: none;
}

.shot-caption {
  margin: 0.9rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- downloads ---------- */
.downloads {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.dl-card {
  background: var(--surface-grad);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dl-card.is-current {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--card-hover-shadow);
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.15rem;
}

.dl-head h3 {
  margin: 0;
}

.os-icon {
  width: 30px;
  height: 30px;
  flex: none;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.4;
  stroke-linejoin: round;
}

.dl-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.dl-links {
  display: grid;
  gap: 0.6rem;
}

.dl-links .btn {
  justify-content: space-between;
  width: 100%;
}

.size {
  font-weight: 450;
  font-size: 0.82rem;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.dl-note {
  margin: 1rem 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.checksums {
  margin-top: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem 1.25rem;
}

.checksums summary {
  cursor: pointer;
  font-weight: 560;
}

.checksums-why {
  max-width: 72ch;
  margin-top: 0.9rem;
  margin-bottom: 0;
}

.checksums pre {
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
}

.checksums code {
  background: none;
  border: 0;
  padding: 0;
}

.req {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ---------- privacy ---------- */
.privacy-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  align-items: center;
}

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

.checklist li {
  position: relative;
  padding-inline-start: 1.9rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.36em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.checklist li::after {
  content: '';
  position: absolute;
  inset-inline-start: 5px;
  top: 0.62em;
  width: 6px;
  height: 3px;
  border-inline-start: 1.7px solid var(--accent);
  border-block-end: 1.7px solid var(--accent);
  transform: rotate(-45deg);
}

.privacy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.flow {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
}

.flow-node {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.flow-node.accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  font-weight: 560;
}

.flow-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.flow-note {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- faq ---------- */
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 80ch;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 560;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: '+';
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 0.85rem 0 0.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- cta + footer ---------- */
.cta-band {
  padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0;
  background: var(--invert-mesh), var(--invert-bg);
  border-top: 1px solid var(--invert-border);
  --text: var(--invert-text);
  --text-muted: var(--invert-muted);
  --border: var(--invert-border);
  --surface-grad: var(--invert-surface);
  color: var(--invert-text);
}

.cta-band h2 {
  color: var(--invert-text);
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-grad);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-sm);
}

.cta-inner h2 {
  margin-bottom: 0.25rem;
}

.cta-inner p {
  margin: 0;
  color: var(--text-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-inner a {
  color: inherit;
}

.footer-inner a:hover {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.footer-inner p {
  margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner,
  .privacy-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero-facts {
    gap: 1.25rem;
  }

  /* Brand + GitHub + theme toggle + Download don't fit at 390px and pushed
     the whole page into horizontal scroll; GitHub stays reachable in the
     footer. */
  .icon-link {
    display: none;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .btn-lg {
    width: 100%;
  }

  .hero-cta,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
}

/* ---------- motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .cta-band,
  .theme-toggle {
    display: none;
  }
}
