* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --lp-nav-height: 72px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--lp-color-background);
  color: var(--lp-color-text-primary);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
body > header {
  background: var(--lp-color-header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-color-header-border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.landing-auth-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #0f172a;
  --lp-color-nav-link: #111827;
  --lp-color-nav-profile-toggle-bg: rgba(4, 120, 87, 0.08);
  --lp-color-nav-profile-toggle-hover-bg: rgba(4, 120, 87, 0.16);
  --lp-color-nav-dropdown-bg: #ffffff;
  --lp-color-nav-dropdown-border: rgba(15, 23, 42, 0.08);
  --lp-color-nav-dropdown-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  --lp-color-nav-dropdown-hover: rgba(4, 120, 87, 0.12);
}

.landing-auth-header__nav {
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
}

.landing-auth-header .logo {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: #047857;
}

.landing-auth-header .logo::before {
  font-size: 1.2em;
}

.landing-auth-header .nav-links {
  gap: clamp(1rem, 2.75vw, 1.75rem);
}

.landing-auth-header .nav-links a {
  font-weight: 600;
}

.landing-auth-header .nav-profile__toggle {
  border-color: transparent;
}

html[data-theme='dark'] .landing-auth-header {
  background: rgba(10, 19, 33, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
  --lp-color-nav-link: #e2e8f0;
  --lp-color-nav-profile-toggle-bg: rgba(148, 163, 184, 0.18);
  --lp-color-nav-profile-toggle-hover-bg: rgba(148, 163, 184, 0.32);
  --lp-color-nav-dropdown-bg: #0f172a;
  --lp-color-nav-dropdown-border: rgba(148, 163, 184, 0.35);
  --lp-color-nav-dropdown-shadow: 0 22px 42px rgba(2, 6, 23, 0.55);
  --lp-color-nav-dropdown-hover: rgba(148, 163, 184, 0.18);
}

html[data-theme='dark'] .landing-auth-header .logo {
  color: #34d399;
}

.lab-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 253, 250, 0.95);
  border-bottom: 1px solid rgba(76, 175, 80, 0.12);
  backdrop-filter: blur(16px);
}

.lab-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px min(4vw, 48px);
  display: flex;
  align-items: center;
  gap: 2rem;
  justify-content: space-between;
}

.lab-header__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lp-color-accent);
  text-decoration: none;
}

.lab-header__nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  position: static;
}

.lab-header__link {
  font-weight: 500;
  color: #2d3e2d;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lab-header__link:hover,
.lab-header__link--active {
  color: var(--lp-color-accent);
}

@media (max-width: 640px) {
  .lab-header__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .lab-header__brand {
    font-size: 1.1rem;
  }

  .lab-header__nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .lab-header__link {
    font-size: 0.95rem;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  position: relative;
  gap: 1.5rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lp-color-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.logo::before {
  content: "🥬";
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--lp-color-nav-link);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--lp-color-accent);
}

.nav-command-center__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
}

.nav-links:not(.active) [data-nav-command-center] .nav-command-center__label {
  display: none !important;
}

.nav-links.active [data-nav-command-center] .nav-command-center__icon {
  min-width: 1.5rem;
  font-size: 1.15rem;
}

.nav-links.active .nav-command-center__label,
.nav-mobile-section__list .nav-command-center__label {
  display: inline;
}

.nav-profile {
  position: relative;
}

.nav-profile__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: var(--lp-color-nav-link);
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-profile__toggle:hover {
  color: var(--lp-color-accent);
}

.nav-profile__toggle:focus-visible {
  outline: 2px solid var(--lp-color-accent);
  outline-offset: 2px;
  color: var(--lp-color-accent);
}

.nav-profile__emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
}

.nav-profile__menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--lp-color-nav-dropdown-border);
  background: var(--lp-color-nav-dropdown-bg);
  box-shadow: var(--lp-color-nav-dropdown-shadow);
  width: max-content;
  min-width: 14rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 20;
}

.nav-profile__menu a {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  color: var(--lp-color-nav-link);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.nav-profile__menu a:hover,
.nav-profile__menu a:focus {
  color: var(--lp-color-accent);
  background: var(--lp-color-nav-dropdown-hover, rgba(0, 0, 0, 0.08));
}

.nav-profile:not(.is-open) .nav-profile__menu {
  display: none;
}

.nav-profile.is-open .nav-profile__toggle {
  color: var(--lp-color-accent);
}

.nav-theme {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  top: var(--lp-nav-height);
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  max-width: none;
  background: var(--lp-color-nav-mobile-surface);
  padding: 1.25rem clamp(1.25rem, 6vw, 1.75rem) clamp(1.75rem, 10vh, 2.5rem);
  border-radius: 0;
  border-top: 1px solid var(--lp-color-nav-dropdown-border);
  border-bottom: 1px solid var(--lp-color-nav-dropdown-border);
  box-shadow: var(--lp-color-nav-dropdown-shadow);
  gap: 0;
  min-width: 0;
  max-height: calc(100vh - var(--lp-nav-height));
  overflow-y: auto;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  z-index: 999;
}

.nav-links.active .nav-theme {
  display: none;
}

.nav-mobile-locale {
  display: none;
}

.nav-links.active .nav-mobile-locale {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--lp-color-nav-mobile-divider);
}

.nav-mobile-locale__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-mobile-locale__brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--lp-color-text-muted);
}

.nav-mobile-locale__theme {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.nav-mobile-locale__toggle {
  flex-shrink: 0;
}

.nav-mobile-locale__control {
  position: relative;
  width: 100%;
}

.nav-mobile-locale__dropdown {
  position: relative;
  width: 100%;
}

.nav-mobile-locale__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid var(--lp-color-nav-dropdown-border);
  border-radius: 10px;
  background: var(--lp-color-nav-mobile-surface);
  color: var(--lp-color-dropdown-text);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.75rem 0.95rem;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  text-align: left;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.nav-mobile-locale__trigger::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lp-color-nav-mobile-chevron);
  border-bottom: 2px solid var(--lp-color-nav-mobile-chevron);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.nav-mobile-locale__trigger[aria-expanded="true"]::after {
  transform: rotate(-135deg);
}

.nav-mobile-locale__trigger:focus-visible {
  outline: none;
  border-color: var(--lp-color-select-focus-border);
  box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.18);
}

.nav-mobile-locale__dropdown.is-open .nav-mobile-locale__trigger {
  border-color: var(--lp-color-select-focus-border);
  box-shadow: 0 0 0 2px rgba(99, 91, 255, 0.15);
}

.nav-mobile-locale__current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.nav-mobile-locale__options {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--lp-color-nav-mobile-surface);
  border: 1px solid var(--lp-color-nav-dropdown-border);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  z-index: 10;
}

.nav-mobile-locale__dropdown:not(.is-open) .nav-mobile-locale__options {
  display: none;
}

