/* Passyble site. One stylesheet, no build step, no external requests.
   Light theme only for now. Every color is a variable in :root, so a dark theme can come back
   later as one more block of overrides (see the README).
   Palette: a calm blue scale plus neutrals, no gradients.
     ink     #0F1B33  text
     primary #2563EB  brand blue: buttons, accents, the key in the logo; #1D4ED8 for links and hover
     navy    #13254A  the one dark block (security)
     tint    #EDF2FD  pale blue surfaces
     greys   #FFFFFF background, #F6F8FB / #F4F6F9 surfaces, #E3E8EF card borders, #DDE2EA dividers,
             #8590A2 control borders, #5A6474 secondary text
   Every text pairing meets WCAG AA (4.5:1); the README lists the measured ratios.
   Fonts: Bricolage Grotesque (headings) and Space Grotesk (text), self-hosted, SIL OFL 1.1. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/BricolageGrotesque-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --surface: #F4F6F9;
  --surface-2: #F6F8FB;
  --tint: #EDF2FD;
  --fg: #0F1B33;
  --muted: #5A6474;
  --line: #DDE2EA;
  --card-line: #E3E8EF;
  --card-line-hover: #C9D7F5;
  --control: #8590A2;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --on-primary: #FFFFFF;
  --link: #1D4ED8;
  --tint-fg: #1E3A8A;
  --navy: #13254A;
  --navy-fg: #FFFFFF;
  --navy-muted: #B9C5DB;
  --navy-accent: #93B7FF;
  --navy-line: #34476E;
  --lift: 0 12px 28px -14px rgba(15, 27, 51, 0.22);

  --display: "Bricolage Grotesque", "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --r: 10px;
  --r-lg: 16px;
  --wide: 76rem;
  --gutter: 16px;
  --bar-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 em, h2 em { color: var(--primary); font-style: normal; }

p { margin: 0 0 1rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }

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

::selection { background: var(--tint); color: var(--fg); }

.mono { font-family: var(--mono); font-size: 0.92em; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

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

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 52rem; }
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 30;
  background: var(--fg);
  color: var(--bg);
  padding: 0.6rem 1rem;
  border-radius: var(--r);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: var(--bg); }

/* Labels, buttons, links */

.label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-hover);
  margin: 0 0 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--control);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}
.btn:hover { color: var(--fg); background: var(--surface); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn.small { min-height: 2.5rem; padding: 0.45rem 0.95rem; font-size: 0.95rem; }
.btn .ico { width: 1.1em; height: 1.1em; }

.more { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.more:hover { text-decoration: underline; }
.more .arrow { transition: transform 0.2s var(--ease); }
.more:hover .arrow { transform: translateX(3px); }
.center-more { text-align: center; margin: 2.5rem 0 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--tint);
  color: var(--tint-fg);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.status.big { font-size: 1rem; padding: 0.4rem 0.95rem; }

/* Header */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1rem; min-height: var(--bar-h); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--fg); text-decoration: none; }
.nav-main { display: none; }
.nav-main ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.nav-main a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-main a:hover { background: var(--surface); color: var(--fg); }
.nav-main a[aria-current] { background: var(--tint); color: var(--tint-fg); font-weight: 600; }
.bar-end { display: flex; align-items: center; gap: 0.5rem; }
.gh {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.gh:hover { background: var(--surface); color: var(--fg); border-color: var(--control); }
.gh .ico { width: 1.2rem; height: 1.2rem; }

.menu { position: static; }
.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--surface); }
.menu .menu-close { display: none; }
.menu[open] .menu-close { display: block; }
.menu[open] .menu-open { display: none; }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(15, 27, 51, 0.25);
  padding: 0.25rem var(--gutter) 1.25rem;
  max-height: calc(100vh - var(--bar-h));
  overflow-y: auto;
}
.menu-panel ul { list-style: none; margin: 0; padding: 0; }
.menu-panel li a {
  display: flex;
  align-items: center;
  min-height: 3.25rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: 1.15rem;
  font-weight: 500;
  text-decoration: none;
}
.menu-panel li a[aria-current] { color: var(--primary-hover); font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); padding-left: 0.85rem; }
.menu-gh {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}
@media (min-width: 1080px) {
  .nav-main { display: block; margin-right: 0.5rem; }
  .gh { display: inline-flex; }
  .menu { display: none; }
}
/* Logo and wordmark together, a size up; the menu button is the icon alone. */
/* Wordmark: "Pass", the blue key turned into the "y" (ring hangs below the line like the
   y's tail, teeth on top), then "ble". The link is labelled "Passyble". */
.brand { display: inline-block; font-size: 1.75rem; white-space: nowrap; }
.brand-rest { color: var(--fg); }
.brand-y { display: inline-block; height: 1.15em; width: auto; vertical-align: -0.42em; margin: 0 -0.02em 0 0.01em; }
.menu-label { display: none; }
.menu summary { padding: 0; width: 2.75rem; min-height: 2.75rem; justify-content: center; }
.menu summary .ico { width: 1.5rem; height: 1.5rem; }
/* Phones and tablets: no Download button in the bar (it's in the menu and on the page). */
@media (max-width: 1079px) {
  .header-cta { display: none; }
}

