/* ============================================================
   OBEXGATE Page Templates
   ============================================================
   Layouts that span multiple pages but are not site chrome.
   Hero, legal-doc, jurisdiction blocks, principles, steps,
   bios, closing band, coverage-map embed.
   ============================================================ */


/* ---------- Hero (index, audience landings) ---------- */

.hero {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 128px 40px 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-content h1 {
  font-size: 64px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin-bottom: 36px;
  color: var(--navy);
}

.hero .subhead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 56px;
  font-weight: 400;
}

.hero-proof-line {
  font-size: 19px;
  line-height: 1.45;
  color: var(--gold-deep);
  font-weight: 700;
  max-width: 46ch;
  margin: -14px 0 32px;
}

.hero .cta-tagline {
  margin-top: 24px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.01em;
  max-width: 56ch;
}

.hero-aside {
  flex: 0 0 auto;
}

.hero-aside p {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
  letter-spacing: 0.005em;
  margin: 0;
}

.hero-aside p + p {
  margin-top: 14px;
}


/* ---------- Persona intro proof lines ---------- */

.persona-proof {
  font-size: 19px;
  line-height: 1.5;
  color: var(--gold-deep);
  font-weight: 700;
  max-width: 58ch;
  margin-top: 22px;
}

.enforcement-mode-lines {
  max-width: var(--container-max);
  margin: -18px auto 38px;
  padding: 0 40px;
}

.enforcement-mode-lines p {
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.enforcement-mode-lines p + p {
  margin-top: 6px;
}

.enforcement-mode-lines .observer-mode {
  color: var(--navy);
}

.enforcement-mode-lines .enforce-mode {
  color: var(--gold-deep);
}

.enforcement-mode-lines .policy-stop {
  color: var(--navy);
}


/* ---------- Differentiation band (index page) ---------- */

.differentiation-section {
  color: var(--cream);
  padding: 24px 40px 56px;
}

.differentiation-section .container {
  max-width: 760px;
  background: var(--navy-deep);
  padding: 36px 42px 38px;
}

.differentiation-section h2 {
  font-size: 44px;
  font-weight: 500;
  line-height: 1.14;
  max-width: 18ch;
  margin-bottom: 24px;
  color: var(--gold);
}

.differentiation-section p {
  font-size: 21px;
  line-height: 1.5;
  max-width: 44ch;
  color: rgba(245, 242, 233, 0.82);
}

.differentiation-section .runtime-rule {
  display: inline-block;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(219, 162, 55, 0.72);
  color: var(--gold);
  font-weight: 700;
}


/* ---------- Closing band ---------- */

.closing {
  max-width: 820px;
  margin: 0 auto;
  padding: 128px 40px;
  text-align: center;
}

.closing h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 28px;
}

.closing .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.closing .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 28px;
  letter-spacing: 0.02em;
}


/* ---------- How / steps section (3-up) ---------- */

.how h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  max-width: 16ch;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
}

.step .number {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  font-weight: 500;
  font-feature-settings: "tnum" 1;
  margin-bottom: 28px;
}

.step h3 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 18px;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 32ch;
}


/* ---------- Coverage map embed (index page) ---------- */

.coverage-section h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  max-width: 22ch;
  margin-bottom: 28px;
}

.coverage-section .lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 56px;
}

.map-embed {
  width: 100%;
  border: 1px solid var(--hairline);
  background: #080B12;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 760px;
  border: 0;
  display: block;
}


/* ---------- Legal doc layout (terms, privacy, security) ---------- */

.legal-doc {
  max-width: 880px;
  margin: 0 auto;
  padding: 64px 40px;
}

.legal-doc h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
  scroll-margin-top: 24px;
}

.legal-doc .doc-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 40px;
}

.legal-doc h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 36px 0 12px;
  color: var(--navy);
}

.legal-doc p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 14px;
}

.legal-doc p.muted { color: var(--muted); }

.legal-doc ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.legal-doc ul li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--navy);
  padding-left: 20px;
  position: relative;
  margin-bottom: 4px;
}

.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

.legal-doc strong {
  font-weight: 500;
  color: var(--navy);
}

.legal-doc a {
  color: var(--gold-deep);
}

.legal-doc a:hover {
  text-decoration: underline;
}


/* ---------- About: principles, bio, what-we-built ---------- */

.what-we-built {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 40px;
}

.what-we-built h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 24px;
}

.what-we-built p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 64ch;
}

.what-we-built p.muted { color: var(--muted); }

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.principle {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
}