.nav-mobile-locale__option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  border: none;
  background: transparent;
  color: var(--lp-color-dropdown-text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.65rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

.nav-mobile-locale__option:hover,
.nav-mobile-locale__option:focus-visible {
  background: var(--lp-color-nav-mobile-item-hover);
  outline: none;
}

.nav-mobile-locale__option.is-selected {
  background: rgba(99, 91, 255, 0.12);
  color: var(--lp-color-nav-mobile-primary);
}

.nav-mobile-actions {
  display: none;
}


.nav-links.active > li {
  list-style: none;
}

.nav-mobile-section {
  display: none;
}

.nav-links.active > li[data-nav-structured]:not(.nav-mobile-section) {
  display: block;
  padding: 0;
  border-bottom: 1px solid var(--lp-color-nav-mobile-divider);
}

.nav-links.active > li[data-nav-mobile-hide-with-account] {
  display: none;
}

.nav-links.active > li.nav-profile[data-nav-profile] {
  display: none;
}

.nav-links.active > li[data-nav-structured]:not(.nav-mobile-section):first-of-type {
  border-top: 1px solid var(--lp-color-nav-mobile-divider);
  margin-top: 1.25rem;
}

.nav-links.active > li[data-nav-structured]:not(.nav-mobile-section):last-of-type {
  margin-bottom: 1.25rem;
  border-bottom: none;
}

.nav-links.active > li[data-nav-structured]:not(.nav-mobile-section)
  + li[data-nav-structured]:not(.nav-mobile-section) {
  margin-top: 0;
}

.nav-links.active .nav-profile {
  display: none;
}

.nav-links.active .nav-profile__menu {
  border: none;
  padding: 0;
  background: transparent;
  gap: 0.65rem;
}

.nav-links.active .nav-profile__menu li {
  list-style: none;
}

.nav-links.active .nav-profile__menu a {
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-links.active [data-nav-mobile-link] {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--lp-color-nav-link);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links.active [data-nav-mobile-link]:hover,
.nav-links.active [data-nav-mobile-link]:focus-visible {
  outline: none;
  color: var(--lp-color-accent);
}

.nav-links.active [data-nav-mobile-link]::before {
  content: attr(data-nav-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.5rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--lp-color-nav-link);
}

.nav-links.active [data-nav-mobile-link]:not([data-nav-icon])::before {
  content: '';
  min-width: 0;
}

.nav-links.active [data-nav-mobile-link]::after {
  display: none;
}

.nav-links.active [data-nav-mobile-hidden] {
  display: none !important;
}

.nav-mobile-link__label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.nav-mobile-section__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--lp-color-text-muted);
  margin: 0;
}

.nav-links.active .nav-mobile-section {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
}

.nav-mobile-section__toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0;
  border: none;
  background: transparent;
  color: var(--lp-color-nav-link);
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-mobile-section__toggle:hover {
  color: var(--lp-color-accent);
}

.nav-mobile-section__toggle:focus-visible {
  outline: 2px solid rgba(76, 175, 80, 0.32);
  outline-offset: 3px;
}

.nav-mobile-section__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  font-size: 1.2rem;
  line-height: 1;
}

.nav-mobile-section__toggle-label {
  flex: 1;
  min-width: 0;
}

.nav-mobile-section__chevron {
  margin-left: auto;
  font-size: 0.85rem;
}

.nav-mobile-section__list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lp-color-nav-mobile-divider);
  border-radius: 10px;
  background: var(--lp-color-nav-mobile-surface);
  overflow: hidden;
  margin-top: 0.25rem;
}

.nav-mobile-section__list[hidden] {
  display: none;
}

.nav-mobile-section__list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  color: var(--lp-color-nav-link);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-mobile-section__list a::before {
  content: attr(data-nav-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  font-size: 1.05rem;
  line-height: 1;
}

.nav-mobile-section__list a:not([data-nav-icon])::before {
  content: '';
  min-width: 0;
}

.nav-mobile-section__list .nav-mobile-link__label {
  flex: 1;
  min-width: 0;
}

.nav-mobile-section__list a + a {
  border-top: 1px solid var(--lp-color-nav-mobile-divider);
}

.nav-mobile-section__list a:hover,
.nav-mobile-section__list a:focus-visible {
  color: var(--lp-color-accent);
  background: var(--lp-color-nav-mobile-item-hover);
  outline: none;
}

.nav-links.active .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--lp-color-nav-mobile-divider);
}

.nav-mobile-actions__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  text-decoration: none;
  padding: 0.95rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    color 0.2s ease;
  border: 1px solid transparent;
}

.nav-mobile-actions__button:focus-visible {
  outline: 2px solid rgba(99, 91, 255, 0.35);
  outline-offset: 3px;
}

.nav-mobile-actions__button--primary {
  background: var(--lp-color-nav-mobile-primary);
  color: #ffffff;
  border-color: var(--lp-color-nav-mobile-primary);
  box-shadow: 0 12px 30px rgba(76, 175, 80, 0.24);
}

.nav-mobile-actions__button--primary:hover,
.nav-mobile-actions__button--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(76, 175, 80, 0.3);
}

.nav-mobile-actions__button--secondary {
  background: transparent;
  color: var(--lp-color-nav-mobile-secondary-text);
  border-color: var(--lp-color-nav-mobile-divider);
}

.nav-mobile-actions__button--secondary:hover,
.nav-mobile-actions__button--secondary:focus-visible {
  transform: translateY(-1px);
  background: rgba(76, 175, 80, 0.1);
  color: var(--lp-color-nav-mobile-primary);
  border-color: rgba(76, 175, 80, 0.25);
}

.mobile-menu {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--lp-color-mobile-menu);
  cursor: pointer;
  transition: color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu:hover {
  color: var(--lp-color-mobile-menu-hover);
}

.mobile-menu:focus-visible {
  outline: 2px solid rgba(76, 175, 80, 0.45);
  outline-offset: 3px;
}

.mobile-menu span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
}

.mobile-menu span:nth-child(1) {
  transform: translate(-50%, -50%) translateY(-6.5px);
}

.mobile-menu span:nth-child(2) {
  transform: translate(-50%, -50%);
  opacity: 0.55;
}

.mobile-menu span:nth-child(3) {
  transform: translate(-50%, -50%) translateY(6.5px);
}

.mobile-menu.open {
  color: var(--lp-color-accent);
}

.mobile-menu.open span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu.open span:nth-child(2) {
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.6);
}

.mobile-menu.open span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: linear-gradient(135deg, var(--lp-color-hero-gradient-start) 0%, var(--lp-color-hero-gradient-end) 100%);
  transition: background 0.3s ease;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--lp-color-accent);
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.8rem;
  color: var(--lp-color-accent);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero p {
  font-size: 1.2rem;
  color: var(--lp-color-text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-pass-button {
  background: linear-gradient(135deg, #3da865 0%, #27703d 100%);
  box-shadow: 0 10px 22px rgba(76, 175, 80, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 1.9rem;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  text-decoration: none;
}

.hero-pass-button:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 14px 26px rgba(76, 175, 80, 0.26);
  filter: brightness(1.01);
}

.hero-pass-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.22), 0 14px 26px rgba(76, 175, 80, 0.24);
}

.search-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-mode-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-mode-buttons .hero-pass-button {
  width: 100%;
  max-width: 220px;
}

/* Search Section */
.search-section {
  background: var(--lp-color-search-bg);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--lp-color-search-shadow);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--lp-color-search-border);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Tree Message */
.tree-message {
  background: linear-gradient(135deg, var(--lp-color-tree-gradient-start) 0%, var(--lp-color-tree-gradient-end) 100%);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
  border: 1px solid var(--lp-color-tree-border);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tree-message .tree-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.tree-message h3 {
  color: var(--lp-color-accent);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tree-message p {
  color: var(--lp-color-text-secondary);
  font-size: 1rem;
}

/* Features Section */
.features {
  padding: 60px 0 80px;
  background: var(--lp-color-feature-section);
  transition: background 0.3s ease;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--lp-color-text-primary);
  margin-bottom: 3rem;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--lp-color-feature-card-bg);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--lp-color-feature-card-border);
  box-shadow: var(--lp-shadow-soft);
  display: block;
  color: inherit;
  text-decoration: none;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--lp-color-feature-card-hover-border);
}

.feature-card:focus-visible {
  outline: 3px solid var(--lp-color-accent);
  outline-offset: 4px;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  color: var(--lp-color-text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--lp-color-text-secondary);
  font-size: 1rem;
}

.partner-card {
  cursor: pointer;
}

.partner-btn {
  background: var(--lp-color-accent);
  color: var(--lp-color-text-inverse);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.partner-btn:hover {
  background: var(--lp-color-accent-hover);
  transform: translateY(-1px);
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--lp-color-cta-bg-start) 0%, var(--lp-color-cta-bg-end) 100%);
  color: var(--lp-color-cta-text);
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta h2 {
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  font-weight: 700;
  max-width: 720px;
  line-height: 1.2;
}

