/* Clipsa website. Dark, single theme. No JavaScript, no third-party assets. */

:root {
  --bg: #08090d;
  --bg-raised: #0d0f15;
  --surface: #11131b;
  --surface-2: #171a24;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f6fb;
  --text-2: #b6bcc8;
  --muted: #8d94a3;
  --accent: #8f97ff;
  --accent-soft: #c7cbff;
  --link: #a9b2ff;
  --indigo: #5a54ee;
  --indigo-deep: #4338ca;
  --cyan: #0891b2;
  --good: #4ade80;
  --bad: #f87171;
  --partial: #fbbf24;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  overflow-x: clip;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(169, 178, 255, 0.45);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-soft);
  text-decoration-color: currentColor;
}

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

[id] {
  scroll-margin-top: 96px;
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.88em;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
}

pre code {
  padding: 0;
  background: none;
  overflow-wrap: normal;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.42em;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: linear-gradient(180deg, #1f2333, #161925);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.82em;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 1440px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s, transform 0.15s;
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--indigo), var(--indigo-deep));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 30px -10px rgba(90, 84, 238, 0.85);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.12);
}

.btn-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 16px 0;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(14, 16, 23, 0.72);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

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

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

.nav .brand {
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a,
.nav-menu a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-links a:hover,
.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-links + .btn {
  margin-left: auto;
}

.nav-menu {
  display: none;
}

.nav-menu summary {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

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

.nav-menu summary:hover {
  background: rgba(255, 255, 255, 0.07);
}

.nav-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: #0e1017;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  list-style: none;
}

.nav-menu a {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
}

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

  .nav-menu {
    display: block;
  }
}

/* ---------- Shared section scaffolding ---------- */

.section {
  position: relative;
  isolation: isolate;
  padding: clamp(64px, 7.5vw, 112px) 0;
}

.section-head {
  max-width: 740px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 1.25rem + 3vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.15rem);
}

.section-head-left {
  margin: 0;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.glow {
  position: absolute;
  z-index: -1;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 84, 238, 0.32), transparent 65%);
  pointer-events: none;
}

.glow-left {
  top: 0;
  left: -260px;
}

.glow-right {
  top: 10%;
  right: -280px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.26), transparent 65%);
}

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(143, 151, 255, 0.3);
  border-radius: 12px;
  background: rgba(90, 84, 238, 0.14);
  color: var(--accent-soft);
}

/* Icon lists (mask icons from assets/icons). */

.checks,
.caps,
.why-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li,
.caps li,
.why-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 30px;
}

.checks li::before,
.caps li::before,
.why-list li::before,
.v::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.checks li::before,
.caps li::before,
.why-list li::before {
  position: absolute;
  top: 0.15em;
  left: 0;
}

.checks li::before,
.cap-yes::before {
  --icon: url("assets/icons/check.svg");
  color: var(--good);
}

.cap-no {
  color: var(--muted);
}

.cap-no::before {
  --icon: url("assets/icons/cross.svg");
  color: var(--bad);
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 8vw, 104px) 0 40px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  z-index: -1;
  height: 900px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(90, 84, 238, 0.32), transparent 70%),
    radial-gradient(ellipse 40% 35% at 80% 30%, rgba(8, 145, 178, 0.18), transparent 70%);
  pointer-events: none;
}

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

.hero h1 {
  margin: 0 auto 22px;
  max-width: 13ch;
  font-size: clamp(2.6rem, 1.1rem + 6vw, 5.4rem);
  font-weight: 760;
  letter-spacing: -0.038em;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #ffffff 35%, #c9cdfb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-meta {
  margin: 26px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.hero-meta a {
  color: inherit;
}

.hero-brew {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0;
  padding: 5px 5px 5px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
}

.hero-brew span {
  color: var(--muted);
}

.hero-brew code {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
}

/* Hero composite: picker over a mail draft on a desktop wallpaper. */

.stage {
  position: relative;
  max-width: 1120px;
  margin: 64px auto 0;
  aspect-ratio: 16 / 9.4;
  container-type: inline-size;
}

.stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(90, 84, 238, 0.55), rgba(8, 145, 178, 0.25) 45%, transparent 72%);
  filter: blur(40px);
}

