/* Bield shared site CSS — common nav, footer, type, buttons, content pages.
   Mirrors the variables and patterns in index.html so inner pages
   (terms, privacy, press, beta) read as the same design family. */

:root {
  --paper: #FAF7F2;
  --paper-warm: #F2EDE4;
  --sand: #E8C9A0;
  --sand-soft: #F2DDB8;
  --navy: #1E3A5F;
  --navy-soft: #2E4F7B;
  --terra: #C8553D;
  --terra-deep: #A8432F;
  --lichen: #7B8B6F;
  --lichen-soft: #95A589;
  --sky-crest: #5C89AE;
  --day-cloud: #A8C4D9;
  --horizon: #DCE7EF;
  --ink: #1A1A1A;
  --ink-muted: #4A4A4A;
  --ink-faint: #6B6B6B;
  --line: #E2DCCD;
  --line-soft: #EDE7D8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 5.6vw, 60px); letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 3.4vw, 36px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 16px; color: var(--ink-muted); }
p.lede { font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; color: var(--ink-muted); }
a { color: var(--navy); text-decoration: underline; text-decoration-color: rgba(30, 58, 95, 0.25); text-underline-offset: 3px; transition: color 0.15s ease, text-decoration-color 0.15s ease; }
a:hover { color: var(--terra); text-decoration-color: var(--terra); }
ul, ol { margin: 0 0 16px; padding-left: 24px; color: var(--ink-muted); }
ul li, ol li { margin-bottom: 6px; line-height: 1.6; }
strong { color: var(--ink); }
hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--paper-warm); padding: 2px 6px; border-radius: 4px; color: var(--ink); }
blockquote { margin: 24px 0; padding: 12px 20px; border-left: 3px solid var(--terra); background: var(--paper-warm); border-radius: 4px; color: var(--ink-muted); }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 40px; }
}
.container.narrow { max-width: 780px; }

/* ─── Nav ─────────────────────────────────────────────────────── */
nav.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
nav.top .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
nav.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
  text-decoration: none;
}
nav.top .brand:hover { color: var(--navy); }
nav.top .brand svg { width: 36px; height: 36px; display: block; }
nav.top ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 26px;
  align-items: center;
}
nav.top ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
}
nav.top ul li a:hover { color: var(--navy); }
nav.top .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
nav.top .nav-cta:hover { background: var(--navy-soft); color: var(--paper); transform: translateY(-1px); }
@media (min-width: 880px) {
  nav.top ul { display: flex; }
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
  line-height: 1;
  text-decoration: none;
}
.btn.primary { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: var(--paper); transform: translateY(-1px); }
.btn.secondary { background: var(--terra); color: var(--paper); border-color: var(--terra); }
.btn.secondary:hover { background: var(--terra-deep); border-color: var(--terra-deep); color: var(--paper); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--paper); }
.btn.large { padding: 18px 32px; font-size: 16px; }

/* ─── Page-head hero (smaller than landing hero) ─────────────── */
section.page-head {
  position: relative;
  padding: 64px 0 36px;
  overflow: hidden;
}
section.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 8%, rgba(168, 196, 217, 0.32), transparent 50%),
    radial-gradient(circle at 8% 90%, rgba(232, 201, 160, 0.22), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
section.page-head .container { position: relative; z-index: 1; }
section.page-head .eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
section.page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 14px;
}
section.page-head p.lede {
  max-width: 680px;
}

/* ─── Long-form body content ─────────────────────────────────── */
section.body-content {
  padding: 32px 0 80px;
}
section.body-content .container { position: relative; }
section.body-content h2 {
  margin-top: 48px;
  font-size: clamp(22px, 2.8vw, 30px);
}
section.body-content h2:first-child { margin-top: 0; }
section.body-content h3 {
  margin-top: 32px;
  font-size: clamp(18px, 2.1vw, 22px);
  color: var(--navy);
}
section.body-content p,
section.body-content li {
  font-size: 16px;
  line-height: 1.7;
}
section.body-content .meta {
  font-size: 13px;
  color: var(--ink-faint);
  padding: 12px 18px;
  background: var(--paper-warm);
  border-left: 3px solid var(--lichen);
  border-radius: 4px;
  margin-bottom: 32px;
}
section.body-content .toc {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 36px;
}
section.body-content .toc h4 {
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
section.body-content .toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 1;
}
@media (min-width: 720px) {
  section.body-content .toc ol { columns: 2; column-gap: 32px; }
}
section.body-content .toc ol li {
  font-size: 14px;
  margin-bottom: 4px;
  break-inside: avoid;
}

/* ─── Cards / grids for press & beta ─────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 24px 0 36px;
}
@media (min-width: 720px) { .card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card.hoverable:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px -22px rgba(30, 58, 95, 0.25);
}
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { font-size: 14px; margin: 0 0 12px; }
.card .meta-row { font-size: 12px; color: var(--ink-faint); margin-bottom: 0; }

/* Swatch chips for the brand palette block on press.html */
.swatch-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}
.swatch {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.swatch .chip { height: 70px; }
.swatch .label {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
}
.swatch .label .name { font-weight: 700; color: var(--ink); display: block; }
.swatch .label .hex { color: var(--ink-faint); font-family: ui-monospace, monospace; }

/* Beta page hero CTA block */
.beta-cta {
  margin: 28px 0 18px;
  padding: 28px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.beta-cta .btn { margin-top: 8px; }
.beta-cta .note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* FAQ-style details (re-used on beta.html) */
details.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  margin-bottom: 12px;
  transition: border-color 0.18s ease;
}
details.faq-item[open] { border-color: var(--navy); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--navy);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-family: 'Source Serif 4', serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}
details.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--terra);
}
details.faq-item .answer {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.65;
}
details.faq-item .answer p { margin: 0 0 12px; }
details.faq-item .answer p:last-child { margin: 0; }

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--paper-warm);
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}
footer .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px 32px;
}
@media (min-width: 720px) {
  footer .row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  text-decoration: none;
}
footer .brand svg { width: 36px; height: 36px; }
footer p.tagline { font-size: 14px; color: var(--ink-muted); max-width: 320px; }
footer h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 12px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a { font-size: 14px; color: var(--ink-muted); text-decoration: none; }
footer ul li a:hover { color: var(--navy); }
footer .legal {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .legal .spacer { flex: 1; }

/* ─── Helpers ────────────────────────────────────────────────── */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--ink-faint); }