.cta p {
  font-size: 1.2rem;
  margin: 0 auto 2rem;
  opacity: 0.9;
  max-width: 780px;
  line-height: 1.6;
}

.cta-contact-btn {
  background: var(--lp-color-cta-btn-bg);
  color: var(--lp-color-cta-btn-text);
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.cta-contact-btn:hover,
.cta-contact-btn:focus-visible {
  background: var(--lp-color-cta-btn-hover-bg);
  color: var(--lp-color-cta-btn-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Page Content */
.page-content {
  display: none;
  padding: 120px 0 80px;
  min-height: 100vh;
}

.page-content.active {
  display: block;
}

.page-content h1 {
  font-size: 3rem;
  color: var(--lp-color-text-primary);
  margin-bottom: 2rem;
  font-weight: 700;
}

.page-content h2 {
  font-size: 2rem;
  color: var(--lp-color-accent);
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.page-content p {
  font-size: 1.1rem;
  color: var(--lp-color-text-secondary);
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.page-content .page-meta {
  font-size: 0.95rem;
  color: var(--lp-legend-text-secondary);
  margin-bottom: 1.5rem;
}

#saasquatch-legend,
#lp-labs,
#legends-trail,
#about,
#how-it-works,
#help,
#privacy-policy,
#terms-and-conditions,
#monthly-terms,
#lettuce-encrypt {
  background: linear-gradient(180deg, var(--lp-legend-bg-top) 0%, var(--lp-legend-bg-bottom) 100%);
}

#saasquatch-legend .legend-inner,
#lp-labs .legend-inner,
#legends-trail .legend-inner,
#about .legend-inner,
#how-it-works .legend-inner,
#help .legend-inner,
#privacy-policy .legend-inner,
#terms-and-conditions .legend-inner,
#monthly-terms .legend-inner,
#lettuce-encrypt .legend-inner {
  background: var(--lp-legend-surface);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 26px;
  padding: 3rem 3rem 3.5rem;
  box-shadow: var(--lp-legend-card-shadow);
  backdrop-filter: blur(6px);
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

#saasquatch-legend .legend-inner::before,
#lp-labs .legend-inner::before,
#legends-trail .legend-inner::before,
#about .legend-inner::before,
#how-it-works .legend-inner::before,
#help .legend-inner::before,
#privacy-policy .legend-inner::before,
#terms-and-conditions .legend-inner::before,
#monthly-terms .legend-inner::before,
#saasquatch-legend .legend-inner::after,
#lp-labs .legend-inner::after,
#legends-trail .legend-inner::after,
#about .legend-inner::after,
#how-it-works .legend-inner::after,
#help .legend-inner::after,
#privacy-policy .legend-inner::after,
#terms-and-conditions .legend-inner::after,
#monthly-terms .legend-inner::after,
#lettuce-encrypt .legend-inner::before,
#lettuce-encrypt .legend-inner::after {
  content: none;
}

#saasquatch-legend .legend-inner > *,
#lp-labs .legend-inner > *,
#legends-trail .legend-inner > *,
#about .legend-inner > *,
#how-it-works .legend-inner > *,
#help .legend-inner > *,
#privacy-policy .legend-inner > *,
#terms-and-conditions .legend-inner > *,
#monthly-terms .legend-inner > *,
#lettuce-encrypt .legend-inner > * {
  position: relative;
  z-index: 1;
}

#saasquatch-legend .legend-inner > .legend-notebook,
#lp-labs .legend-inner > .legend-notebook,
#legends-trail .legend-inner > .legend-notebook,
#about .legend-inner > .legend-notebook,
#how-it-works .legend-inner > .legend-notebook,
#help .legend-inner > .legend-notebook,
#privacy-policy .legend-inner > .legend-notebook,
#terms-and-conditions .legend-inner > .legend-notebook,
#monthly-terms .legend-inner > .legend-notebook,
#lettuce-encrypt .legend-inner > .legend-notebook {
  z-index: 5;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--lp-legend-badge-bg);
  color: var(--lp-legend-text-primary);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--lp-legend-card-border);
  margin-bottom: 1rem;
}

.legend-intro {
  font-size: 1.1rem;
  color: var(--lp-legend-text-secondary);
  margin-bottom: 2rem;
  max-width: 720px;
}

.legend-card-grid {
  display: grid;
  gap: 1.75rem;
  margin: 2.5rem 0 3rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.legend-card {
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--lp-legend-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.legend-card:hover,
.legend-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--lp-legend-highlight-strong);
}

.legend-card-icon {
  font-size: 2.25rem;
}

.legend-card h2,
.legend-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.legend-card p {
  color: var(--lp-legend-text-secondary);
}

.legend-card-grid--steps {
  margin-bottom: 3rem;
}

.legend-split {
  display: grid;
  gap: 2.5rem;
  margin: 3rem 0;
  align-items: start;
}

.legend-split-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legend-chip-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.legend-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  box-shadow: var(--lp-legend-card-shadow);
  color: var(--lp-legend-text-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.legend-split-panel {
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 22px;
  padding: 1.75rem;
  box-shadow: var(--lp-legend-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.legend-terminal {
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--lp-legend-card-shadow);
  font-family: "Fira Code", "Menlo", "Consolas", "Liberation Mono", monospace;
  font-size: 0.95rem;
  color: var(--lp-legend-text-primary);
  line-height: 1.55;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

.legend-terminal code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: inherit;
}

.legend-step-list {
  list-style: none;
  margin: 1rem 0 0.5rem;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  counter-reset: legend-step;
}

.legend-step {
  position: relative;
  padding: 1.25rem 1.35rem 1.25rem 3.65rem;
  background: var(--lp-legend-meta-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 18px;
  box-shadow: var(--lp-legend-card-shadow);
  counter-increment: legend-step;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legend-step::before {
  content: counter(legend-step);
  position: absolute;
  top: 1.5rem;
  left: 1.4rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--lp-legend-highlight);
  border: 2px solid var(--lp-legend-card-border);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--lp-legend-text-primary);
}

.legend-step h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--lp-legend-text-primary);
}

.legend-step p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.6;
}

.legend-step .legend-terminal {
  margin: 0.35rem 0 0;
}

.legend-fact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.legend-fact {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 0.65rem;
  row-gap: 0.35rem;
  align-items: start;
  align-content: start;
  background: var(--lp-legend-meta-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 18px;
  padding: 1.1rem 1.25rem;
  box-shadow: var(--lp-legend-card-shadow);
  height: 100%;
}

.legend-fact-icon {
  font-size: 1.35rem;
}

.legend-fact-number {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--lp-legend-text-primary);
}

.legend-fact-label {
  font-size: 0.95rem;
  color: var(--lp-legend-text-secondary);
  grid-column: 1 / -1;
  align-self: start;
}

.legend-timeline {
  margin: 3rem 0;
  background: var(--lp-legend-meta-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 26px;
  padding: 2.25rem 2rem;
  box-shadow: var(--lp-legend-card-shadow);
}

.legend-timeline-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  position: relative;
}

.legend-timeline-list::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 1.35rem;
  width: 2px;
  background: var(--lp-legend-card-border);
}

.legend-timeline-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
}

.legend-timeline-item:last-child {
  margin-bottom: 0;
}

