/*
 * DISCOVER IT — style.css
 * Precision Instrument design system
 * Design tokens: teal/navy/amber palette, Playfair Display + Source Sans 3 + JetBrains Mono
 * Architecture: plain CSS custom properties — no framework dependency
 */

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
  --teal:        oklch(0.72 0.18 195);
  --teal-dark:   oklch(0.62 0.18 195);
  --teal-faint:  oklch(0.88 0.08 195 / 0.25);
  --teal-border: oklch(0.88 0.08 195 / 0.4);
  --navy:        oklch(0.16 0.04 250);
  --navy-light:  oklch(0.21 0.04 250);
  --navy-deep:   oklch(0.13 0.04 250);
  --slate:       oklch(0.18 0.015 250);
  --muted:       oklch(0.45 0.015 250);
  --amber:       oklch(0.78 0.15 65);
  --warm-bg:     oklch(0.97 0.008 80);
  --cool-bg:     oklch(0.93 0.01 250);
  --border:      oklch(0.88 0.012 250);

  --ff-playfair:  'Playfair Display', serif;
  --ff-source:    'Source Sans 3', sans-serif;
  --ff-mono:      'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-source);
  color: var(--slate);
  background: var(--warm-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ─── Layout ────────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 1280px) {
  .container { padding: 0 2.5rem; }
}

