/* Veskyra Prepare: site styles. Colours are set once, in the block below, for light and dark. */

/* tokens:start */
:root {
  --paper: #ece6d8;
  --paper-2: #e4ddcd;
  --surface: #f4efe5;
  --ink: #1a1a18;
  --ink-2: #4a4a44;
  --muted: #64645c;
  --faint: #97a19a;
  --border: #ddd5c5;
  --border-strong: #cfc6b2;
  --accent: #21553a;
  --accent-ink: #f4efe5;
  --accent-soft: #d7efe0;
  --accent-text: #21553a;
  --rust: #975131;
  --rust-soft: #efe0d6;
  --gold: #a37b43;
  --rail: #161e18;
  --rail-ink: #ece6d8;
  --band-accent: #8cc6b9;
  --band-link: #a9d6cc;
  --band-button: #73ae8b;
  --band-button-ink: #080e0a;
}
[data-theme='dark'] {
  --paper: #080e0a;
  --paper-2: #10160f;
  --surface: #161e18;
  --ink: #f0f5f2;
  --ink-2: #c4cdc6;
  --muted: #97a19a;
  --faint: #6a756d;
  --border: #232d26;
  --border-strong: #343f37;
  --accent: #73ae8b;
  --accent-ink: #080e0a;
  --accent-soft: #123724;
  --accent-text: #8fc3a4;
  --rust: #c57a53;
  --rust-soft: #2a1d14;
  --gold: #caa166;
  --rail: #05100a;
  --rail-ink: #f0f5f2;
}
.on-rail {
  --ink: #f0f5f2;
  --ink-2: #c4cdc6;
  --muted: #a3aca5;
  --faint: #6a756d;
  --surface: #1d2820;
  --paper-2: #111912;
  --accent: #73ae8b;
  --accent-soft: #17311f;
  --accent-text: #8fc3a4;
  --accent-ink: #080e0a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  background: var(--rail);
  color: var(--ink);
}
/* tokens:end */

html {
  --shadow: 0 1px 2px rgba(8, 14, 10, 0.04), 0 8px 24px -12px rgba(8, 14, 10, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: light;
}

html[data-theme='dark'] {
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 28px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px / 1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--display);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.04;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

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

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
}

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

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.site-head.scrolled {
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 800 1.28rem / 1 var(--display);
  letter-spacing: -0.02em;
}

.wordmark .mark {
  display: inline-flex;
  width: 28px;
  height: 28px;
}

.wordmark .mark img {
  width: 28px;
  height: 28px;
}

/* The secured-home symbol: the light-background art on a light page, the dark-background art on a dark one. */
.mark .mark-dark,
[data-theme='dark'] .mark .mark-light {
  display: none;
}

[data-theme='dark'] .mark .mark-dark {
  display: block;
}

/* The ™ after the product wordmark, as on the other Veskyra product sites. */
.wordmark .tm {
  font-size: 0.5em;
  font-weight: 600;
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
}

.mark-core {
  fill: var(--rust);
}

.site-head nav {
  flex: 1;
}

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