.legend-timeline-badge {
  position: absolute;
  top: -0.25rem;
  left: 0.35rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  box-shadow: var(--lp-legend-card-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.legend-timeline-content {
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  box-shadow: var(--lp-legend-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.legend-checklist {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.legend-checklist--panel {
  margin-top: 0.25rem;
}

.legend-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: var(--lp-legend-card-shadow);
}

.legend-checklist li span {
  font-size: 1.5rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.legend-checklist strong {
  color: var(--lp-legend-text-primary);
}

.legend-cta {
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.18), rgba(155, 140, 255, 0.18));
  border: 1px solid rgba(76, 175, 80, 0.22);
  border-radius: 26px;
  padding: 2.25rem 2rem;
  box-shadow: var(--lp-legend-card-shadow);
}

.legend-cta-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.legend-cta-copy {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.legend-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legend-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--lp-legend-link);
  color: var(--lp-color-text-inverse);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(80, 48, 149, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.legend-cta-button:hover,
.legend-cta-button:focus-visible {
  transform: translateY(-2px);
  background: var(--lp-legend-link);
  color: var(--lp-color-text-inverse);
  box-shadow: 0 10px 20px rgba(80, 48, 149, 0.16);
}

.legend-cta-button--secondary {
  background: transparent;
  color: var(--lp-legend-text-primary);
  border: 1.5px solid var(--lp-legend-card-border);
  box-shadow: var(--lp-legend-card-shadow);
}

.legend-cta-button--secondary:hover,
.legend-cta-button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.5);
  color: var(--lp-legend-text-primary);
}

@media (min-width: 900px) {
  .legend-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 599px) {
  .legend-timeline-list::before {
    left: 1.15rem;
  }

  .legend-timeline-item {
    padding-left: 3rem;
  }

  .legend-timeline-badge {
    left: 0.1rem;
  }
}

.legend-highlight {
  background: var(--lp-legend-highlight);
  border: 1px solid var(--lp-legend-highlight-strong);
  border-radius: 22px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 3rem 0;
}

.legend-highlight-icon {
  font-size: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  box-shadow: var(--lp-legend-card-shadow);
}

.legend-highlight-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legend-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.legend-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: flex-start;
}

.legend-list li span {
  font-size: 1.6rem;
  line-height: 1;
  margin-top: 0.15rem;
}

.legend-list li strong {
  color: var(--lp-legend-text-primary);
}

.legend-lots {
  margin: 3rem 0;
  background: linear-gradient(135deg, var(--lp-legend-highlight), rgba(120, 211, 144, 0.18));
  border: 1px solid var(--lp-legend-highlight-strong);
  border-radius: 26px;
  padding: 2.25rem 2rem;
  box-shadow: var(--lp-legend-card-shadow);
  display: grid;
  gap: 2rem;
}

.legend-lots-header {
  display: grid;
  gap: 0.85rem;
  max-width: 640px;
}

.legend-lots-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  box-shadow: var(--lp-legend-card-shadow);
  color: var(--lp-legend-text-secondary);
}

.legend-lots-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.legend-lots-card {
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 20px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--lp-legend-card-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.legend-lots-card:hover,
.legend-lots-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--lp-legend-highlight-strong);
}

.legend-lots-icon {
  font-size: 1.9rem;
}

.legend-lots-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--lp-legend-text-primary);
}

.legend-lots-card p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
}

.legend-lots-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legend-lots-footer .legend-cta-button {
  box-shadow: var(--lp-legend-card-shadow);
}

@media (min-width: 768px) {
  .legend-highlight {
    flex-direction: row;
    align-items: center;
  }

  .legend-highlight-content {
    flex: 1;
  }
}

@media (max-width: 599px) {
  .legend-lots {
    padding: 2rem 1.5rem;
  }
}

#saasquatch-legend h1,
#saasquatch-legend h2,
#saasquatch-legend h3,
#saasquatch-legend h4,
#lp-labs h1,
#lp-labs h2,
#lp-labs h3,
#lp-labs h4,
#legends-trail h1,
#legends-trail h2,
#legends-trail h3,
#legends-trail h4,
#about h1,
#about h2,
#about h3,
#about h4,
#how-it-works h1,
#how-it-works h2,
#how-it-works h3,
#how-it-works h4,
#help h1,
#help h2,
#help h3,
#help h4,
#privacy-policy h1,
#privacy-policy h2,
#privacy-policy h3,
#privacy-policy h4,
#terms-and-conditions h1,
#terms-and-conditions h2,
#terms-and-conditions h3,
#terms-and-conditions h4,
#monthly-terms h1,
#monthly-terms h2,
#monthly-terms h3,
#monthly-terms h4,
#lettuce-encrypt h1,
#lettuce-encrypt h2,
#lettuce-encrypt h3,
#lettuce-encrypt h4 {
  color: var(--lp-legend-text-primary);
}

#saasquatch-legend p,
#saasquatch-legend li,
#lp-labs p,
#lp-labs li,
#legends-trail p,
#legends-trail li,
#about p,
#about li,
#how-it-works p,
#how-it-works li,
#help p,
#help li,
#privacy-policy p,
#privacy-policy li,
#terms-and-conditions p,
#terms-and-conditions li,
#monthly-terms p,
#monthly-terms li,
#lettuce-encrypt p,
#lettuce-encrypt li {
  color: var(--lp-legend-text-secondary);
}

#saasquatch-legend strong,
#lp-labs strong,
#legends-trail strong,
#about strong,
#how-it-works strong,
#help strong,
#privacy-policy strong,
#terms-and-conditions strong,
#monthly-terms strong,
#lettuce-encrypt strong {
  color: var(--lp-legend-text-primary);
}

@media (min-width: 1024px) {
  #about.page-content,
  #how-it-works.page-content,
  #help.page-content,
  #privacy-policy.page-content,
  #terms-and-conditions.page-content,
  #monthly-terms.page-content,
  #lettuce-encrypt.page-content {
    padding-top: 6.25rem;
  }
}

#about .back-btn,
#how-it-works .back-btn,
#help .back-btn,
#privacy-policy .back-btn,
#terms-and-conditions .back-btn,
#monthly-terms .back-btn,
#lettuce-encrypt .back-btn {
  background: var(--lp-legend-link);
  color: var(--lp-color-text-inverse);
}

#about .back-btn:hover,
#how-it-works .back-btn:hover,
#help .back-btn:hover,
#privacy-policy .back-btn:hover,
#terms-and-conditions .back-btn:hover,
#monthly-terms .back-btn:hover,
#lettuce-encrypt .back-btn:hover {
  background: var(--lp-legend-link-hover);
}

