/* ════════════════════════════════════════════════════════════════════
   Interpose Security — site stylesheet
   Pine palette · Inter / Source Serif 4 / JetBrains Mono
   ════════════════════════════════════════════════════════════════════ */

:root {
  --pine:       #1E332A;
  --clay:       #C28A5C;
  --sage:       #586E60;
  --stone:      #DFDBD2;
  --surface:    #F3F0E9;

  --ink:        var(--pine);
  --muted:      var(--sage);
  --accent:     var(--clay);
  --rule:       rgba(30, 51, 42, 0.14);
  --rule-soft:  rgba(30, 51, 42, 0.08);

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  --font-serif: 'Source Serif 4', Georgia, serif;

  --container:  1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  opacity: 0.045;
  mix-blend-mode: multiply;
  z-index: 1;
}

main, header.site-nav, footer.site-footer { position: relative; z-index: 2; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

a { color: inherit; }

/* ─── Type helpers ──────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Nav ───────────────────────────────────────────────────────── */
header.site-nav {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--surface);
}
header.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}
.brand .sub { font-weight: 400; opacity: 0.55; margin-left: 0.32em; }

nav.links {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.links a {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s;
}
nav.links a:hover { color: var(--ink); }
nav.links a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn-solid  { background: var(--pine); color: var(--stone); }
.btn-accent { background: var(--clay); color: var(--pine); }
.btn-ghost  { color: var(--ink); border: 1px solid var(--rule); background: transparent; }
.btn-ghost-dark { color: var(--stone); border: 1px solid rgba(223,219,210,0.35); background: transparent; }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 0.82rem; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--ink); margin: 4px 0; }

/* ─── Hero (shared inner-page pattern) ──────────────────────────── */
.page-hero { padding: 72px 0 56px; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 18px 0 16px;
  max-width: 720px;
}
.page-hero .lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}
.page-hero.dark {
  background: var(--pine);
  color: var(--stone);
}
.page-hero.dark .lede { color: rgba(223, 219, 210, 0.72); }

/* ─── Bands & sections ──────────────────────────────────────────── */
.band { padding: 72px 0; }
.band.white { background: #fff; border-top: 1px solid var(--rule-soft); }
.band.pine  { background: var(--pine); color: var(--stone); }
.band-center { text-align: center; }

h2.section-title {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-intro { color: var(--muted); max-width: 560px; margin-top: 12px; }

/* ─── Cards ─────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px;
}
.card h3 {
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
}
.card p { color: var(--muted); font-size: 0.92rem; }

.icon-box {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--clay);
  background: rgba(194, 138, 92, 0.08);
  display: flex; align-items: center; justify-content: center;
}
.icon-box svg { display: block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Checklist ─────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 11px; list-style: none; }
.checklist li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem;
}
.checklist li::before {
  content: '';
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  background: radial-gradient(circle at center, var(--clay) 0 3px, transparent 3.5px);
}

/* ─── Diagram ───────────────────────────────────────────────────── */
.diagram {
  border-radius: 10px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--rule);
}
.diagram.on-dark { background: rgba(223,219,210,0.05); border-color: rgba(223,219,210,0.18); }
.diagram .node { text-align: center; flex: 0 0 auto; }
.diagram .node .box {
  height: 60px; min-width: 96px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 0 14px;
}
.diagram.on-dark .node .box { border-color: rgba(223,219,210,0.25); }
.diagram .node.mantle .box {
  height: 76px;
  border: 1.5px solid var(--clay);
  background: rgba(194, 138, 92, 0.07);
}
.diagram .wire { flex: 1; border-top: 1px dashed var(--muted); }
.diagram.on-dark .wire { border-color: rgba(223,219,210,0.4); }
.diagram .node .label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.diagram.on-dark .node .label { color: rgba(223,219,210,0.55); }
.diagram .node.mantle .label { color: var(--clay); }

/* ─── Forms ─────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  background: #fff;
  transition: border-color 0.15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--clay);
}
.field textarea { min-height: 96px; resize: vertical; }

/* Inline waitlist form */
.waitlist {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.waitlist input {
  width: 300px;
  max-width: 100%;
  padding: 13px 16px;
  border-radius: 7px;
  border: 1px solid var(--rule);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.waitlist input:focus { outline: none; border-color: var(--clay); }

/* ─── Tables ────────────────────────────────────────────────────── */
.spec-table {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}
.spec-table .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 22px;
  border-top: 1px solid var(--rule-soft);
  font-size: 0.92rem;
}
.spec-table .row:first-child { border-top: none; }
.spec-table .row .k { font-weight: 500; }
.spec-table .row .v { color: var(--muted); font-family: var(--font-mono); font-size: 0.8rem; text-align: right; }

/* ─── FAQ ───────────────────────────────────────────────────────── */
details.faq {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 500;
  font-size: 0.98rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--clay);
  flex: 0 0 auto;
}
details.faq[open] summary::after { content: '−'; }
details.faq .answer {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 620px;
}

/* ─── Steps (numbered circles) ──────────────────────────────────── */
.steps { display: flex; flex-direction: column; }
.step { display: flex; gap: 20px; }
.step .gutter { display: flex; flex-direction: column; align-items: center; }
.step .num {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--clay);
  background: rgba(194, 138, 92, 0.06);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clay);
}
.step .thread { width: 1px; flex: 1; min-height: 32px; background: var(--rule); }
.step .body { padding: 7px 0 30px; }
.step .body h3 { font-size: 1.1rem; font-weight: 500; margin-bottom: 6px; }
.step .body p { color: var(--muted); font-size: 0.92rem; max-width: 460px; }

/* ─── Footer ────────────────────────────────────────────────────── */
footer.site-footer {
  background: var(--pine);
  color: var(--stone);
  padding: 56px 0 32px;
  margin-top: 0;
}
footer.site-footer .top-row {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(223, 219, 210, 0.12);
  flex-wrap: wrap;
}
footer.site-footer .tagline {
  margin-top: 14px;
  color: rgba(223, 219, 210, 0.6);
  font-size: 0.875rem;
  max-width: 260px;
}
footer.site-footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
footer.site-footer .col { display: flex; flex-direction: column; gap: 11px; }
footer.site-footer .col .head {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(223, 219, 210, 0.5);
  margin-bottom: 4px;
}
footer.site-footer .col a {
  font-size: 0.85rem;
  color: rgba(223, 219, 210, 0.8);
  text-decoration: none;
}
footer.site-footer .col a:hover { color: var(--stone); }
footer.site-footer .bottom-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(223, 219, 210, 0.55);
  flex-wrap: wrap;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  nav.links { display: none; }
  .nav-toggle { display: block; }
  header.site-nav.menu-open nav.links {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
    padding: 20px 32px 24px;
    gap: 18px;
    z-index: 50;
  }
  header.site-nav { position: relative; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .band { padding: 56px 0; }
  .diagram { flex-direction: column; }
  .diagram .wire { width: 1px; min-height: 24px; border-top: none; border-left: 1px dashed var(--muted); }
}
