:root {
  --paper: #f7f4ec;
  --surface: #fcfaf5;
  --tint: #eee9dd;
  --ink: #171614;
  --ink-2: #4b473f;
  --muted: #736d62;
  --border: #dad2c3;
  --accent: #8f3524;
  --accent-soft: rgba(143, 53, 36, 0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: var(--tint);
  background-image: radial-gradient(rgba(23, 22, 20, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  padding: 0.6rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.live-pill { display: inline-flex; align-items: center; gap: 0.45rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #48bb78; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { font-family: "Newsreader", Georgia, serif; font-size: 1.75rem; font-weight: 500; }
.brand em { font-style: italic; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.65rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--accent); }
.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  padding: 0.55rem 1rem !important;
  border-radius: 6px;
  border-bottom: none !important;
  font-size: 0.86rem !important;
}
.menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--ink);
  cursor: pointer;
}

.page-shell { background: var(--paper); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hero h1 { font-family: "Newsreader", Georgia, serif; font-size: clamp(2.2rem, 4.5vw, 3.35rem); font-weight: 400; line-height: 1.12; margin-bottom: 1.15rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-copy { font-size: 1.05rem; color: var(--ink-2); max-width: 580px; margin-bottom: 1.65rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.3rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1.3rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  border: 1px solid var(--border);
}

.status-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; }
.panel-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.8rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}
.metric-list { list-style: none; display: grid; gap: 0.8rem; }
.metric-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.9rem; flex-wrap: wrap; }
.metric-label { color: var(--ink-2); }
.metric-val { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; font-weight: 500; }

.section { padding: clamp(2.5rem, 5vw, 4rem) 0; border-bottom: 1px solid var(--border); }
.section:last-child { border-bottom: none; }
.section-head { margin-bottom: 2rem; max-width: 640px; }
.section-head .kicker { font-family: "JetBrains Mono", monospace; font-size: 0.74rem; text-transform: uppercase; color: var(--accent); margin-bottom: 0.45rem; display: block; }
.section-head h2 { font-family: "Newsreader", Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 400; margin-bottom: 0.5rem; }
.section-head p { color: var(--ink-2); font-size: 0.96rem; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
.card-num { font-family: "JetBrains Mono", monospace; font-size: 0.75rem; color: var(--accent); }
.card h3 { font-family: "Newsreader", Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.card p { color: var(--ink-2); font-size: 0.92rem; }

.faq-list { display: grid; gap: 0.9rem; max-width: 820px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; }
summary { font-weight: 600; font-size: 0.96rem; cursor: pointer; }
details p { margin-top: 0.65rem; color: var(--ink-2); font-size: 0.92rem; }
.code-tag { font-family: "JetBrains Mono", monospace; font-size: 0.82rem; background: var(--tint); padding: 0.15rem 0.4rem; border-radius: 4px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 2rem; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1.75rem; display: grid; gap: 1rem; }
.field label { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 2.5rem 0; font-size: 0.88rem; color: var(--ink-2); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 2rem; }
.footer-col h4 { font-family: "JetBrains Mono", monospace; font-size: 0.74rem; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .nav-cta { margin-top: 0.65rem; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .page-shell { border-left: none; border-right: none; }
}

/* Editorial Legal Layout (Privacy & Terms) */
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  background: #fcfaf5;
  border: 1px solid #dad2c3;
  border-radius: 10px;
  padding: 1.25rem;
}

.legal-toc-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #736d62;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #dad2c3;
}

.legal-toc ul {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.legal-toc a {
  display: block;
  font-size: 0.86rem;
  color: #4b473f;
  line-height: 1.4;
  padding: 0.2rem 0;
  transition: color 0.15s ease;
}

.legal-toc a:hover {
  color: #8f3524;
}

.legal-body {
  background: #fcfaf5;
  border: 1px solid #dad2c3;
  border-radius: 12px;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}

.legal-summary-box {
  background: #f7f4ec;
  border-left: 3px solid #8f3524;
  padding: 1.15rem 1.35rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 2.25rem;
  font-size: 0.94rem;
  color: #4b473f;
}

.legal-clause {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid #dad2c3;
  scroll-margin-top: 96px;
}

.legal-clause:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.clause-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8f3524;
  display: block;
  margin-bottom: 0.35rem;
}

.legal-clause h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 500;
  color: #171614;
  margin-bottom: 0.75rem;
}

.legal-clause p {
  color: #4b473f;
  font-size: 0.96rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

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

.legal-list {
  margin: 0.75rem 0 0.5rem 1.2rem;
  color: #4b473f;
  font-size: 0.95rem;
  display: grid;
  gap: 0.45rem;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .legal-toc {
    position: static;
  }
}