.legend-notebook {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  z-index: 5;
  --legend-notebook-toggle-tint: rgba(113, 96, 255, 0.18);
  --legend-notebook-active-body: linear-gradient(150deg, #9b8cff 0%, #675bff 100%);
  --legend-notebook-active-spine: rgba(71, 57, 200, 0.66);
  --legend-notebook-icon-halo: rgba(113, 96, 255, 0.12);
  --legend-notebook-icon-ring: rgba(113, 96, 255, 0.28);
}

.legend-notebook[data-active-notebook="cedar"] {
  --legend-notebook-active-body: linear-gradient(150deg, #54ddb0 0%, #1ea769 100%);
  --legend-notebook-active-spine: rgba(26, 115, 79, 0.65);
  --legend-notebook-icon-halo: rgba(47, 173, 120, 0.16);
  --legend-notebook-icon-ring: rgba(26, 115, 79, 0.28);
}

.legend-notebook[data-active-notebook="labs"] {
  --legend-notebook-toggle-tint: rgba(113, 96, 255, 0.18);
  --legend-notebook-active-body: linear-gradient(150deg, #9b8cff 0%, #675bff 100%);
  --legend-notebook-active-spine: rgba(71, 57, 200, 0.66);
  --legend-notebook-icon-halo: rgba(113, 96, 255, 0.12);
  --legend-notebook-icon-ring: rgba(113, 96, 255, 0.28);
}

.legend-notebook[data-active-notebook="trail"] {
  --legend-notebook-toggle-tint: rgba(240, 153, 64, 0.16);
  --legend-notebook-active-body: linear-gradient(150deg, #f8c977 0%, #f2852d 100%);
  --legend-notebook-active-spine: rgba(214, 116, 45, 0.65);
  --legend-notebook-icon-halo: rgba(240, 153, 64, 0.18);
  --legend-notebook-icon-ring: rgba(214, 116, 45, 0.32);
}

.legend-notebook__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  border: 1px solid var(--lp-legend-card-border);
  background: linear-gradient(140deg, var(--lp-legend-card-bg) 0%, var(--legend-notebook-toggle-tint) 120%);
  backdrop-filter: blur(6px);
  color: var(--lp-legend-text-primary);
  font: inherit;
  cursor: pointer;
  text-align: left;
  min-width: 260px;
  box-shadow: 0 14px 32px rgba(20, 30, 60, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.legend-notebook__toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(20, 30, 60, 0.22);
}

.legend-notebook__toggle:focus-visible {
  outline: 3px solid rgba(113, 96, 255, 0.45);
  outline-offset: 3px;
}

.legend-notebook__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--legend-notebook-icon-halo);
  box-shadow: inset 0 0 0 1px var(--legend-notebook-icon-ring);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.legend-notebook__icon::before {
  content: "";
  display: block;
  width: 28px;
  height: 34px;
  border-radius: 9px;
  background: var(--legend-notebook-active-body);
  box-shadow: 0 12px 24px rgba(20, 30, 60, 0.25);
}

.legend-notebook__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 9px);
  width: 6px;
  height: 24px;
  border-radius: 6px;
  background: var(--legend-notebook-active-spine);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
}

.legend-notebook__labels {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.legend-notebook__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--lp-legend-text-secondary);
}

.legend-notebook__name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--lp-legend-text-primary);
}

.legend-notebook__chevron {
  margin-left: auto;
  width: 0.75rem;
  height: 0.75rem;
  border-right: 2px solid var(--lp-legend-text-primary);
  border-bottom: 2px solid var(--lp-legend-text-primary);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.legend-notebook--open .legend-notebook__chevron {
  transform: rotate(-135deg);
}

.legend-notebook__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: max(240px, 100%);
  margin-top: -1px;
  padding: 0.5rem 0;
  border-radius: 0 0 14px 14px;
  background: var(--lp-color-dropdown-bg);
  border: 1px solid var(--lp-color-dropdown-border);
  box-shadow: var(--lp-color-dropdown-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 15;
  overflow: hidden;
}

.legend-notebook--open .legend-notebook__menu {
  opacity: 1;
  transform: translateY(0);
  border-top: none;
}

.legend-notebook--open .legend-notebook__toggle {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.legend-notebook__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lp-color-dropdown-text);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  --legend-notebook-item-body: linear-gradient(150deg, #9b8cff 0%, #675bff 100%);
  --legend-notebook-item-spine: rgba(71, 57, 200, 0.66);
  --legend-notebook-item-highlight: rgba(113, 96, 255, 0.13);
  --legend-notebook-item-accent: #4b3adb;
}

.legend-notebook__link[data-notebook-id="cedar"] {
  --legend-notebook-item-body: linear-gradient(150deg, #54ddb0 0%, #1ea769 100%);
  --legend-notebook-item-spine: rgba(26, 115, 79, 0.65);
  --legend-notebook-item-highlight: rgba(47, 173, 120, 0.16);
  --legend-notebook-item-accent: #1f8a5a;
}

.legend-notebook__link[data-notebook-id="labs"] {
  --legend-notebook-item-body: linear-gradient(150deg, #9b8cff 0%, #675bff 100%);
  --legend-notebook-item-spine: rgba(71, 57, 200, 0.66);
  --legend-notebook-item-highlight: rgba(113, 96, 255, 0.13);
  --legend-notebook-item-accent: #4b3adb;
}

.legend-notebook__link[data-notebook-id="trail"] {
  --legend-notebook-item-body: linear-gradient(150deg, #f8c977 0%, #f2852d 100%);
  --legend-notebook-item-spine: rgba(214, 116, 45, 0.65);
  --legend-notebook-item-highlight: rgba(240, 153, 64, 0.18);
  --legend-notebook-item-accent: #d66e2d;
}

.legend-notebook__link:hover,
.legend-notebook__link:focus-visible {
  background: var(--legend-notebook-item-highlight);
  color: var(--legend-notebook-item-accent);
  outline: none;
}

.legend-notebook__link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--legend-notebook-item-accent);
}

.legend-notebook__link[aria-current="page"] {
  background: var(--legend-notebook-item-highlight);
  color: var(--legend-notebook-item-accent);
  cursor: default;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--legend-notebook-item-accent);
}

.legend-notebook__link-icon {
  position: relative;
  width: 32px;
  height: 34px;
  border-radius: 9px;
  background: var(--legend-notebook-item-body);
  box-shadow: 0 10px 18px rgba(18, 24, 60, 0.2);
  flex-shrink: 0;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.legend-notebook__link-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6px;
  width: 5px;
  height: 74%;
  border-radius: 6px;
  background: var(--legend-notebook-item-spine);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
}

.legend-notebook__link-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.legend-notebook__link:hover .legend-notebook__link-icon,
.legend-notebook__link:focus-visible .legend-notebook__link-icon,
.legend-notebook__link[aria-current="page"] .legend-notebook__link-icon {
  box-shadow: 0 12px 24px rgba(18, 24, 60, 0.26);
  transform: translateY(-1px);
}

.legend-notebook__link-label {
  flex: 1;
  line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
  .legend-notebook__toggle,
  .legend-notebook__menu,
  .legend-notebook__link,
  .legend-notebook__chevron,
  .legend-notebook__link-icon {
    transition: none;
  }
}

.legend-lead {
  font-size: 1.2rem;
  max-width: 860px;
  line-height: 1.75;
}

.legend-closing {
  margin-top: 2rem;
  font-style: italic;
  max-width: 760px;
}

.saasquatch-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.25rem 0 2.75rem;
}

.saasquatch-meta-card {
  background: var(--lp-legend-meta-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: var(--lp-legend-card-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.saasquatch-meta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--lp-legend-meta-stripe), transparent 65%);
  opacity: 0.35;
  pointer-events: none;
}

.saasquatch-meta-card::after {
  content: none;
}

.saasquatch-meta-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-legend-text-primary);
}

.saasquatch-meta-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lp-legend-text-primary);
}

.saasquatch-meta-note {
  color: var(--lp-legend-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.saasquatch-guidelines {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--lp-legend-text-secondary);
}

.saasquatch-guidelines li {
  margin-bottom: 0.85rem;
}

.saasquatch-guidelines li::marker {
  color: var(--lp-legend-text-primary);
}

.trail-checklist {
  margin: 1.5rem 0 2.5rem;
  padding-left: 1.25rem;
  color: var(--lp-legend-text-secondary);
}

.trail-checklist li {
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.trail-checklist li::marker {
  color: var(--lp-legend-text-primary);
}

.trail-cache-grid {
  margin: 2.5rem 0 3rem;
}

.trail-cache-card {
  gap: 0.9rem;
}

.trail-cache-card p {
  margin: 0;
  line-height: 1.6;
}

.trail-cache-location {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lp-legend-text-secondary);
}

.saasquatch-field-notes {
  background: var(--lp-legend-card-bg);
  border: 1px solid var(--lp-legend-card-border);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem 0 3rem;
  box-shadow: var(--lp-legend-card-shadow);
  position: relative;
  overflow: hidden;
}

.saasquatch-field-notes::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, var(--lp-legend-meta-stripe), transparent 68%);
  opacity: 0.35;
  pointer-events: none;
}


.saasquatch-field-notes h3 {
  margin-top: 0;
  font-size: 1.45rem;
  color: var(--lp-legend-text-primary);
}

.saasquatch-field-notes p {
  margin-bottom: 1rem;
  max-width: 900px;
}

