/**
 * Public marketing shell: guest home (landingpage) + business (landing.ejs).
 */
:root {
  --fg-mp-ink: #0f1419;
  --fg-mp-muted: #5b6670;
  --fg-mp-accent: #21ba45;
  --fg-mp-accent-2: #f36f21;
  --fg-mp-glass: rgba(255, 255, 255, 0.12);
  --fg-mp-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.fg-topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(8, 12, 10, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fg-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.fg-topnav__links {
  display: flex;
  align-items: center;
  gap: 0.5rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.fg-topnav__links a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.fg-topnav__links a:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.fg-topnav__cta {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--fg-mp-ink) !important;
  padding: 0.45rem 1rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.fg-topnav__cta:hover {
  opacity: 1 !important;
  filter: brightness(1.05);
  text-decoration: none !important;
}

/* Guest home hero */
.fg-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5.5rem 1.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.fg-home__mesh {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(33, 186, 69, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 50%, rgba(243, 111, 33, 0.25), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(33, 186, 69, 0.2), transparent 45%),
    linear-gradient(165deg, #0a1628 0%, #0d2818 40%, #1a0f08 100%);
  z-index: 0;
}

.fg-home__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.fg-home__logo {
  display: block;
  width: min(160px, 42vw);
  height: auto;
  margin: 0 auto;
  cursor: pointer;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  animation: fg-float 4s ease-in-out infinite alternate;
}

@keyframes fg-float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-6px);
  }
}

.fg-home__badge {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: var(--fg-mp-glass);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fg-home h1 {
  font-family: var(--fg-mp-font);
  font-weight: 700;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.2;
  margin: 1rem 0 0.75rem;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.fg-home__sub {
  font-family: var(--fg-mp-font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.fg-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.fg-btn-primary {
  font-family: var(--fg-mp-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #21ba45, #169c3a);
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(33, 186, 69, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(33, 186, 69, 0.45);
}

.fg-btn-ghost {
  font-family: var(--fg-mp-font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.fg-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.fg-listening {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  cursor: pointer;
  margin: 0.75rem auto 1rem;
}

.fg-listening .wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  opacity: 0;
  animation: fg-pulse 3s infinite;
}

.fg-listening .wave2 {
  animation-delay: 0.8s;
}
.fg-listening .wave3 {
  animation-delay: 1.6s;
}

@keyframes fg-pulse {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

.fg-listening .mic-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.fg-listening.active .wave {
  animation: fg-pulse-fast 1.2s infinite;
}
.fg-listening.active .wave2 {
  animation-delay: 0.3s;
}
.fg-listening.active .wave3 {
  animation-delay: 0.6s;
}

@keyframes fg-pulse-fast {
  0% {
    transform: scale(0.3);
    opacity: 1;
  }
  100% {
    transform: scale(1.1);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .fg-topnav__links {
    gap: 0.35rem 0.75rem;
  }
  .fg-topnav__links a {
    font-size: 0.88rem;
  }
}

/* —— Business /for-sellers page (views/landing.ejs) —— */
body.biz-page {
  margin: 0;
  font-family: var(--fg-mp-font);
  background: #f6f7f9;
  color: var(--fg-mp-ink);
  padding-top: 56px;
}

.biz-page .biz-hero {
  position: relative;
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, #0a1628 0%, #0d2818 42%, #1a1208 100%);
  color: #fff;
}

.biz-page .biz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(33, 186, 69, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 60%, rgba(243, 111, 33, 0.18), transparent 50%);
  pointer-events: none;
}

.biz-page .biz-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.biz-page .biz-hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.biz-page .biz-hero p.lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.75rem;
}

.biz-page .biz-hero .biz-hero-logo {
  width: min(200px, 55vw);
  margin: 0 auto 1.25rem;
  cursor: pointer;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.biz-page .biz-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.biz-page .biz-btn-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.2s;
}

.biz-page .biz-btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.biz-page .biz-btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: linear-gradient(135deg, #21ba45, #169c3a);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(33, 186, 69, 0.35);
  cursor: pointer;
  transition: transform 0.2s;
}

.biz-page .biz-btn-solid:hover {
  transform: translateY(-2px);
}

.biz-page section.biz-band {
  padding: 3.5rem 1rem;
}

.biz-page section.biz-band--alt {
  background: #fff;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.biz-page .biz-section-title {
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.biz-page .biz-section-sub {
  text-align: center;
  color: var(--fg-mp-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

.biz-page .biz-cards .column {
  padding: 1.5rem !important;
}

.biz-page .biz-card {
  height: 100%;
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.biz-page .biz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.biz-page .biz-card i.icon {
  font-size: 2.25rem !important;
  color: var(--fg-mp-accent) !important;
  margin-bottom: 0.75rem !important;
}

.biz-page .biz-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.biz-page .biz-card p {
  margin: 0;
  color: var(--fg-mp-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.biz-page .biz-image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.biz-page .biz-image-row img {
  width: 100%;
  max-width: 400px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.biz-page .biz-cta-final {
  text-align: center;
  padding: 3rem 1rem 4rem;
  background: linear-gradient(180deg, #eef1f4 0%, #f6f7f9 100%);
}

.biz-page .biz-cta-final h2 {
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
}

/* —— Light marketing shell (home + business): clean white/off-white, brand CTAs —— */
body.fg-public-light {
  color: var(--fg-mp-ink);
}

body.fg-public-light .fg-topnav {
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

body.fg-public-light .fg-topnav__links a {
  color: var(--fg-mp-ink);
  opacity: 0.88;
}

body.fg-public-light .fg-topnav__links a:hover {
  opacity: 1;
  color: var(--fg-mp-accent);
}

body.fg-public-light .fg-topnav__cta {
  background: linear-gradient(135deg, #21ba45, #169c3a) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(33, 186, 69, 0.28);
}

body.fg-public-light .fg-topnav__cta:hover {
  filter: brightness(1.03);
  box-shadow: 0 6px 18px rgba(33, 186, 69, 0.35);
}

/* Guest home (landingpage.ejs) */
body.fg-public-light .fg-home {
  background: #fafafa;
}

body.fg-public-light .fg-home__mesh {
  background:
    radial-gradient(ellipse 75% 55% at 50% -5%, rgba(33, 186, 69, 0.09), transparent 58%),
    radial-gradient(ellipse 55% 45% at 95% 15%, rgba(243, 111, 33, 0.07), transparent 52%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f7 55%, #fafafa 100%);
}

body.fg-public-light .fg-home h1 {
  color: var(--fg-mp-ink);
  text-shadow: none;
}

body.fg-public-light .fg-home__sub {
  color: var(--fg-mp-muted);
}

body.fg-public-light .fg-home__badge {
  color: var(--fg-mp-muted);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

body.fg-public-light .fg-btn-ghost {
  background: #fff;
  color: var(--fg-mp-ink) !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.fg-public-light .fg-btn-ghost:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.12);
}

body.fg-public-light .fg-listening .wave {
  border-color: rgba(33, 186, 69, 0.4);
}

body.fg-public-light .fg-listening .mic-dot {
  filter: drop-shadow(0 2px 8px rgba(33, 186, 69, 0.25));
}

/* Business page (landing.ejs) */
body.fg-public-light.biz-page {
  background: #f5f5f7;
  color: var(--fg-mp-ink);
}

body.fg-public-light .biz-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: var(--fg-mp-ink);
}

body.fg-public-light .biz-hero::before {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(33, 186, 69, 0.1), transparent 58%),
    radial-gradient(ellipse 50% 40% at 100% 55%, rgba(243, 111, 33, 0.07), transparent 52%);
}

body.fg-public-light .biz-hero p.lead {
  color: var(--fg-mp-muted);
}

body.fg-public-light .biz-hero .biz-hero-logo {
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.08));
}

body.fg-public-light .biz-btn-light {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: var(--fg-mp-ink) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.fg-public-light .biz-btn-light:hover {
  background: #f5f5f7;
  border-color: rgba(0, 0, 0, 0.14);
}

body.fg-public-light .biz-btn-solid {
  background: linear-gradient(135deg, #21ba45, #169c3a);
  box-shadow: 0 6px 20px rgba(33, 186, 69, 0.28);
}

body.fg-public-light section.biz-band {
  background: transparent;
}

body.fg-public-light section.biz-band--alt {
  background: #ffffff;
  box-shadow: none;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

body.fg-public-light .biz-cta-final {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

/* Light footer on business page (matches public marketing shell) */
body.fg-public-light footer.ui.inverted.grey.vertical.footer.segment {
  background: #f5f5f7 !important;
  color: var(--fg-mp-ink) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  margin-top: 0 !important;
}

body.fg-public-light footer .ui.inverted.header {
  color: var(--fg-mp-ink) !important;
}

body.fg-public-light footer .inverted.link.list a.item,
body.fg-public-light footer .inverted.horizontal.list a.item {
  color: var(--fg-mp-muted) !important;
}

body.fg-public-light footer .inverted.link.list a.item:hover,
body.fg-public-light footer .inverted.horizontal.list a.item:hover {
  color: var(--fg-mp-accent) !important;
}

body.fg-public-light footer p {
  color: var(--fg-mp-muted) !important;
}

body.fg-public-light footer .ui.inverted.section.divider {
  border-top-color: rgba(0, 0, 0, 0.08) !important;
}

body.fg-public-light footer .ui.horizontal.inverted.small.divided.link.list .item {
  color: var(--fg-mp-muted) !important;
}

body.fg-public-light footer .ui.horizontal.inverted.small.divided.link.list .item:hover {
  color: var(--fg-mp-accent) !important;
}

body.fg-public-light footer .ui.center.aligned.inverted.small.header {
  color: var(--fg-mp-muted) !important;
}

body.fg-public-light footer .ui.inverted.form input[type='email'] {
  background: #fff !important;
  color: var(--fg-mp-ink) !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.fg-public-light footer .ui.action.input .ui.button.primary {
  background: linear-gradient(135deg, #21ba45, #169c3a) !important;
  color: #fff !important;
}

/* Seller intro on business page (above property hero) */
body.fg-public-light .biz-seller-hero.fg-home {
  min-height: 0;
  justify-content: flex-start;
  padding: 3rem 1.25rem 2.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Buyer homepage (/) */
body.fg-public-light .fg-home--buyer {
  min-height: min(88vh, 720px);
  padding-bottom: 1.5rem;
}

body.fg-public-light .fg-home__badge--buyer {
  background: rgba(33, 186, 69, 0.1);
  border-color: rgba(33, 186, 69, 0.2);
  color: var(--fg-mp-ink);
}

.fg-home__search {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto 1.1rem;
}

.fg-home__search-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.fg-home__search-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  font-size: 1rem;
  font-family: var(--fg-mp-font);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.fg-home__search-input:focus {
  outline: none;
  border-color: rgba(33, 186, 69, 0.55);
  box-shadow: 0 0 0 3px rgba(33, 186, 69, 0.15);
}

.fg-home__search-btn {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  white-space: nowrap;
}

.fg-home__search-note {
  font-size: 0.82rem;
  color: var(--fg-mp-muted);
  text-align: center;
  margin: 0.65rem 0 0;
  line-height: 1.45;
}

.fg-home__actions--buyer {
  margin-top: 0.35rem;
}

.fg-featured {
  padding: 3rem 1.25rem 3.5rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.fg-featured__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.fg-featured__title {
  font-family: var(--fg-mp-font);
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  color: var(--fg-mp-ink);
}

.fg-featured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 1.15rem;
  margin-top: 0;
}

@media (min-width: 600px) {
  .fg-featured__grid {
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  }
}

.fg-featured__card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  border-radius: 16px;
  overflow: hidden;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.fg-featured__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);
}

.fg-featured__img-wrap {
  aspect-ratio: 1;
  background: #ececee;
}

.fg-featured__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fg-featured__placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: linear-gradient(145deg, #e8e8ed 0%, #f2f2f5 100%);
}

.fg-featured__body {
  padding: 0.85rem 0.95rem 1.05rem;
}

.fg-featured__name {
  font-family: var(--fg-mp-font);
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  line-height: 1.35;
  color: var(--fg-mp-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fg-featured__seller {
  font-size: 0.78rem;
  color: var(--fg-mp-muted);
  margin: 0 0 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fg-featured__price {
  font-family: var(--fg-mp-font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg-mp-accent);
  margin: 0;
}

.fg-featured__price-old {
  text-decoration: line-through;
  font-weight: 500;
  color: #9aa0a6;
  font-size: 0.88em;
  margin-right: 0.35rem;
}

.fg-buyer-footer-cta {
  padding: 2rem 1rem 2.75rem;
  text-align: center;
  background: #f5f5f7;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.fg-buyer-footer-cta__text {
  margin: 0;
  color: var(--fg-mp-muted);
  font-size: 0.95rem;
  font-family: var(--fg-mp-font);
}

.fg-buyer-footer-cta a {
  color: #169c3a;
  font-weight: 600;
  text-decoration: none;
}

.fg-buyer-footer-cta a:hover {
  text-decoration: underline;
}

