/* ==========================================================================
   Skandax Messages Shield (SMS) — sms.skandax.nexus
   Self-contained stylesheet. No external fonts, images or imports.
   Palette matches the Android app's design:
   background #0B0D11 · surface #12151C · primary #D4AF37 · text #E2E2E8.
   ========================================================================== */

:root {
  --bg: #0b0d11;
  --bg-deep: #080a0e;
  --surface: #12151c;
  --surface-2: #1a1e29;
  --surface-3: #202533;
  --gold: #d4af37;
  --gold-bright: #f3d67a;
  --gold-dim: #8c6d1f;
  --text: #e2e2e8;
  --text-2: #d0c5af;
  --muted: #99907c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --gold-border: rgba(212, 175, 55, 0.28);
  --gold-soft: rgba(212, 175, 55, 0.1);
  --ok: #10b981;
  --ok-bright: #4ade80;
  --danger: #ef4444;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 620px at 85% -12%, rgba(212, 175, 55, 0.1), transparent 62%),
    radial-gradient(820px 500px at 4% 4%, rgba(16, 185, 129, 0.05), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(212, 175, 55, 0.32);
  color: #fff;
}

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

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

a:hover {
  color: var(--gold-bright);
}

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

.container {
  width: min(1160px, 100% - 48px);
  margin-inline: auto;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.18em;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 18px;
  background: var(--gold);
  color: #0b0d11;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 14px;
  color: #0b0d11;
}

/* ---------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 17, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.28));
}

.brand-mark-sm {
  width: 34px;
  height: 34px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px;
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

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

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--gold-bright);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.35em;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    transform 0.16s ease, box-shadow 0.16s ease;
}

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

.btn-primary {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 58%, #b8922a);
  color: #0b0d11;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #ffe79a, var(--gold-bright) 58%, var(--gold));
  color: #0b0d11;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-border);
  color: var(--gold-bright);
}

.btn-sm {
  padding: 0.55em 0.95em;
  font-size: 0.7rem;
}

/* ----------------------------------------------------------------- pages -- */

.page {
  display: block;
}

html.js .page {
  display: none;
}

html.js .page.is-active {
  display: block;
  animation: page-in 0.28s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.noscript-bar {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  color: var(--text-2);
  font-size: 0.92rem;
}

.noscript-bar strong {
  color: var(--gold-bright);
}

/* ------------------------------------------------------------------ hero -- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 68px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 30%, #000 20%, transparent 78%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok-bright);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.06);
  }
}

h1 {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.6vw, 3.55rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.012em;
  color: var(--text);
  text-wrap: balance;
}

h1:focus {
  outline: none;
}

.accent {
  color: var(--gold-bright);
}

.lead {
  margin: 0 0 26px;
  max-width: 58ch;
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.pill .icon {
  color: var(--ok-bright);
  width: 0.95em;
  height: 0.95em;
}

.pill-sm {
  font-size: 0.62rem;
  padding: 4px 9px;
}

/* ------------------------------------------------------------- vault card -- */

.vault-card {
  position: relative;
  padding: 22px;
  background: linear-gradient(158deg, #161a24 0%, #10131a 60%, #0e1117 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.vault-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.8;
}

.vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.vault-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.vault-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ok-bright);
}

.vault-rows {
  margin: 6px 0 0;
}

.vault-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

.vault-row:last-child {
  border-bottom: 0;
}

.vault-row dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.vault-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.01em;
  text-align: right;
  color: var(--text);
}

.vault-row dd.ok {
  color: var(--ok-bright);
}

.vault-foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ------------------------------------------------------------------ stats -- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  padding: 24px 22px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: 0;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gold-bright);
  line-height: 1.1;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- sections -- */

.section {
  padding: 84px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.017);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.9vw, 2.3rem);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.008em;
  color: var(--text);
  text-wrap: balance;
}

.section-lead {
  margin: 0;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-2);
}

.section-note {
  margin: 26px 0 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--gold-border);
  border-radius: 0 8px 8px 0;
  font-size: 0.88rem;
  color: var(--muted);
}

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

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

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

.card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  background: #141822;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 11px;
  color: var(--gold-bright);
}

.card-icon .icon {
  width: 22px;
  height: 22px;
}

.card h3 {
  margin: 0 0 9px;
  font-size: 1.03rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-2);
}

.card code,
.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.34em;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  color: var(--gold-bright);
}

.card-warn .card-icon {
  background: rgba(239, 68, 68, 0.09);
  border-color: rgba(239, 68, 68, 0.32);
  color: #f87171;
}

.card-warn:hover {
  border-color: rgba(239, 68, 68, 0.3);
}

