/* MNEOS site rebalance — 2026-07-29
 *
 * Adds the four-bucket nav, expanded footer, Learn hub, Current Build Status
 * panel, and simplified homepage hero introduced by the 2026-07-29 morning
 * directive from David Sherrer.
 *
 * Design tokens follow the existing homepage.css conventions:
 *   accent color derived from --r-accent (falls back to a professional teal)
 *   type stack derived from body font-family
 *   spacing scale uses rem units multiples of 0.25rem
 */

:root {
  --r-nav-fg: #1a1a1a;
  --r-nav-menu-bg: #ffffff;
  --r-nav-menu-fg: #1a1a1a;
  --r-nav-menu-hover-bg: #f5f4ef;
  --r-nav-menu-border: rgba(0, 0, 0, 0.08);
  --r-accent: #01696f;
  --r-accent-fg: #ffffff;
  --r-muted: #6b6b6b;
  --r-surface: #f7f6f2;
  --r-surface-2: #ffffff;
  --r-border: rgba(0, 0, 0, 0.1);
  --r-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ============================================================================
   NAV — four-bucket dropdown
   ============================================================================ */

.nav-buckets {
  align-items: center;
  gap: 0.25rem;
}

.nav-bucket {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-bucket-label {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 120ms ease;
}
.nav-bucket-label:hover,
.nav-bucket-label:focus-visible {
  background-color: var(--r-nav-menu-hover-bg);
  outline: none;
}
.nav-bucket-label[aria-expanded="true"] {
  background-color: var(--r-nav-menu-hover-bg);
}
.nav-bucket-caret {
  display: inline-block;
  font-size: 0.75em;
  opacity: 0.6;
  transition: transform 120ms ease;
}
.nav-bucket.open .nav-bucket-caret {
  transform: rotate(180deg);
}

.nav-bucket-menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  min-width: 15rem;
  background: var(--r-nav-menu-bg);
  color: var(--r-nav-menu-fg);
  border: 1px solid var(--r-nav-menu-border);
  border-radius: 0.5rem;
  box-shadow: var(--r-shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
  z-index: 200;
}
.nav-bucket.open .nav-bucket-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-bucket-menu li a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--r-nav-menu-fg);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.nav-bucket-menu li a:hover,
.nav-bucket-menu li a:focus-visible {
  background: var(--r-nav-menu-hover-bg);
  outline: none;
}
.nav-bucket-menu-sep {
  border-top: 1px solid var(--r-nav-menu-border);
  margin-top: 0.35rem;
  padding-top: 0.25rem;
}
.nav-bucket-menu-sep a {
  color: var(--r-accent) !important;
  font-weight: 500;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nav-bucket-menu,
  .nav-bucket-caret,
  .nav-bucket-label {
    transition: none;
  }
}

/* Focus-visible styling for keyboard users (P1 fix from Wave-1 review) */
.nav-bucket-label:focus-visible,
.nav-bucket-menu a:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--r-accent);
  outline-offset: 2px;
}

/* Active-page state (marker attached by nav.js) */
.nav-bucket-menu a.is-current,
.nav-bucket-menu a[aria-current="page"] {
  background: var(--r-nav-menu-hover-bg);
  color: var(--r-accent);
  font-weight: 500;
  position: relative;
}
.nav-bucket-menu a.is-current::before,
.nav-bucket-menu a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--r-accent);
}
.nav-bucket.has-current .nav-bucket-label {
  color: var(--r-accent);
}

/* ---- Mobile drawer: buckets become in-line accordion --------------------- */
@media (max-width: 899.98px) {
  .nav-buckets {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
  }
  .nav-bucket {
    display: block;
  }
  .nav-bucket-label {
    width: 100%;
    justify-content: space-between;
    font-size: 1.05rem;
    padding: 0.85rem 0.5rem;
  }
  .nav-bucket-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0.25rem 0 0.5rem 0.75rem;
  }
  .nav-bucket.open .nav-bucket-menu {
    display: block;
  }
  .nav-bucket-menu li a {
    padding: 0.6rem 0.5rem;
    font-size: 1rem;
  }
}

/* ============================================================================
   HERO — simplified 10-second opener
   ============================================================================ */

.r-hero-simple {
  padding: 6rem 1.5rem 4rem;
  max-width: 60rem;
  margin: 0 auto;
}
.r-hero-simple .r-hero-kicker-simple {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}
.r-hero-simple h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: #111;
  max-width: 34ch;
}
.r-hero-simple .r-hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: #2a2a2a;
  margin: 0 0 2rem;
  max-width: 52ch;
}
.r-hero-simple .r-hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ============================================================================
   CURRENT BUILD STATUS PANEL
   ============================================================================ */

.r-status {
  background: var(--r-surface);
  border-top: 1px solid var(--r-border);
  border-bottom: 1px solid var(--r-border);
  padding: 3rem 1.5rem;
}
.r-status-inner {
  max-width: 72rem;
  margin: 0 auto;
}
.r-status h2 {
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin: 0 0 1.5rem;
  font-weight: 600;
}
.r-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
}
.r-status-item {
  background: var(--r-surface-2);
  border: 1px solid var(--r-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.r-status-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--r-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(1, 105, 111, 0.08);
  align-self: flex-start;
}
.r-status-check[data-maturity="planned"],
.r-status-check[data-maturity="in-development"] {
  color: var(--r-muted);
  background: rgba(0, 0, 0, 0.04);
}
.r-status-updated {
  font-size: 0.75rem;
  color: var(--r-muted);
  margin: -1rem 0 1.5rem;
  letter-spacing: 0.05em;
}
.r-status-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: #111;
}
.r-status-item p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* ============================================================================
   FOUNDER CREDIBILITY STRIP
   ============================================================================ */

