/* Tokens follow docs/design.md in the app repo (mono + lavender). */
:root {
  --background: #F4F4F4;
  --card: #FFFFFF;
  --card-secondary: #F4F4F4;
  --ink: #010101;
  --muted: #6F6F6F; /* darker than the app's #8A8A8A to pass contrast on the web */
  --separator: #E2E2E2;
  --button: #010101;
  --button-ink: #FFFFFF;
  --tint: #6E5AAE;
  --tint-soft: #EFECF4;

  /* Review colors are fixed in both appearances. */
  --finding-fill: rgba(245, 166, 35, 0.38);
  --finding-line: #E39A12;
  --redaction: #010101;

  --gradient:
    radial-gradient(120% 90% at 100% 0%, #F3EEFB 0%, rgba(243, 238, 251, 0) 55%),
    radial-gradient(90% 120% at 85% 30%, #C9B8E8 0%, rgba(201, 184, 232, 0) 60%),
    linear-gradient(155deg, #010101 0%, #2A1F4A 45%, #8C76C2 78%, #C9B8E8 100%);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;

  --measure: 34rem;
  --page: 70rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #010101;
    --card: #141317;
    --card-secondary: #1D1B21;
    --ink: #F4F4F4;
    --muted: #9B98A2;
    --separator: #2A2830;
    --button: #FFFFFF;
    --button-ink: #010101;
    --tint: #C9B8E8;
    --tint-soft: #222027;
  }
}

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

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

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

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

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

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand svg { width: 1.6rem; height: 1.6rem; }

.site-nav { display: flex; gap: 1.5rem; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Hero */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 6.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 1.5rem;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 0 2rem;
}

.lede strong { color: var(--ink); font-weight: 600; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--button);
  color: var(--button-ink);
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 1rem;
}

.badge svg { width: 1.05rem; height: 1.05rem; flex: none; }

.actions a { font-weight: 500; }

/* The redaction demo */

.stage {
  margin: 0;
  position: relative;
  border-radius: 28px;
  background: var(--gradient);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--separator);
}

/* The pages sit in one grid cell as a stack; JS sets data-depth and turns the top one. */
.pages {
  display: grid;
  perspective: 1800px;
}