/* Footer */

footer.site { border-top: 1px solid var(--line); background: var(--surface-2); margin-top: 0; }
.foot { display: grid; gap: 2.5rem; padding-block: 3.5rem 2rem; }
.foot-brand p { color: var(--muted); max-width: 22rem; margin: 1rem 0; font-size: 0.95rem; }
.foot-gh { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--fg); font-weight: 600; text-decoration: none; }
.foot-gh:hover { color: var(--primary-hover); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
.foot-cols h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot-cols a { color: var(--fg); text-decoration: none; }
.foot-cols a:hover { color: var(--primary-hover); text-decoration: underline; }
.foot-bottom { grid-column: 1 / -1; margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
@media (min-width: 900px) {
  .foot { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 3rem; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}

/* Hero: centered text, then the product scene (Proton Pass-like pattern) */

.hero-c { padding-block: 3.5rem 3.5rem; text-align: center; }
.hero-text { display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.6rem; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
a.badge:hover { border-color: var(--card-line-hover); background: var(--tint); color: var(--fg); }
.badge .ico { width: 1.05rem; height: 1.05rem; color: var(--primary-hover); }
.hero-c h1 {
  font-size: clamp(2.6rem, 0.9rem + 6.6vw, 6.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 13ch;
  margin: 0 auto 1.25rem;
}
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }
.hero-c .lead { margin: 0 auto 2rem; max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-c .cta { justify-content: center; align-items: center; gap: 0.75rem 1.75rem; }
.btn.big { min-height: 3.25rem; padding: 0.8rem 1.7rem; font-size: 1.05rem; border-radius: 12px; }
.works-on { list-style: none; margin: 2.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.6rem; color: var(--muted); font-size: 0.95rem; }
.works-on li { display: inline-flex; align-items: center; gap: 0.45rem; }
.works-on .ico { width: 1.1rem; height: 1.1rem; }
@media (min-width: 1000px) { .hero-c { padding-block: 5rem 4.5rem; } }

/* The scene. Everything inside is sized in em, and the stage's font-size follows its width (cqw), so
   the whole picture scales as one. Final state is the default; assets/hero.js plays the story. */
.stage {
  --shadow: 0 1.6em 3.2em -1.6em rgba(15, 27, 51, 0.28);
  position: relative;
  margin-top: 3.25rem;
  aspect-ratio: 16 / 9.2;
  border-radius: 28px;
  background: var(--tint);
  overflow: hidden;
  container-type: inline-size;
  font-size: 1cqw;
  line-height: 1.3;
  text-align: left;
  color: var(--fg);
}
.stage img { display: block; max-width: none; }
.s-window {
  position: absolute; left: 15%; top: 7%; width: 60%;
  border: 1px solid var(--card-line); border-radius: 1em; overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow);
}
.s-window > img { width: 100%; height: auto; }
.s-bar { display: flex; align-items: center; gap: 0.6em; height: 2.6em; padding: 0 1.1em; font-size: 1.05em; font-weight: 600; border-bottom: 1px solid var(--line); }
.s-bar img { width: 1.25em; height: 1.25em; }
.s-ctl { margin-left: auto; display: flex; gap: 1.5em; }
.s-ctl i { width: 0.9em; height: 0.9em; border: 0.12em solid var(--control); border-radius: 0.15em; }
.s-ctl i:first-child { height: 0; border-width: 0.12em 0 0; margin-top: 0.45em; border-radius: 0; }
.s-phone {
  position: absolute; right: 6%; top: 12%; width: 17%;
  border: 0.55em solid var(--fg); border-radius: 2.2em; overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow);
}
.s-phone img { width: 100%; height: auto; }

.s-signin {
  position: absolute; left: 4%; top: 34%; width: 27%;
  padding: 1.4em 1.5em 1.5em;
  border: 1px solid var(--card-line); border-radius: 1.2em;
  background: var(--bg); box-shadow: var(--shadow);
}
.s-site { display: flex; align-items: center; gap: 0.55em; font-weight: 700; font-size: 1.1em; margin-bottom: 0.8em; }
.s-site-logo { width: 1.4em; height: 1.4em; border-radius: 0.4em; background: var(--navy); }
.s-title { font-family: var(--display); font-weight: 700; font-size: 1.65em; letter-spacing: -0.02em; margin-bottom: 0.7em; }
.s-field {
  position: relative; display: flex; align-items: center;
  height: 2.9em; padding: 0 0.9em; margin-bottom: 0.8em;
  border: 1px solid var(--control); border-radius: 0.6em;
  font-size: 1.05em; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.s-ph { position: absolute; left: 0.9em; color: var(--muted); opacity: 0; transition: opacity 0.2s ease; }
.s-val { transition: opacity 0.25s ease; white-space: nowrap; }
.s-caret { position: absolute; left: 0.9em; width: 0.1em; height: 1.3em; background: var(--fg); opacity: 0; }
.s-key { position: absolute; right: 0.7em; width: 1.25em; height: 1.25em; border-radius: 0.3em; }
.s-dots { display: flex; gap: 0.35em; }
.s-dots i { width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--fg); transition: opacity 0.15s ease, transform 0.15s ease; }
.s-btn { display: grid; place-items: center; height: 2.9em; border-radius: 0.6em; background: var(--primary); color: var(--on-primary); font-weight: 600; transition: transform 0.15s ease; }
.s-menu {
  position: absolute; left: 1.5em; right: 1.5em; top: 10.3em; z-index: 2;
  padding: 0.5em;
  border: 1px solid var(--card-line); border-radius: 0.8em;
  background: var(--bg); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-0.4em) scale(0.98); transform-origin: top center;
  transition: opacity 0.25s ease, transform 0.3s var(--ease);
}
.s-menu-head { display: flex; align-items: center; gap: 0.45em; padding: 0.2em 0.4em 0.45em; font-size: 0.85em; color: var(--muted); }
.s-menu-head img { width: 1.1em; height: 1.1em; border-radius: 0.25em; }
.s-item { display: flex; align-items: center; gap: 0.6em; padding: 0.5em; border-radius: 0.5em; font-size: 0.95em; }
.s-item.on { background: var(--tint); }
.s-item b { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--tint); color: var(--tint-fg); font-size: 0.85em; }
.s-item.on b { background: var(--bg); }
.s-item small { display: block; color: var(--muted); font-size: 0.85em; }
.s-item em { margin-left: auto; padding: 0.1em 0.45em; border-radius: 0.4em; background: var(--bg); color: var(--tint-fg); font-style: normal; font-size: 0.75em; font-weight: 600; }

.s-toast {
  position: absolute; left: 5%; top: 23%;
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.75em 1.25em; border-radius: 999px;
  background: var(--navy); color: var(--navy-fg); font-size: 1.1em; font-weight: 600;
  box-shadow: var(--shadow);
  transition: opacity 0.35s ease, transform 0.4s var(--ease);
}
.s-toast .ico { width: 1.3em; height: 1.3em; color: var(--navy-accent); }

.s-code {
  position: absolute; right: 18.5%; bottom: 8%;
  display: flex; align-items: center; gap: 0.9em;
  padding: 0.95em 1.3em;
  border: 1px solid var(--card-line); border-radius: 1.2em;
  background: var(--bg); box-shadow: var(--shadow);
}
.s-code small { display: block; color: var(--muted); font-size: 0.9em; margin-bottom: 0.1em; }
.s-ring { width: 3.2em; height: 3.2em; transform: rotate(-90deg); }
.s-ring circle { fill: none; stroke-width: 4; }
.s-ring .track { stroke: var(--tint); }
.s-ring .arc { stroke: var(--primary); stroke-linecap: round; stroke-dasharray: 94.25; stroke-dashoffset: 34; }
.s-digits { display: flex; font-family: var(--mono); font-size: 2em; font-weight: 600; }
.s-digits .d { display: inline-block; height: 1.2em; overflow: hidden; }
.s-digits .col { display: flex; flex-direction: column; transform: translateY(calc(var(--n) * -1.2em)); transition: transform 0.7s var(--ease); }
.s-digits b { height: 1.2em; line-height: 1.2em; font-weight: 600; }
.s-digits .gap { width: 0.4em; }

.s-bio {
  position: absolute; right: 8.5%; top: 58%;
  display: flex; align-items: center; gap: 0.5em;
  padding: 0.6em 1em 0.6em 0.7em; border-radius: 999px;
  border: 1px solid var(--card-line); background: var(--bg); box-shadow: var(--shadow);
  font-weight: 600; transition: opacity 0.3s ease, transform 0.35s var(--ease);
}
.s-bio .ico { width: 1.5em; height: 1.5em; color: var(--primary); }
.s-bio::before {
  content: ""; position: absolute; left: 0.35em; top: 50%; width: 2.2em; height: 2.2em; margin-top: -1.1em;
  border-radius: 50%; border: 0.15em solid var(--primary); opacity: 0;
}

.s-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 0.45em;
  padding: 0.55em 0.95em; border-radius: 999px;
  border: 1px solid var(--card-line); background: var(--bg); box-shadow: 0 0.8em 1.6em -1em rgba(15, 27, 51, 0.3);
  font-weight: 600;
}
.s-chip .ico { width: 1.2em; height: 1.2em; color: var(--primary); }
.s-chip.c1 { left: 63%; top: 3.5%; }
.s-chip.c2 { left: 3%; top: 10%; }
.s-chip.c3 { left: 33%; top: 86%; }

