/* ============================================================
   SOVEREIGN SYNDICATE — shared site stylesheet
   Same token system as the member dashboard: dark void, brass
   accent, Fraunces/IBM Plex. Keep this file as the single source
   of truth for both index.html and policies.html.
   ============================================================ */

:root {
  --void: #0A0C0E;
  --panel: #15181B;
  --panel-raised: #1B1F23;
  --line: #272C30;
  --brass: #A8864F;
  --brass-bright: #D9B36E;
  --brass-dim: #7A5F38;
  --steel: #C9CFD6;
  --muted: #6B7280;
  --signal: #3DD9C4;
  --danger: #C4544D;

  --serif: 'Fraunces', serif;
  --sans: 'IBM Plex Sans', sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--steel);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: var(--serif);
  font-weight: 500;
  color: #EDEFF2;
  margin: 0;
  letter-spacing: 0.002em;
}

p { margin: 0 0 1.1em; color: var(--steel); }
p:last-child { margin-bottom: 0; }

a { color: var(--brass-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mono { font-family: var(--mono); }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- Nav ---- */
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 12, 14, 0.88);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex-shrink: 0; }
.brand .word {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.09em;
  color: var(--steel);
}
.brand .word b { color: var(--brass-bright); font-weight: 500; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-link {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-link:hover { color: var(--steel); text-decoration: none; border-color: var(--line); }
.nav-link.cta {
  color: var(--brass-bright);
  border: 1px solid var(--brass-dim);
  padding: 7px 16px;
  border-bottom: 1px solid var(--brass-dim);
  white-space: nowrap;
}
.nav-link.cta:hover { border-color: var(--brass-bright); }

@media (max-width: 760px) {
  nav.site-nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links .nav-link:not(.cta) { display: none; }
}
@media (max-width: 420px) {
  .brand .word { display: none; }
}

/* ---- Shell ---- */
.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px) { .shell { padding: 0 20px; } }

section { padding: 96px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }

.eyebrow-mono {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---- Hero ---- */
.hero {
  padding: 100px 0 90px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.12;
  max-width: 14ch;
}
.hero .lede {
  font-size: 1.1rem;
  color: var(--steel);
  max-width: 46ch;
  margin-top: 22px;
}
.hero-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.9;
}
.hero-mark svg { width: min(280px, 70%); height: auto; }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; margin-bottom: 8px; }
  .hero-mark svg { width: 120px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  background: var(--brass);
  color: var(--void);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 3px 0 var(--brass-dim);
  transition: background 100ms ease, box-shadow 100ms ease, transform 100ms ease;
}
.btn:hover { background: var(--brass-bright); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.1); }
.btn.secondary {
  background: var(--panel-raised);
  color: var(--steel);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 3px 0 var(--void);
}
.btn.secondary:hover { border-color: var(--brass); color: var(--brass-bright); text-decoration: none; }
.btn.secondary:active { transform: translateY(2px); box-shadow: none; }
.btn[disabled], .btn.pending {
  cursor: default;
  background: var(--panel-raised);
  color: var(--muted);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn[disabled]:hover, .btn.pending:hover { background: var(--panel-raised); }

/* ---- Status pill (reused from dashboard) ---- */
.status-pill {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 5px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.status-pill::before { content: ''; width: 6px; height: 6px; background: var(--signal); display: inline-block; }
.status-pill.pending { color: var(--brass-bright); border-color: var(--brass-dim); }
.status-pill.pending::before { background: var(--brass-bright); }

/* ---- Panel w/ corner brackets (reused from dashboard) ---- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 32px;
}
.panel .br-tl, .panel .br-tr, .panel .br-bl, .panel .br-br {
  content: ''; position: absolute; width: 10px; height: 10px; pointer-events: none;
}
.panel .br-tl { top: -1px; left: -1px; border-top: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.panel .br-tr { top: -1px; right: -1px; border-top: 2px solid var(--brass); border-right: 2px solid var(--brass); }
.panel .br-bl { bottom: -1px; left: -1px; border-bottom: 2px solid var(--brass); border-left: 2px solid var(--brass); }
.panel .br-br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--brass); border-right: 2px solid var(--brass); }

/* ---- About / manifesto ---- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.about-grid h2 { font-size: 1.9rem; max-width: 12ch; }
.principle-list { list-style: none; margin: 0; padding: 0; }
.principle-list li {
  display: grid;
  grid-template-columns: 2.4em 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.principle-list li:last-child { padding-bottom: 0; }
.principle-list .num {
  font-family: var(--mono);
  color: var(--brass);
  font-size: 0.9rem;
  padding-top: 2px;
}
.principle-list strong { color: #EDEFF2; font-weight: 600; }

.about-link { grid-column: 2; margin-top: 4px; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .about-grid h2 { max-width: none; }
  /* phone order: heading, Acceptable Use preview + link, then the story as full-width paragraphs */
  .about-story { display: contents; }
  .about-story h2 { order: 1; }
  .about-grid > div:not(.about-story) { order: 2; }
  .about-link { grid-column: 1; order: 3; margin-top: -12px; }
  .about-story p { order: 4; max-width: none; margin-top: 0 !important; margin-bottom: 0; }
}

/* ---- Tier ladder ---- */
.tier-ladder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.tier {
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.tier:last-child { border-right: none; }
.tier .stage {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.tier h3 { font-size: 1.3rem; margin-top: 10px; }
.tier p { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
.tier.active { background: var(--panel); }
.tier.active .stage { color: var(--brass-bright); }
.tier .arrow {
  display: none;
}
@media (min-width: 761px) {
  .tier:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -11px;
    top: 32px;
    color: var(--brass);
    background: var(--void);
    width: 20px;
    text-align: center;
  }
}
@media (max-width: 760px) {
  .tier-ladder { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--line); }
  .tier:last-child { border-bottom: none; }
}

/* ---- Apply steps ---- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { padding-bottom: 0; }
.step .step-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--brass);
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 56ch; }

@media (max-width: 760px) {
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step .step-num { font-size: 1.4rem; }
}

/* ---- CTA band ---- */
.cta-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.cta-band h2 { font-size: 2rem; max-width: 20ch; margin: 0 auto; }
.cta-band .lede { max-width: 46ch; margin: 18px auto 30px; color: var(--muted); }
.cta-band .hero-actions { justify-content: center; }

/* ---- Footer ---- */
footer.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { color: var(--muted); font-size: 0.86rem; }
.footer-links a:hover { color: var(--brass-bright); }
.footer-meta { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

/* ============================================================
   Policies page specific
   ============================================================ */
.policy-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 40px 120px;
}
@media (max-width: 760px) { .policy-shell { padding: 48px 20px 80px; } }

.policy-header { margin-bottom: 56px; }
.policy-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.policy-header .sub { color: var(--muted); margin-top: 12px; font-size: 0.98rem; }

.policy-disclaimer {
  border-left: 2px solid var(--brass);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 56px;
}

.policy-toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 64px;
  border: 1px solid var(--line);
}
.policy-toc a {
  display: flex;
  justify-content: space-between;
  padding: 14px 20px;
  color: var(--steel);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}
.policy-toc a:last-child { border-bottom: none; }
.policy-toc a:hover { background: var(--panel); text-decoration: none; color: var(--brass-bright); }
.policy-toc .num { font-family: var(--mono); color: var(--brass); margin-right: 14px; }

.policy-section { padding-top: 72px; margin-top: -1px; border-top: 1px solid var(--line); }
.policy-section:first-of-type { border-top: none; }
.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.policy-section h2 .num { font-family: var(--mono); font-size: 0.95rem; color: var(--brass); }
.policy-section h3 { font-size: 1.05rem; margin: 32px 0 12px; color: var(--brass-bright); }
.policy-section ul, .policy-section ol { padding-left: 1.3em; color: var(--steel); margin: 0 0 1.1em; }
.policy-section li { margin-bottom: 8px; }
.policy-section li::marker { color: var(--brass); }
.policy-note {
  margin-top: 56px;
  padding: 20px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.back-to-top {
  display: inline-block;
  margin-top: 64px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   Policy tables, section numbers
   ============================================================ */
.policy-section { scroll-margin-top: 56px; }
.policy-section h3 { scroll-margin-top: 90px; }
.policy-section h3 .sec { font-family: var(--mono); font-size: 0.82rem; color: var(--brass); margin-right: 8px; }
.policy-meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 1.6em; }

.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table.policy-table { border-collapse: collapse; width: 100%; font-size: 0.9rem; min-width: 560px; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.policy-table thead th {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.05em;
  color: var(--muted); text-transform: uppercase; background: var(--panel);
}
.policy-table td { color: var(--steel); }
.policy-table tbody tr:last-child th, .policy-table tbody tr:last-child td { border-bottom: none; }
table.policy-table.kv { min-width: 0; }
table.kv th { color: var(--muted); font-weight: 500; width: 34%; }

/* ============================================================
   Get notified form
   ============================================================ */
.notify-panel { max-width: 560px; margin: 36px auto 0; text-align: left; }
.notify-form label.field, #notify-form label.field {
  display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: 8px;
}
#notify-form input[type="email"] {
  width: 100%; background: var(--void); border: 1px solid var(--line); color: var(--steel);
  padding: 13px 14px; font: inherit; font-size: 0.95rem; border-radius: 0;
}
#notify-form input[type="email"]:focus { border-color: var(--brass); }
#notify-form input[type="email"]::placeholder { color: var(--muted); }
.check {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px; margin-top: 16px;
  font-size: 0.88rem; line-height: 1.55; color: var(--steel); cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--brass); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { margin-top: 20px; min-height: 65px; }
.notify-actions { margin-top: 20px; }
.form-msg {
  margin: 16px 0 0; padding: 12px 14px; font-size: 0.9rem; color: var(--steel);
  border-left: 2px solid var(--brass); background: var(--panel-raised);
}
.form-msg.error { border-left-color: var(--danger); }
.form-msg:empty { display: none; }
.notify-done { padding: 8px 0; }
.notify-done h3 { font-size: 1.25rem; margin-bottom: 10px; }
.notify-done p { color: var(--muted); }

/* Phones: stack each table row as a labelled card so no column is hidden off-screen */
@media (max-width: 640px) {
  table.policy-table:not(.kv) { min-width: 0; }
  .policy-table:not(.kv) thead { display: none; }
  .policy-table:not(.kv) tbody, .policy-table:not(.kv) tr, .policy-table:not(.kv) td { display: block; width: 100%; }
  .policy-table:not(.kv) tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .policy-table:not(.kv) tr:last-child { border-bottom: none; }
  .policy-table:not(.kv) td { border: none; padding: 6px 16px; }
  .policy-table:not(.kv) td::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
  }
  .policy-table:not(.kv) td:first-child { font-weight: 600; color: #EDEFF2; }
  .policy-table:not(.kv) td:first-child::before { display: none; }
}
