/* Marketing landing — only when body.landing-mode */
body.landing-mode {
  margin: 0;
  font-family: Manrope, system-ui, sans-serif;
  color: #14231c;
  background: #f3eee4;
  line-height: 1.5;
  min-height: 100vh;
}
body.landing-mode #landing { display: block; }
body.landing-mode #app { display: none !important; }
body.hub-mode #landing { display: none !important; }
body.hub-mode #app { display: grid !important; }

#landing .bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(224, 122, 61, 0.28), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(30, 74, 56, 0.22), transparent 55%),
    linear-gradient(165deg, #f7f2e8 0%, #e7efe4 48%, #f4ebe0 100%);
}
#landing .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(20, 35, 28, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 35, 28, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
#landing .wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
#landing header.land-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0 0;
}
#landing .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: #14231c;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
#landing .mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #d5e3d2;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px #1e4a38;
}
#landing .mark svg { width: 28px; height: 28px; }
#landing .nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: #1e4a38;
  color: #f7f4ee;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
#landing .nav-cta:hover { background: #123328; }
#landing .hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 5.5rem);
  padding: 2rem 0 3rem;
}
#landing .brand-hero {
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #123328;
  margin-bottom: 1rem;
  animation: landRise 0.7s ease both;
}
#landing h1 {
  font-family: Syne, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 0 0.9rem;
  animation: landRise 0.7s ease 0.08s both;
}
#landing .lead {
  font-size: 1.08rem;
  color: rgba(20, 35, 28, 0.78);
  max-width: 34ch;
  margin: 0 0 1.6rem;
  animation: landRise 0.7s ease 0.16s both;
}
#landing .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: landRise 0.7s ease 0.24s both;
}
#landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  font: inherit;
}
#landing .btn-primary {
  background: #e07a3d;
  color: #fff8f2;
  box-shadow: 0 12px 30px rgba(224, 122, 61, 0.28);
}
#landing .btn-primary:hover { background: #d2692e; }
#landing .btn-ghost {
  background: transparent;
  color: #1e4a38;
  box-shadow: inset 0 0 0 1.5px rgba(30, 74, 56, 0.35);
}
#landing .btn-ghost:hover { background: rgba(30, 74, 56, 0.06); }
#landing .stage {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  animation: landFloat 0.9s ease 0.1s both;
}
#landing .glow {
  position: absolute;
  width: 70%;
  height: 55%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.35), transparent 70%);
  filter: blur(8px);
  animation: landPulse 4.5s ease-in-out infinite;
}
#landing .window {
  position: relative;
  width: min(340px, 86%);
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #edf4ea, #d9e7d6);
  border: 10px solid #1e4a38;
  border-radius: 18px 18px 14px 14px;
  box-shadow: 0 28px 60px rgba(18, 51, 40, 0.22);
  overflow: hidden;
}
#landing .awning {
  position: absolute;
  left: -10px;
  right: -10px;
  top: -4px;
  height: 42px;
  background: repeating-linear-gradient(90deg, #e07a3d 0 28px, #f4ebe0 28px 36px);
  border-radius: 10px 10px 0 0;
  animation: landAwning 3.2s ease-in-out infinite;
}
#landing .pane {
  position: absolute;
  inset: 52px 18px 68px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#landing .pane span {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(30, 74, 56, 0.16);
  border-radius: 8px;
}
#landing .shelf {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 28px;
  height: 12px;
  background: #1e4a38;
  border-radius: 4px;
}
#landing .tag {
  position: absolute;
  right: 18px;
  bottom: 52px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #f0b429;
  color: #123328;
  font-family: Syne, sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  animation: landBob 2.8s ease-in-out infinite;
}
#landing .how { padding: 1rem 0 4.5rem; }
#landing .how h2 {
  font-family: Syne, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.5rem;
}
#landing .how > p {
  color: rgba(20, 35, 28, 0.7);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}
#landing .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
#landing .step {
  padding: 1.2rem 1.15rem 1.3rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(30, 74, 56, 0.1);
  backdrop-filter: blur(6px);
}
#landing .step b {
  display: block;
  font-family: Syne, sans-serif;
  font-size: 1.8rem;
  color: #e07a3d;
  letter-spacing: -0.04em;
  margin-bottom: 0.35rem;
}
#landing .step h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
#landing .step p { color: rgba(20, 35, 28, 0.72); font-size: 0.95rem; margin: 0; }
#landing footer.land-foot {
  padding: 0 0 2.5rem;
  color: rgba(20, 35, 28, 0.65);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}
#landing footer.land-foot a { color: #1e4a38; font-weight: 600; text-decoration: none; }
#landing .auth-note {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: rgba(20, 35, 28, 0.68);
  max-width: 36ch;
  animation: landRise 0.7s ease 0.3s both;
}
#landing .auth-note a { color: #1e4a38; font-weight: 700; }

@keyframes landRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes landFloat {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes landPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}
@keyframes landAwning {
  0%, 100% { transform: rotate(-0.6deg); }
  50% { transform: rotate(0.6deg); }
}
@keyframes landBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@media (max-width: 860px) {
  #landing .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.5rem 0 2rem;
  }
  #landing .stage { min-height: 340px; order: -1; }
  #landing .steps { grid-template-columns: 1fr; }
  #landing .nav-cta span { display: none; }
}
