/* OPPT Group static landing — single stylesheet, no framework, no JS.
   Reuses the Mummies Buddy palette (warm beige + gold) so the OPPT family
   looks visually unified. ~6 KB, ~2 KB gzipped — no need for build tooling. */

:root {
  --bg: #fffaf0;
  --bg-alt: #fff5e0;
  --ink: #1f1d18;
  --ink-soft: #4b4135;
  --ink-faint: #7c736a;
  --gold: #f6b80f;
  --gold-dark: #c98e00;
  --line: rgba(31, 29, 24, 0.12);
  --shadow: 0 18px 44px rgba(31, 29, 24, 0.08);
  --shadow-lg: 0 32px 80px rgba(31, 29, 24, 0.16);
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.container.narrow { width: min(820px, calc(100% - 36px)); }

/* --- Nav --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 250, 240, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding-top: env(safe-area-inset-top);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  font-weight: 900;
  font-size: 20px;
}

.brand-word { font-size: 18px; }

.nav nav {
  display: flex;
  gap: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .nav nav { display: none; }
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(246, 184, 15, 0.36);
}

.btn-primary:hover { box-shadow: 0 18px 44px rgba(246, 184, 15, 0.42); color: var(--ink); }

.btn-ghost {
  background: transparent;
  border-color: rgba(31, 29, 24, 0.18);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--gold-dark); color: var(--gold-dark); }

/* --- Hero --- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(246, 184, 15, 0.5);
  background: rgba(246, 184, 15, 0.16);
  color: #8c5a00;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  padding: 72px 0 64px;
  background:
    radial-gradient(560px 360px at 80% 0%, rgba(246, 184, 15, 0.22), transparent 70%),
    radial-gradient(420px 280px at 0% 100%, rgba(246, 184, 15, 0.18), transparent 70%),
    var(--bg);
}

.hero h1 {
  margin: 14px 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hero h1 em {
  color: var(--gold-dark);
  font-style: italic;
}

.hero .lede {
  max-width: 680px;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Section --- */

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 12px 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* --- Pillars --- */

.pillars {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.pillars li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pillars strong {
  font-weight: 900;
  color: var(--ink);
}

.pillars span {
  font-size: 0.92rem;
  color: var(--ink-faint);
}

/* --- Brand grid --- */

.brand-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.brand-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(120px 120px at 100% 0%, rgba(246, 184, 15, 0.18), transparent 60%);
  pointer-events: none;
}

.brand-pill {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.brand-mission .brand-pill { color: #8c5a00; }

.brand-revenue .brand-pill { color: #1f4d2b; }

.brand-card h3 {
  margin: 4px 0 2px;
  font-size: 1.45rem;
  font-weight: 900;
}

.brand-tag {
  font-style: italic;
  color: var(--ink-faint);
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.brand-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--ink-soft);
}

.brand-link {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  color: var(--gold-dark);
}

.brand-link.muted { color: var(--ink-faint); }

/* --- Contact --- */

.contact-block { text-align: center; }
.contact-block .btn { margin-top: 8px; }
.contact-block p { color: var(--ink-soft); }

.muted { color: var(--ink-faint); }
.small { font-size: 0.86rem; }

/* --- Footer --- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
}

.footer-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-links a { color: var(--gold); }
.footer-links a:hover { color: #fff; }

@media (max-width: 600px) {
  .hero { padding: 56px 0 44px; }
  .section { padding: 56px 0; }
}

/* ==================================================================
   Phase 4: brand hierarchy diagram
   Replaces the old .brand-grid. Pure CSS, no JS. SVG connectors
   between tiers are visible on desktop, hidden on mobile where the
   ↓ "funded by" labels carry the relationship instead.
   ================================================================== */

.hierarchy-lede {
  max-width: 720px;
  margin: 8px auto 36px;
  font-size: 1.04rem;
  color: var(--ink-soft);
}

.hierarchy {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 60px);
  justify-items: center;
  margin: 36px auto 0;
  max-width: 1100px;
}

.tier {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
  width: 100%;
}

.tier-parent {
  /* Centre the lone parent node */
  justify-content: center;
}

.node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 24px 20px;
  min-width: 220px;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.node-logo {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 64px;
  object-fit: contain;
  /* When the file 404s, the alt text and the brand wordmark below carry the page. */
}

.node-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.node-name-parent {
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.node-tag {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: -2px;
}

.node-meta {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.node-cta {
  margin-top: 4px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--gold-dark);
}

.node-cta.muted { color: var(--ink-faint); }

/* ---- Parent tier ---- */
.node-parent {
  min-width: 280px;
  max-width: 360px;
  background: linear-gradient(180deg, #fff, #fffaf0);
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px rgba(31, 29, 24, 0.12);
}

.node-parent .node-logo {
  max-height: 80px;
  max-width: 220px;
}

/* ---- Mission tier ---- */
.node-mission {
  background:
    linear-gradient(180deg, #fff, #fffaf0),
    radial-gradient(180px 100px at 100% 0%, rgba(246, 184, 15, 0.16), transparent 60%);
  border-color: rgba(246, 184, 15, 0.4);
}

/* OPP+ wordmark stand-in (no PNG yet). Same dimensions as a .node-logo. */
.opp-wordmark {
  display: grid;
  place-items: center;
  height: 64px;
  width: 140px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(246, 184, 15, 0.32);
}

.opp-wordmark sup {
  font-size: 1.2rem;
  margin-left: 2px;
  vertical-align: top;
  line-height: 1;
}

/* ---- Revenue tier ---- */
.node-revenue {
  background: #fff;
  border-color: var(--line);
}

.role-pill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2px;
  box-shadow: 0 4px 10px rgba(246, 184, 15, 0.28);
}

.node-coming {
  cursor: default;
}

.node-coming:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* ---- Connectors (desktop only) ---- */
.connector {
  width: min(820px, 80%);
  height: 80px;
  margin: -8px auto;
  stroke: var(--gold-dark);
  stroke-width: 2;
  fill: none;
  opacity: 0.35;
}

.connector path {
  stroke-dasharray: 0;
}

/* ---- Funded-by labels (mobile only — hidden on desktop) ---- */
.hierarchy::before,
.hierarchy::after {
  display: none;
}

/* ==================================================================
   Mobile breakpoint
   ================================================================== */

@media (max-width: 820px) {
  .connector { display: none; }

  .tier {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-width: 380px;
    margin: 0 auto;
  }

  .node {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  /* Render a soft ↑ "funded by" link between mission tier and revenue tier
     since the SVG connectors are hidden. We do this with a pseudo-element on
     .tier-revenue. */
  .tier-revenue {
    position: relative;
    padding-top: 36px;
  }

  .tier-revenue::before {
    content: "↑ funded by";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
  }

  .tier-missions {
    position: relative;
    padding-top: 36px;
  }

  .tier-missions::before {
    content: "↓ community missions";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dark);
  }
}