.split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: start;
}

/* ------------------------------------------------------------------ lists -- */

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

.list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-2);
}

.list li::before {
  position: absolute;
  left: 0;
  top: 0.05em;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
}

.list-x li::before {
  content: "\2715";
  color: var(--danger);
}

.list-check li::before {
  content: "\2713";
  color: var(--ok-bright);
}

/* ---------------------------------------------------------------- callout -- */

.callout {
  padding: 26px 26px 24px;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.07), rgba(18, 21, 28, 0.9));
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}

.callout-info {
  border-left-color: var(--gold);
}

.callout-ok {
  border-left-color: var(--ok);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.07), rgba(18, 21, 28, 0.9));
}

.callout h3,
.callout .callout-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.callout .callout-title {
  padding: 0;
  border: 0;
}

.callout p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  line-height: 1.68;
  color: var(--text-2);
}

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

.callout a {
  color: var(--gold-bright);
}

/* ------------------------------------------------------------------ steps -- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

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

.step-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 4px;
}

.step h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

.step p {
  margin: 0;
  max-width: 76ch;
  font-size: 0.94rem;
  line-height: 1.66;
  color: var(--text-2);
}

/* -------------------------------------------------------------------- cta -- */

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 40px;
  background:
    radial-gradient(600px 260px at 82% 0%, rgba(212, 175, 55, 0.14), transparent 70%),
    linear-gradient(155deg, #151923, #10131a);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
}

.cta .section-title {
  margin-bottom: 10px;
}

.cta .section-lead {
  max-width: 58ch;
  font-size: 0.94rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* -------------------------------------------------------------- page hero -- */

.page-hero {
  position: relative;
  padding: 62px 0 42px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(760px 340px at 78% -30%, rgba(212, 175, 55, 0.12), transparent 70%),
    linear-gradient(180deg, #0d1016, var(--bg));
}

.page-hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.1rem);
  margin-bottom: 14px;
}

.page-lead {
  margin: 0 0 24px;
  max-width: 74ch;
  font-size: 1.04rem;
  line-height: 1.68;
  color: var(--text-2);
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meta-chips li {
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------------- toc -- */

.toc {
  margin: 0 0 44px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 3px 0;
  font-size: 0.86rem;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc a:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-border);
}

/* ------------------------------------------------------------------ prose -- */

.prose {
  max-width: 830px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.76;
}

.prose > p {
  margin: 0 0 1.05em;
}

.prose .lead {
  font-size: 1.05rem;
  color: var(--text-2);
  margin-bottom: 30px;
}

.prose h2 {
  margin: 2.5em 0 0.65em;
  padding-top: 0.65em;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.38rem, 2.2vw, 1.68rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2:first-of-type {
  margin-top: 1.6em;
}

.prose h3 {
  margin: 1.9em 0 0.5em;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--gold-bright);
  letter-spacing: 0.005em;
}

.prose h2 + h3 {
  margin-top: 0.9em;
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

.prose li {
  margin-bottom: 0.5em;
}

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

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

.prose a {
  color: var(--gold);
}

.prose a:hover {
  color: var(--gold-bright);
}

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

.prose .callout {
  margin: 26px 0;
}

.prose .callout h2 {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.prose .list {
  margin-top: 4px;
}

.policy-foot {
  margin: 46px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--muted);
}

/* ----------------------------------------------------------------- tables -- */

.table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.91rem;
}

caption {
  text-align: left;
}

th {
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
  vertical-align: bottom;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
  line-height: 1.55;
}

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

tbody tr:hover {
  background: rgba(255, 255, 255, 0.018);
}

td code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.1em 0.35em;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  color: var(--gold-bright);
}

/* -------------------------------------------------------------- placeholders -- */

.ph {
  display: inline;
  padding: 0 0.3em;
  background: rgba(212, 175, 55, 0.12);
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 4px;
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.84em;
  line-height: 1.7;
  cursor: help;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- contact -- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 8px;
}

.prose .contact-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prose .contact-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--text);
}

.contact-card h2 .icon {
  color: var(--gold);
  width: 20px;
  height: 20px;
}

.contact-card p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.contact-list {
  margin: 0;
}

