/* rrmyers.com static twin — Matrix/dark-green palette from live Inspiro customizer */

:root {
  --bg: #101010;
  --panel: #0d0d0d;
  --text: #78787f;
  --headings: #ffffff;
  --logo: #ffffff;
  --link: #66bb6a;
  --link-hover: #32cd32;
  --accent: #2e7d32;
  --lime: #39ff14;
  --menu-bg: #1b5e20;
  --menu-bg-scroll: rgba(27, 94, 32, 0.95);
  --footer-bg: #0d1f0e;
  --footer-text: #a0a0a0;
  --footer-link: #0bb4aa;
  --footer-link-hover: #076c65;
  --mark-bg: #1b5e20;
  --max-width: 720px;
  --header-height: 64px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Onest", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover);
}

::selection {
  background: var(--lime);
  color: #000;
}

/* ----- Header / Nav ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--menu-bg);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: var(--menu-bg-scroll);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--logo);
  text-transform: uppercase;
  text-decoration: none;
}

.site-logo:hover,
.site-logo:focus {
  color: var(--logo);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 4px;
  color: #fff;
  width: 42px;
  height: 42px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: 0.5rem;
}

/* Higher specificity than .site-nav a so the green pill actually shows */
.site-nav a.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, "Onest", "Inter", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none !important;
  text-underline-offset: 0;
  border-radius: 999px;
  padding: 0.45rem 1.05rem;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a.nav-btn--outline {
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent !important;
  box-shadow: none;
}

.site-nav a.nav-btn--outline:hover,
.site-nav a.nav-btn--outline:focus {
  border-color: #39ff14 !important;
  color: #39ff14 !important;
  background: rgba(57, 255, 20, 0.08) !important;
  text-decoration: none !important;
}

.site-nav a.nav-btn--primary {
  color: #0a0a0a !important;
  background: #39ff14 !important;
  border: 2px solid #39ff14 !important;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.55);
}

.site-nav a.nav-btn--primary:hover,
.site-nav a.nav-btn--primary:focus {
  background: #7cff6b !important;
  border-color: #7cff6b !important;
  color: #0a0a0a !important;
  text-decoration: none !important;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.75);
}

/* Compact logged-in chip (match app nav-user-chip) */
.site-nav a.nav-user-chip {
  max-width: 160px;
  gap: 0.3rem;
  padding: 0.32rem 0.72rem 0.32rem 0.28rem !important;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.site-nav .nav-user-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav .nav-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid rgba(10, 10, 10, 0.35);
  background: #0a0a0a;
}

.site-nav .nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-nav .nav-avatar--fallback {
  color: #39ff14;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0;
}




/* ----- Hero (home) ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;
  /* No-JS / reduced-motion fallback (also mirrored by .hero-static img) */
  background-image: url("../images/banner.png?v=20260929b");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.42) 100%
  );
  pointer-events: none;
}

