/* ═══════════════════════════════════════════════════════════════
   VATES COGNITION — carved-marble project estimator
   A separate page off the Via Praetoria. Dark veined marble, gold
   inlay, engraved Cinzel, the magenta of the oracle.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --m-void:    #0c0b10;
  --m-stone:   #16151c;
  --m-slab:    #1e1c26;
  --m-slab-hi: #2a2733;
  --bone:      #e9e3d4;
  --bone-dim:  rgba(233, 227, 212, 0.62);
  --gold:      #d4a04a;
  --magenta:   #d8568f;
  --cyan:      #00e5ff;
  --line:      rgba(233, 227, 212, 0.12);
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  min-height: 100%;
  background: var(--m-void);
  color: var(--bone);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(216, 86, 143, 0.3); }
a { color: inherit; text-decoration: none; }

/* ── Ambient marble field ──────────────────────────────────── */
.v-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 28% 18%, rgba(74,68,90,0.55), transparent 62%),
    radial-gradient(ellipse 60% 50% at 82% 88%, rgba(54,40,66,0.5), transparent 60%),
    radial-gradient(ellipse 90% 70% at 60% 50%, rgba(30,28,38,0.6), transparent 70%),
    var(--m-stone);
}
/* veining + grain */
.v-field::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cfilter id='v'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.009 0.014' numOctaves='5' seed='14'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.86 0 0 0 0 0.83 0 0 0 0 0.74 0 0 0 1.3 -0.55'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
}
.v-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 38%, rgba(4,3,8,0.8) 100%);
}

/* ── Top bar ───────────────────────────────────────────────── */
.v-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
}
.v-back {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  padding: 9px 16px;
  transition: all 0.2s var(--ease);
}
.v-back:hover { border-color: var(--gold); color: var(--gold); }
.v-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone);
}
.v-brand-mark {
  width: 17px; height: 27px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2.6;
  filter: drop-shadow(0 0 5px rgba(205,162,85,0.5));
}

/* ── Tablet column ─────────────────────────────────────────── */
.v-tablet {
  position: relative;
  z-index: 3;
  width: min(720px, 92vw);
  margin: 14px auto 60px;
}

/* The carved marble slab */
.v-plate {
  position: relative;
  padding: 46px 48px 40px;
  background:
    linear-gradient(180deg, var(--m-slab-hi) 0%, var(--m-slab) 14%, var(--m-slab) 86%, #18161f 100%);
  border: 1px solid rgba(205,162,85,0.22);
  border-radius: 3px;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    inset 0 -3px 14px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(0,0,0,0.4),
    0 40px 90px rgba(0,0,0,0.65);
}
/* gold inlay rule down the left edge */
.v-plate::before {
  content: '';
  position: absolute;
  top: 30px; bottom: 30px; left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

/* ── Engraved type ─────────────────────────────────────────── */
.v-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
}
.v-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin: 10px 0 4px;
  color: #cbc4b2;
  /* incised into stone */
  text-shadow: 0 1px 0 rgba(255,255,255,0.07), 0 -1px 2px rgba(0,0,0,0.8);
}
.v-latin {
  font-family: 'Rajdhani', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
}
.v-latin em { font-style: italic; }
.v-deck {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone-dim);
  margin-top: 16px;
  max-width: 54ch;
}

/* ── Completeness meter ────────────────────────────────────── */
.v-meter-wrap { margin: 24px 0 8px; }
.v-meter {
  height: 4px;
  background: rgba(0,0,0,0.45);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.7);
  overflow: hidden;
}
.v-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--magenta), var(--gold));
  box-shadow: 0 0 10px rgba(216,86,143,0.6);
  transition: width 0.35s var(--ease);
}
.v-meter-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-top: 8px;
}

/* ── Form ──────────────────────────────────────────────────── */
.v-stage { margin-top: 14px; }
.vp-group {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b7a98a;
  margin: 24px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(205,162,85,0.2);
  text-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 -1px 1px rgba(0,0,0,0.6);
}
.vp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}
.vp-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.vp-field input,
.vp-field select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--bone);
  /* carved channel */
  background: linear-gradient(180deg, #100f15, #17151d);
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.7), inset 0 -1px 0 rgba(255,255,255,0.04);
  padding: 12px 14px;
  outline: none;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.vp-field select { cursor: pointer; }
.vp-field input::placeholder { color: rgba(233,227,212,0.32); }
.vp-field input:focus,
.vp-field select:focus {
  border-color: rgba(216,86,143,0.6);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.7), 0 0 0 1px rgba(216,86,143,0.3);
}
.vp-field input.bad,
.vp-field select.bad { border-color: rgba(216,60,60,0.7); }

.vp-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.vp-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: rgba(233,227,212,0.84);
  cursor: pointer;
  padding: 9px 11px;
  background: linear-gradient(180deg, #100f15, #17151d);
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
  transition: border-color 0.16s;
}
.vp-check:hover { border-color: rgba(205,162,85,0.4); }
.vp-check input { accent-color: var(--magenta); cursor: pointer; }

/* ── Footer buttons ────────────────────────────────────────── */
.v-foot {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.v-btn {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 18px;
  cursor: pointer;
  color: var(--m-void);
  background: linear-gradient(180deg, #e8c878, var(--gold) 55%, #a9823f);
  border: 1px solid #e8c878;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 6px 18px rgba(0,0,0,0.5);
  transition: filter 0.18s, transform 0.05s;
}
.v-btn:hover { filter: brightness(1.12); }
.v-btn:active { transform: translateY(1px); }
.v-btn-ghost {
  background: linear-gradient(180deg, #211f2a, #18161f);
  color: var(--bone-dim);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.v-btn-ghost:hover { filter: none; color: var(--bone); border-color: var(--bone-dim); }
.v-btn.disabled {
  background: linear-gradient(180deg, #211f2a, #18161f);
  color: rgba(233,227,212,0.34);
  border-color: var(--line);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
  cursor: not-allowed;
}
.v-btn.disabled:hover { filter: none; }

/* ── ROM result — a carved inscription ─────────────────────── */
.v-rom {
  text-align: center;
  padding: 34px 24px 30px;
  margin-bottom: 16px;
  background:
    radial-gradient(ellipse at center, rgba(216,86,143,0.1), transparent 70%),
    linear-gradient(180deg, #14121a, #100f15);
  border: 1px solid rgba(205,162,85,0.28);
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(0,0,0,0.4);
}
.v-rom-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--magenta);
}
.v-rom-figure {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.03em;
  margin: 12px 0 10px;
  color: #d7cfba;
  text-shadow: 0 1px 0 rgba(255,255,255,0.09), 0 -2px 4px rgba(0,0,0,0.85);
}
.v-rom-note {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}
.v-result-line {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--bone-dim);
  text-align: center;
  margin-bottom: 4px;
}

.v-fineprint {
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(233,227,212,0.38);
  margin-top: 22px;
}

/* glitch char during a decode (shared idea with the main site) */
.v-glyph { color: var(--cyan); }

@media (max-width: 560px) {
  .v-plate { padding: 34px 24px 30px; }
  .vp-checks { grid-template-columns: 1fr; }
  .v-foot { flex-direction: column; }
}