.page {
  grid-area: 1 / 1;
  background: #FFFFFF;
  color: #1A1A1A;
  border-radius: 6px;
  padding: clamp(1.1rem, 3vw, 2rem);
  font-family: var(--sans);
  font-size: clamp(0.76rem, 1.1vw, 0.86rem);
  line-height: 1.5;
  box-shadow: 0 30px 60px -20px rgba(1, 1, 1, 0.55);
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.page[data-depth="0"] { z-index: 3; transform: rotate(-1.2deg); }
.page[data-depth="1"] { z-index: 2; transform: translate(5px, 7px) rotate(1.3deg); }
.page[data-depth="2"] { z-index: 1; transform: translate(9px, 12px) rotate(-0.2deg); }

.page.is-turning {
  z-index: 4;
  animation: turn-page 0.95s cubic-bezier(0.55, 0, 0.3, 1) forwards;
}

@keyframes turn-page {
  0% { transform: rotate(-1.2deg); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(-1.2deg) translateX(-6%) rotateY(-115deg); opacity: 0; }
}

.page p { margin: 0 0 0.85em; }
.page p:last-child { margin-bottom: 0; }

.page--letter {
  font-family: var(--serif);
  font-size: clamp(0.82rem, 1.25vw, 0.95rem);
  line-height: 1.6;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #E4E2E8;
  padding-bottom: 0.75em;
  margin-bottom: 1em;
  font-family: var(--sans);
  font-size: 0.86em;
  color: #5A5A5A;
}

.page--letter .doc-head { font-size: 0.82em; }
.doc-head span { white-space: nowrap; }
.doc-head b { color: #1A1A1A; font-weight: 700; font-size: 1.1em; }
.doc-head--rule { border-bottom: 2px solid #1A1A1A; }

.page dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15em 1em;
  margin: 0 0 1em;
}

.page dt { color: #6A6A6A; white-space: nowrap; }
.page dd { margin: 0; }
.page .nobr { white-space: nowrap; }
.page .num { font-variant-numeric: tabular-nums; }

.w2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #C9C6CF;
  border-left: 1px solid #C9C6CF;
}

.w2 > div {
  border-right: 1px solid #C9C6CF;
  border-bottom: 1px solid #C9C6CF;
  padding: 0.4em 0.6em 0.45em;
  min-width: 0;
}

.w2 .wide { grid-column: span 2; }

.w2 small {
  display: block;
  font-size: 0.76em;
  color: #6A6A6A;
  line-height: 1.3;
  margin-bottom: 0.15em;
}

.page table {
  width: 100%;
  border-collapse: collapse;
}

.page td {
  padding: 0.4em 0;
  border-top: 1px solid #ECEAEF;
  vertical-align: top;
}

.page td:first-child { color: #6A6A6A; white-space: nowrap; padding-right: 0.9em; }
.page td.num { text-align: right; white-space: nowrap; padding-left: 0.9em; }

/* A Finding: the sensitive text, then its Redaction burned over it. */
.f {
  position: relative;
  display: inline-block;
  line-height: 1.35;
  padding: 0 0.12em;
  margin: 0 -0.12em;
  border-radius: 3px;
  white-space: nowrap;
}

.f::before,
.f::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 3px;
  pointer-events: none;
}

.f::before {
  background: var(--finding-fill);
  box-shadow: inset 0 0 0 1.5px var(--finding-line);
  opacity: 0;
}

.f::after {
  content: attr(data-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--redaction);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
  clip-path: inset(0 100% 0 0);
}

.page[data-state="found"] .f::before { opacity: 1; transition: opacity 0.35s ease calc(var(--i, 0) * 90ms); }

.page[data-state="redacted"] .f::before { opacity: 1; }
.page[data-state="redacted"] .f::after {
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.45s cubic-bezier(0.65, 0, 0.35, 1) calc(var(--i, 0) * 110ms);
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 2rem);
  color: #F3EEFB;
  font-size: 0.9rem;
}

.stage-status { margin: 0; min-height: 1.4em; }

.toggle {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #010101;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.toggle:hover { background: #FFFFFF; }
.toggle:focus-visible { outline-color: #FFFFFF; }

/* Sections */

.section {
  border-top: 1px solid var(--separator);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 750;
  margin: 0 0 1rem;
  max-width: 22ch;
}

.section-intro {
  color: var(--muted);
  max-width: var(--measure);
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

/* Promises: a plain list with rules between, not cards. */
.promises {
  list-style: none;
  margin: 0;
  padding: 0;
}

.promises li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--separator);
}

.promises li:first-child { border-top: 0; padding-top: 0.25rem; }

.promises svg {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--tint);
  margin-top: 0.15rem;
}

.promises h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.promises p { margin: 0; color: var(--muted); max-width: var(--measure); }

/* Steps: a real sequence, so numbered. */
.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}

.steps li { counter-increment: step; }

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--tint-soft);
  color: var(--tint);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.steps h3 { margin: 0 0 0.4rem; font-size: 1.15rem; letter-spacing: -0.01em; }
.steps p { margin: 0; color: var(--muted); }

.copied {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: clamp(1.25rem, 3vw, 2rem);
  max-width: 44rem;
}

.copied figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.copied blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ph {
  background: var(--tint-soft);
  color: var(--tint);
  border-radius: 6px;
  padding: 0.05em 0.35em;
  font-weight: 600;
  font-size: 0.92em;
  white-space: nowrap;
}