.principle .arrow {
  color: var(--gold-deep);
  font-size: 14px;
  margin-bottom: 8px;
}

.principle p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  margin: 0;
}


.team-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 40px;
}

.team-section h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 12px;
}

.team-section .section-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
}

.bio {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  margin-bottom: 56px;
  align-items: start;
}

.bio-photo {
  width: 180px;
  height: 180px;
  background: var(--hairline);
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bio-content h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}

.bio-content .role {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.bio-content p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}


/* ---------- Coverage page: jurisdiction blocks ---------- */

.juris-jump {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.juris-jump a {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.juris-jump a:hover,
.juris-jump a:focus-visible {
  background: var(--navy);
  color: var(--gold);
  border-color: var(--navy);
}

.jurisdiction {
  max-width: var(--container-max);
  margin: 24px auto;
  padding: 40px 32px;
  border: 1px solid var(--gold);
  scroll-margin-top: 24px;
}

.jurisdiction h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.012em;
  margin-bottom: 4px;
}

.jurisdiction .juris-meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.jurisdiction h3 {
  font-size: 19px;
  font-weight: 500;
  margin: 28px 0 8px;
}


/* ---------- Mobile ---------- */

@media (max-width: 900px) {

  .hero {
    padding: 72px 24px 80px;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }
  .hero-content { width: 100%; }
  .hero-content h1 { font-size: 40px; max-width: none; }
  .hero .subhead { font-size: 17px; max-width: none; }
  .hero-proof-line { font-size: 17px; max-width: none; }
  .hero-aside { width: 100%; }
  .hero-aside p { font-size: 15px; line-height: 1.5; }
  .hero-aside p + p { margin-top: 10px; }

  .persona-proof { font-size: 17px; max-width: none; }
  .enforcement-mode-lines {
    margin: -12px auto 32px;
    padding: 0 24px;
  }
  .enforcement-mode-lines p { font-size: 15px; }

  .differentiation-section { padding: 8px 24px 48px; }
  .differentiation-section .container { padding: 30px 24px 32px; }
  .differentiation-section h2 { font-size: 30px; max-width: none; }
  .differentiation-section p { font-size: 18px; }

  .closing { padding: 72px 24px; }
  .closing .lede { font-size: 17px; }
  .closing h2 { font-size: 28px; }

  .how h2 { font-size: 28px; }
  .steps { grid-template-columns: 1fr; gap: 48px; }

  .coverage-section h2 { font-size: 28px; }
  .map-embed iframe { height: 560px; }

  .sibling-nav { padding: 0 24px 32px; gap: 12px; }

  .legal-doc { padding: 48px 24px; }
  .legal-doc h2 { font-size: 26px; }

  .what-we-built { padding: 48px 24px; }
  .what-we-built h2 { font-size: 26px; }

  .principles { grid-template-columns: 1fr; gap: 24px; }

  .team-section { padding: 48px 24px; }
  .team-section h2 { font-size: 26px; }
  .bio {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .bio-photo {
    width: 140px;
    height: 140px;
  }

  .juris-jump { padding: 0 24px 24px; }
  .jurisdiction { padding: 40px 24px; }
  .jurisdiction h2 { font-size: 24px; }

}


/* ---------- Metrics: stat cards on /obexgate/coverage ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: var(--container-max);
  margin: 40px auto 48px;
  padding: 0 var(--container-pad-x);
}

.metric {
  border: 1px solid var(--gold);
  padding: 24px 16px;
  text-align: center;
}

.metric .num {
  font-size: 44px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.metric .label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 var(--container-pad-x-mobile);
    margin-bottom: 32px;
  }
  .metric {
    padding: 18px 12px;
  }
  .metric .num {
    font-size: 34px;
  }
}


/* ---------- Coverage table on /obexgate/coverage ---------- */

.coverage-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 24px;
  font-size: 14px;
  table-layout: fixed;
}

.coverage-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--hairline-strong);
}

.coverage-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  line-height: 1.5;
  color: var(--navy);
}

.coverage-table tr:last-child td {
  border-bottom: 0;
}

.coverage-table .framework-name {
  font-weight: 500;
  width: 38%;
  word-break: normal;
  overflow-wrap: break-word;
}

.coverage-table .coverage-desc {
  color: var(--muted);
  width: 62%;
}

@media (max-width: 900px) {
  .coverage-table {
    font-size: 13px;
  }
  .coverage-table th,
  .coverage-table td {
    padding: 8px 10px;
  }
  .coverage-table .framework-name {
    width: 42%;
  }
  .coverage-table .coverage-desc {
    width: 58%;
  }
}