.r-founder-strip {
  background: #0f1418;
  color: #f0efe9;
  padding: 3rem 1.5rem;
}
.r-founder-strip-inner {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .r-founder-strip-inner {
    grid-template-columns: 12rem 1fr;
    align-items: start;
  }
}
.r-founder-strip .r-founder-label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9c9c96;
  margin: 0;
  font-weight: 600;
}
.r-founder-strip h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f7f6f2;
  margin: 0 0 0.75rem;
}
.r-founder-strip p {
  font-size: 1rem;
  line-height: 1.55;
  color: #d8d6cf;
  margin: 0 0 0.75rem;
}
.r-founder-strip ul {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: #b9b7ae;
}
.r-founder-strip ul li::before {
  content: "· ";
  color: #01a6ac;
}
.r-founder-strip a {
  color: #d8d6cf;
  text-decoration: underline;
  text-decoration-color: #01a6ac;
  text-underline-offset: 3px;
}

/* ============================================================================
   EXPANDED FOOTER
   ============================================================================ */

.r-footer-hub {
  background: #111418;
  color: #cfcec7;
  padding: 4rem 1.5rem 2.5rem;
}
.r-footer-hub .r-footer-inner {
  max-width: 76rem;
  margin: 0 auto;
}
.r-footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 2rem 1.5rem;
  margin-bottom: 3rem;
}
.r-footer-col-label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8f8e88;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.r-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.r-footer-col a {
  color: #d8d6cf;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
}
.r-footer-col a:hover,
.r-footer-col a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}
.r-footer-muted {
  color: #6f6e68;
  font-size: 0.85rem;
  font-style: italic;
}
.r-footer-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8f8e88;
}
.r-footer-meta a {
  color: #b9b7ae;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}
.r-footer-meta .r-footer-brand {
  margin: 0;
}
.r-footer-meta .r-footer-legal {
  margin: 0;
}

/* ============================================================================
   LEARN HUB — /learning/
   ============================================================================ */

.r-learn-hero {
  padding: 5rem 1.5rem 3rem;
  max-width: 60rem;
  margin: 0 auto;
}
.r-learn-hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin: 0 0 1rem;
  font-weight: 500;
}
.r-learn-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 1rem;
  color: #111;
  max-width: 30ch;
}
.r-learn-hero p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.55;
  color: #2a2a2a;
  max-width: 52ch;
  margin: 0;
}

.r-learn-featured {
  padding: 0 1.5rem 3rem;
  max-width: 72rem;
  margin: 0 auto;
}
.r-learn-featured-card {
  background: linear-gradient(135deg, #0e2b2d 0%, #0f1418 100%);
  color: #f0efe9;
  border-radius: 0.75rem;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
}
@media (min-width: 800px) {
  .r-learn-featured-card {
    grid-template-columns: 1.4fr 1fr;
    padding: 4rem 3rem;
  }
}
.r-learn-featured-card .r-learn-featured-tag {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #01a6ac;
  font-weight: 600;
  margin: 0 0 0.75rem;
}
.r-learn-featured-card h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #f7f6f2;
}
.r-learn-featured-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: #d8d6cf;
  margin: 0 0 1.5rem;
}
.r-learn-featured-card .r-btn {
  align-self: start;
}
.r-learn-featured-visual {
  background: #01696f;
  border-radius: 0.5rem;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f7f6f2;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.r-learn-featured-visual::before {
  content: "Mnemosyne interaction · immersive experience";
  max-width: 20ch;
  text-align: center;
  line-height: 1.4;
}

.r-learn-section {
  padding: 3rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}
.r-learn-section h2 {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--r-muted);
  margin: 0 0 1.5rem;
  font-weight: 600;
}
.r-learn-section-lede {
  font-size: 1.05rem;
  color: #333;
  max-width: 50ch;
  line-height: 1.5;
  margin: -1rem 0 2rem;
}
.r-learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
}
.r-learn-card {
  background: var(--r-surface-2);
  border: 1px solid var(--r-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
a.r-learn-card:hover,
a.r-learn-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--r-shadow-sm);
  outline: none;
  border-color: var(--r-accent);
}
a.r-learn-card:focus-visible {
  outline: 2px solid var(--r-accent);
  outline-offset: 2px;
}
.r-learn-card-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--r-accent);
  font-weight: 600;
}
.r-learn-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #111;
  line-height: 1.3;
}
.r-learn-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}
.r-learn-card-status {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--r-muted);
  font-style: italic;
}

/* Roadmap card (non-interactive; used for In-development and Planned items).
 * Wave-1.1 reviewer fix: unbuilt destinations must NOT be clickable.
 * These are rendered as <div>, not <a>. Visually differentiated so a
 * visitor can tell available content from roadmap. */
.r-roadmap-card {
  background: transparent;
  border: 1px dashed var(--r-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  cursor: default;
  opacity: 0.85;
}
.r-roadmap-card .r-learn-card-kicker {
  color: var(--r-muted);
}
.r-roadmap-card h3 {
  color: #333;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}
.r-roadmap-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  margin: 0;
}
.r-roadmap-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--r-muted);
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--r-border);
  border-radius: 0.25rem;
  align-self: flex-start;
  background: var(--r-surface);
}

/* ============================================================================
   BUTTONS — inherit from existing homepage but ensure defaults exist here too
   ============================================================================ */

.r-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 100ms ease, background-color 120ms ease;
}
.r-btn:hover { transform: translateY(-1px); }
.r-btn-primary {
  background: var(--r-accent);
  color: var(--r-accent-fg);
}
.r-btn-primary:hover { background: #015c62; }
.r-btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
