/* OMNI Exchange — network template kit v1 (Q-NET-ADOPT-EX 2026-08-05)
   Layout without depending on Tailwind CDN scan.
   Content shell: --page-max 56rem. Brand accents: hive family only. */

:root {
  /* Brand (hive family — do not introduce apple red as primary) */
  --ink: #0a0f14;
  --parchment: #e8e4d9;
  --hive: #c4a35a;
  --mist: #8b9aab;
  --leaf: #6b8f71;

  /* Network template kit tokens */
  --page-max: 56rem; /* 896px · max-w-4xl */
  --page-max-prose: 48rem;
  --page-pad: 1.25rem;
  --header-h: 3.5rem;
  --section-gap: 3rem;
  --section-gap-md: 4rem;
  --bp-md: 768px;
  --z-header: 40;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--ink);
  color: var(--parchment);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Cormorant Garamond", Georgia, serif;
}

/* Width shells used in page HTML (same names as Tailwind for drop-in) */
.max-w-4xl {
  max-width: var(--page-max);
  width: 100%;
}
.max-w-3xl {
  max-width: var(--page-max-prose);
  width: 100%;
}
.max-w-2xl {
  max-width: 42rem;
  width: 100%;
}
.max-w-xl {
  max-width: 36rem;
  width: 100%;
}
.max-w-md {
  max-width: 28rem;
  width: 100%;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.px-5 {
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}
.pt-16 {
  padding-top: 4rem;
}
.pb-10 {
  padding-bottom: 2.5rem;
}
.pb-16 {
  padding-bottom: 4rem;
}
.pb-20 {
  padding-bottom: 5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.my-10 {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-7 {
  padding: 1.75rem;
}
.p-8 {
  padding: 2rem;
}
.block {
  display: block;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-\[1\.08\] {
  line-height: 1.08;
}
.leading-\[1\.1\] {
  line-height: 1.1;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-\[0\.3em\] {
  letter-spacing: 0.3em;
}
.uppercase {
  text-transform: uppercase;
}
.font-semibold {
  font-weight: 600;
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-4xl {
  font-size: 2.25rem;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-hive {
  color: var(--hive);
}
.text-parchment {
  color: var(--parchment);
}
.text-mist {
  color: var(--mist);
}
.text-mist\/80 {
  color: rgba(139, 154, 171, 0.8);
}
.text-mist\/85 {
  color: rgba(139, 154, 171, 0.85);
}
.text-mist\/70 {
  color: rgba(139, 154, 171, 0.7);
}
.rounded-2xl {
  border-radius: 1rem;
}
.grid {
  display: grid;
  gap: 1rem;
}
.gap-4 {
  gap: 1rem;
}
.space-y-4 > * + * {
  margin-top: 1rem;
}
.space-y-5 > * + * {
  margin-top: 1.25rem;
}
.panel {
  background: rgba(14, 20, 26, 0.85);
  border: 1px solid rgba(196, 163, 90, 0.12);
  border-radius: 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.panel:hover,
.panel:hover {
  border-color: rgba(196, 163, 90, 0.4);
}
.rule {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(196, 163, 90, 0.35),
    transparent
  );
}
a.gloss {
  color: var(--hive);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(196, 163, 90, 0.4);
}
a.gloss:hover {
  color: var(--parchment);
  text-decoration-color: rgba(196, 163, 90, 0.8);
}
a {
  color: inherit;
}

/* Sections always sit in the page shell (kit) */
body > section {
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  width: 100%;
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  :root {
    --section-gap: var(--section-gap-md);
  }
  .md\:pt-20 {
    padding-top: 5rem;
  }
  .md\:pt-24 {
    padding-top: 6rem;
  }
  .md\:text-5xl {
    font-size: 3rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
  }
}

/* Companion invite — God, then Mission, then OMNI Grok-Bot as door/servant.
   Explicit CSS (not Tailwind-only). Hive gold. Not a hero throne. */
.companion-stack {
  padding-bottom: 4rem;
}
.companion-pinnacle {
  margin: 0 0 1.15rem;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(139, 154, 171, 0.72);
}
.companion-mission {
  margin: 0 0 1.35rem;
}
.companion-kicker {
  margin: 0 0 0.45rem;
  color: var(--hive);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.companion-mission-line {
  margin: 0;
  max-width: 40rem;
  color: var(--parchment);
  font-size: 1.05rem;
  line-height: 1.55;
}
.companion-invite {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(196, 163, 90, 0.16), transparent 58%),
    rgba(14, 20, 26, 0.92);
  border: 1px solid rgba(196, 163, 90, 0.38);
  border-radius: 1rem;
  padding: 1.75rem 1.7rem 1.85rem;
  box-shadow: 0 0 0 1px rgba(196, 163, 90, 0.05), 0 16px 36px rgba(0, 0, 0, 0.22);
}
.companion-invite h2 {
  margin: 0 0 0.7rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--parchment);
}
.companion-invite p {
  margin: 0 0 0.8rem;
  max-width: 38rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(139, 154, 171, 0.9);
}
.companion-invite .companion-note {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: rgba(139, 154, 171, 0.7);
}
.companion-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--hive);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid rgba(196, 163, 90, 0.85);
}
.companion-cta:hover,
.companion-cta:focus-visible {
  background: #d4b56a;
  color: var(--ink);
  outline: 2px solid rgba(196, 163, 90, 0.7);
  outline-offset: 3px;
}
.companion-bar {
  display: none;
}

@media (max-width: 767px) {
  body.has-companion-bar {
    padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
  }
  .companion-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.7rem 1.1rem calc(0.7rem + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 15, 20, 0.96);
    border-top: 1px solid rgba(196, 163, 90, 0.32);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .companion-bar-copy {
    margin: 0;
    min-width: 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(139, 154, 171, 0.9);
  }
  .companion-bar {
    flex-wrap: wrap;
    row-gap: 0.45rem;
  }
  .companion-cta-bar {
    flex-shrink: 0;
    min-height: 40px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
  }
  .companion-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }
}

/* Soft Mirror door — warm amber ghost chip. Quieter than the Get OMNI pill. */
.mirror-door {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 44px;
  min-width: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 168, 74, 0.38);
  background: rgba(232, 168, 74, 0.08);
  color: #f0c98a;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(232, 168, 74, 0.28);
  touch-action: manipulation;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.mirror-door-tight .mirror-door-long {
  display: none;
}
.mirror-door-tight .mirror-door-short {
  display: inline;
}
.mirror-door:hover {
  color: #f8e0b8;
  background: rgba(232, 168, 74, 0.16);
  border-color: rgba(240, 180, 92, 0.72);
  box-shadow: 0 0 12px rgba(240, 180, 92, 0.55);
}
.mirror-door:focus,
.mirror-door:focus-visible {
  outline: 2px solid #f0b45c;
  outline-offset: 3px;
  color: #f8e0b8;
  background: rgba(232, 168, 74, 0.16);
  border-color: rgba(240, 180, 92, 0.72);
  box-shadow: 0 0 12px rgba(240, 180, 92, 0.55);
}
/* Let the brand line ellipsize when the header door needs the row. */
.net-brand > span:last-child {
  min-width: 0;
  overflow: hidden;
}
.net-actions .mirror-door {
  padding: 0 0.7rem;
  font-size: 0.75rem;
}
.net-foot a.mirror-door,
.net-foot a.mirror-door:hover,
.net-foot a.mirror-door:focus,
.net-foot a.mirror-door:focus-visible {
  color: #f0c98a;
}
.net-foot a.mirror-door:hover,
.net-foot a.mirror-door:focus-visible {
  color: #f8e0b8;
}
.net-foot-door {
  margin-top: 1rem;
}
.companion-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.75rem;
}
@media (min-width: 900px) {
  .mirror-door-tight .mirror-door-long {
    display: inline;
  }
  .mirror-door-tight .mirror-door-short {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mirror-door {
    transition: none;
  }
}