.saasquatch-field-notes ul {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
}

.saasquatch-field-notes li {
  margin-bottom: 0.85rem;
}

#legends-trail .lab-console {
  display: grid;
  gap: 1.75rem;
  position: relative;
  border-radius: 18px;
}

#legends-trail .lab-console::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(166, 125, 77, 0.35);
  opacity: 0.7;
  pointer-events: none;
}

[data-theme="dark"] #legends-trail .lab-console::after {
  border-color: rgba(210, 169, 120, 0.45);
}

#legends-trail .lab-status-lights {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

#legends-trail .lab-status-lights .lab-light {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.45);
  opacity: 0.9;
}

#legends-trail .lab-light--green {
  background: radial-gradient(circle at 30% 30%, #bef7c0, #53b66a);
}

#legends-trail .lab-light--amber {
  background: radial-gradient(circle at 30% 30%, #ffe8b5, #ef9f43);
}

#legends-trail .lab-light--pink {
  background: radial-gradient(circle at 30% 30%, #ffd6ec, #f16aa7);
}

#legends-trail .lab-console-header {
  display: grid;
  gap: 0.75rem;
  max-width: 720px;
}

#legends-trail .lab-console-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--lp-legend-text-primary);
}

#legends-trail .lab-console-header p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.7;
}

#lp-labs .lab-journal {
  position: relative;
  margin: 2rem 0 3.5rem;
  padding: 2.5rem 2.75rem;
  border-radius: 28px;
  background: linear-gradient(
      140deg,
      rgba(112, 197, 166, 0.24),
      rgba(142, 181, 255, 0.18)
    ),
    #f9ecd9;
  border: 1px solid rgba(166, 125, 77, 0.22);
  box-shadow: 0 28px 58px rgba(63, 48, 31, 0.18);
  display: grid;
  gap: 2.75rem;
  overflow: hidden;
}

#lp-labs .lab-journal::before,
#lp-labs .lab-journal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

#lp-labs .lab-journal::before {
  background: radial-gradient(120% 140% at 15% 10%, rgba(255, 255, 255, 0.65), transparent 60%);
  opacity: 0.7;
}

#lp-labs .lab-journal::after {
  background: radial-gradient(95% 135% at 90% 95%, rgba(166, 125, 77, 0.22), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: 0.65;
}

#lp-labs .lab-journal > * {
  position: relative;
  z-index: 1;
}

#lp-labs .lab-journal__header {
  display: grid;
  gap: 1rem;
  max-width: 820px;
  position: static;
  width: auto;
  top: auto;
  left: auto;
  right: auto;
  background: transparent;
  border: none;
  border-bottom: none;
  box-shadow: none;
  backdrop-filter: none;
  z-index: auto;
}

#lp-labs .lab-journal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--lp-legend-text-primary);
  background: none;
  border: none;
  box-shadow: none;
}

#lp-labs .lab-journal__badge span[aria-hidden="true"] {
  font-size: 1.1rem;
}

#lp-labs .lab-journal__header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-journal__header p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.75;
}

#lp-labs .lab-storyboard {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(120px, 190px) 1fr;
  align-items: center;
}

#lp-labs .lab-storyboard__portrait {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(112, 197, 166, 0.35), rgba(142, 181, 255, 0.32));
  box-shadow: 0 20px 40px rgba(20, 31, 50, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

#lp-labs .lab-storyboard__content {
  display: grid;
  gap: 1rem;
}

#lp-labs .lab-storyboard__content h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-storyboard__content p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.7;
}

#lp-labs .lab-storyboard__list {
  margin: 0;
  padding-left: 1.35rem;
  color: var(--lp-legend-text-secondary);
  display: grid;
  gap: 0.75rem;
}

#lp-labs .lab-storyboard__list li {
  line-height: 1.7;
}

#lp-labs .lab-storyboard__list strong {
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-projects {
  display: grid;
  gap: 1.25rem;
}

#lp-labs .lab-projects h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-projects p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.65;
}

#lp-labs .lab-projects__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#lp-labs .lab-project {
  background: rgba(112, 197, 166, 0.12);
  border: 1px solid rgba(112, 197, 166, 0.35);
  border-radius: 20px;
  padding: 1.8rem;
  display: grid;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 22px rgba(20, 31, 50, 0.08);
}

#lp-labs .lab-project:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(20, 31, 50, 0.12);
}

#lp-labs .lab-project__icon {
  font-size: 2.2rem;
}

#lp-labs .lab-project h4 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-project p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.6;
}

#lp-labs .lab-safety {
  display: grid;
  gap: 1rem;
}

#lp-labs .lab-safety h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-safety p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.65;
}

#lp-labs .lab-safety__list {
  margin: 1.35rem 0 0;
  padding-left: 1.35rem;
  color: var(--lp-legend-text-secondary);
  display: grid;
  gap: 0.85rem;
}

#lp-labs .lab-safety__list li {
  line-height: 1.7;
}

#lp-labs .lab-safety__list li::marker {
  color: var(--lp-legend-highlight-strong);
}

#lp-labs .lab-curio-shelf {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: 2.25rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(247, 214, 174, 0.42));
  border: 1px solid rgba(166, 125, 77, 0.22);
  box-shadow: 0 24px 44px rgba(63, 48, 31, 0.16);
  overflow: hidden;
}

#lp-labs .lab-curio-shelf::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(166, 125, 77, 0.18), rgba(112, 197, 166, 0.12));
  opacity: 0.75;
}

#lp-labs .lab-curio-shelf > * {
  position: relative;
  z-index: 1;
}

#lp-labs .lab-curio-shelf h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-curio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

#lp-labs .lab-curio {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.9rem 1.8rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 248, 239, 0.92), rgba(247, 214, 174, 0.65));
  border: 1px solid rgba(166, 125, 77, 0.24);
  box-shadow: 0 18px 38px rgba(63, 48, 31, 0.18);
  overflow: hidden;
}

#lp-labs .lab-curio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(115% 110% at 15% 0%, rgba(255, 255, 255, 0.78), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

#lp-labs .lab-curio > * {
  position: relative;
  z-index: 1;
}

#lp-labs .lab-curio__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

#lp-labs .lab-curio__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(112, 197, 166, 0.32), rgba(142, 181, 255, 0.28));
  box-shadow: 0 12px 24px rgba(63, 48, 31, 0.16);
  font-size: 1.6rem;
}

#lp-labs .lab-curio h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-curio p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.6;
}

#lp-labs .lab-report-cta {
  display: grid;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: 22px;
  background: rgba(142, 181, 255, 0.12);
  border: 1px solid rgba(142, 181, 255, 0.35);
  box-shadow: 0 16px 30px rgba(20, 31, 50, 0.1);
}

#lp-labs .lab-report-cta h3 {
  margin: 0;
  font-size: 1.45rem;
  color: var(--lp-legend-text-primary);
}

#lp-labs .lab-report-cta p {
  margin: 0;
  color: var(--lp-legend-text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

#lp-labs .lab-report-cta__button {
  justify-self: flex-start;
}