/* Story states, set by assets/hero.js while it plays (.play, then .s1 to .s5). */
.play .s-val { opacity: 0; }
.play .s-ph { opacity: 1; }
.play .s-dots i { opacity: 0; transform: scale(0.4); }
.play .s-dots i.on { opacity: 1; transform: none; }
.play .s-toast { opacity: 0; transform: translateY(0.8em); }
.play .s-bio { opacity: 0; transform: scale(0.92); }
.s1 .s-email { border-color: var(--primary); box-shadow: 0 0 0 0.2em var(--tint); }
.s1 .s-caret { animation: blink 1s steps(1) infinite; }
.s1 .s-menu { opacity: 1; transform: none; }
.s2 .s-val { opacity: 1; }
.s2 .s-ph { opacity: 0; }
.s3 .s-btn { transform: scale(0.96); }
.s4 .s-btn { transform: none; }
.s4 .s-toast { opacity: 1; transform: none; }
.s5 .s-bio { opacity: 1; transform: none; }
.s5 .s-bio::before { animation: pulse 1.2s var(--ease) 2; }
.ring .s-ring .arc { animation: ring 9s linear both; }
.paused, .paused * { animation-play-state: paused !important; }
@keyframes blink { 50% { opacity: 1; } }
@keyframes pulse { from { opacity: 0.8; transform: scale(0.8); } to { opacity: 0; transform: scale(1.7); } }
@keyframes ring { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 94.25; } }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-0.7em); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes stage-in { from { opacity: 0; transform: translateY(28px) scale(0.985); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.55s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: 60ms; }
  .hero-text > :nth-child(3) { animation-delay: 120ms; }
  .hero-text > :nth-child(4) { animation-delay: 180ms; }
  .hero-text > :nth-child(5) { animation-delay: 240ms; }
  .stage { animation: stage-in 0.8s var(--ease) 0.25s both; }
  .s-chip { animation: drift 3.2s ease-in-out infinite alternate; }
  .s-chip.c2 { animation-delay: -1.1s; }
  .s-chip.c3 { animation-delay: -2.2s; }
}

