/* landing.css — public landing page only.
 * Fully self-contained; does not depend on components.css / layout.css.
 * Scoped via .eb-landing-* so nothing leaks into the authed app UI. */

:root {
  --lp-bg: #fbf7ef;         /* warm off-white, matches mascot palette */
  --lp-surface: #ffffff;
  --lp-surface-alt: #f4efe4;
  --lp-ink: #1f2937;
  --lp-ink-soft: #4b5563;
  --lp-ink-faint: #6b7280;
  --lp-primary: #22a06b;    /* leafy green (matches brand mark) */
  --lp-primary-ink: #ffffff;
  --lp-primary-hover: #1c8858;
  --lp-border: rgba(31, 41, 55, 0.12);
  --lp-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  --lp-radius: 14px;
  --lp-radius-sm: 10px;
}

.eb-landing-body {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.eb-landing-body a { color: inherit; text-decoration: none; }

/* ── Top bar ─────────────────────────────────────────────── */
.eb-landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}
.eb-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}
.eb-landing-brand__mark { font-size: 22px; }
.eb-landing-topbar__actions { display: inline-flex; gap: 10px; }

/* ── Buttons ─────────────────────────────────────────────── */
.eb-landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--lp-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.eb-landing-btn--primary {
  background: var(--lp-primary);
  color: var(--lp-primary-ink);
}
.eb-landing-btn--primary:hover { background: var(--lp-primary-hover); }
.eb-landing-btn--ghost {
  background: transparent;
  color: var(--lp-ink);
  border-color: var(--lp-border);
}
.eb-landing-btn--ghost:hover { background: rgba(31, 41, 55, 0.04); }
.eb-landing-btn--lg {
  padding: 14px 26px;
  font-size: 15px;
  border-radius: 12px;
}
.eb-landing-btn:active { transform: translateY(1px); }

/* ── Hero ────────────────────────────────────────────────── */
.eb-landing-hero {
  padding: 40px clamp(20px, 5vw, 56px) 72px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.eb-landing-hero__audience,
.eb-landing-hero__ctas { justify-content: center; }
.eb-landing-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin: 14px 0 20px;
  letter-spacing: -0.02em;
}
.eb-landing-hero__sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--lp-ink-soft);
  margin: 0 0 18px;
}
.eb-landing-hero__audience {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 28px;
  color: var(--lp-ink-faint);
  font-size: 14px;
}
.eb-landing-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.eb-landing-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 160, 107, 0.1);
  color: var(--lp-primary-hover);
  font-size: 13px;
  font-weight: 600;
}
/* ── Sections ────────────────────────────────────────────── */
.eb-landing-section {
  padding: 72px clamp(20px, 5vw, 56px);
  max-width: 1200px;
  margin: 0 auto;
}
.eb-landing-section--alt {
  background: var(--lp-surface-alt);
  max-width: none;
  margin: 0;
  padding-left: max(20px, calc((100% - 1200px) / 2 + 20px));
  padding-right: max(20px, calc((100% - 1200px) / 2 + 20px));
}
.eb-landing-section__title {
  font-size: clamp(24px, 3.2vw, 32px);
  text-align: center;
  margin: 0 0 44px;
  letter-spacing: -0.01em;
}

/* ── Features grid (2×2 on desktop, 1 col on mobile) ────── */
.eb-landing-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.eb-landing-feature {
  background: var(--lp-surface);
  border-radius: var(--lp-radius);
  padding: 28px;
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.eb-landing-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.1);
}
.eb-landing-feature__icon {
  font-size: 34px;
  margin-bottom: 12px;
}
.eb-landing-feature h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.eb-landing-feature p {
  margin: 0;
  color: var(--lp-ink-soft);
  font-size: 14.5px;
}

/* ── Product showcase (screenshots) ──────────────────────── */
.eb-landing-showcase {
  text-align: center;
}
.eb-landing-showcase__lead {
  color: var(--lp-ink-soft);
  font-size: clamp(14.5px, 1.6vw, 16px);
  margin: -30px auto 40px;
  max-width: 520px;
}
.eb-landing-showcase__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 680px;
  margin: 0 auto;
}
.eb-landing-showcase__card {
  margin: 0;
  padding: 0;
}
/* Outer wrapper: rounded, clipped, with shadow — gives the screenshots
   a "floating device" look that blends into the warm background. */