.hero-static {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.hero-matrix {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-title {
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 700;
  font-size: clamp(1.85rem, 6.5vw, 4.25rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #7cff6b;
  text-shadow:
    0 0 8px rgba(57, 255, 20, 0.85),
    0 0 22px rgba(57, 255, 20, 0.55),
    0 0 42px rgba(57, 255, 20, 0.35);
}

.hero-cursor {
  color: #7ad7ff;
  text-shadow:
    0 0 8px rgba(122, 215, 255, 0.95),
    0 0 18px rgba(122, 215, 255, 0.55);
}

.hero-slogan {
  margin: 0.65rem 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 600;
  font-size: clamp(0.95rem, 2.8vw, 1.55rem);
  letter-spacing: 0.06em;
  color: #66bb6a;
  text-shadow:
    0 0 6px rgba(57, 255, 20, 0.65),
    0 0 16px rgba(57, 255, 20, 0.35);
}

/* 20260928e: new ">_ rrmyers.com / find your signal" wordmark over the live rain */
.hero-copy {
  background: radial-gradient(
    ellipse 60% 42% at 50% 50%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero-copy picture {
  display: block;
  line-height: 0;
}

.hero-logo {
  display: block;
  width: min(84vw, 820px);
  max-width: 100%;
  height: auto;
  filter:
    drop-shadow(0 0 4px rgba(57, 255, 20, 0.8))
    drop-shadow(0 0 16px rgba(57, 255, 20, 0.45));
}

@media (max-width: 600px) {
  .hero-logo {
    width: 92vw;
  }

  .hero-copy {
    padding: 0.75rem;
    background: radial-gradient(
      ellipse 80% 38% at 50% 50%,
      rgba(0, 0, 0, 0.75) 0%,
      rgba(0, 0, 0, 0.45) 50%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

/* Live canvas mode: hide static art, show rain + HTML slogan */
.hero--live {
  background-image: none;
  background-color: #000;
}

.hero--live .hero-static {
  opacity: 0;
  visibility: hidden;
}

.hero--live .hero-matrix {
  opacity: 1;
}

.hero--live .hero-copy {
  opacity: 1;
}

.hero--live::before {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.28) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .hero-matrix,
  .hero-copy {
    display: none !important;
  }

  .hero--live {
    background-image: url("../images/banner.png?v=20260929b");
  }

  .hero--live .hero-static {
    opacity: 1;
    visibility: visible;
  }

  .scroll-to-content svg,
  .scroll-to-app svg {
    animation: none;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.scroll-label {
  display: block;
  font-family: "Onest", "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: none;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.95rem 0.35rem 1.1rem;
  white-space: nowrap;
  line-height: 1.2;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-cue-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.scroll-to-content,
.scroll-to-app {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.scroll-to-content:hover,
.scroll-to-content:focus-visible,
.scroll-to-app:hover,
.scroll-to-app:focus-visible {
  color: #66bb6a;
  outline: none;
}

.scroll-cue:has(.scroll-to-content:hover) .scroll-label,
.scroll-cue:has(.scroll-to-content:focus-visible) .scroll-label,
.scroll-cue:has(.scroll-to-app:hover) .scroll-label,
.scroll-cue:has(.scroll-to-app:focus-visible) .scroll-label {
  color: #101010;
  background: #66bb6a;
  border-color: #66bb6a;
  box-shadow: 0 0 18px rgba(102, 187, 106, 0.55);
}

.scroll-to-content:hover .scroll-icon,
.scroll-to-content:focus-visible .scroll-icon,
.scroll-to-app:hover .scroll-icon,
.scroll-to-app:focus-visible .scroll-icon {
  color: #66bb6a;
  border-color: #66bb6a;
  background: rgba(102, 187, 106, 0.12);
  box-shadow: 0 0 18px rgba(102, 187, 106, 0.45);
}

.scroll-to-content svg,
.scroll-to-app svg {
  width: 18px;
  height: 18px;
}

.scroll-to-content svg {
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}


/* ----- Help disclosure (match app hamburger) ----- */
.nav-help {
  list-style: none;
}
.nav-help-details {
  position: relative;
}
.nav-help-details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  color: #fff;
  user-select: none;
}
.nav-help-details > summary::-webkit-details-marker {
  display: none;
}
.nav-help-details > summary::after {
  content: " ▾";
  font-size: 0.75em;
  opacity: 0.75;
}
.nav-help-details[open] > summary::after {
  content: " ▴";
}
.nav-help-details > summary:hover,
.nav-help-details > summary:focus {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.nav-help-links,
.nav-user-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(57, 255, 20, 0.28);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.12);
}
.nav-help-links a,
.nav-user-links a {
  font-size: 14px !important;
  color: #c8f5c8 !important;
  text-decoration: none !important;
  padding: 0.2rem 0;
}
.nav-help-links a:hover,
.nav-help-links a:focus,
.nav-user-links a:hover,
.nav-user-links a:focus {
  color: #39ff14 !important;
  text-decoration: underline !important;
}
@media (min-width: 641px) {
  .nav-help-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 11rem;
    z-index: 1200;
  }
}
@media (max-width: 640px) {
  .nav-help-details > summary {
    display: block;
    padding: 0.65rem 1.25rem;
  }
  .nav-help-links {
    margin: 0 1.25rem 0.35rem;
  }
  .nav-help-links a {
    display: block;
    padding: 0.45rem 0.25rem !important;
  }
}

/* ----- Page title band (inner pages) ----- */
.page-hero {
  padding: calc(var(--header-height) + 3.5rem) 1.25rem 2.5rem;
  background: var(--bg);
  text-align: center;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  color: var(--headings);
}

/* ----- Main content ----- */
.site-main {
  background: var(--bg);
}

.content-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.home .content-panel {
  padding-top: 3.5rem;
}

.content-panel h1,
.content-panel h2,
.content-panel h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--headings);
  line-height: 1.3;
}

.content-panel h2 {
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  margin: 2.25rem 0 0.85rem;
}

.content-panel h2:first-child {
  margin-top: 0;
}

.content-panel p {
  margin: 0 0 1.15rem;
}

.content-panel ul {
  margin: 0.75rem 0 1.5rem;
  padding-left: 1.35rem;
}

.content-panel li {
  margin-bottom: 0.4rem;
}


/* ----- Social blurb + Facts box ----- */
.social-card,
.facts-box {
  margin: 1.75rem 0 2rem;
  padding: 1.4rem 1.45rem 1.25rem;
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(27, 94, 32, 0.42) 0%, rgba(13, 31, 14, 0.88) 42%, rgba(13, 13, 13, 0.96) 100%);
  border: 1px solid rgba(57, 255, 20, 0.38);
  box-shadow:
    0 0 28px rgba(57, 255, 20, 0.14),
    0 12px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.social-card::before,
.facts-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #39ff14, #1b5e20);
  border-radius: 16px 0 0 16px;
}

.social-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 2.6vw, 1.45rem);
  color: #ffffff;
}

.social-card > p:last-of-type {
  margin-bottom: 0;
}

.social-features {
  margin: 0.65rem 0 1.15rem;
  padding-left: 1.25rem;
}

.social-features li {
  margin-bottom: 0.45rem;
  color: #b8b8bf;
}


/* hidden must beat .btn-pill { display: inline-flex } */
.btn-pill[hidden],
.social-cta [hidden] {
  display: none !important;
}

.social-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.1rem 0 0 !important;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none !important;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill--primary {
  color: #0a0a0a !important;
  background: #39ff14;
  border: 2px solid #39ff14;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.45);
}

.btn-pill--primary:hover,
.btn-pill--primary:focus {
  background: #7cff6b;
  border-color: #7cff6b;
  color: #0a0a0a !important;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.7);
}

.btn-pill--outline {
  color: #ffffff !important;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn-pill--outline:hover,
.btn-pill--outline:focus {
  color: #39ff14 !important;
  border-color: #39ff14;
  background: rgba(57, 255, 20, 0.08);
}

.facts-box p {
  margin: 0 0 0.85rem;
}

.facts-box ul {
  margin: 0;
  padding-left: 1.25rem;
}

.facts-box li {
  margin-bottom: 0.4rem;
  color: #c5c5cc;
}

mark.fun-facts {
  display: inline-block;
  background: var(--mark-bg);
  color: var(--lime);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid var(--lime);
  font-family: var(--font-heading);
}

/* ----- Footer ----- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.site-footer a {
  color: var(--footer-link);
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--footer-link-hover);
}

.footer-email {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
}

.footer-copy a {
  color: inherit;
}

.footer-copy a:hover {
  color: var(--footer-link);
}


/* ----- Contact form (Matrix) ----- */
.page-hero--matrix .matrix-mark {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid #39ff14;
  background: #1b5e20;
  color: #39ff14;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(57, 255, 20, 0.35);
}

.page-hero--matrix h1 {
  color: #39ff14;
  text-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
  font-family: "JetBrains Mono", "Onest", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.contact-intro {
  margin: 0 0 0.75rem;
  color: #a8a8b0;
}

.contact-alt {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
}

.contact-alt.muted {
  color: #7a7a82;
}

/* Green box — border + soft glow + dark inset panel */
.contact-form-box {
  position: relative;
  margin-top: 0.25rem;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid #39ff14;
  background:
    linear-gradient(180deg, rgba(57, 255, 20, 0.06), transparent 42%),
    #0a0f0a;
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.12),
    0 0 28px rgba(57, 255, 20, 0.28),
    inset 0 0 48px rgba(0, 0, 0, 0.55);
}

.contact-form-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 20, 0.18);
  pointer-events: none;
}

.contact-form {
  position: relative;
  z-index: 1;
}

.contact-form .form-row {
  margin-bottom: 1.1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "JetBrains Mono", "Onest", ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #39ff14;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.25);
}

.contact-form .req {
  color: #7cff6b;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 20, 0.28);
  background: #080808;
  color: #e8e8ee;
  font: inherit;
  font-size: 1rem;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #5a5a62;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(57, 255, 20, 0.55);
  outline-offset: 1px;
  border-color: #39ff14;
  box-shadow:
    0 0 14px rgba(57, 255, 20, 0.35),
    inset 0 0 18px rgba(0, 0, 0, 0.55);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #39ff14 50%),
    linear-gradient(135deg, #39ff14 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
  color: #e8e8ee;
}

.contact-form select option {
  background: #0d0d0d;
  color: #e8e8ee;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-topic-hint {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: #9a9aa3;
  line-height: 1.45;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: #86c986;
}

.contact-form .form-actions {
  margin-top: 1.35rem;
}

.contact-form .form-actions .btn-pill {
  border: none;
  cursor: pointer;
}

.contact-form .form-actions .btn-pill:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-alert {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.contact-alert[hidden] {
  display: none !important;
}

.contact-alert--error {
  background: rgba(180, 40, 40, 0.22);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffc9c9;
}

.contact-alert--success {
  background: rgba(27, 94, 32, 0.35);
  border: 1px solid rgba(57, 255, 20, 0.45);
  color: #c8f5c8;
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.2);
}

.contact-alert--info {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #c8c8d0;
}

.page-contact .site-nav.is-open,
.page-privacy .site-nav.is-open {
  max-height: 420px;
}

/* ----- Policy / long-form ----- */
.page-hero-sub {
  margin: 0.85rem auto 0;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #9a9aa3;
}

.policy-updated {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: #9a9aa3;
}

.policy-toc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  margin: 0 0 2rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(27, 94, 32, 0.28);
  border: 1px solid rgba(57, 255, 20, 0.28);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
}

.policy-toc a {
  color: #c8f5c8;
}

.policy-toc a:hover,
.policy-toc a:focus {
  color: #39ff14;
}

.policy-toc-sep {
  color: rgba(255, 255, 255, 0.35);
}

.policy-doc h2 {
  scroll-margin-top: calc(var(--header-height) + 1rem);
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.5rem;
}

.policy-doc h2:first-of-type {
  border-top: none;
  margin-top: 1.5rem;
  padding-top: 0;
}

.policy-doc h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.55rem;
  color: #e8e8ee;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.policy-doc ul {
  margin: 0.5rem 0 1.25rem;
}

.policy-doc li {
  margin-bottom: 0.55rem;
  color: #a8a8b0;
}

.policy-disclaimer {
  margin-top: 2.25rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: #7a7a82;
}

@media (max-width: 768px) {
  .site-nav.is-open {
    max-height: 380px;
  }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--menu-bg-scroll);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav.is-open {
    max-height: 320px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 1.25rem;
  }

  .hero {
    min-height: 60vh;
    min-height: 60dvh;
  }

  .content-panel {
    padding: 2.25rem 1.1rem 3rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero {
    min-height: 80vh;
  }
}


/* ----- Signal Catcher homepage CTA ----- */
.arcade-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
  padding: 1.35rem 1.45rem;
  overflow: hidden;
  border: 1px solid rgba(57, 255, 20, 0.42);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(13, 31, 14, 0.92), rgba(8, 18, 10, 0.72));
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.12);
}