@media (max-width: 700px) {
  .stage { aspect-ratio: 1 / 1.12; font-size: 1.9cqw; border-radius: 18px; margin-top: 2.5rem; }
  .s-window { left: 4%; top: 4%; width: 92%; }
  .s-phone { right: 4%; top: 41%; width: 29%; border-width: 0.4em; border-radius: 1.6em; }
  .s-signin { left: 4%; top: 44%; width: 62%; }
  .s-toast { left: 4%; top: 36%; }
  .s-code { right: 3%; bottom: 3%; }
  .s-bio { right: 5%; top: 33%; }
  .s-chip { display: none; }
}

/* Generator widget */

.gen-section .gen-wrap { max-width: 34rem; }
.gen {
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--lift);
}
.gen-bar { padding: 1.1rem 1.25rem 0; }
.gen-bar h2, .gen-bar h3 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--muted);
}
.gen-body { margin: 0; padding: 0.85rem 1.25rem 1.25rem; border: 0; min-width: 0; }
.gen-body:disabled :is(.seg, .gen-actions, .gen-row, .checks) { opacity: 0.6; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--surface); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span {
  display: block;
  padding: 0.45rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.seg input:checked + span { background: var(--bg); border-color: var(--line); color: var(--fg); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.gen-out { margin-top: 1rem; }
.pw {
  display: block;
  min-height: 4.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r);
  background: var(--tint);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 1.2rem;
  line-height: 1.45;
  word-break: break-all;
}
@media (prefers-reduced-motion: no-preference) {
  .pw.flash { animation: flash 0.3s var(--ease); }
}
@keyframes flash { from { opacity: 0.35; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.gen-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.75rem; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 1.1rem; }
.meter i { height: 6px; border-radius: 3px; background: var(--line); transition: background-color 0.25s ease; }
.meter[data-level="4"] i,
.meter[data-level="3"] i:nth-child(-n+4),
.meter[data-level="2"] i:nth-child(-n+3) { background: var(--primary); }
.meter[data-level="1"] i:nth-child(-n+2),
.meter[data-level="0"] i:nth-child(1) { background: var(--control); }
.gen-strength { margin: 0.45rem 0 0; font-size: 0.95rem; font-weight: 600; }
.gen-row { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.25rem 1rem; margin-top: 1.1rem; }
.gen-row label { font-weight: 600; }
.gen-row output { font-family: var(--mono); font-weight: 600; }
.gen-row input { grid-column: 1 / -1; width: 100%; margin: 0.25rem 0 0; accent-color: var(--primary); }
.gen [hidden] { display: none; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 1.1rem; }
.checks label { display: inline-flex; align-items: center; gap: 0.45rem; cursor: pointer; }
.checks input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--primary); }
.checks span { font-family: var(--mono); font-size: 0.95rem; }
.checks .wide > span { font-family: var(--sans); }
.checks .la { font-size: 0.85em; }
.gen-hint { margin: 1.1rem 0 0; font-size: 0.95rem; color: var(--muted); }
.gen-status { margin: 0; padding: 0 1.25rem 1rem; font-size: 0.9rem; font-weight: 600; }
.gen-status:empty { display: none; }
.gen-nojs { margin: 0; padding: 0 1.25rem 1rem; font-size: 0.9rem; }
.gen-note { margin: 1rem 0 0; font-size: 0.875rem; color: var(--muted); max-width: 32rem; }