.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition:
    color 0.15s,
    background 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--ink);
  background: var(--paper-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

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

.menu-toggle {
  display: none;
  gap: 4px;
  align-content: center;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(2.8px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-2.8px) rotate(-45deg);
}

.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 8px 16px 20px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a:not(.btn) {
  padding: 12px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: 12px;
}

@media (max-width: 860px) {
  .site-head nav,
  .nav-actions .btn {
    display: none;
  }
  .nav {
    justify-content: space-between;
  }
  .menu-toggle {
    display: grid;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 0.98rem / 1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}

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

.btn-sm {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

/* Shared blocks */

.eyebrow {
  display: inline-block;
  font: 600 0.78rem / 1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38em;
}

section {
  padding: clamp(64px, 9vw, 112px) 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 48px;
}

.section-head .lead {
  margin-top: 16px;
}

.band {
  background: var(--paper-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.dark-band {
  background: var(--rail);
  color: var(--rail-ink);
}

.dark-band h2,
.dark-band h3 {
  color: var(--rail-ink);
}

.dark-band .lead,
.dark-band p {
  color: color-mix(in srgb, var(--rail-ink) 74%, transparent);
}

.dark-band .eyebrow {
  color: var(--band-accent);
}

.dark-band a {
  color: var(--band-link);
}

/* Hero */

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--faint);
}

.rings {
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  color: var(--accent);
}

/* The home page rings (2026-11-19): a pulse spreads out from the centre; each ring flashes gold as the pulse reaches it,
   then holds in the accent green. After that a softer pulse repeats every 6 s while the rings stay lit. Each ring's
   --d is when the pulse reaches it (the pulse grows linearly over 2.2 s from 0.2 s, so --d = 0.2 + 2.2 x r / 214)
   and --o is the opacity it holds. The base styles are the finished state, so reduced motion (which turns animation
   off) shows the rings lit. */
.rings .r {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  opacity: var(--o, 1);
  animation: ring-light 1.1s ease-out var(--d, 0s) both;
}

.rings .line {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 1;
  stroke-dasharray: 3 6;
}

.rings .wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  transform-box: view-box;
  transform-origin: 220px 220px;
  animation: ring-pulse 2.2s linear 0.2s both;
}

.rings .wave-again {
  stroke-width: 1.4;
  animation: ring-pulse-again 6s linear 3.4s infinite;
}

.rings .core {
  fill: var(--rust);
  transform-box: view-box;
  transform-origin: 220px 220px;
  animation:
    core-beat 0.9s ease-out both,
    core-beat-again 6s ease-out 3.4s infinite;
}

/* Each label sits centred in the band inside its ring, clear of the ring lines (2026-11-19). */
.rings .tick {
  fill: var(--ink);
  font: 600 10px var(--body);
  letter-spacing: 0.1em;
  animation: tick-in 0.6s ease-out var(--d, 0s) both;
}

@keyframes ring-light {
  0% {
    stroke: var(--border-strong);
    stroke-width: 1.2;
    opacity: 0.35;
  }
  30% {
    stroke: var(--gold);
    stroke-width: 3.2;
    opacity: 1;
  }
  100% {
    stroke: var(--accent);
    stroke-width: 1.6;
    opacity: var(--o, 1);
  }
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.04);
    opacity: 0.9;
  }
  85% {
    opacity: 0.35;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* The same pulse in the first 2.6 s of every 6, softer, then nothing until the next. */
@keyframes ring-pulse-again {
  0% {
    transform: scale(0.04);
    opacity: 0.55;
  }
  37% {
    opacity: 0.18;
  }
  43%,
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes core-beat {
  0% {
    transform: scale(0.5);
  }
  45% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes core-beat-again {
  0%,
  100% {
    transform: scale(1);
  }
  6% {
    transform: scale(1.22);
  }
  14% {
    transform: scale(1);
  }
}

@keyframes tick-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rings {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* Cards and grids */

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

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

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.card .more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
}

.card .more:hover {
  text-decoration: underline;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-text);
  margin-bottom: 20px;
}

.icon svg {
  width: 22px;
  height: 22px;
}

.dark-band .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: none;
}

.dark-band .card p {
  color: color-mix(in srgb, var(--rail-ink) 76%, transparent);
}

.dark-band .icon {
  background: color-mix(in srgb, var(--band-accent) 12%, var(--rail));
  color: var(--band-accent);
}

/* Split rows */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

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

.split .lead {
  margin-top: 18px;
}

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

.checks li {
  position: relative;
  padding: 18px 0 18px 36px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.dark-band .checks li {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

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

.checks li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 25px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.6px solid var(--accent);
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 7px var(--accent);
}

.dark-band .checks li::before {
  border-color: var(--band-accent);
  box-shadow:
    inset 0 0 0 3px var(--rail),
    inset 0 0 0 7px var(--band-accent);
}

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

.dark-band .checks strong {
  color: var(--rail-ink);
}

/* Page heads */

.page-head {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
}

.page-head h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.5rem);
  margin-bottom: 20px;
  max-width: 18em;
}

/* Prose */

.prose {
  max-width: 44rem;
}

.prose h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  margin: 56px 0 16px;
  scroll-margin-top: 88px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: var(--ink-2);
  margin-bottom: 16px;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 16px;
  color: var(--ink-2);
}

.prose li {
  margin-bottom: 10px;
}

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

.source {
  font-size: 0.88rem;
  color: var(--faint);
}

table.algos {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 0.96rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.algos th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  background: var(--paper-2);
}

.algos tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 600px) {
  .algos th:nth-child(1),
  .algos td:nth-child(1) {
    width: 42%;
  }
}

.callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  margin: 32px 0;
}

.callout h3 {
  margin-bottom: 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* The name */

.name-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 8px 0 8px;
}

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

.name-part {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.name-part .word {
  font: 800 1.9rem / 1 var(--display);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.name-part .word em {
  font-style: normal;
  color: var(--accent-text);
}

.name-part p {
  color: var(--muted);
}

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

.resources a {
  font-weight: 600;
}

.resources span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Closing call */

.closing {
  text-align: center;
}

.closing h2 {
  max-width: 18em;
  margin: 0 auto 18px;
}

.closing .lead {
  margin: 0 auto;
}

.closing .hero-ctas {
  justify-content: center;
}

/* Contact */

.contact-note {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40em;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.contact-aside h3 {
  margin-bottom: 8px;
}

.contact-aside p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 20px;
}

/* 404 */

.lost {
  min-height: 52vh;
  display: grid;
  align-content: center;
}

/* Footer */

.site-foot {
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  font-size: 0.94rem;
}

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

@media (max-width: 760px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

.foot-brand p {
  margin-top: 14px;
  color: var(--muted);
}

.foot-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}

.foot-head {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

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

.foot-links a:hover {
  color: var(--ink);
}

.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--faint);
  font-size: 0.86rem;
}

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

.foot-bottom a:hover {
  color: var(--ink);
}

.family a {
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* Reveal on scroll (site.js adds .in) */

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

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

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* Footer social links. */
.foot-social {
  display: flex;
  gap: 14px;
}

.foot-social a {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.foot-social a:hover {
  color: var(--accent);
}

.foot-social svg {
  width: 100%;
  height: 100%;
}

/* Line art (class "ill"), drawn only from the page's colour tokens. Feature pictures are real screens instead (.shot,
   below); what's left of the line art is small. */

.art {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 32px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.art svg,
.art img {
  position: relative;
  width: 100%;
  height: auto;
}

/* About: the Veskyra Prepare badge in the hero. The About page is the one place the badge appears; every other page
   uses the symbol. */
.art.about-badge {
  display: grid;
  place-items: center;
  aspect-ratio: 11 / 10;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.art.about-badge img {
  width: min(84%, 380px);
}

.ill .ln {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ill .thin {
  stroke: var(--faint);
  stroke-width: 1;
}
.ill .ac {
  stroke: var(--accent);
}
.ill .gd {
  stroke: var(--gold);
}
.ill .w2 {
  stroke-width: 2.2;
}
.ill .dash {
  stroke-dasharray: 7 6;
}
.ill .dots {
  stroke-dasharray: 0.1 8;
  stroke-width: 2.6;
}
.ill .f-soft {
  fill: var(--accent-soft);
}
.ill .f-ac {
  fill: var(--accent);
}
.ill .f-sf {
  fill: var(--surface);
}
.ill .f-pp {
  fill: var(--paper-2);
}
.ill .f-ink {
  fill: var(--ink-2);
}
.ill .f-gd {
  fill: var(--gold);
}
.ill .lbl {
  fill: var(--muted);
  font: 600 11px / 1 var(--body);
  letter-spacing: 0.12em;
}
.ill .lbl-ac {
  fill: var(--accent-text);
}
.ill .lbl-on {
  fill: var(--accent-ink);
}
.ill .mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Features: an index of the nine areas, then three chapters of illustrated rows. */

.fx-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 820px;
  margin-top: 40px;
}

@media (max-width: 640px) {
  .fx-index {
    grid-template-columns: 1fr 1fr;
  }
  .fx-index .n {
    display: none;
  }
  .fx-index a:last-child:nth-child(odd) {
    grid-column: span 2;
  }
}

.fx-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}

.fx-index a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.fx-index svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent-text);
}

.fx-index .n {
  margin-left: auto;
  font: 600 0.72rem / 1 var(--body);
  letter-spacing: 0.1em;
  color: var(--faint);
}

.chapter-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 28px;
  align-items: start;
  max-width: 52rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.chapter-head .num {
  grid-row: span 2;
  font: 800 clamp(2.6rem, 5vw, 3.6rem) / 0.9 var(--display);
  letter-spacing: -0.04em;
  color: var(--gold);
}

.chapter-head .lead {
  margin-top: 8px;
}

.fx {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  scroll-margin-top: 96px;
}

.fx + .fx {
  margin-top: clamp(64px, 9vw, 112px);
}

.fx.flip > figure {
  order: 2;
}

.fx .kicker {
  font: 600 0.78rem / 1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.fx h3 {
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.fx-copy > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.caps {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.caps li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 0.98rem;
}

.caps li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.6px solid var(--accent);
  box-shadow:
    inset 0 0 0 2.5px var(--surface),
    inset 0 0 0 6px var(--accent);
}

.band .caps li::before {
  box-shadow:
    inset 0 0 0 2.5px var(--paper-2),
    inset 0 0 0 6px var(--accent);
}

.note {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 860px) {
  .fx {
    grid-template-columns: 1fr;
  }
  .fx.flip > figure {
    order: 0;
  }
  .chapter-head {
    grid-template-columns: 1fr;
  }
  .chapter-head .num {
    grid-row: auto;
  }
}

/* Security: contents on the left, illustrated sections on the right. */

.sec-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(64px, 9vw, 112px);
}

.toc {
  position: sticky;
  top: 96px;
}

.toc .eyebrow {
  margin-bottom: 14px;
}

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

.toc a {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.toc a:hover,
.toc a[aria-current='location'] {
  color: var(--ink);
  border-left-color: var(--accent);
}

/* The section being read, kept current as the page scrolls (site.js). */
.toc a[aria-current='location'] {
  font-weight: 600;
}

.sec-block {
  padding: 0;
  scroll-margin-top: 96px;
}

.sec-block + .sec-block {
  margin-top: clamp(72px, 9vw, 112px);
}

.sec-block h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 14px;
}

.sec-block > p {
  color: var(--ink-2);
  max-width: 42rem;
}

.sec-block > p + p {
  margin-top: 14px;
}

.sec-block .eyebrow {
  margin-bottom: 12px;
}

@media (max-width: 960px) {
  .sec-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
}

/* The path a record takes: three steps, joined. */

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

.flow-step {
  position: relative;
  padding: 22px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.flow-step + .flow-step {
  border-left: 0;
}

.flow-step:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}

.flow-step:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.flow-step:not(:last-child)::after {
  content: '';
  position: absolute;
  z-index: 1;
  right: -13px;
  top: 36px;
  width: 24px;
  height: 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  transform: rotate(45deg);
}

.flow-art {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 50%;
  margin-bottom: 18px;
}

.flow-art svg {
  width: 24px;
  height: 24px;
}

.flow-step .step {
  display: block;
  font: 600 0.72rem / 1 var(--body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}

.flow-step h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.flow-step p {
  color: var(--muted);
  font-size: 0.94rem;
}

.flow-step.on-rail {
  border-color: var(--rail);
}

@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .flow-step + .flow-step {
    border-left: 1px solid var(--border);
    border-top: 0;
  }
  .flow-step.on-rail {
    border-color: var(--rail);
  }
  .flow-step:first-child {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .flow-step:last-child {
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .flow-step:not(:last-child)::after {
    right: auto;
    left: calc(50% - 12px);
    top: auto;
    bottom: -13px;
    transform: rotate(135deg);
  }
}

/* FAQ: each question in a box that opens, as on the other Veskyra product sites (2026-11-23). */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 860px;
  padding-bottom: clamp(48px, 7vw, 88px);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  /* The padding is on the question, not the box, so a click anywhere in the closed box opens it (2026-11-24). */
  padding: 22px 24px;
}

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

.faq-item summary::after {
  content: '+';
  flex: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item[open] {
  cursor: pointer;
}

.faq-item p {
  cursor: text;
  margin-top: -8px;
  padding: 0 24px 22px;
  color: var(--ink-2);
  line-height: 1.65;
}

/* What we hold, then what we can't read, stacked full width (2026-11-23): the long list runs in two columns and the
   short encryption list sits in one row of tags, so neither card is mostly empty space. */

.ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

.ledger-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 26px 18px;
  background: var(--surface);
}

.ledger-card.on-rail {
  border-color: var(--rail);
}

.ledger-card .ledger-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.ledger-card .icon {
  margin: 0;
  flex: none;
}

.ledger-card h3 {
  font-size: 1.12rem;
}

.ledger-card .sub {
  color: var(--muted);
  font-size: 0.92rem;
}

.ledger-card ul {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.ledger-card li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-top: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 0.95rem;
}

.ledger-card li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 17px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.6px solid var(--faint);
}

.ledger-card.on-rail li::before {
  top: 14px;
  width: 12px;
  height: 14px;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  -webkit-mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1.5 0h3V4a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2h1a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1.5 0h3V4a1.5 1.5 0 0 0-3 0z'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.ledger-foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 860px) {
  .ledger-card:not(.on-rail) ul {
    columns: 2;
    column-gap: 36px;
  }
  .ledger-card:not(.on-rail) li {
    break-inside: avoid;
  }
}

.ledger-card.on-rail ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.ledger-card.on-rail li {
  border: 1px solid var(--rail);
  border-radius: 999px;
  padding: 7px 14px 7px 32px;
}

.ledger-card.on-rail li::before {
  left: 13px;
  top: 9px;
}

/* Where the protection stops. */

.limits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.limit {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.limit .icon {
  width: 40px;
  height: 40px;
  margin: 0;
  background: var(--paper-2);
  color: var(--ink-2);
}

.limit .icon svg {
  width: 20px;
  height: 20px;
}

.limit h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.limit p {
  color: var(--muted);
  font-size: 0.93rem;
}

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

.sec-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}

.sec-split p + p {
  margin-top: 14px;
}

.sec-split p {
  color: var(--ink-2);
}

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

.callout .ill-inline {
  float: right;
}

/* About */

.pull {
  font: 700 clamp(1.5rem, 3vw, 2.2rem) / 1.25 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  border-left: 3px solid var(--gold);
  padding-left: clamp(18px, 3vw, 28px);
  max-width: 28em;
  text-wrap: balance;
}

.story p {
  color: var(--ink-2);
  font-size: 1.05rem;
}

.story p + p {
  margin-top: 16px;
}

/* Fill the first line, so only the bound phrase at the end ("as they are to ours.") moves down; "pretty" wrapping
   would pull earlier words down with it. */
.story .fill-first {
  text-wrap: wrap;
}

/* The questions Prepare started from, one per line (2026-11-23). */
.story .questions {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.story .questions li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
}

.story .questions li:last-child {
  border-bottom: 1px solid var(--border);
}

.story .questions li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 19px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.story .pull {
  margin: 32px 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  color: var(--ink);
}

.dark-band .card .icon {
  margin-bottom: 18px;
}

.feedback-note {
  margin-top: 20px;
  font-size: 0.92rem;
}

/* Buttons on the dark band keep their own colours (".dark-band a" would otherwise recolour their text). */
.dark-band .btn-primary {
  background: var(--band-button);
  color: var(--band-button-ink);
}

.dark-band .btn-secondary {
  color: var(--rail-ink);
  border-color: rgba(255, 255, 255, 0.24);
}

.dark-band .btn-secondary:hover {
  border-color: var(--rail-ink);
}

/* Real screens from the app, with a made-up demo household (apps/web/e2e/recordings/site-shots.spec.ts). Each picture
   comes in a light and a dark version, shown to match the page. */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.shot .shot-dark,
[data-theme='dark'] .shot .shot-light {
  display: none;
}

[data-theme='dark'] .shot .shot-dark {
  display: block;
}

.hero-grid:has(.hero-shot) {
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 4vw, 56px);
}

.hero-shot {
  margin: 0 calc(-1 * clamp(0px, 4vw, 64px)) 0 0;
}

.hero-frame {
  position: relative;
  padding: 0 9% 12% 0;
}

.hero-shot .shot-desktop {
  border-radius: var(--radius-sm);
}

.hero-shot .shot-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
}

