/* Locallynk Community Manager — public home (no app JS). */

:root {
  --bg: #eef3ef;
  --ink: #14201a;
  --muted: #5c6b62;
  --accent: #1f6b4a;
  --accent-deep: #164f36;
  --line: #d5e0d8;
  --foam: #f7faf8;
  --font: "Assistant", "Segoe UI", "Noto Sans Hebrew", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% -8%, #cfe3d6 0%, transparent 58%),
    radial-gradient(900px 420px at -10% 40%, #dce8e0 0%, transparent 50%),
    linear-gradient(165deg, #eef3ef, #e4ebe5 42%, #dfe8e2);
  line-height: 1.55;
}

a {
  color: var(--accent);
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--foam);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  z-index: 10;
  text-decoration: none;
  font-weight: 700;
}

.skip:focus {
  transform: translateY(0);
}

.shell {
  width: min(44rem, calc(100% - 2rem));
  margin-inline: auto;
  padding:
    max(1.25rem, env(safe-area-inset-top))
    0
    max(2.5rem, env(safe-area-inset-bottom));
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.lang {
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.lang:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.hero {
  min-height: min(78vh, 40rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding-block: 1rem 2.5rem;
}

.brand {
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--accent);
}

.brand span {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0.35rem;
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.lede {
  margin: 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.9rem 1.2rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(31, 107, 74, 0.22);
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .brand,
  .hero h1,
  .lede,
  .cta {
    animation: rise 0.7s var(--ease) both;
  }
  .hero h1 {
    animation-delay: 0.08s;
  }
  .lede {
    animation-delay: 0.14s;
  }
  .cta {
    animation-delay: 0.2s;
  }
}

.section {
  padding: 2.25rem 0 0.5rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  max-width: 42ch;
}

.section p:last-child {
  margin-bottom: 0;
}

.foot {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-bottom: 0.75rem;
}

.foot a {
  text-decoration: none;
  font-weight: 600;
}

.foot a:hover {
  text-decoration: underline;
}

.draft-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    transform: translateY(0.55rem);
  }
  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary {
    transition: none;
  }
}

@media (max-width: 480px) {
  .cta .btn {
    width: 100%;
  }
}