@media (max-width: 900px) {
  #lp-labs .lab-storyboard {
    grid-template-columns: 1fr;
  }

  #lp-labs .lab-storyboard__portrait {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  #lp-labs .lab-curio-shelf {
    padding: 1.85rem 1.6rem;
  }

  #lp-labs .lab-curio__icon {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 560px) {
  #lp-labs .container {
    padding-inline: 12px;
  }

  #lp-labs .legend-inner {
    padding: 1.75rem 0.7rem 2.3rem;
  }

  #lp-labs .lab-curio-shelf {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    gap: 1.1rem;
    border-radius: 0;
    overflow: visible;
  }

  #lp-labs .lab-curio-shelf::before {
    display: none;
  }

  #lp-labs .lab-report-cta {
    padding: 1.4rem 0.75rem;
  }

  #lp-labs .lab-curio-grid {
    gap: 1.1rem;
    grid-template-columns: minmax(0, 1fr);
  }

  #lp-labs .lab-curio {
    padding: 1.3rem 0.95rem 1.2rem;
    border-radius: 18px;
  }

  [data-theme="dark"] #lp-labs .lab-curio-shelf {
    background: none;
    border: none;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  #lp-labs .container {
    padding-inline: 10px;
  }

  #lp-labs .legend-inner {
    padding: 1.6rem 0.55rem 2.1rem;
  }

  #lp-labs .lab-curio-shelf {
    gap: 1rem;
  }

  #lp-labs .lab-report-cta {
    padding: 1.25rem 0.6rem;
  }

  #lp-labs .lab-curio {
    padding: 1.2rem 0.85rem 1.1rem;
  }

  #lp-labs .lab-report-cta {
    gap: 1.1rem;
  }
}


[data-theme="dark"] #lp-labs .lab-journal__badge {
  background: none;
  border: none;
  box-shadow: none;
}

[data-theme="dark"] #lp-labs .lab-journal {
  background: linear-gradient(
      140deg,
      rgba(112, 197, 166, 0.25),
      rgba(142, 181, 255, 0.3)
    ),
    rgba(14, 28, 44, 0.92);
  border-color: rgba(142, 181, 255, 0.32);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] #lp-labs .lab-journal::before {
  background: radial-gradient(125% 150% at 18% 14%, rgba(142, 181, 255, 0.24), transparent 60%);
  opacity: 0.85;
}

[data-theme="dark"] #lp-labs .lab-journal::after {
  background: radial-gradient(95% 130% at 88% 92%, rgba(112, 197, 166, 0.28), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.7;
}

[data-theme="dark"] #lp-labs .lab-curio-shelf {
  background: linear-gradient(145deg, rgba(20, 38, 55, 0.95), rgba(36, 58, 76, 0.88));
  border-color: rgba(142, 181, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] #lp-labs .lab-curio-shelf::before {
  background: linear-gradient(90deg, rgba(142, 181, 255, 0.38), rgba(112, 197, 166, 0.28));
  opacity: 0.6;
}

[data-theme="dark"] #lp-labs .lab-curio {
  background: linear-gradient(145deg, rgba(24, 42, 60, 0.95), rgba(36, 60, 80, 0.85));
  border-color: rgba(142, 181, 255, 0.38);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] #lp-labs .lab-curio::before {
  background: radial-gradient(120% 110% at 22% 8%, rgba(142, 181, 255, 0.3), transparent 55%);
  opacity: 0.85;
}

[data-theme="dark"] #lp-labs .lab-curio__icon {
  background: linear-gradient(145deg, rgba(142, 181, 255, 0.38), rgba(112, 197, 166, 0.28));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] #lp-labs .lab-project {
  background: rgba(112, 197, 166, 0.22);
  border-color: rgba(112, 197, 166, 0.5);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] #lp-labs .lab-report-cta {
  background: rgba(142, 181, 255, 0.2);
  border-color: rgba(142, 181, 255, 0.45);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.45);
}


:is(#lp-labs, #legends-trail) .lab-form {
  display: grid;
  gap: 1.5rem;
}