.hero-shot figcaption {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--faint);
}

.shot-phone {
  border-radius: 22px;
  border: 5px solid var(--ink);
}

.phones {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 28px);
  max-width: 460px;
  margin: 0 auto;
}

.phones .shot-phone:last-child {
  margin-top: 48px;
}

.shot-recovery {
  max-width: 320px;
  justify-self: center;
}

@media (max-width: 860px) {
  .hero-grid:has(.hero-shot) {
    grid-template-columns: 1fr;
  }
  .hero-shot {
    margin: 0;
  }
}

/* Drawn illustrations use the approved light/dark artwork without cropping. */
.prepare-illustration {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}
.prepare-illustration > div {
  position: relative;
}
.prepare-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
}
.prepare-illustration .illustration-dark,
[data-theme='dark'] .prepare-illustration .illustration-light {
  display: none;
}
[data-theme='dark'] .prepare-illustration .illustration-dark {
  display: block;
}
.flow-step:last-child .prepare-illustration .illustration-light {
  display: none;
}
.flow-step:last-child .prepare-illustration .illustration-dark {
  display: block;
}
.flow-step .prepare-illustration {
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}
.scene-01-home {
  max-width: 760px;
  margin: 0 auto 40px;
}
.illustration-motion {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.motion-ready .illustration-motion {
  display: block;
}
/* The pen stroke starts wholly inside the dash pattern's gap (1.25 into a 1-on, 1.5-off pattern), so its round ends
   don't show as dots before it's drawn. */
.motion-ready .ink-draw {
  stroke-dasharray: 1 1.5;
  stroke-dashoffset: 1.25;
}
.motion-ready .goal-grow {
  transform-box: fill-box;
  transform-origin: left center;
  transform: scaleX(0);
}
.motion-ready .shelf-drop {
  opacity: 0;
  transform: translateY(-150px);
}
.motion-running .ink-draw {
  animation: illustration-ink var(--dur, 160ms) ease-out var(--delay) both;
}
.motion-running .goal-grow {
  animation: illustration-fill var(--dur, 2400ms) cubic-bezier(0.22, 0.61, 0.36, 1) var(--delay) both;
}
.motion-running .shelf-drop {
  animation: illustration-drop 900ms cubic-bezier(0.3, 0.7, 0.4, 1) var(--delay) both;
}
/* Property map: a short band travels once around the dashed boundary (and once along the dotted route), shifting from
   rust to gold to green as it goes, then fades. It plays again only after the map leaves the screen and comes back, or
   on reload (illustration-motion.js restarts it). The overlay adds colour, never hides. */
.map-trail {
  display: none;
  stroke: var(--rust);
  stroke-dasharray: 0.06 0.94;
}
.map-route {
  stroke-dasharray: 0.1 0.9;
}
.motion-running .map-trail {
  display: inline;
  animation:
    illustration-trail 10s linear forwards,
    illustration-trail-colour 10s linear forwards;
}
.motion-running .map-route {
  animation-duration: 7s, 7s;
}
/* Devices: each vault door flashes in turn (only while running). */
.door-flash {
  opacity: 0;
}
.motion-running .door-flash {
  animation: illustration-door 4.8s ease-in-out var(--delay) infinite;
}
.motion-ready:not(.motion-running)[data-motion-loop] .illustration-motion {
  display: none;
}
@keyframes illustration-door {
  0%,
  30%,
  100% {
    opacity: 0;
  }
  10%,
  16% {
    opacity: 0.9;
  }
}
@keyframes illustration-ink {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes illustration-fill {
  to {
    transform: scaleX(1);
  }
}
@keyframes illustration-drop {
  0% {
    opacity: 0;
    transform: translateY(-150px);
  }
  35% {
    opacity: 1;
  }
  75% {
    transform: translateY(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes illustration-trail {
  0% {
    stroke-dashoffset: 1;
    opacity: 1;
  }
  94% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes illustration-trail-colour {
  0%,
  100% {
    stroke: var(--rust);
  }
  33% {
    stroke: var(--gold);
  }
  66% {
    stroke: var(--accent);
  }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .illustration-motion {
    display: none;
  }
}

/* Download and plan page (draft, src/pages/download.html) */

.download-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.download-card .sub {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.download-card .btn {
  margin-top: auto;
}

.btn:disabled,
.amount:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.fine {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-card {
  max-width: 40rem;
}

.plan-prices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  align-items: baseline;
}

.plan-price .price {
  font: 700 clamp(2.2rem, 5vw, 3rem) / 1 var(--display);
  color: var(--ink);
}

.plan-price .per {
  margin-left: 6px;
  color: var(--muted);
}

.plan-trial {
  margin: 14px 0 22px;
  color: var(--ink-2);
}

.plan-ctas,
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-buttons {
  margin-top: 28px;
}

.plan-terms {
  margin: 24px 0 0;
  padding: 20px 0 0 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.94rem;
}

.plan-terms li + li {
  margin-top: 8px;
}

.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

.amount {
  min-width: 72px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  font: 600 0.98rem / 1 var(--body);
}

.amount.is-picked {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.draft-note {
  border-left-color: var(--rust);
}

.amount-other {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.amount-other input {
  width: 4.2em;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