/* Trust strip */

.trust { background: var(--surface-2); border-block: 1px solid var(--line); }
.trust ul { list-style: none; margin-block: 0; display: grid; gap: 1.25rem; padding-block: 1.75rem; }
.trust li { display: flex; gap: 0.85rem; align-items: flex-start; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.trust li .ico { width: 1.5rem; height: 1.5rem; color: var(--primary); margin-top: 0.1rem; }
.trust strong { display: block; color: var(--fg); font-size: 1rem; }
@media (min-width: 640px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }

/* Sections */

.section { padding-block: 4.5rem; }
.section.flush { padding-top: 0.5rem; }
.section.flush-top { padding-top: 3.5rem; }
.section h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: 1rem; }
.section .h-small { font-size: 1.35rem; margin: 0 0 0.9rem; }
.section .h-small + * { margin-top: 0; }
@media (min-width: 1000px) {
  .section { padding-block: 6rem; }
  .section.flush { padding-top: 1rem; }
}
.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head > p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.split { display: grid; gap: 2.5rem; }
.split-head > p:not(.label) { color: var(--muted); font-size: 1.1rem; max-width: 28rem; }
@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; }
  .split-head { position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; }
}

.page-head { padding-block: 3.5rem 3rem; }
.page-head h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin-bottom: 1.1rem; max-width: 20ch; }
.page-head .lead { margin: 0; }
.crumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.95rem; }
.crumbs li + li::before { content: "/"; color: var(--control); margin-right: 0.4rem; }
.crumbs a { color: var(--muted); }
@media (min-width: 1000px) { .page-head { padding-block: 5rem 3.5rem; } }

/* Cards and tiles */

.cards, .tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards, .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } .tiles { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }
.card, .tile {
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.card { padding: 1.5rem; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); }
.card-ico, .tile-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--tint);
  color: var(--primary-hover);
}
.card-ico .ico, .tile-ico .ico { width: 1.4rem; height: 1.4rem; }
.card:hover, .tile:hover { transform: translateY(-3px); box-shadow: var(--lift); border-color: var(--card-line-hover); }
.tile { display: flex; flex-direction: column; height: 100%; padding: 1.5rem; color: var(--fg); text-decoration: none; }
.tile:hover { color: var(--fg); text-decoration: none; }
.tile-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.tile-text { color: var(--muted); margin-bottom: 1.25rem; }
.tile-foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 0.85rem; }
.tile-more { color: var(--link); font-weight: 600; display: inline-flex; gap: 0.35rem; }
.tile:hover .tile-more .arrow { transform: translateX(3px); }
.tile-more .arrow { transition: transform 0.2s var(--ease); }

.pairs { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 2.5rem; }
.pairs li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pairs h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.pairs p { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .pairs:not(.one) { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.5rem; }
.steps li { counter-increment: s; position: relative; padding-left: 3.25rem; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -0.1rem;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tint);
  color: var(--tint-fg);
  font-weight: 700;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted); }

.specs { margin: 0 0 2.5rem; border-top: 1px solid var(--line); }
.specs > div { display: grid; gap: 0.15rem 1.5rem; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .specs > div { grid-template-columns: 12rem 1fr; } }

.checklist { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.55rem; }
.checklist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.5rem;
  width: 0.65rem;
  height: 0.35rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.link-list a { font-weight: 600; }
.status-line { margin: 0.25rem 0 1rem; }
.big-text { font-size: 1.3rem; line-height: 1.5; color: var(--fg); }
.fine-print { font-size: 0.9rem; color: var(--muted); }
.license-name { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.5rem); line-height: 1; color: var(--primary-hover); margin: 0 0 1rem; overflow-wrap: anywhere; }
.repo-card { border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 1.5rem; background: var(--surface-2); }
.repo-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; margin-bottom: 1rem; }
.repo-top .ico { width: 1.6rem; height: 1.6rem; }
.repo-name { font-family: var(--mono); font-weight: 600; }
.repo-card p { color: var(--muted); }
.gh-btn .ico { width: 1.15rem; height: 1.15rem; }
.oss-teaser .cta { margin-top: 1.5rem; }
.note { margin: 2rem 0 0; padding: 1rem 1.25rem; border-radius: var(--r); background: var(--surface); color: var(--muted); max-width: 46rem; }
.note strong { color: var(--fg); }

/* Screenshots and the apps */