:is(#lp-labs, #legends-trail) .lab-form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

:is(#lp-labs, #legends-trail) .lab-form-grid--split {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

:is(#lp-labs, #legends-trail) .lab-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

:is(#lp-labs, #legends-trail) .lab-field label {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-legend-text-primary);
}

:is(#lp-labs, #legends-trail) .lab-field input,
:is(#lp-labs, #legends-trail) .lab-field textarea {
  background: var(--lp-color-input-bg);
  border: 1px solid var(--lp-color-input-border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  color: var(--lp-legend-text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

:is(#lp-labs, #legends-trail) .lab-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

:is(#lp-labs, #legends-trail) .lab-field input::placeholder,
:is(#lp-labs, #legends-trail) .lab-field textarea::placeholder {
  color: rgba(63, 48, 31, 0.6);
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-field input::placeholder,
[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-field textarea::placeholder {
  color: rgba(245, 230, 206, 0.6);
}

:is(#lp-labs, #legends-trail) .lab-field input:focus,
:is(#lp-labs, #legends-trail) .lab-field textarea:focus {
  outline: none;
  border-color: var(--lp-color-input-focus-border);
  box-shadow: 0 0 0 3px var(--lp-color-input-focus-ring);
}

#lp-labs .lab-privacy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--lp-legend-text-secondary);
  max-width: 720px;
}

:is(#lp-labs, #legends-trail) .lab-submit {
  justify-self: center;
  margin-inline: auto;
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.2rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--lp-legend-text-primary);
  background: linear-gradient(135deg, rgba(247, 214, 174, 0.95), rgba(201, 138, 79, 0.95));
  background-size: 140% 140%;
  background-position: 0% 50%;
  border-radius: 999px;
  border: 1px solid rgba(63, 48, 31, 0.18);
  box-shadow: 0 14px 32px rgba(63, 48, 31, 0.2);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.35s ease;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

:is(#lp-labs, #legends-trail) .lab-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.35s ease;
  pointer-events: none;
}

:is(#lp-labs, #legends-trail) .lab-submit:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 40px rgba(63, 48, 31, 0.26);
  background-position: 100% 50%;
}

:is(#lp-labs, #legends-trail) .lab-submit:hover::before {
  opacity: 1;
  transform: translateX(6%);
}

:is(#lp-labs, #legends-trail) .lab-submit:focus-visible {
  outline: 3px solid rgba(201, 138, 79, 0.55);
  outline-offset: 4px;
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-submit {
  color: var(--lp-legend-text-primary);
  background: linear-gradient(135deg, rgba(146, 104, 61, 0.95), rgba(108, 72, 38, 0.95));
  border-color: rgba(210, 169, 120, 0.45);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(4, 18, 30, 0.3);
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-submit::before {
  background: linear-gradient(120deg, rgba(210, 169, 120, 0.24), rgba(210, 169, 120, 0) 60%);
  opacity: 0.9;
}

:is(#lp-labs, #legends-trail) .lab-form-status {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 1.5rem;
  color: var(--lp-legend-text-secondary);
  transition: color 0.2s ease;
}

:is(#lp-labs, #legends-trail) .lab-form-status--neutral {
  color: var(--lp-legend-text-secondary);
}

:is(#lp-labs, #legends-trail) .lab-form-status--success {
  color: #1b7c4b;
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-form-status--success {
  color: #8dd4a2;
}

:is(#lp-labs, #legends-trail) .lab-form-status--error {
  color: #b53a3a;
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-form-status--error {
  color: #ff8a8a;
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-submit:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] :is(#lp-labs, #legends-trail) .lab-submit:focus-visible {
  outline: 3px solid rgba(210, 169, 120, 0.65);
}

.back-btn {
  background: var(--lp-color-accent);
  color: var(--lp-color-text-inverse);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  display: inline-block;
  margin: 1rem 0 2rem;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: var(--lp-color-accent-hover);
}

#saasquatch-legend .back-btn,
#lp-labs .back-btn,
#legends-trail .back-btn {
  background: var(--lp-legend-link);
  color: var(--lp-color-text-inverse);
}

#saasquatch-legend .back-btn:hover,
#lp-labs .back-btn:hover,
#legends-trail .back-btn:hover {
  background: var(--lp-legend-link-hover);
}

/* Footer */
footer {
  background: var(--lp-color-footer-bg);
  color: var(--lp-color-footer-text);
  text-align: left;
  padding: 3rem 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}

footer .footer-brand {
  max-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

footer .footer-logo {
  color: var(--lp-color-footer-text);
  text-decoration: none;
  font-size: 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

footer .footer-logo::before {
  content: "🥬";
  font-size: 1.6rem;
}

footer .footer-brand p {
  color: var(--lp-color-footer-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

footer .footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .footer-social-break {
  flex-basis: 100%;
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--lp-color-footer-link);
  transition: color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

footer .footer-social-link:hover,
footer .footer-social-link:focus {
  transform: translateY(-2px) scale(1.05);
}

footer .footer-social-link svg {
  width: 26px;
  height: 26px;
  display: block;
}

footer .footer-social-link:focus {
  outline: none;
}

footer .footer-social-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

footer .footer-social-link--geocaching img {
  width: 26px;
  height: 26px;
  display: block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

footer .footer-social-link--geocaching:hover img,
footer .footer-social-link--geocaching:focus img {
  filter: brightness(1.15);
}

footer .footer-social-link--trees img {
  width: 26px;
  height: 26px;
  display: block;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

footer .footer-social-link--trees:hover img,
footer .footer-social-link--trees:focus img {
  filter: brightness(1.15);
}

footer .footer-social-link--twitter {
  color: #f4f7fb;
}

footer .footer-social-link--twitter:hover,
footer .footer-social-link--twitter:focus {
  color: #ffffff;
}

footer .footer-social-link--instagram {
  color: #f56040;
}

footer .footer-social-link--instagram:hover,
footer .footer-social-link--instagram:focus {
  color: #ff7b6d;
}

footer .footer-social-link--linkedin {
  color: #0a66c2;
}

footer .footer-social-link--linkedin:hover,
footer .footer-social-link--linkedin:focus {
  color: #0d74de;
}

footer .footer-social-link--youtube {
  color: #ff4f45;
}

footer .footer-social-link--youtube:hover,
footer .footer-social-link--youtube:focus {
  color: #ff756d;
}

footer .footer-columns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.5rem 3rem;
  align-items: stretch;
}

footer .footer-column h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

footer .footer-column--support {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: min(100%, 240px);
}

footer .footer-bigfoot { 
  color: var(--lp-color-footer-muted);
  font-family: "Fira Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  align-self: stretch;
  justify-self: end;
  margin-left: 0;
  width: min(100%, 280px);
  gap: 0.75rem;
}

footer .footer-bigfoot-toggle {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.55rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--lp-color-footer-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

footer .footer-bigfoot-toggle:hover,
footer .footer-bigfoot-toggle:focus-visible {
  color: var(--lp-color-footer-link);
  transform: translateY(-2px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  outline: none;
}

footer .footer-bigfoot-toggle:focus-visible {
  outline: 2px solid var(--lp-color-footer-link);
  outline-offset: 3px;
}

footer .footer-bigfoot-link {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  padding: 0.75rem 0.95rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

footer .footer-bigfoot-link:hover,
footer .footer-bigfoot-link:focus-visible {
  background-color: rgba(76, 175, 80, 0.12);
  color: var(--lp-color-footer-text);
  transform: translateY(-2px);
}

footer .footer-bigfoot-link:hover .footer-bigfoot-scene,
footer .footer-bigfoot-link:focus-visible .footer-bigfoot-scene {
  color: inherit;
}

footer .footer-bigfoot-scene {
  margin: 0;
  font-size: 0.52rem;
  line-height: 1.05;
  white-space: pre;
  overflow: visible;
}

footer .footer-column a {
  color: var(--lp-color-footer-link);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer .footer-column a:hover,
footer .footer-column a:focus,
footer .footer-bottom a:hover,
footer .footer-bottom a:focus {
  text-decoration: underline;
}

footer .footer-location-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

footer .footer-location-placeholder,
footer .footer-location-empty {
  color: var(--lp-color-footer-muted);
  font-weight: 500;
}

footer .footer-bottom {
  border-top: 1px solid var(--lp-color-footer-divider);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 0.95rem;
  color: var(--lp-color-footer-muted);
}

footer .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

footer .footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer .footer-bottom-links a {
  color: var(--lp-color-footer-link);
  text-decoration: none;
  font-weight: 500;
}

footer .footer-bottom-links span {
  color: rgba(224, 242, 241, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
  nav {
    gap: 1rem;
  }

  #saasquatch-legend .legend-inner,
  #lp-labs .legend-inner,
  #legends-trail .legend-inner,
  #about .legend-inner,
  #how-it-works .legend-inner,
  #help .legend-inner,
  #privacy-policy .legend-inner,
  #terms-and-conditions .legend-inner,
  #monthly-terms .legend-inner,
  #lettuce-encrypt .legend-inner {
    padding: 2.75rem 2.5rem 3rem;
  }
}

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

  .mobile-menu {
    display: inline-flex;
  }

  .nav-links.active .nav-profile {
    width: 100%;
  }

  .nav-links.active .nav-profile__toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: var(--lp-color-nav-dropdown-bg);
    border: 1px solid var(--lp-color-nav-dropdown-border);
  }

  .nav-links.active .nav-profile__emoji {
    font-size: 1.7rem;
  }

  .nav-links.active .nav-profile__menu {
    position: static;
    margin-top: 0.5rem;
    width: 100%;
    box-shadow: none;
  }

  #saasquatch-legend .legend-inner,
  #lp-labs .legend-inner,
  #legends-trail .legend-inner,
  #about .legend-inner,
  #how-it-works .legend-inner,
  #help .legend-inner,
  #privacy-policy .legend-inner,
  #terms-and-conditions .legend-inner,
  #monthly-terms .legend-inner,
  #lettuce-encrypt .legend-inner {
    padding: 2.25rem 1.75rem 2.75rem;
  }

  #about.page-content,
  #how-it-works.page-content,
  #help.page-content,
  #privacy-policy.page-content,
  #terms-and-conditions.page-content,
  #monthly-terms.page-content,
  #lettuce-encrypt.page-content {
    padding-top: 5.25rem;
  }

  .legend-lead {
    font-size: 1.05rem;
  }

  .saasquatch-meta {
    grid-template-columns: 1fr;
  }

  footer .footer-top {
    flex-direction: column;
  }

  footer .footer-columns {
    width: 100%;
    grid-template-columns: 1fr;
  }

  footer .footer-bigfoot {
    width: 100%;
    align-items: center;
    text-align: center;
    margin-left: 0;
    margin-top: 1.5rem;
  }

  footer .footer-bigfoot-link {
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }

  footer .footer-bigfoot-toggle {
    align-self: center;
  }

  footer .footer-bigfoot-scene {
    font-size: 0.7rem;
  }

  .saasquatch-field-notes {
    padding: 1.5rem;
  }

  footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .tagline {
    font-size: 1.4rem;
  }

  .features h2,
  .cta h2 {
    font-size: 2rem;
  }

  .page-content h1 {
    font-size: 2rem;
  }

  #btnHourly,
  #btnMonthly {
    display: none;
  }
}

@media (max-width: 640px) {
  #saasquatch-legend.page-content,
  #lp-labs.page-content,
  #legends-trail.page-content {
    padding-top: 4.5rem;
    padding-bottom: 3.75rem;
  }
}

/* Buttons */
.tree-btn {
  display: inline-block;
  margin-top: 1rem;
  background: var(--lp-color-accent);
  color: var(--lp-color-text-inverse);
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
}

.tree-btn:hover {
  background: var(--lp-color-accent-hover);
  transform: translateY(-1px);
}

/* Dropdown native fallback */
#citySelect option {
  background: var(--lp-color-dropdown-bg);
  color: var(--lp-color-dropdown-text);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--lp-color-modal-bg);
  color: var(--lp-color-modal-text);
  padding: 2rem;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--lp-color-modal-shadow);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.modal-close {
  margin-top: 1.5rem;
  background: var(--lp-color-accent);
  color: var(--lp-color-text-inverse);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.modal-close:hover {
  background: var(--lp-color-accent-hover);
}

