/* Cairn public surfaces — shared pixel-landing shell (register-guard safe)
   Palette: moonlit stone — cool slate + soft teal. No neon cyan/purple/green. */
#cairn-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: #06060f;
}
#cairn-bg canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
#cairn-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 72% 78% at 50% 44%, transparent 52%, rgba(3,4,12,0.92) 100%);
}
.public-page {
  position: relative; z-index: 1; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1.25rem 3rem;
}
.public-page.is-centered { justify-content: center; }
.public-nav {
  width: 100%; max-width: 32rem; margin-bottom: 1rem; font-size: 0.85rem;
}
.public-nav a {
  color: #94a3b8; text-decoration: none; border-bottom: 1px solid #334155;
}
.public-nav a:hover { color: #e2e8f0; border-color: #64748b; }
.glass-card {
  width: 100%; max-width: 32rem;
  background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(8px);
  border: 1px solid #1e293b; border-radius: 1rem;
  padding: 2rem 1.75rem; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
}
.glass-card.wide { max-width: 36rem; }
.glass-card h1 {
  margin: 0 0 0.35rem; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  /* Soft moonlit stone — not cyan→indigo→purple */
  color: #e8eef5;
  background: none; -webkit-background-clip: unset; background-clip: unset;
}
.glass-card .lede { margin: 0 0 1rem; color: #cbd5e1; font-style: italic; font-size: 0.95rem; }
.glass-card p { color: #94a3b8; margin: 0.45rem 0; line-height: 1.65; font-size: 0.95rem; }
.glass-card h2 {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7c8ea3; font-weight: 700; margin: 1.5rem 0 0.5rem;
}
.glass-card ul { padding-left: 1.2rem; margin: 0.35rem 0 0; }
.glass-card li { color: #94a3b8; margin: 0.35rem 0; }
.glass-card a.inline {
  color: #9eb6c9; border-bottom: 1px solid #3d5568; text-decoration: none;
}
.glass-card a.inline:hover { color: #d7e6f0; border-color: #7c9bb0; }
.glass-panel {
  background: rgba(30, 41, 59, 0.55); border: 1px solid #334155;
  border-radius: 0.75rem; padding: 1rem 1.1rem; margin: 0.85rem 0;
}
.glass-panel p { margin: 0.35rem 0; font-size: 0.9rem; }
.quiet { font-size: 0.85rem; color: #64748b; margin-top: 1.75rem; }
.cta-stack {
  margin-top: 1.75rem; display: flex; flex-direction: column;
  align-items: center; gap: 1rem;
}
.cta-item { width: 100%; max-width: 18rem; text-align: center; }
.cta-item .stone.block { margin-top: 0; }
.cta-hint {
  margin: 0.4rem 0 0; font-size: 0.72rem; color: #64748b; line-height: 1.45;
}
.public-footer {
  margin-top: 1.5rem; font-size: 0.72rem; color: #64748b;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.85rem;
}
.public-footer a {
  color: #7c8ea3; text-decoration: none; border-bottom: 1px solid #334155;
}
.public-footer a:hover { color: #d7e6f0; border-color: #7c9bb0; }
.trail-aside {
  margin-top: 1rem; font-size: 0.85rem; color: #9fb3c8; line-height: 1.55;
  font-style: italic; min-height: 2.6em;
}
.stone {
  display: inline-block; min-width: 14rem; padding: 0.85rem 1.75rem; border-radius: 9999px;
  background: radial-gradient(120% 150% at 50% 25%, #46566f, #1e293b 68%, #0f172a);
  border: 1px solid #475569; color: #e2e8f0; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; font-size: 0.78rem; text-decoration: none; text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 1px 0 rgba(148,163,184,.25);
  transition: transform .15s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer; font-family: inherit;
}
.stone:hover { transform: translateY(-2px); border-color: #7c9bb0;
  box-shadow: 0 10px 24px rgba(0,0,0,.5), 0 0 14px rgba(125,155,176,.22); }
.stone:focus-visible { outline: 2px solid #9eb6c9; outline-offset: 3px; }
.stone-primary {
  background: radial-gradient(120% 150% at 50% 25%, #2a4a56, #152830 70%, #0f172a);
  border-color: #6b8f9e; color: #d5e6ee; font-size: 0.82rem;
  animation: stoneGlow 3.4s ease-in-out infinite;
}
.stone.block { display: block; width: 100%; max-width: 18rem; margin: 0.75rem auto 0; }
.stone:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.fade-up { opacity: 0; animation: fadeUp 1.1s ease forwards; }
.fade-up.delay-1 { animation-delay: .45s; }
.fade-up.delay-2 { animation-delay: .85s; }
.fade-up.delay-3 { animation-delay: 1.25s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes stoneGlow {
  0%, 100% { box-shadow: 0 6px 16px rgba(0,0,0,.45), 0 0 8px rgba(107,143,158,.18); }
  50% { box-shadow: 0 10px 26px rgba(0,0,0,.5), 0 0 18px rgba(158,182,201,.28); }
}
/* Register wizard — dark form controls (kept for any remaining wizard UI) */
.trail-dots { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1.5rem; }
.trail-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #334155;
  transition: background 0.3s ease;
}
.trail-dot.active { background: #8ba3b5; }
.trail-dot.done { background: #64748b; }
.step { display: none; }
.step.visible { display: block; }
.field { text-align: left; margin: 0.8rem 0; }
.field label {
  display: block; font-size: 0.75rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 0.35rem;
}
.field input {
  width: 100%; padding: 0.75rem 1rem; background: #0f172a;
  border: 1px solid #334155; border-radius: 0.5rem; font: inherit;
  color: #e2e8f0; outline: none; transition: border-color 0.2s;
}
.field input:focus { border-color: #7c9bb0; }
.field input::placeholder { color: #64748b; }
.path-cards { display: flex; flex-direction: column; gap: 0.7rem; margin: 1.2rem 0; }
.path-card {
  display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1rem;
  border: 1px solid #334155; border-radius: 0.6rem; cursor: pointer;
  text-align: left; background: transparent; transition: border-color 0.2s, background 0.2s;
  width: 100%; color: inherit; font: inherit;
}
.path-card:hover { border-color: #64748b; background: rgba(30, 41, 59, 0.45); }
.path-card.selected { border-color: #7c9bb0; background: rgba(30, 50, 62, 0.45); }
.path-card-title { font-weight: 600; font-size: 0.9rem; color: #e2e8f0; line-height: 1.2; }
.path-card-desc { font-size: 0.78rem; color: #94a3b8; margin-top: 0.1rem; }
.status { font-size: 0.82rem; margin-top: 0.7rem; min-height: 1.2rem; }
.status.error { color: #c4a0a0; }
.status.ok { color: #9db5a8; }
.back-link {
  font-size: 0.82rem; color: #64748b; margin-top: 1.4rem; display: block;
  border: none; background: none; cursor: pointer; width: 100%;
  text-decoration: none; font-family: inherit;
}
.back-link:hover { color: #cbd5e1; }
.success-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
@media (prefers-reduced-motion: reduce) {
  .stone-primary, .fade-up { animation: none; opacity: 1; }
}