.stage-desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: clamp(14px, 2cqw, 24px);
  background:
    radial-gradient(ellipse 70% 80% at 15% 10%, #5b4ff0 0%, transparent 60%),
    radial-gradient(ellipse 60% 70% at 95% 95%, #0e9fbf 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 15%, #c04ad6 0%, transparent 65%),
    linear-gradient(135deg, #24196b, #0b1b3a);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  text-align: left;
}

.stage-menubar {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  height: 2.8cqw;
  padding: 0 1.6cqw;
  background: rgba(8, 10, 24, 0.35);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05cqw;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stage-menubar-app {
  font-weight: 700;
}

.stage-menubar-tray {
  display: inline-flex;
  align-items: center;
  gap: 1cqw;
  margin-left: auto;
}

.stage-menubar-tray img {
  width: 1.4cqw;
  height: 1.4cqw;
}

.mock-window {
  position: absolute;
  top: 10%;
  bottom: 7%;
  left: 5%;
  width: 60%;
  overflow: hidden;
  border-radius: 1.1cqw;
  background: #1b1e29;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 3cqw 6cqw -1cqw rgba(0, 0, 0, 0.6);
  color: #d4d8e2;
}

.mock-titlebar,
.window-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mock-titlebar {
  height: 3.2cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #232735;
  color: #a9afbd;
  font-size: 1.05cqw;
  font-weight: 600;
}

.dots {
  position: absolute;
  left: 1.3cqw;
  display: flex;
  gap: 0.65cqw;
}

.dots i {
  width: 1cqw;
  height: 1cqw;
  border-radius: 50%;
  background: #ff5f57;
}

.dots i:nth-child(2) {
  background: #febc2e;
}

.dots i:nth-child(3) {
  background: #28c840;
}

.mock-mail {
  padding: 1.2cqw 2.4cqw;
  font-size: 1.3cqw;
  line-height: 1.55;
}

.mock-field {
  margin: 0;
  padding: 0.9cqw 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mock-field span {
  margin-right: 0.5em;
  color: #8c92a0;
}

.mock-body {
  padding-top: 1cqw;
  max-width: 36cqw;
}

.mock-body p {
  margin: 0 0 1.2cqw;
}

.mock-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.8cqw;
  padding: 0.7cqw 1.2cqw 0.7cqw 0.7cqw;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.8cqw;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1cqw;
}

.mock-attachment span {
  padding: 0.3cqw 0.6cqw;
  border-radius: 0.4cqw;
  background: #e5484d;
  color: #fff;
  font-size: 0.85cqw;
  font-weight: 700;
}

.mock-caret span {
  display: inline-block;
  width: 2px;
  height: 1.7cqw;
  background: var(--indigo);
  vertical-align: middle;
}

.stage-keys {
  position: absolute;
  bottom: 9%;
  left: 47%;
  display: flex;
  gap: 0.6cqw;
  padding: 0.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.4cqw;
  background: rgba(12, 14, 24, 0.78);
  box-shadow: 0 1.5cqw 3cqw -0.5cqw rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.stage-keys kbd {
  display: grid;
  place-items: center;
  width: 3.6cqw;
  height: 3.6cqw;
  padding: 0;
  border-radius: 0.8cqw;
  font-size: 1.7cqw;
}

.stage-picker {
  position: absolute;
  top: 15%;
  right: 3%;
  width: 55%;
  height: auto;
  border-radius: 1.3cqw;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 4cqw 8cqw -1cqw rgba(0, 0, 0, 0.75),
    0 0 10cqw rgba(90, 84, 238, 0.45);
}

@media (max-width: 700px) {
  .stage {
    aspect-ratio: 4 / 5;
    margin-top: 48px;
  }

  .stage-menubar {
    height: 7cqw;
    gap: 3.5cqw;
    padding: 0 4cqw;
    font-size: 3cqw;
  }

  .stage-menubar-tray img {
    width: 3.5cqw;
    height: 3.5cqw;
  }

  .mock-window {
    top: 11%;
    bottom: auto;
    left: 5%;
    width: 90%;
    height: 52%;
    border-radius: 3cqw;
  }

  .mock-titlebar {
    height: 8cqw;
    font-size: 3cqw;
  }

  .dots {
    left: 3.5cqw;
    gap: 1.6cqw;
  }

  .dots i {
    width: 2.6cqw;
    height: 2.6cqw;
  }

  .mock-mail {
    padding: 2cqw 5cqw;
    font-size: 3.3cqw;
  }

  .mock-field {
    padding: 2cqw 0;
  }

  .mock-body {
    max-width: none;
    padding-top: 2.5cqw;
  }

  .mock-body p {
    margin-bottom: 2.6cqw;
  }

  .mock-attachment {
    gap: 2cqw;
    padding: 1.6cqw 3cqw 1.6cqw 1.6cqw;
    border-radius: 2cqw;
    font-size: 2.9cqw;
  }

  .mock-attachment span {
    padding: 0.6cqw 1.4cqw;
    border-radius: 1cqw;
    font-size: 2.3cqw;
  }

  .stage-keys {
    display: none;
  }

  .stage-picker {
    top: auto;
    right: 4%;
    bottom: 5%;
    width: 92%;
    border-radius: 3cqw;
  }
}

/* Trust strip */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.88rem;
  line-height: 1.35;
}

.trust .i {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.trust strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.trust span {
  color: var(--muted);
}

@media (max-width: 960px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(90, 84, 238, 0.12), transparent 70%),
    var(--bg-raised);
}

.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.keys {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.keys kbd {
  display: grid;
  place-items: center;
  min-width: 54px;
  height: 54px;
  border-radius: 12px;
  border-bottom-width: 3px;
  font-size: 1.4rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -8px rgba(0, 0, 0, 0.8);
}

.keys kbd.wide {
  min-width: 96px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
}

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

/* ---------- Privacy bento ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bento-hero {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  grid-column: span 2;
  grid-row: span 2;
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(90, 84, 238, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}

.bento-hero h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.025em;
}

.bento-hero .card-text p {
  max-width: 56ch;
}

.cipher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.cipher-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.cipher-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-bad {
  background: var(--bad);
  box-shadow: 0 0 10px var(--bad);
}

.dot-good {
  background: var(--good);
  box-shadow: 0 0 10px var(--good);
}

.cipher-panel code {
  display: block;
  padding: 6px 9px;
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
}

.cipher-plain code {
  background: rgba(248, 113, 113, 0.09);
  color: #fecaca;
}

.cipher-sealed code {
  background: rgba(90, 84, 238, 0.12);
  color: var(--accent-soft);
}

.cipher-arrow {
  color: var(--muted);
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-hero {
    grid-row: auto;
  }
}

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

  .bento-hero {
    grid-column: auto;
  }

  .cipher {
    grid-template-columns: 1fr;
  }

  .cipher-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* Why encrypt */

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 24px 40px;
  margin-top: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.why-head h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.7rem);
  letter-spacing: -0.02em;
}

.why-head p {
  margin: 0;
}

.why-lists {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}

.why-list {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.why-list h4 {
  margin: 0 0 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.why-list li {
  color: var(--text);
  font-size: 0.93rem;
}

.why-skipped {
  background: rgba(251, 191, 36, 0.04);
}

.why-skipped li::before {
  --icon: url("assets/icons/skip.svg");
  color: var(--partial);
}

.why-saved {
  border-color: rgba(143, 151, 255, 0.28);
  background: rgba(90, 84, 238, 0.07);
}

.why-saved li::before {
  --icon: url("assets/icons/lock.svg");
  color: var(--accent-soft);
}

.why-foot {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.limits {
  max-width: 860px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.limits strong {
  color: var(--text-2);
}

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

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

/* ---------- Feature stories ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-bottom: clamp(72px, 9vw, 120px);
}

.story-flip {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.story-flip .story-copy {
  order: 2;
}

.story-copy h3 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.story-copy > p:not(.eyebrow) {
  margin: 0 0 18px;
  font-size: 1.07rem;
}

.story-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background:
    radial-gradient(ellipse 70% 60% at 20% 10%, rgba(90, 84, 238, 0.35), transparent 70%),
    radial-gradient(ellipse 60% 60% at 90% 100%, rgba(8, 145, 178, 0.28), transparent 70%),
    var(--bg-raised);
}

.shot-picker {
  display: block;
  width: min(640px, 100%);
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -16px rgba(0, 0, 0, 0.85);
}

.window {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.85);
}

.window img {
  display: block;
  width: 100%;
  height: auto;
}

.window-bar {
  height: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #1a2130;
  color: #a3aab8;
  font-size: 0.75rem;
  font-weight: 600;
}

.window-bar .dots {
  left: 12px;
  gap: 7px;
}

.window-bar .dots i {
  width: 11px;
  height: 11px;
}

/* Windows bleed off the right and bottom edges so screenshots stay near 1:1. */
.bleed {
  display: block;
  place-items: normal;
  aspect-ratio: 5 / 4;
  padding: clamp(24px, 4vw, 48px) 0 0 clamp(24px, 4vw, 48px);
}

.bleed > .window {
  width: clamp(520px, 135%, 900px);
  max-width: none;
}

.bleed > .duo-back {
  width: clamp(480px, 112%, 820px);
}

.duo.bleed {
  aspect-ratio: 1 / 1;
  padding-top: clamp(56px, 9vw, 120px);
}

.bleed > .duo-front {
  position: absolute;
  top: clamp(16px, 2.5vw, 28px);
  right: clamp(16px, 2.5vw, 28px);
  width: 50%;
  max-width: 360px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 40px 80px -10px rgba(0, 0, 0, 0.95);
}

@media (max-width: 860px) {
  .story,
  .story-flip {
    grid-template-columns: 1fr;
  }

  .story-flip .story-copy {
    order: 0;
  }
}

/* Small features */

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-grid li {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.mini-grid .i {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.mini-grid h3 {
  margin: 14px 0 6px;
  font-size: 1rem;
  font-weight: 650;
}

.mini-grid p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.mini-grid code {
  font-size: 0.8em;
}

@media (max-width: 1000px) {
  .mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .mini-grid li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px 18px;
  }

  .mini-grid .i {
    grid-row: span 2;
  }

  .mini-grid h3 {
    margin: 0;
  }

  .card {
    padding: 22px;
  }

  .hero-brew {
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
  }

  .hero-brew code {
    border-radius: 10px;
  }
}

/* ---------- Tables ---------- */

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

.table-scroll table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

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

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

.table-scroll thead th {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

.table-scroll tbody th {
  color: var(--text);
  font-weight: 550;
}

.ours {
  background: rgba(90, 84, 238, 0.09);
}

thead .ours {
  color: var(--accent-soft);
}

.v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
}

.v.yes::before {
  --icon: url("assets/icons/check.svg");
  color: var(--good);
}

.v.no::before {
  --icon: url("assets/icons/cross.svg");
  color: var(--bad);
}

.v.partial::before {
  --icon: url("assets/icons/partial.svg");
  color: var(--partial);
}

.v.nd {
  color: var(--muted);
}

.v.nd::before {
  --icon: url("assets/icons/dash.svg");
  color: var(--muted);
}

.note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.mini-compare {
  max-width: 980px;
  margin: 0 auto;
}

.mini-compare table {
  min-width: 640px;
}

.mini-compare table {
  table-layout: fixed;
}

.mini-compare th:first-child {
  width: 28%;
}

.center-link {
  margin: 32px 0 0;
  text-align: center;
}

/* ---------- Platforms ---------- */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform {
  display: grid;
  grid-row: span 5;
  grid-template-rows: subgrid;
  gap: 0;
}

.platform h3 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.platform .platform-files {
  margin: 6px 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.caps {
  margin: 12px 0 4px;
}

.caps li {
  margin: 9px 0;
  color: var(--text-2);
  font-size: 0.93rem;
}

.caps li.cap-no {
  color: var(--muted);
}

.caps li span {
  color: var(--muted);
}

.platform .btn {
  align-self: stretch;
  margin-top: 20px;
}

.platform .platform-alt {
  margin: 16px 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.platform pre {
  font-size: 0.78rem;
}

.platform .platform-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

.section-note {
  max-width: 780px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

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

/* ---------- Pricing ---------- */

.pricing {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.price h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
}

.price .price-amount {
  margin: 6px 0 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.price-amount span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
}

.price .checks {
  margin-bottom: 24px;
}

.price .btn {
  margin-top: auto;
}

.price p + .btn {
  margin-top: 24px;
}

.price-main {
  border-color: rgba(143, 151, 255, 0.45);
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(90, 84, 238, 0.28), transparent 70%),
    var(--bg-raised);
  box-shadow: 0 30px 80px -40px rgba(90, 84, 238, 0.8);
}

.badge {
  display: inline-block;
  padding: 3px 9px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.1);
  color: #fcd34d;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

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

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 64px;
  align-items: start;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-2);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}

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

.faq summary:hover {
  color: var(--accent-soft);
}

.faq details > div {
  padding: 0 0 18px;
}

.faq details p {
  margin: 0 0 12px;
}

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

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

.cta-band {
  padding: 0 0 clamp(72px, 9vw, 120px);
}

.cta-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 24px;
  border: 1px solid var(--border-strong);
  border-radius: 32px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(90, 84, 238, 0.45), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(8, 145, 178, 0.3), transparent 70%),
    var(--bg-raised);
  text-align: center;
}

.cta-inner img {
  display: block;
  margin: 0 auto 20px;
  filter: drop-shadow(0 12px 30px rgba(90, 84, 238, 0.6));
}

.cta-inner h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.cta-inner p {
  margin: 0 0 32px;
  font-size: 1.1rem;
}

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

.site-footer {
  padding: 64px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  font-size: 0.93rem;
}

.footer-brand .footer-copy {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer h2 {
  margin: 4px 0 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 0 0 10px;
}

.site-footer nav a {
  color: var(--text-2);
  font-size: 0.93rem;
  text-decoration: none;
}

.site-footer nav a:hover,
.site-footer nav a[aria-current="page"] {
  color: var(--text);
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- Compare page ---------- */

.section-tight {
  padding: clamp(40px, 5vw, 72px) 0;
}

.t {
  color: var(--text);
  font-weight: 500;
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  text-align: center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -120px 0 auto;
  z-index: -1;
  height: 640px;
  background: radial-gradient(ellipse 55% 55% at 50% 0%, rgba(90, 84, 238, 0.3), transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 16ch;
  margin: 0 auto 20px;
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.3rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page-hero .hero-lead {
  margin-bottom: 30px;
}

.updated {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.verdict {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.verdict h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.verdict .checks li {
  margin: 18px 0;
  font-size: 0.95rem;
}

.verdict li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 600;
}

.verdict-ours {
  border-color: rgba(143, 151, 255, 0.4);
  background:
    radial-gradient(ellipse 80% 60% at 0% 0%, rgba(90, 84, 238, 0.22), transparent 70%),
    var(--bg-raised);
}

.verdict-other .checks li::before {
  --icon: url("assets/icons/arrow.svg");
  color: var(--partial);
}

.standard-note {
  max-width: 820px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
}

.legend .v {
  font-weight: 400;
}

.compare-scroll {
  max-height: min(80vh, 920px);
  overflow: auto;
}

.compare-table {
  min-width: 1100px;
  table-layout: fixed;
  font-size: 0.9rem;
}

.compare-table thead th:first-child {
  width: 210px;
  border-top-left-radius: 19px;
}

.compare-table thead th:last-child {
  border-top-right-radius: 19px;
}

.compare-table tbody tr:last-child th {
  border-bottom-left-radius: 19px;
}

.compare-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: 19px;
}

/* Wide screens: the table fits, so let the header row stick below the nav. */
@media (min-width: 1280px) {
  .compare-scroll {
    max-height: none;
    overflow: visible;
  }

  .compare-scroll .compare-table thead th {
    top: 74px;
  }
}

.compare-table th,
.compare-table td {
  padding: 13px 14px;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #12141c;
  box-shadow: inset 0 -1px 0 var(--border-strong);
  white-space: nowrap;
}

.compare-table thead th.ours {
  background: #1a1b3a;
}

.compare-table tbody th[scope="row"] {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 210px;
  min-width: 210px;
  background: var(--bg-raised);
  box-shadow: inset -1px 0 0 var(--border-strong);
}

.compare-table thead th:first-child {
  left: 0;
  z-index: 3;
  box-shadow: inset -1px 0 0 var(--border-strong), inset 0 -1px 0 var(--border-strong);
}

.compare-table .group th {
  padding: 22px 14px 10px;
  background: var(--bg);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare-table .group span {
  position: sticky;
  left: 14px;
}

.compare-table .v {
  align-items: flex-start;
}

.compare-table .v::before {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.ours-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(143, 151, 255, 0.2);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 2px;
}

.table-foot {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.picks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.picks .card {
  padding: 24px;
}

.picks .pick-ours {
  border-color: rgba(143, 151, 255, 0.4);
  background: rgba(90, 84, 238, 0.09);
}

.sources {
  margin-top: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.sources summary {
  padding: 20px 24px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.sources > div {
  padding: 0 24px 24px;
  font-size: 0.92rem;
}

.sources ul {
  margin: 0;
  padding-left: 18px;
}

.sources li {
  margin: 8px 0;
}

@media (max-width: 960px) {
  .picks {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .compare-table tbody th[scope="row"] {
    width: 128px;
    min-width: 128px;
    font-size: 0.8rem;
  }

  .compare-table thead th:first-child {
    width: 128px;
  }

  .compare-scroll {
    max-height: 75vh;
  }
}

/* ---------- Privacy policy ---------- */

.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 70ch);
  justify-content: center;
  gap: 64px;
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

.toc {
  position: sticky;
  top: 104px;
  align-self: start;
  font-size: 0.9rem;
}

.toc h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--border);
  list-style: none;
}

.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  color: var(--text-2);
  text-decoration: none;
}

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

.prose {
  font-size: 1.04rem;
  line-height: 1.7;
}

.prose h1 {
  margin: 0 0 10px;
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
}

.prose .meta {
  margin: 0 0 32px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.prose h2 {
  margin: 2.4em 0 0.6em;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul {
  margin: 0 0 1.1em;
}

.prose ul {
  padding-left: 1.3em;
}

.prose li {
  margin: 0.45em 0;
}

.prose li::marker {
  color: var(--accent);
}

.prose strong {
  color: var(--text);
}

.summary {
  margin: 0 0 32px;
  padding: 22px 24px;
  border: 1px solid rgba(143, 151, 255, 0.35);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(90, 84, 238, 0.2), transparent 70%),
    var(--bg-raised);
  color: var(--text);
}

.summary p {
  margin: 0;
}

.prose h3 {
  margin: 1.6em 0 0.4em;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prose code {
  font-size: 0.9em;
}

.changelog .release {
  padding-top: 8px;
  scroll-margin-top: 96px;
}

.changelog .release + .release {
  margin-top: 2.4em;
  border-top: 1px solid var(--border);
}

.changelog .release h2 {
  margin: 1.6em 0 0.2em;
}

.changelog .release .meta {
  margin-bottom: 0.8em;
}

.release-line {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
}

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

  .toc {
    position: static;
    order: 2;
    display: none;
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .stage-picker {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }

  .stage-keys {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both;
  }

  .mock-caret span {
    animation: blink 1.1s steps(1) infinite;
  }

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

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

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
