/* u:xarvune.tech:48e21f69 */
:root {
  --bg: #ebe3d6;
  --paper: #f7f1e6;
  --ink: #2a2118;
  --muted: #6b5e4e;
  --line: #d4c7b4;
  --gold: #b3c474;
  --gold-deep: #bec474;
  --seal: #5c3430;
  --sage: #6e7a62;
  --brown: #3a2e22;
  --shadow: 0 12px 32px rgba(42, 33, 24, 0.08);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(196, 165, 116, 0.12), transparent 45%),
    linear-gradient(180deg, #f0e8db 0%, var(--bg) 40%, #e4d9c8 100%);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1080px, calc(100% - 20px)); margin: 0 auto; position: relative; z-index: 1; }

.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 241, 230, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  width: min(1080px, calc(100% - 20px));
  margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex: 0 0 auto;
}
.logo img { width: 28px; height: 28px; }
.logo span {
  font-family: var(--display);
  font-size: 1.4rem; font-weight: 600; letter-spacing: 0.02em;
}
.top nav {
  display: none; gap: 14px; margin-left: auto; margin-right: 6px;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.pill {
  text-decoration: none; background: var(--seal); color: #f7f1e6;
  padding: 9px 13px; border-radius: 999px; font-size: 0.74rem;
  font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  flex: 0 0 auto;
}
.pill-app {
  background: var(--gold); color: var(--brown);
}
.top-inner .pill-app + .pill { margin-left: 6px; }
@media (max-width: 859px) {
  .pill-app { margin-left: auto; }
}

.app-strip {
  margin: 0 0 14px;
  background:
    linear-gradient(135deg, rgba(42, 33, 24, 0.94), rgba(92, 64, 48, 0.92)),
    url("../img/desk-dossier.jpg?v=2") center/cover;
  border: 1px solid #4a3c2e;
  color: #f3ebe0;
  box-shadow: var(--shadow);
}
.app-strip-inner {
  display: grid; gap: 14px; padding: 18px 16px;
  background: linear-gradient(90deg, rgba(42, 33, 24, 0.55), transparent 70%);
}
.app-strip h2 {
  margin: 0 0 6px; font-family: var(--display);
  font-size: clamp(1.45rem, 3.5vw, 1.9rem); font-weight: 600; color: #f7f1e6;
}
.app-strip p { margin: 0; color: #cbb9a2; font-size: 0.9rem; max-width: 52ch; }
.app-strip .eyebrow { color: var(--gold); margin-bottom: 6px; }
.app-strip-cta { justify-self: start; }

.hero {
  display: grid; gap: 0; margin: 14px 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.hero::before {
  content: "Семейный архив";
  position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 800; white-space: nowrap;
  opacity: 0.75; z-index: 2;
}
.hero-visual {
  margin: 0; position: relative; background: #ddd2c0; min-height: 260px;
}
.hero-visual img {
  width: 100%; height: 100%; min-height: 260px;
  object-fit: cover; object-position: center;
}
.hero-visual .loupe {
  position: absolute; right: 10px; bottom: 10px;
  width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 16px rgba(42, 33, 24, 0.25);
  overflow: hidden; background: #c9b89a;
}
.hero-visual .loupe img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-copy { padding: 18px 16px 16px 28px; }
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 800;
}
.hero-copy h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 5.2vw, 2.75rem);
  line-height: 1.05; font-weight: 600;
}
.hero-copy h1 i { font-style: italic; color: var(--gold-deep); }
.lead { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.formula {
  background: var(--brown); color: #f3ebe0;
  padding: 10px 12px; margin: 0 0 14px;
  font-size: 0.78rem; letter-spacing: 0.02em;
}
.formula b { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border: 0; cursor: pointer;
  padding: 11px 16px; border-radius: 999px;
  font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.btn.gold { background: var(--gold); color: var(--brown); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.brown { background: var(--seal); color: #f7f1e6; }
.script-note {
  font-family: var(--script); font-size: 1.3rem; color: var(--gold-deep); margin: 8px 0 0;
}

.modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px;
}
.mode {
  background: var(--paper); border: 1px solid var(--line);
  padding: 12px; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
}
.mode .n {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--tan, #e8dfd0); color: var(--gold-deep);
  font-family: var(--display); font-weight: 600; margin-bottom: 6px;
  border: 1px solid var(--line);
}
.mode strong { display: block; font-size: 0.88rem; margin-bottom: 3px; }
.mode span { color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.mode.on { outline: 2px solid var(--gold); outline-offset: -2px; }

.panel {
  background: var(--paper); border: 1px solid var(--line);
  padding: 14px; margin: 0 0 14px; box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 4px; font-family: var(--display);
  font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 600;
}
.panel > p.sub { margin: 0 0 12px; color: var(--muted); font-size: 0.9rem; }

.example {
  display: grid; gap: 10px; margin: 0 0 14px;
}
.example figure {
  margin: 0; background: #fff; border: 1px solid var(--line); padding: 6px;
  position: relative;
}
.example img { width: 100%; height: 220px; object-fit: cover; }
.example figcaption {
  margin-top: 6px; font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.callouts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.callout {
  border: 1px solid var(--line); background: #fff; padding: 10px;
  font-size: 0.8rem;
}
.callout b {
  display: block; font-family: var(--display); font-size: 1.05rem;
  margin-bottom: 2px; color: var(--gold-deep);
}

/* —— ledger studio —— */
.ledger {
  background: #2a2118; color: #f3ebe0;
  border: 1px solid #4a3c2e; padding: 16px 14px 18px; margin: 0 0 14px;
  position: relative;
}
.ledger h2 { margin: 0 0 4px; font-family: var(--display); font-size: 1.7rem; color: #f7f1e6; }
.ledger .sub { margin: 0 0 14px; color: #cbb9a2; font-size: 0.9rem; }
.line-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.line-chips button {
  border: 1px solid #5a4a3a; background: #3a2e22; color: #f3ebe0;
  padding: 8px 11px; border-radius: 999px; cursor: pointer;
  font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
}
.line-chips button.on { background: var(--gold); color: var(--brown); border-color: var(--gold); }

.fields {
  display: grid; gap: 10px; margin-bottom: 12px;
}
.field label {
  display: block; font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 800; color: var(--gold); margin-bottom: 4px;
}
.field input, .field select {
  width: 100%; border: 1px solid #5a4a3a; border-radius: 2px;
  padding: 11px 12px; background: #3a2e22; color: #f7f1e6;
}
.field input::placeholder { color: #9a8874; }
.opt-photo {
  border: 1px dashed #6a5a48; padding: 12px; text-align: center; cursor: pointer;
  background: #3a2e22; margin-bottom: 12px;
}
.opt-photo strong { display: block; font-size: 0.88rem; margin-bottom: 2px; }
.opt-photo span { color: #b9a890; font-size: 0.8rem; }
.opt-photo input { display: none; }
.opt-preview {
  min-height: 80px; margin-top: 8px; display: grid; place-items: center;
  color: #9a8874; font-size: 0.8rem; border: 1px solid #4a3c2e;
}
.opt-preview img { width: 100%; max-height: 160px; object-fit: cover; }

.run-btn {
  width: auto; background: var(--gold); color: var(--brown); border: 0;
  padding: 12px 18px; border-radius: 999px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; cursor: pointer;
}
.run-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.seals { display: none; margin-top: 16px; }
.seals.on { display: block; }
.scan-progress {
  position: relative; height: 10px; border-radius: 999px;
  background: #3a2e22; border: 1px solid #5a4a3a; margin-bottom: 12px; overflow: hidden;
}
.scan-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #8f7349, var(--gold), #e8d4a8);
  box-shadow: 0 0 12px rgba(196, 165, 116, 0.45);
  transition: width 0.55s ease;
}
.scan-progress-pct {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; color: #f7f1e6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.seal-row {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.seal {
  flex: 0 0 auto; width: 78px; text-align: center;
}
.seal .wax {
  width: 52px; height: 52px; margin: 0 auto 5px; border-radius: 50%;
  border: 2px dashed #6a5a48; background: #3a2e22;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 0.95rem; color: #9a8874; font-weight: 600;
  transition: 0.35s ease;
}
.seal small {
  display: block; font-size: 0.62rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: #b9a890; font-weight: 700; line-height: 1.2;
}
.seal.active .wax {
  border-style: solid; border-color: var(--gold);
  background: radial-gradient(circle at 35% 30%, #8b5a3c, #5c4030);
  color: #f7f1e6; box-shadow: 0 0 0 3px rgba(196, 165, 116, 0.25);
  animation: wax-pulse 1.2s ease-in-out infinite;
}
.seal.done .wax {
  border-style: solid; border-color: var(--gold-deep);
  background: radial-gradient(circle at 35% 30%, #6e4a32, #3a2e22);
  color: var(--gold);
}
@keyframes wax-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.scan-stage {
  position: relative; border: 1px solid #4a3c2e; overflow: hidden; min-height: 200px;
  background: #3a2e22;
}
.scan-stage img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; opacity: 0.72;
  transition: opacity 0.4s ease, filter 0.4s ease;
  filter: sepia(0.25) contrast(1.05);
}
.scan-stage.scanning img { animation: scan-flicker 2.4s ease-in-out infinite; }
@keyframes scan-flicker {
  0%, 100% { opacity: 0.7; filter: sepia(0.2) contrast(1.05); }
  50% { opacity: 0.9; filter: sepia(0.35) contrast(1.12) brightness(1.05); }
}
.scan-beam {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  top: 0; opacity: 0; transition: top 0.4s linear;
  box-shadow: 0 0 18px rgba(196, 165, 116, 0.65);
  z-index: 3;
}
.scan-beam.on { opacity: 1; animation: beam-sweep 2.8s linear infinite; }
@keyframes beam-sweep {
  0% { top: 8%; }
  100% { top: 88%; }
}
.scan-loupe {
  position: absolute; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--gold); box-shadow: 0 0 0 1px rgba(0,0,0,0.35), inset 0 0 20px rgba(196,165,116,0.25);
  opacity: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle, rgba(247,241,230,0.12), transparent 70%);
  transition: left 0.7s ease, top 0.7s ease, opacity 0.3s;
}
.scan-loupe.on { opacity: 1; animation: loupe-breathe 1.8s ease-in-out infinite; }
@keyframes loupe-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.scan-tree {
  position: absolute; inset: 8% 6% 10%; width: 88%; height: 82%;
  z-index: 2; opacity: 0.92; pointer-events: none;
}
.scan-tree .tree-trunk,
.scan-tree .tree-branch {
  fill: none; stroke: rgba(196, 165, 116, 0.35); stroke-width: 2;
  stroke-linecap: round; stroke-dasharray: 220; stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.9s ease, stroke 0.4s;
}
.scan-tree.on .tree-trunk,
.scan-tree.on .tree-branch.lit {
  stroke-dashoffset: 0; stroke: rgba(196, 165, 116, 0.9);
}
.scan-tree .tree-node {
  fill: rgba(58, 46, 34, 0.85); stroke: rgba(154, 136, 116, 0.5); stroke-width: 1.5;
  opacity: 0; transform-origin: center; transform-box: fill-box;
  transition: opacity 0.35s ease, fill 0.35s, stroke 0.35s;
}
.scan-tree .tree-node.on {
  opacity: 1; fill: #5c4030; stroke: var(--gold);
  animation: node-glow 1.4s ease-in-out infinite;
}
@keyframes node-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 4px rgba(196, 165, 116, 0.8)); }
}
.scan-pulse {
  position: absolute; left: 50%; top: 55%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; background: var(--gold);
  opacity: 0; z-index: 3; pointer-events: none;
}
.scan-pulse.on {
  opacity: 1; animation: pulse-ring 1.6s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(196, 165, 116, 0.55); transform: scale(1); }
  100% { box-shadow: 0 0 0 40px rgba(196, 165, 116, 0); transform: scale(1.4); }
}
.scan-note { margin: 8px 0 0; color: #cbb9a2; font-size: 0.88rem; min-height: 1.4em; }
.scan-log {
  list-style: none; margin: 10px 0 0; padding: 0; max-height: 120px; overflow: auto;
}
.scan-log li {
  font-size: 0.78rem; color: #9a8874; padding: 4px 0 4px 14px; position: relative;
  border-bottom: 1px solid rgba(90, 74, 58, 0.45);
  animation: log-in 0.35s ease;
}
.scan-log li::before {
  content: "◆"; position: absolute; left: 0; color: var(--gold); font-size: 0.55rem; top: 7px;
}
.scan-log li.fresh { color: #e8d4a8; }
@keyframes log-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.dossier { display: none; margin-top: 16px; }
.dossier.on { display: block; }
.verdict {
  border: 1px solid var(--gold); background: #3a2e22; padding: 14px; margin-bottom: 12px;
  text-align: center;
}
.verdict .orn {
  color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; margin-bottom: 6px;
}
.verdict h3 {
  margin: 0 0 6px; font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: #f7f1e6;
}
.verdict .pct {
  font-family: var(--display); font-size: 2.6rem; font-weight: 600; color: var(--gold); line-height: 1;
}
.verdict .pct span { font-size: 1rem; color: #cbb9a2; margin-left: 4px; }
.verdict p { margin: 8px 0 0; color: #cbb9a2; font-size: 0.88rem; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px;
}
.stat {
  background: #3a2e22; border: 1px solid #4a3c2e; padding: 10px; text-align: center;
}
.stat b {
  display: block; font-family: var(--display); font-size: 1.5rem; color: var(--gold); font-weight: 600;
}
.stat span { font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: #b9a890; font-weight: 700; }

.tease-grid { display: grid; gap: 8px; margin-bottom: 12px; }
.tease {
  background: #3a2e22; border: 1px solid #4a3c2e; padding: 12px;
  display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center;
}
.tease .badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #8b5a3c, #3a2e22);
  border: 1px solid var(--gold); display: grid; place-items: center;
  font-family: var(--display); color: var(--gold); font-size: 0.85rem; font-weight: 600;
}
.tease strong { display: block; color: #f7f1e6; font-size: 0.92rem; margin-bottom: 2px; }
.tease span { color: #b9a890; font-size: 0.78rem; }
.tease .lock {
  display: inline-block; margin-top: 5px; padding: 2px 7px;
  background: var(--gold); color: var(--brown);
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}

.archives-found {
  background: #3a2e22; border: 1px solid #4a3c2e; padding: 12px; margin-bottom: 12px;
}
.archives-found h4 {
  margin: 0 0 8px; font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); font-weight: 800;
}
.archives-found ul { margin: 0; padding: 0 0 0 1.1em; color: #cbb9a2; font-size: 0.86rem; }
.archives-found li { margin: 0 0 4px; }

.full-tease {
  border: 1px solid var(--gold); padding: 12px; margin-bottom: 12px; background: #2f261c;
}
.full-tease h4 {
  margin: 0 0 8px; font-family: var(--display); font-size: 1.25rem; color: #f7f1e6; font-weight: 600;
}
.full-tease ol {
  margin: 0; padding: 0 0 0 1.15em; color: #cbb9a2; font-size: 0.86rem;
}
.full-tease li { margin: 0 0 5px; }
.dossier-app {
  border: 1px solid var(--gold); background: #2f261c; padding: 14px;
  margin-bottom: 12px; display: grid; gap: 8px;
}
.dossier-app strong {
  font-family: var(--display); font-size: 1.25rem; color: #f7f1e6; font-weight: 600;
}
.dossier-app span { color: #cbb9a2; font-size: 0.86rem; }
.dossier-app .btn { justify-self: start; }
.dossier-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tiny {
  margin: 10px 0 0; font-size: 0.72rem; color: #9a8874; line-height: 1.4;
}

.method-grid { display: grid; gap: 8px; counter-reset: m; }
.method-item {
  background: #fff; border: 1px solid var(--line);
  padding: 12px 12px 12px 52px; position: relative;
}
.method-item::before {
  counter-increment: m; content: counter(m);
  position: absolute; left: 12px; top: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #e8dfd0; color: var(--gold-deep);
  font-family: var(--display); font-size: 1.05rem; font-weight: 600;
  display: grid; place-items: center; border: 1px solid var(--line);
}
.method-item h3 {
  margin: 0 0 3px; font-family: var(--display); font-size: 1.15rem; font-weight: 600;
}
.method-item p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.rules {
  margin-top: 12px; background: #e8dfd0; border: 1px solid var(--line); padding: 12px 14px;
}
.rules h3 {
  margin: 0 0 8px; font-family: var(--display); font-size: 1.2rem; font-weight: 600;
}
.rules ul { margin: 0; padding: 0 0 0 1.1em; color: var(--muted); font-size: 0.88rem; }
.rules li { margin: 0 0 4px; }

.notes-grid { display: grid; gap: 10px; }
.note-card {
  display: block; text-decoration: none;
  background: #fff; border: 1px solid var(--line); padding: 14px; box-shadow: var(--shadow);
}
.note-card strong {
  display: block; margin-bottom: 5px;
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
}
.note-card span { color: var(--muted); font-size: 0.9rem; }

.faq details {
  background: var(--paper); border: 1px solid var(--line);
  padding: 11px 13px; margin-top: 7px;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 0.92rem; }
.faq p { margin: 7px 0 0; color: var(--muted); font-size: 0.9rem; }

.support {
  background: var(--paper); border: 1px solid var(--line);
  padding: 14px; box-shadow: var(--shadow);
}
.support label {
  display: block; font-size: 0.72rem; margin: 10px 0 4px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--muted);
}
.support input, .support textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 2px;
  padding: 11px 12px; background: #fff; color: var(--ink);
}
.support textarea { min-height: 100px; resize: vertical; }
.support .ok {
  display: none; margin-top: 10px; padding: 10px 12px;
  background: #e8dfd0; font-size: 0.88rem;
}
.support .ok.on { display: block; }

.foot-bar {
  background: var(--sage); color: #f3ebe0;
  text-align: center; padding: 14px 16px; margin: 8px 0 0;
  font-family: var(--display); font-size: clamp(1.05rem, 2.5vw, 1.3rem); font-style: italic;
}
.foot {
  padding: 18px 0 90px; border-top: 1px solid var(--line); margin-top: 0;
  color: var(--muted); font-size: 0.82rem; position: relative; z-index: 1;
}
.foot a { color: var(--ink); }
.foot .brand {
  font-family: var(--display); color: var(--ink); font-size: 1.35rem;
  font-weight: 600; margin-bottom: 6px;
}
.foot .req { margin-top: 10px; line-height: 1.45; }

.sticky-bar {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  z-index: 50; display: flex; gap: 8px; max-width: calc(100% - 20px);
}
.sticky {
  text-decoration: none;
  background: var(--seal); color: #f7f1e6;
  padding: 11px 16px; border-radius: 999px;
  font-weight: 800; font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(42, 33, 24, 0.3);
  white-space: nowrap;
}
.sticky-apk {
  background: var(--gold); color: var(--brown);
}
.sticky-form.hide { display: none; }
.sticky-bar.hide-all { display: none; }

.legal {
  max-width: 720px; margin: 0 auto; padding: 28px 16px 90px;
  background: var(--paper); position: relative; z-index: 1;
}
.legal h1 { font-family: var(--display); font-size: 1.9rem; font-weight: 600; }
.legal h2 { font-size: 1.1rem; margin-top: 1.3em; font-family: var(--display); }
.legal p { color: #3d342e; }

@media (min-width: 860px) {
  .top nav { display: flex; }
  .hero { grid-template-columns: 1.05fr 0.95fr; }
  .hero-visual { min-height: 100%; }
  .hero-visual img { min-height: 100%; height: 100%; }
  .hero-copy { padding: 22px 22px 18px 36px; }
  .modes { grid-template-columns: repeat(4, 1fr); }
  .example { grid-template-columns: 1.2fr 0.8fr; }
  .example img { height: 100%; min-height: 280px; }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .wide { grid-column: 1 / -1; }
  .tease-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .notes-grid { grid-template-columns: 1fr 1fr; }
  .ledger { padding: 22px; }
  .app-strip-inner {
    grid-template-columns: 1fr auto; align-items: center; padding: 22px 24px;
  }
}
@media (max-width: 520px) {
  .modes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .hero::before { display: none; }
  .hero-copy { padding-left: 16px; }
}