.shot { margin: 0; align-self: start; }
.shot picture, .shot > img {
  display: block;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.shot figcaption { padding: 0.6rem 0.1rem 0; font-size: 0.875rem; line-height: 1.4; color: var(--muted); }
.shot figcaption span, .caption span { font-family: var(--mono); font-size: 0.8rem; color: var(--fg); margin-right: 0.5rem; }
.shot-popup { max-width: 20rem; }
.apps-head { max-width: 42rem; margin-bottom: 3rem; }
.apps-head > p { color: var(--muted); font-size: 1.1rem; }
.app { display: grid; gap: 1.75rem; margin-bottom: 5rem; }
.app:last-child { margin-bottom: 0; }
.app-text h3 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.5rem); margin-bottom: 0.8rem; }
.app-text p { max-width: 30rem; color: var(--muted); }
.ticks { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.ticks li { position: relative; padding: 0.35rem 0 0.35rem 1.5rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.75rem;
  width: 0.55rem;
  height: 0.3rem;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; align-items: start; }
.phone picture, .phone > img { border-radius: 18px; }
.caption { margin: 0; font-size: 0.875rem; color: var(--muted); }
@media (min-width: 1000px) {
  .app { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; row-gap: 2.5rem; margin-bottom: 7rem; }
  .app-win .app-text { grid-column: 1 / span 4; grid-row: 1; padding-top: 1rem; }
  .app-win .shot-main { grid-column: 5 / -1; grid-row: 1; }
  .app-win .shot-a { grid-column: 1 / span 6; grid-row: 2; }
  .app-win .shot-b { grid-column: 7 / -1; grid-row: 2; }
  .app-ext .shot-main { grid-column: 1 / span 8; grid-row: 1 / span 2; }
  .app-ext .app-text { grid-column: 9 / -1; grid-row: 1; }
  .app-ext .shot-popup { grid-column: 9 / -1; grid-row: 2; max-width: 17rem; }
  .app-android .app-text { grid-column: 1 / span 4; grid-row: 1; padding-top: 1rem; }
  .app-android .phones { grid-column: 6 / -1; grid-row: 1; gap: 1.75rem; }
  .app-android .caption { grid-column: 6 / -1; }
}

/* Security: the one dark block */

.block { background: var(--navy); color: var(--navy-fg); }
.block .label { color: var(--navy-muted); }
.block a { color: var(--navy-fg); text-decoration-color: var(--navy-accent); }
.block a:hover { color: var(--navy-accent); }
.block :focus-visible { outline-color: var(--navy-accent); }
.sec-head { max-width: 46rem; margin-bottom: 3rem; }
.sec-more { margin: 3rem 0 0; }
.callouts { margin: 0; display: grid; gap: 2.25rem; }
.callouts > div { border-top: 1px solid var(--navy-line); padding-top: 1.25rem; }
.callouts dt { font-family: var(--display); font-weight: 700; font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.callouts .num { color: var(--navy-accent); }
.callouts dd { margin: 0.75rem 0 0; max-width: 34rem; color: var(--navy-muted); }
@media (min-width: 900px) { .callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.5rem; row-gap: 3rem; } }

/* FAQ */

.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.faq details:first-child summary { padding-top: 0.25rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.35rem;
  top: 1.05rem;
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--primary);
  transition: transform 0.25s var(--ease);
}
.faq details:first-child summary::after { top: 0.15rem; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary-hover); }
.faq details > div { padding-bottom: 1.15rem; }
.faq details p { margin: 0; max-width: 42rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] > div { animation: open 0.3s var(--ease); }
  .menu[open] .menu-panel { animation: open 0.2s var(--ease); }
}
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Contact */

.contact { padding-block: 4.5rem 5rem; background: var(--surface-2); border-top: 1px solid var(--line); }
.contact h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); max-width: 18ch; margin-bottom: 1.5rem; }
.mail {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}
.contact p { margin: 0; color: var(--muted); }
@media (min-width: 1000px) {
  .contact .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 4rem; align-items: end; }
  .contact h2 { grid-row: 1 / span 2; margin-bottom: 0; }
  .contact .mail { margin-bottom: 0.5rem; }
}

/* Guides index */

.g-tools { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.g-search { position: relative; max-width: 40rem; }
.g-search .ico { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.g-search input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 1rem 0.6rem 2.9rem;
  border: 1px solid var(--control);
  border-radius: 12px;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.05rem/1.3 var(--sans);
}
.g-search input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.g-cats ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g-cats a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--card-line);
  border-radius: 999px;
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.g-cats a:hover { background: var(--surface); color: var(--fg); }
.g-cats a[aria-current] { background: var(--tint); border-color: var(--card-line-hover); color: var(--tint-fg); font-weight: 600; }
.g-count { color: var(--muted); font-size: 0.95rem; margin: 0 0 1rem; min-height: 1.5em; }
.g-empty { padding: 2rem 0; font-size: 1.1rem; }
.g-group { margin-top: 2.5rem; }
.g-group h2 { font-size: 1.35rem; margin-bottom: 1rem; }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .g-list { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.g-item a {
  display: block;
  height: 100%;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  color: var(--fg);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.g-item a:hover { transform: translateY(-2px); box-shadow: var(--lift); border-color: var(--card-line-hover); color: var(--fg); }
.g-item h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.g-item p { margin: 0 0 0.75rem; color: var(--muted); }
.g-item .g-meta { margin: 0; }
.g-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; color: var(--muted); font-size: 0.875rem; }
.tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--tint-fg); font-weight: 600; }

/* Guide articles */