/* ─── Animations ────────────────────────────────────────────────────────────── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HTMX loading indicator */
.htmx-indicator {
  opacity: 0;
  transition: opacity 0.2s;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* Section zone — min-height prevents layout shift before HTMX swap */
.section-zone {
  min-height: 4px;
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              backdrop-filter 0.3s var(--ease-out);
  background: transparent;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: oklch(0.97 0.008 80 / 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

/* Wordmark */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.wordmark-text {
  font-size: 1.25rem;
  color: white;
  transition: color 0.3s;
  user-select: none;
}

.site-nav.scrolled .wordmark-text {
  color: var(--slate);
}

.wordmark-discover {
  font-family: var(--ff-playfair);
  font-weight: 600;
}

.wordmark-it {
  font-family: var(--ff-mono);
  font-weight: 700;
  color: var(--teal);
}

/* Nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 500;
  color: oklch(0.85 0 0);
  transition: color 0.2s;
  text-decoration: none;
}

.site-nav.scrolled .nav-links a {
  color: oklch(0.35 0.015 250);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

/* CTA button in nav */
.nav-cta {
  display: none;
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  background: var(--teal);
  color: white;
  transition: background 0.2s, transform 0.16s var(--ease-out);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-cta { display: block; }
}

.nav-cta:hover { background: var(--teal-dark); }
.nav-cta:active { transform: scale(0.97); }

/* Mobile hamburger */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
}

@media (min-width: 768px) {
  .nav-hamburger { display: none; }
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
}

.site-nav.scrolled .nav-hamburger span {
  background: var(--slate);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0.5rem 0 1rem;
  background: oklch(0.97 0.008 80 / 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-family: var(--ff-source);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu a:hover {
  color: var(--teal);
  background: oklch(0.88 0.08 195 / 0.08);
}

.mobile-menu .mobile-cta {
  margin: 0.5rem 1.5rem 0;
  text-align: center;
  background: var(--teal);
  color: white;
  border-radius: 0.375rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
}

.mobile-menu .mobile-cta:hover {
  background: var(--teal-dark);
  color: white;
}

/* ─── Section Labels / Headings ─────────────────────────────────────────────── */

.section-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-label.amber { color: var(--amber); }
.section-label.muted { color: var(--muted); }

.section-heading {
  font-family: var(--ff-playfair);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--slate);
  margin-bottom: 1.5rem;
}

.section-heading.white { color: white; }

.body-text {
  font-family: var(--ff-source);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */

.btn-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.375rem;
  background: var(--teal);
  color: white;
  font-family: var(--ff-source);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.16s var(--ease-out);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-teal:hover { background: var(--teal-dark); }
.btn-teal:active { transform: scale(0.97); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.375rem;
  background: transparent;
  color: var(--muted);
  font-family: var(--ff-source);
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid oklch(0.75 0.012 250);
  transition: border-color 0.2s, color 0.2s, transform 0.16s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-outline:active { transform: scale(0.97); }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-color: var(--navy);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.1 0.04 250 / 0.92) 0%,
    oklch(0.1 0.04 250 / 0.65) 55%,
    oklch(0.1 0.04 250 / 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.hero-inner {
  max-width: 42rem;
}

.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--ff-playfair);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  color: white;
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-family: var(--ff-source);
  font-size: 1.25rem;
  line-height: 1.65;
  color: oklch(0.82 0.01 250);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(1 0 0 / 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stat-num {
  font-family: var(--ff-playfair);
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  color: oklch(0.65 0.01 250);
}

/* ─── Problem ───────────────────────────────────────────────────────────────── */

#problem {
  padding: 6rem 0;
  background: var(--navy);
}

.problem-intro {
  max-width: 36rem;
  margin-bottom: 4rem;
}

.problem-cards {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .problem-cards { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  padding: 2rem;
  border-radius: 0.5rem;
  background: var(--navy-light);
  border: 1px solid oklch(1 0 0 / 0.08);
}

.problem-card-icon {
  margin-bottom: 1.25rem;
}

.problem-card h3 {
  font-family: var(--ff-playfair);
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

.problem-card p {
  font-family: var(--ff-source);
  font-size: 1rem;
  line-height: 1.65;
  color: oklch(0.68 0.01 250);
}

.problem-callout {
  border-radius: 0.75rem;
  overflow: hidden;
  display: grid;
  border: 1px solid oklch(1 0 0 / 0.08);
}

@media (min-width: 768px) {
  .problem-callout { grid-template-columns: 1fr 1fr; }
}

.problem-callout-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--navy-deep);
}

.problem-callout-img img {
  width: 100%;
  max-width: 20rem;
  border-radius: 0.5rem;
  object-fit: cover;
}

.problem-callout-text {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.problem-quote {
  border-left: 3px solid var(--amber);
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.problem-quote p:first-child {
  font-family: var(--ff-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  color: white;
  margin-bottom: 0.75rem;
}

.problem-quote p:last-child {
  font-family: var(--ff-source);
  font-size: 1rem;
  color: oklch(0.65 0.01 250);
}

.text-link {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

/* ─── How It Works ──────────────────────────────────────────────────────────── */

#how {
  padding: 6rem 0;
  background: var(--warm-bg);
}

.how-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .how-grid { grid-template-columns: 1fr 1fr; }
}

.how-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.how-step {
  display: flex;
  gap: 1.25rem;
}

.how-step-num {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.875rem;
  font-weight: 700;
  background: oklch(0.88 0.08 195 / 0.3);
  color: var(--teal);
}

.how-step h3 {
  font-family: var(--ff-playfair);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.375rem;
}

.how-step p {
  font-family: var(--ff-source);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.how-callout {
  border-radius: 0.75rem;
  padding: 2rem;
  background: var(--cool-bg);
  border: 1px solid var(--border);
}

.how-callout-header {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.how-callout-header h3 {
  font-family: var(--ff-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.how-callout-header p {
  font-family: var(--ff-source);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tool-tag {
  font-family: var(--ff-source);
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: oklch(0.88 0.08 195 / 0.25);
  color: oklch(0.45 0.12 195);
  border: 1px solid oklch(0.88 0.08 195 / 0.4);
}

.how-quality-gate {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--teal);
  background: oklch(0.88 0.08 195 / 0.08);
  padding-left: 1.25rem;
}

.how-quality-gate p:first-child {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.how-quality-gate p:last-child {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── The Vault ─────────────────────────────────────────────────────────────── */

#vault {
  padding: 6rem 0;
  background: var(--cool-bg);
}

.vault-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 1024px) {
  .vault-grid { grid-template-columns: 1fr 1fr; }
}

.vault-doc-types {
  margin-top: 2rem;
}

.vault-doc-types-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.vault-doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.vault-doc-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--warm-bg);
  border: 1px solid var(--border);
}

.vault-doc-item.highlight {
  background: oklch(0.88 0.08 195 / 0.2);
  border-color: var(--teal);
}

.vault-doc-item span {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.vault-doc-item.highlight span {
  color: var(--teal);
}

.vault-doc-item .highest-value {
  font-family: var(--ff-source);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--teal);
  margin-left: auto;
}

.vault-img {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.15);
  border: 1px solid var(--border);
}

.vault-streams-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
}

.vault-streams {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .vault-streams { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .vault-streams { grid-template-columns: repeat(3, 1fr); }
}

.vault-stream-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  background: var(--warm-bg);
  border: 1px solid var(--border);
}

.vault-stream-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.vault-stream-card h3 {
  font-family: var(--ff-playfair);
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.5rem;
}

.vault-stream-card p {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── Three Paths ───────────────────────────────────────────────────────────── */

#paths {
  padding: 6rem 0;
  background: var(--warm-bg);
}

.paths-intro {
  max-width: 42rem;
  margin-bottom: 4rem;
}

.paths-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .paths-grid { grid-template-columns: repeat(3, 1fr); }
}

.path-card {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.path-header {
  padding: 1.75rem;
}

.path-num {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.7);
  margin-bottom: 0.5rem;
}

.path-header h3 {
  font-family: var(--ff-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.path-tagline {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  color: oklch(1 0 0 / 0.8);
}

.path-body {
  flex: 1;
  padding: 1.75rem;
  background: var(--warm-bg);
}

.path-body > p {
  font-family: var(--ff-source);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.path-outcome {
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--cool-bg);
  padding-left: 1rem;
}

.path-outcome-label {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.path-outcome p {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate);
}

.path-demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.path-demo-link:hover { opacity: 0.75; }

/* ─── Proof ─────────────────────────────────────────────────────────────────── */

#proof {
  padding: 6rem 0;
  background: var(--navy);
}

.proof-intro {
  max-width: 36rem;
  margin-bottom: 4rem;
}

.proof-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
}

/* Browser chrome mockup */
.browser-chrome {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid oklch(1 0 0 / 0.1);
}

.browser-bar {
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy-light);
}

.browser-dots {
  display: flex;
  gap: 0.375rem;
}

.browser-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}

.browser-dot.red   { background: oklch(0.65 0.22 25); }
.browser-dot.amber { background: oklch(0.78 0.18 80); }
.browser-dot.green { background: oklch(0.72 0.2 145); }

.browser-url {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: oklch(0.55 0.01 250);
}

/* PUR001 screen */
.pur001-screen {
  padding: 1.5rem;
  background: white;
}

.pur001-header {
  background: #1a4a8a;
  color: white;
  text-align: center;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--ff-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.pur001-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2rem;
  font-family: var(--ff-source);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.pur001-field {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.pur001-field-label {
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  flex-shrink: 0;
}

.pur001-field-value {
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  background: #f5f5f0;
  color: #333;
  flex: 1;
}

.pur001-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pur001-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  border: none;
  cursor: default;
  font-family: var(--ff-mono);
}

.pur001-btn.blue  { background: #1a4a8a; }
.pur001-btn.green { background: #2a7a2a; }

/* Vault interface */
.vault-interface {
  padding: 1.25rem;
  background: #f8f8f6;
}

.vault-interface-title {
  font-family: var(--ff-playfair);
  font-size: 0.875rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.vault-menu-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vault-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  background: white;
  border: 1px solid #e8e8e4;
}

.vault-menu-code {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: #f5f0d8;
  color: #6b5a1e;
  white-space: nowrap;
  flex-shrink: 0;
}

.vault-menu-label {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  color: #475569;
}

.proof-caption {
  margin-top: 1rem;
  padding: 0 0.25rem;
}

.proof-caption-title {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.25rem;
}

.proof-caption-body {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  color: oklch(0.65 0.01 250);
}

/* ─── Contact ───────────────────────────────────────────────────────────────── */

#contact {
  padding: 6rem 0;
  background: var(--warm-bg);
}

.contact-grid {
  display: grid;
  gap: 4rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

.contact-questions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-q {
  display: flex;
  gap: 1rem;
}

.contact-q-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: oklch(0.88 0.08 195 / 0.3);
  color: var(--teal);
}

.contact-q-text p:first-child {
  font-family: var(--ff-source);
  font-size: 1rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.125rem;
}

.contact-q-text p:last-child {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-style: italic;
  color: var(--muted);
}

/* Form */
.contact-form-wrap {
  border-radius: 0.75rem;
  padding: 2rem;
  background: var(--cool-bg);
  border: 1px solid var(--border);
}

.contact-form-title {
  font-family: var(--ff-playfair);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--ff-source);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1.5px solid var(--border);
  background: var(--warm-bg);
  color: var(--slate);
  font-family: var(--ff-source);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--teal);
}

.form-textarea {
  resize: vertical;
  min-height: 7rem;
}

/* Success state */
.contact-success {
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: center;
  background: var(--cool-bg);
  border: 1px solid var(--border);
  display: none;
}

.contact-success.visible {
  display: block;
}

.success-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.88 0.08 195 / 0.3);
  margin: 0 auto 1.25rem;
}

.contact-success h3 {
  font-family: var(--ff-playfair);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.contact-success p {
  font-family: var(--ff-source);
  font-size: 1rem;
  color: var(--muted);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */

#site-footer {
  padding: 3rem 0;
  background: var(--navy-deep);
  border-top: 1px solid oklch(1 0 0 / 0.08);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-tagline {
  font-family: var(--ff-source);
  font-size: 0.875rem;
  color: oklch(0.5 0.01 250);
}

.footer-copy {
  font-family: var(--ff-source);
  font-size: 0.75rem;
  color: oklch(0.4 0.01 250);
}

/* ─── Utility ───────────────────────────────────────────────────────────────── */

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