.arcade-card h2 {
  margin: 0.2rem 0 0.4rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.arcade-card p {
  margin: 0;
  color: #c8c8d0;
}

.arcade-card .arcade-kicker {
  color: #66bb6a;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.arcade-card > div {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.arcade-card .btn-pill {
  flex-shrink: 0;
  margin-top: 0.85rem;
  white-space: nowrap;
}

/* Same faded mark as the app For You games card (.signal-catcher-promo__glyph). */
.arcade-card__glyph {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: rgba(57, 255, 20, 0.2);
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.12em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(57, 255, 20, 0.18);
  user-select: none;
  pointer-events: none;
}

.arcade-card__glyph span {
  color: rgba(255, 255, 255, 0.22);
  font-size: 0.42em;
  letter-spacing: 0;
  vertical-align: top;
}

@media (max-width: 560px) {
  /* Match the app For You card: corner mark, pill button, no full-width bar.
     .arcade-card > div is more specific than .arcade-card__glyph, so the
     corner pin has to use the child combinator or position:relative wins
     and the negative letter-spacing hangs SC off the left edge. */
  .arcade-card {
    align-items: flex-start;
    min-height: 0;
    padding: 1.15rem 1.15rem 1.2rem;
  }

  .arcade-card > div:not(.arcade-card__glyph) {
    padding-right: 5.6rem;
  }

  .arcade-card .btn-pill {
    width: auto;
    max-width: 100%;
  }

  .arcade-card > .arcade-card__glyph {
    position: absolute;
    right: 0.8rem;
    bottom: 0.65rem;
    padding: 0;
    font-size: 3.2rem;
  }
}

/* Narrow phones: keep the long Play button from covering the mark. */
@media (max-width: 380px) {
  .arcade-card > div:not(.arcade-card__glyph) {
    padding-right: 4.6rem;
  }

  .arcade-card .btn-pill {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
    letter-spacing: 0.02em;
  }

  .arcade-card > .arcade-card__glyph {
    right: 0.45rem;
    bottom: 0.7rem;
    font-size: 2.55rem;
  }
}

/* ----- Signal Catcher teaser (homepage) ----- */
.game-teaser {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(57, 255, 20, 0.28);
  border-radius: 10px;
  background: rgba(13, 31, 14, 0.55);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.92rem;
  color: var(--text);
}

.game-teaser a {
  color: #39ff14;
  font-weight: 600;
}

.game-teaser a:hover,
.game-teaser a:focus {
  color: #7cff6b;
}

.game-teaser .teaser-tag {
  display: inline-block;
  margin-right: 0.35rem;
  color: #66bb6a;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ----- Signed-in @user submenu (20260926m, matches app) -----
   Order: Home, Help, "Logged in as" + lime @user chip (toggles a submenu
   styled like Help: For You, Messages, Me, Alerts, Admin Tools for admins),
   Log out. The chip is a <summary>: Enter/Space toggle natively; main.js
   keeps aria-expanded in sync and Escape closes the submenu. */
.nav-user-menu {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-logged-as {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa39a;
  white-space: nowrap;
}

.nav-user-details {
  position: relative;
  margin-top: 0.15rem;
}

.site-nav summary.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-heading, "Onest", "Inter", sans-serif);
  font-weight: 700;
  border-radius: 999px;
  color: #0a0a0a;
  background: #39ff14;
  border: 2px solid #39ff14;
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.55);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav summary.nav-btn::-webkit-details-marker {
  display: none;
}

.site-nav summary.nav-btn::marker {
  content: "";
}

.site-nav summary.nav-btn:hover,
.site-nav summary.nav-btn:focus {
  background: #7cff6b;
  border-color: #7cff6b;
  color: #0a0a0a;
  box-shadow: 0 0 22px rgba(57, 255, 20, 0.75);
}

.site-nav summary.nav-btn:focus-visible {
  outline: 2px solid #39ff14;
  outline-offset: 3px;
}

/* Same compact dimensions as the old chip link */
.site-nav summary.nav-user-chip {
  max-width: 160px;
  gap: 0.3rem;
  padding: 0.32rem 0.72rem 0.32rem 0.28rem;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.nav-user-caret {
  flex-shrink: 0;
  font-size: 0.7em;
  line-height: 1;
  opacity: 0.75;
  transition: transform 0.15s ease;
}

.nav-user-details[open] .nav-user-caret {
  transform: rotate(180deg);
}

.site-nav .nav-user-links a.nav-user-alerts {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}


@media (min-width: 769px) {
  .nav-user-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    min-width: 12rem;
    z-index: 1200;
  }
}

/* Hamburger drawer: full-width left rows; pills keep intrinsic width;
   submenus flow inline so the drawer can grow to fit them. */
@media (max-width: 768px) {
  .site-nav.is-open,
  .page-contact .site-nav.is-open,
  .page-privacy .site-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
  }

  .nav-help-details > summary {
    display: block;
    padding: 0.65rem 1.25rem;
  }

  .nav-help-links,
  .nav-user-links {
    position: static;
    min-width: 0;
  }

  .nav-help-links {
    margin: 0 1.25rem 0.35rem;
  }

  .site-nav .nav-help-links a,
  .site-nav .nav-user-links a {
    display: block;
    padding: 0.45rem 0.25rem !important;
  }

  .site-nav .nav-auth.nav-auth--member {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-left: 0;
    padding: 0.35rem 1.25rem 0.25rem;
  }

  .nav-user-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    width: 100%;
  }

  .nav-user-details {
    width: 100%;
    margin-top: 0.2rem;
  }

  .nav-user-links {
    margin: 0.45rem 0 0.1rem;
  }

  .site-nav .nav-user-links a.nav-user-alerts {
    display: flex;
  }

  .site-nav .nav-user-chip {
    padding: 0.32rem 0.72rem 0.32rem 0.28rem !important;
  }
}

/* Desktop dropdowns: opaque panel so page content never bleeds through */
@media (min-width: 769px) {
  .nav-help-links,
  .nav-user-links {
    background: rgba(8, 18, 10, 0.97);
    backdrop-filter: blur(8px);
  }
}

/* 20260928e: pixel wordmark in the header */
.site-logo--img {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo--img img {
  display: block;
  height: 18px;
  width: auto;
  max-width: 60vw;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.55));
}

/* 20260928e: static banner fallback (no-JS / reduced motion) — keep the whole
   wordmark visible on narrow screens instead of cropping it. */
@media (max-width: 768px) {
  .hero {
    background-size: contain;
  }

  .hero-static {
    object-fit: contain;
  }
}