.article-head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article-head .g-meta { margin: 1.25rem 0 0; }
.article-grid { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; }
.toc-mini { border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 1rem 1.25rem; align-self: start; background: var(--surface-2); }
.toc-mini h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.toc-mini ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.95rem; }
.article-body { max-width: 70ch; min-width: 0; }
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 0.8rem; scroll-margin-top: calc(var(--bar-h) + 16px); }
.article-body h2:first-child { margin-top: 0; }
.h-anchor { color: var(--muted); text-decoration: none; font-weight: 500; opacity: 0; transition: opacity 0.2s ease; }
.article-body h2:hover .h-anchor, .h-anchor:focus { opacity: 1; }
.article-body ul, .article-body ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.article-body li { margin-bottom: 0.45rem; }
.article-body li::marker { color: var(--muted); }
.article-body .shot { margin: 2rem 0; max-width: 46rem; }
.article-body .shot.tall { max-width: 18rem; }
.callout { padding: 0.9rem 1.1rem; border-radius: var(--r); background: var(--tint); color: var(--fg); }
.callout a { color: var(--link); }
@media (min-width: 1000px) {
  .article-grid { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; padding-block: 3rem 4rem; }
  .toc-mini { position: sticky; top: calc(var(--bar-h) + 1.5rem); }
}
.article-foot { padding-bottom: 4.5rem; }
.article-foot > h2 { font-size: 1.35rem; margin: 2.5rem 0 1rem; }
.pn-row { display: grid; gap: 1rem; border-top: 1px solid var(--line); padding-top: 2rem; }
@media (min-width: 720px) { .pn-row { grid-template-columns: 1fr 1fr; } .pn.next { grid-column: 2; text-align: right; } }
.pn { display: block; padding: 1rem 1.25rem; border: 1px solid var(--card-line); border-radius: var(--r-lg); color: var(--fg); font-weight: 600; text-decoration: none; transition: border-color 0.2s ease, background-color 0.2s ease; }
.pn:hover { border-color: var(--card-line-hover); background: var(--surface-2); color: var(--fg); }
.pn span { display: block; font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.related { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }
.related a { display: block; height: 100%; padding: 1rem 1.25rem; border: 1px solid var(--card-line); border-radius: var(--r-lg); color: var(--fg); text-decoration: none; transition: transform 0.25s var(--ease), box-shadow 0.25s ease; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--lift); color: var(--fg); }
.rel-cat { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.rel-title { font-weight: 600; }

/* Documents: privacy policy, delete your data, 404 */

.doc-hero { padding-block: 3rem 5rem; }
.doc { max-width: 46rem; }
.prose h1 { font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.03; margin-bottom: 1rem; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.85rem); margin: 3rem 0 0.9rem; scroll-margin-top: calc(var(--bar-h) + 16px); }
.prose h3 { font-family: var(--sans); font-weight: 600; font-size: 1.15rem; line-height: 1.3; margin: 1.75rem 0 0.5rem; letter-spacing: 0; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--muted); }
.prose dl { margin: 0 0 1rem; }
.prose dt { font-weight: 600; margin-top: 1.1rem; }
.prose dd { margin: 0.3rem 0 0; }
.meta { font-size: 0.95rem; color: var(--muted); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
.summary { margin: 2rem 0; padding: 1.25rem 1.5rem 0.5rem; border-radius: var(--r-lg); background: var(--tint); }
.summary h2 { margin-top: 0; }
.summary code { background: var(--bg); }
.toc { margin: 2rem 0; padding: 1.1rem 1.25rem 0.5rem; border: 1px solid var(--card-line); border-radius: var(--r-lg); }
.prose .toc h2 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.75rem; }
@media (min-width: 640px) {
  .toc ol { columns: 2; column-gap: 2.5rem; }
  .toc li { break-inside: avoid; }
}
.table-scroll { overflow-x: auto; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--r); }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-scroll th, .table-scroll td { text-align: left; vertical-align: top; padding: 0.65rem 0.8rem; border-bottom: 1px solid var(--line); }
.table-scroll tr:last-child th, .table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll thead th { background: var(--surface); font-weight: 600; }
.table-scroll tbody th { font-weight: 600; width: 32%; }

/* Scroll reveal (assets/site.js adds .reveal only below the fold, and never with reduced motion) */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.45s var(--ease) var(--d, 0ms), transform 0.45s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .tile:hover, .btn:hover, .g-item a:hover, .related a:hover { transform: none; }
}

/* "Technical details" disclosure on /features/ */
.tech { margin-top: 2rem; border: 1px solid var(--card-line); border-radius: var(--r-lg); padding: 0 1.25rem; background: var(--surface-2); }
.tech summary { position: relative; cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-weight: 600; }
.tech summary::-webkit-details-marker { display: none; }
.tech summary::after { content: "+"; position: absolute; right: 0.1rem; top: 0.75rem; font-size: 1.4rem; color: var(--primary); transition: transform 0.25s var(--ease); }
.tech[open] summary::after { transform: rotate(45deg); }
.tech .specs { margin-bottom: 1.25rem; }
.tech .specs dd { font-size: 0.95rem; }
@media (prefers-reduced-motion: no-preference) { .tech[open] > .specs { animation: open 0.3s var(--ease); } }