.contact-list dt {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list dd {
  margin: 3px 0 0;
  font-size: 0.92rem;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.contact-list dd code {
  font-size: 0.82em;
}

.small {
  font-size: 0.84rem !important;
  color: var(--muted) !important;
}

/* ----------------------------------------------------------------- footer -- */

.site-footer {
  margin-top: 40px;
  padding: 64px 0 26px;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

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

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-tagline {
  max-width: 340px;
  margin: 0 0 16px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.footer-heading {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-2);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 28px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-version {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-bottom .ph {
  font-size: 0.9em;
}

/* --------------------------------------------------------------- responsive -- */

@media (max-width: 1040px) {
  .hero-grid {
    gap: 36px;
  }

  .nav {
    gap: 18px;
  }

  .nav-list {
    gap: 15px;
  }

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

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

@media (max-width: 900px) {
  .hero {
    padding: 60px 0 52px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .cta {
    padding: 32px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 24px 22px;
    background: #0d1016;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.45);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 11px 4px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-link::after {
    display: none;
  }

  .nav-link[aria-current="page"] {
    color: var(--gold-bright);
  }

  .nav-cta {
    margin-top: 10px;
    align-self: flex-start;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-sub {
    font-size: 0.53rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-bottom: 0;
  }

  .grid-3,
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .toc ul {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .page-hero {
    padding: 46px 0 34px;
  }

  .section {
    padding: 56px 0;
  }

  .cta {
    padding: 26px;
  }

  .cta-actions .btn {
    flex: 1 1 auto;
  }

  .prose {
    font-size: 0.97rem;
  }

  .prose h2 {
    margin-top: 2em;
  }

  table {
    min-width: 520px;
  }
}

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

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .stat:last-child {
    border-bottom: 0;
  }
}

/* ------------------------------------------------------------------ print -- */

@media print {
  .site-header,
  .site-footer,
  .nav,
  .nav-toggle,
  .skip-link,
  .hero-actions,
  .cta-actions,
  .noscript-bar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .container {
    width: 100%;
  }

  .page-hero,
  .section,
  .hero {
    padding: 12pt 0;
    background: none;
    border: 0;
  }

  .page,
  .prose,
  .prose p,
  .prose li,
  .prose td,
  .lead,
  .section-lead {
    color: #111 !important;
  }

  .prose h2,
  .prose h3,
  .section-title,
  .stat-value,
  .eyebrow,
  .callout .callout-title {
    color: #000 !important;
  }

  .prose a {
    color: #000;
  }

  .table-wrap,
  .contact-card,
  .callout,
  .toc {
    border: 1px solid #999;
    background: none;
  }

  .ph {
    background: none;
    border: 1px dashed #666;
    color: #000;
  }
}

/* -------------------------------------------------------------- reduced motion -- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ------------------------------------------------------------- changelog -- */
.changelog {
  display: grid;
  gap: 18px;
  margin: 24px 0 8px;
}

.changelog-entry {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.changelog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.changelog-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.changelog-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.changelog-tag-app {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--ok-bright);
}

.changelog-tag-policy,
.changelog-tag-terms {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.changelog-date {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.changelog-entry ul {
  margin: 0;
  padding-left: 20px;
}

.changelog-entry li {
  margin: 4px 0;
}

@media (max-width: 640px) {
  .changelog-date {
    margin-left: 0;
  }
}
/* ------------------------------------------------------- footer credit -- */
.footer-made {
  margin: 26px 0 4px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  color: var(--text-2);
  line-height: 1.7;
}

.footer-made svg {
  vertical-align: -2px;
}

.made-heart {
  width: 13px;
  height: 13px;
  margin: 0 3px;
  fill: #e11d2e;
  color: #e11d2e;
  transform-origin: center;
  animation: made-heart-beat 2.8s ease-in-out infinite;
}

.made-flag {
  width: 19px;
  height: 12.6px;
  margin-left: 5px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--border-strong);
}

@keyframes made-heart-beat {
  0%, 100% { transform: scale(1); }
  12% { transform: scale(1.12); }
  24% { transform: scale(1); }
  36% { transform: scale(1.06); }
  48% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .made-heart { animation: none; }
}

@media (max-width: 640px) {
  .footer-made { font-size: 0.8rem; }
}
/* ----------------------------------------------------------- store CTAs -- */
.play-icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.nav-cta .play-icon {
  width: 1.05em;
  height: 1.05em;
}

.store-cta[hidden] {
  display: none !important;
}

.btn-soon {
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: default;
}

.btn-soon:hover {
  transform: none;
  border-color: var(--border-strong);
  color: var(--muted);
}

.hero-actions {
  margin-bottom: 14px;
}

.hero-store-note {
  margin: 0 0 22px;
  font-size: 0.82rem;
  color: var(--muted);
}

.hero-store-note a {
  color: var(--text-2);
}

.hero-store-note a:hover {
  color: var(--gold-bright);
}

@media (max-width: 640px) {
  .hero-store-note {
    font-size: 0.78rem;
  }
}