/* What it finds */
.kinds {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.kinds div { border-top: 2px solid var(--ink); padding-top: 0.85rem; }
.kinds dt { font-weight: 700; margin-bottom: 0.5rem; }
.kinds dd { margin: 0; color: var(--muted); line-height: 1.7; }

.footnote { color: var(--muted); font-size: 0.95rem; margin: 2rem 0 0; max-width: var(--measure); }

/* Closing */
.closing { text-align: center; }
.closing h2 { margin-left: auto; margin-right: auto; }
.closing .section-intro { margin: 0 auto 2rem; }
.closing .actions { justify-content: center; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--separator);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Prose pages (Privacy, Support) */
.prose {
  max-width: 40rem;
  padding-top: clamp(1.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.prose h1 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.prose .updated { color: var(--muted); margin: 0 0 2.5rem; }

.prose h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.6rem;
}

.prose h3 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

.summary {
  background: var(--tint-soft);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin: 0 0 1rem;
}

.summary p { margin: 0; }

/* Layout changes */

@media (max-width: 960px) {
  .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hero .wrap,
  .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .site-nav { gap: 1rem; }
  .page dl { grid-template-columns: minmax(0, 1fr); }
  .page dd { margin-bottom: 0.35em; }
  .stage-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .kinds { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .stage .f::before,
  .stage .f::after,
  .page { transition: none !important; }
  .page.is-turning { animation: none; }
}

.defs { position: absolute; }

/* Vaults: a sample Vault whose key the visitor can destroy. */
.vault-points { margin-top: 2rem; }
.vault-points li { grid-template-columns: minmax(0, 1fr); }

/* The vault itself is steel-dark in both appearances, like the hero stage. */
.vault {
  --steel-ink: #F3EEFB;
  --steel-muted: #A39FAD;
  --destructive: #FF6961;
  align-self: start;
  position: sticky;
  top: 2rem;
  color: var(--steel-ink);
  background:
    radial-gradient(120% 70% at 0% 0%, rgba(201, 184, 232, 0.16), rgba(201, 184, 232, 0) 60%),
    linear-gradient(165deg, #26232C 0%, #141317 45%, #070609 100%);
  border-radius: 28px;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(201, 184, 232, 0.18),
    0 40px 80px -30px rgba(42, 31, 74, 0.6);
}

.bolt {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #5A5563, #1D1B21 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.bolt:nth-child(1) { top: 14px; left: 14px; }
.bolt:nth-child(2) { top: 14px; right: 14px; }
.bolt:nth-child(3) { bottom: 14px; left: 14px; }
.bolt:nth-child(4) { bottom: 14px; right: 14px; }

.vault-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0.5rem 1.25rem;
}

.dial { width: 4rem; height: 4rem; }
.dial-rim { fill: #1D1B21; stroke: rgba(201, 184, 232, 0.35); stroke-width: 2; }
.dial-ticks { fill: none; stroke: rgba(201, 184, 232, 0.55); stroke-width: 3; stroke-dasharray: 1 5.67; }
.dial-face { fill: #0D0C10; stroke: rgba(255, 255, 255, 0.08); }
.dial-handle {
  fill: #C9B8E8;
  stroke: #C9B8E8;
  stroke-width: 3;
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 32px 32px;
  transition: transform 1.1s cubic-bezier(0.5, 0, 0.2, 1), fill 0.4s, stroke 0.4s;
}

.vault-name {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vault-count { margin: 0.1rem 0 0; color: var(--steel-muted); font-size: 0.88rem; }

.vault-key {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgba(201, 184, 232, 0.14);
  color: #C9B8E8;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}

.vault-key svg { width: 1rem; height: 1rem; }

/* The interior: files standing on a dark shelf. */
.files {
  list-style: none;
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.25rem);
  background: #050407;
  border-radius: 18px;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.file { min-width: 0; }

.thumb {
  position: relative;
  aspect-ratio: 8.5 / 11;
  background: #FFFFFF;
  border-radius: 4px;
  padding: 12% 11% 0;
  display: flex;
  flex-direction: column;
  gap: 6%;
  overflow: hidden;
  /* Folded corner. */
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.9);
  margin-bottom: 0.7rem;
}

.thumb::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(225deg, transparent 50%, #D9D5E0 50%);
  z-index: 1;
}

.thumb i { display: block; height: 4px; border-radius: 2px; background: #DAD8DE; width: 78%; flex: none; }
.thumb i.s { width: 42%; }
.thumb i.m { width: 60%; }
.thumb i.l { width: 100%; }
.thumb .t-head { height: 6px; background: #1A1A1A; width: 55%; }
.thumb .t-bar { height: 7px; background: #010101; border-radius: 1.5px; }

.t-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8%;
  padding: 6% 0;
  border-top: 1px solid #E4E2E8;
  border-bottom: 1px solid #E4E2E8;
}

.t-grid i { width: 100%; }

.cipher {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 8%;
  background: #141317;
  color: #8E8B95;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 7px;
  line-height: 1.35;
  word-break: break-all;
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

.file-name {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file time { display: block; color: var(--steel-muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.vault-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.5rem 0.25rem;
}

.vault-status { margin: 0; color: var(--steel-muted); font-size: 0.92rem; }

.destroy {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 105, 97, 0.14);
  color: var(--destructive);
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 1.15rem;
  cursor: pointer;
  white-space: nowrap;
}

.destroy:hover { background: rgba(255, 105, 97, 0.22); }
.destroy:focus-visible { outline-color: #F3EEFB; }

/* Destroyed: the key is gone and the dial spins shut; files are only ciphertext. Dates stay in the clear. */
.vault[data-state="destroyed"] .dial-handle { transform: rotate(240deg); fill: #5A5563; stroke: #5A5563; }
.vault[data-state="destroyed"] .vault-key {
  background: transparent;
  color: var(--steel-muted);
  box-shadow: inset 0 0 0 1px rgba(163, 159, 173, 0.45);
}
.vault[data-state="destroyed"] .vault-key-label { text-decoration: line-through; }
.vault[data-state="destroyed"] .cipher { clip-path: inset(0 0 0 0); }
.vault[data-state="destroyed"] .file:nth-child(2) .cipher { transition-delay: 0.12s; }
.vault[data-state="destroyed"] .file:nth-child(3) .cipher { transition-delay: 0.24s; }
.vault[data-state="destroyed"] .vault-name,
.vault[data-state="destroyed"] .file-name {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-weight: 400;
  color: var(--steel-muted);
}
.vault[data-state="destroyed"] .vault-name { font-size: 1.05rem; }
.vault[data-state="destroyed"] .destroy { background: rgba(243, 238, 251, 0.1); color: var(--steel-ink); }

@media (prefers-reduced-motion: reduce) {
  .dial-handle, .cipher, .vault-key { transition: none !important; }
}

@media (max-width: 820px) {
  .vault { position: relative; top: 0; }
}

@media (max-width: 480px) {
  .vault-head { grid-template-columns: auto minmax(0, 1fr); }
  .vault-key { grid-column: 1 / -1; justify-self: start; }
  .dial { width: 3.25rem; height: 3.25rem; }
  .file-name { font-size: 0.8rem; }
  .vault-foot { flex-direction: column; align-items: stretch; }
}

/* Pricing: Free is plain, Pro is the steel panel from the vault. */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}

.plan {
  background: var(--card);
  border: 1px solid var(--separator);
  border-radius: 24px;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
}

.plan h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.01em; }

.price { margin: 0.6rem 0 0; color: var(--muted); }

.price .amount {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  margin-right: 0.15em;
}

.plan-note { margin: 0.4rem 0 1.5rem; color: var(--muted); min-height: 3.1em; }

.plan-list {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--separator);
  display: grid;
  gap: 0.7rem;
}

.plan-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.plan-list svg { width: 1.1rem; height: 1.1rem; margin-top: 0.2rem; color: var(--tint); }

.plan--pro {
  --muted: #A39FAD;
  --ink: #F3EEFB;
  --separator: rgba(201, 184, 232, 0.2);
  color: var(--ink);
  border: 0;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(201, 184, 232, 0.2), rgba(201, 184, 232, 0) 60%),
    linear-gradient(165deg, #26232C 0%, #141317 45%, #070609 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(201, 184, 232, 0.22),
    0 40px 80px -30px rgba(42, 31, 74, 0.6);
}

.plan--pro .plan-list svg { color: #C9B8E8; }

.safety-note {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  background: var(--tint-soft);
  max-width: none;
}

.safety-note strong { color: var(--ink); }

@media (max-width: 820px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-note { min-height: 0; }
}

.nobr { white-space: nowrap; }

@media (max-width: 380px) {
  .brand { font-size: 1.05rem; gap: 0.45rem; }
  .site-nav { gap: 0.8rem; }
  .site-nav a { font-size: 0.88rem; }
}