/* Illustrations (assets/illustrations/*.svg) */
.art { display: block; width: 100%; max-width: 240px; height: auto; }
.split-head .art { margin-top: 2rem; max-width: 220px; }
.page-head.with-art .wrap { display: grid; gap: 2rem; align-items: center; }
.page-head.with-art .head-art { max-width: 300px; }
@media (min-width: 900px) {
  .page-head.with-art .wrap { grid-template-columns: minmax(0, 1fr) 320px; gap: 4rem; }
  .page-head.with-art .head-art { max-width: 320px; justify-self: end; }
}
@media (max-width: 899px) { .page-head.with-art .head-art { max-width: 200px; } }
.not-found-art { max-width: 220px; margin-bottom: 1.5rem; }

/* Home: generator teaser */
.section.tight { padding-block: 2.5rem; }
.teaser {
  display: grid; gap: 1.25rem; align-items: center;
  padding: 1.5rem; border: 1px solid var(--card-line); border-radius: var(--r-lg);
  background: var(--surface-2); color: var(--fg); text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.teaser:hover { transform: translateY(-2px); box-shadow: var(--lift); border-color: var(--card-line-hover); color: var(--fg); }
.teaser-art { max-width: 160px; }
.teaser-text { display: grid; gap: 0.3rem; }
.teaser .label { margin: 0; }
.teaser-title { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.15; }
.teaser-sub { color: var(--muted); }
.teaser .btn { justify-self: start; }
@media (min-width: 900px) { .teaser { grid-template-columns: 160px minmax(0, 1fr) auto; gap: 2rem; padding: 1.5rem 2rem; } .teaser .btn { justify-self: end; } }

/* Home: why Passyble */
.why-grid { display: grid; gap: 2.5rem; }
.why-head .art { margin-top: 1.5rem; max-width: 220px; }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.why-list li { padding: 1.25rem 1.4rem; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--bg); }
.why-list h3 { font-size: 1.15rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.55rem; }
.why-list h3::before { content: ""; width: 0.6rem; height: 0.35rem; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg) translateY(-0.15rem); flex: none; }
.why-list p { margin: 0; color: var(--muted); }
@media (min-width: 720px) { .why-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; } .why-head { position: sticky; top: calc(var(--bar-h) + 2rem); align-self: start; } }

/* Cards with a guide link */
.card { display: flex; flex-direction: column; }
.card-link { margin-top: auto; padding-top: 1rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.35rem; }
.card-link:hover { text-decoration: underline; }

/* Screenshot gallery and rows */
.gallery-title { font-size: 1.35rem; margin: 5rem 0 1.5rem; }
.gallery, .shots-row { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .shots-row { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
}
.gallery .shot.tall, .shots-row .shot.tall { max-width: 16rem; }
@media (min-width: 720px) { .shots-row:has(.tall) { grid-template-columns: repeat(3, minmax(0, 16rem)); justify-content: center; } }

/* Download pages: guide cards */
.guide-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 640px) { .guide-cards { grid-template-columns: 1fr 1fr; } }
.guide-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 100%;
  padding: 1rem 1.25rem; border: 1px solid var(--card-line); border-radius: var(--r-lg);
  color: var(--fg); font-weight: 600; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--lift); border-color: var(--card-line-hover); color: var(--fg); }
.guide-card .arrow { color: var(--link); }

/* Password generator page */
.gen-head { text-align: center; padding-bottom: 2rem; }
.gen-head .wrap { display: flex; flex-direction: column; align-items: center; }
.gen-head .lead { margin-inline: auto; }
.gen-head h1 { max-width: none; }
.gen-tool .gen-wrap { max-width: 40rem; margin: 0 auto; }
.gen-tool .pw { font-size: 1.45rem; min-height: 5.5rem; }
.gen-tool .gen-note { text-align: center; margin-inline: auto; }
.cta-card { display: grid; gap: 1.5rem; align-items: center; padding: 2rem; border-radius: var(--r-lg); background: var(--tint); }
.cta-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 0.6rem; }
.cta-card p { color: var(--muted); max-width: 40rem; }
.cta-card .cta { align-items: center; gap: 0.75rem 1.5rem; margin-top: 1.25rem; }
.cta-art { max-width: 200px; }
@media (min-width: 900px) { .cta-card { grid-template-columns: 220px minmax(0, 1fr); gap: 3rem; padding: 2.5rem 3rem; } }

/* Guides: category art and empty state */
.g-group h2 { display: flex; align-items: center; gap: 0.75rem; }
.g-art { width: 64px; height: 48px; flex: none; }
.g-empty { text-align: center; padding: 2rem 0; }
.g-empty img { margin: 0 auto 1rem; width: 200px; height: auto; }
.g-empty[hidden] { display: none; }
.gen .gen-bar h2, .gen .gen-bar h3 { font-size: 0.8rem; margin: 0; letter-spacing: 0.1em; }