.eb-landing-showcase__img-wrap {
  border-radius: var(--lp-radius);
  overflow: hidden;
  /* Subtle inset shadow on all edges masks the screenshot's own border */
  box-shadow:
    var(--lp-shadow),
    inset 0 0 0 1px var(--lp-border);
  background: var(--lp-surface);
  /* Bottom fade: a pseudo-element overlays a gradient that blends the
     bottom edge of the screenshot into the page background so there is
     no hard white-to-cream cut-off. */
  position: relative;
}
.eb-landing-showcase__img-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--lp-bg));
  border-radius: 0 0 var(--lp-radius) var(--lp-radius);
  pointer-events: none;
}
.eb-landing-showcase__img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}
.eb-landing-showcase__card figcaption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--lp-ink-faint);
  line-height: 1.5;
}

/* ── How-it-works steps ─────────────────────────────────── */
.eb-landing-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: lp-step;
}
.eb-landing-steps li {
  background: var(--lp-surface);
  border-radius: var(--lp-radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--lp-border);
  position: relative;
}
.eb-landing-step__num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lp-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.eb-landing-step__icon { font-size: 34px; margin: 14px 0 8px; }
.eb-landing-steps h4 { margin: 0 0 6px; font-size: 16px; }
.eb-landing-steps p { margin: 0; color: var(--lp-ink-soft); font-size: 14px; }

/* ── CTA + invite group QR ──────────────────────────────── */
.eb-landing-cta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px clamp(20px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.eb-landing-cta__text h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 10px;
}
.eb-landing-cta__text p {
  margin: 0 0 22px;
  color: var(--lp-ink-soft);
  font-size: 15px;
}
.eb-landing-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.eb-landing-cta__invite {
  background: var(--lp-surface);
  border-radius: var(--lp-radius);
  padding: 24px;
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
  text-align: center;
}
.eb-landing-cta__invite h3 { margin: 0 0 6px; font-size: 16px; }
.eb-landing-cta__invite p {
  margin: 0 0 14px;
  color: var(--lp-ink-soft);
  font-size: 13.5px;
}
.eb-landing-cta__qr {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  position: relative;
}
.eb-landing-cta__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-border);
  background: #fff;
}
.eb-landing-cta__qr-fallback {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg, #f3f4f6, #f3f4f6 8px, #e5e7eb 8px, #e5e7eb 16px
  );
  color: var(--lp-ink-faint);
  font-size: 13px;
  border-radius: var(--lp-radius-sm);
  border: 1px dashed var(--lp-border);
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.4;
}

/* ── Tech capability bar (section C) ─────────────────────── */
.eb-landing-tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.eb-landing-tech__item {
  background: var(--lp-surface);
  border-radius: var(--lp-radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--lp-border);
  box-shadow: var(--lp-shadow);
}
.eb-landing-tech__icon { font-size: 34px; margin-bottom: 10px; }
.eb-landing-tech__item h3 { margin: 0 0 6px; font-size: 16px; }
.eb-landing-tech__item p {
  margin: 0;
  color: var(--lp-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ── Footer ─────────────────────────────────────────────── */
.eb-landing-footer {
  padding: 32px 20px;
  color: var(--lp-ink-faint);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--lp-border);
  background: var(--lp-surface);
}
.eb-landing-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.eb-landing-footer__sep { opacity: 0.5; }
.eb-landing-footer a:hover { color: var(--lp-ink); text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .eb-landing-hero { padding-bottom: 40px; }
  .eb-landing-features { grid-template-columns: 1fr; }
  .eb-landing-showcase__grid { max-width: 100%; }
  .eb-landing-tech__grid { grid-template-columns: 1fr; }
  .eb-landing-steps { grid-template-columns: 1fr; }
  .eb-landing-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .eb-landing-cta__buttons { justify-content: center; }
  .eb-landing-section { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .eb-landing-topbar { padding: 14px 16px; }
  .eb-landing-hero { padding: 24px 16px 32px; }
  .eb-landing-hero h1 { font-size: 30px; }
}
